@seamly/web-ui 21.0.2-beta.1 → 21.0.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/lib/components.js +182 -109
- 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 +3 -3
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +184 -111
- 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 +211 -138
- 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 +184 -111
- 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 +184 -111
- 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/api/index.ts +1 -1
|
@@ -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 uncurryThisRaw = __webpack_require__(4163);
|
|
4169
4169
|
|
|
4170
|
-
var toString =
|
|
4171
|
-
var stringSlice =
|
|
4170
|
+
var toString = uncurryThisRaw({}.toString);
|
|
4171
|
+
var stringSlice = uncurryThisRaw(''.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__(5329);
|
|
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__(5329);
|
|
5351
5351
|
var aCallable = __webpack_require__(4883);
|
|
5352
5352
|
var NATIVE_BIND = __webpack_require__(8285);
|
|
5353
5353
|
|
|
@@ -5458,23 +5458,7 @@ module.exports = {
|
|
|
5458
5458
|
|
|
5459
5459
|
/***/ }),
|
|
5460
5460
|
|
|
5461
|
-
/***/
|
|
5462
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5463
|
-
|
|
5464
|
-
var classofRaw = __webpack_require__(2532);
|
|
5465
|
-
var uncurryThis = __webpack_require__(5329);
|
|
5466
|
-
|
|
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);
|
|
5472
|
-
};
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
/***/ }),
|
|
5476
|
-
|
|
5477
|
-
/***/ 5329:
|
|
5461
|
+
/***/ 4163:
|
|
5478
5462
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5479
5463
|
|
|
5480
5464
|
var NATIVE_BIND = __webpack_require__(8285);
|
|
@@ -5490,6 +5474,22 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
|
5490
5474
|
};
|
|
5491
5475
|
|
|
5492
5476
|
|
|
5477
|
+
/***/ }),
|
|
5478
|
+
|
|
5479
|
+
/***/ 5329:
|
|
5480
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5481
|
+
|
|
5482
|
+
var classofRaw = __webpack_require__(2532);
|
|
5483
|
+
var uncurryThisRaw = __webpack_require__(4163);
|
|
5484
|
+
|
|
5485
|
+
module.exports = function (fn) {
|
|
5486
|
+
// Nashorn bug:
|
|
5487
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
5488
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
5489
|
+
if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);
|
|
5490
|
+
};
|
|
5491
|
+
|
|
5492
|
+
|
|
5493
5493
|
/***/ }),
|
|
5494
5494
|
|
|
5495
5495
|
/***/ 626:
|
|
@@ -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.0',
|
|
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.0/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__(5329);
|
|
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 */ A; },
|
|
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 */ E; },
|
|
12671
|
+
/* harmony export */ "StrictMode": function() { return /* binding */ hn; },
|
|
12672
|
+
/* harmony export */ "Suspense": function() { return /* binding */ U; },
|
|
12673
|
+
/* harmony export */ "SuspenseList": function() { return /* binding */ M; },
|
|
12674
|
+
/* harmony export */ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED": function() { return /* binding */ en; },
|
|
12675
|
+
/* harmony export */ "cloneElement": function() { return /* binding */ ln; },
|
|
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 */ un; },
|
|
12679
|
+
/* harmony export */ "createPortal": function() { return /* binding */ $; },
|
|
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 */ _n; },
|
|
12682
|
+
/* harmony export */ "findDOMNode": function() { return /* binding */ fn; },
|
|
12683
|
+
/* harmony export */ "flushSync": function() { return /* binding */ sn; },
|
|
12684
|
+
/* harmony export */ "forwardRef": function() { return /* binding */ N; },
|
|
12685
|
+
/* harmony export */ "hydrate": function() { return /* binding */ Y; },
|
|
12686
|
+
/* harmony export */ "isValidElement": function() { return /* binding */ on; },
|
|
12687
|
+
/* harmony export */ "lazy": function() { return /* binding */ F; },
|
|
12688
|
+
/* harmony export */ "memo": function() { return /* binding */ w; },
|
|
12689
|
+
/* harmony export */ "render": function() { return /* binding */ Z; },
|
|
12690
|
+
/* harmony export */ "startTransition": function() { return /* binding */ vn; },
|
|
12691
|
+
/* harmony export */ "unmountComponentAtNode": function() { return /* binding */ cn; },
|
|
12692
|
+
/* harmony export */ "unstable_batchedUpdates": function() { return /* binding */ an; },
|
|
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 */ dn; },
|
|
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 */ mn; },
|
|
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 */ yn; },
|
|
12708
|
+
/* harmony export */ "useTransition": function() { return /* binding */ pn; },
|
|
12709
|
+
/* harmony export */ "version": function() { return /* binding */ rn; }
|
|
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,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};
|
|
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};
|
|
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+=2)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);return n.__||(n.__="P"+function(n){for(var t=0,r=n.length;r>0;)t=(t<<5)-t+n.charCodeAt(--r)|0;return t}(r.__v.__m)+t),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){"function"!=typeof n.type||n.__m||null===n.__?n.__m||(n.__m=n.__&&n.__.__m?n.__.__m:""):n.__m=(n.__&&n.__.__m?n.__.__m:"")+(n.__&&n.__.__k?n.__.__k.indexOf(n):0),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
|
|
|
@@ -16560,7 +16560,7 @@ class API {
|
|
|
16560
16560
|
(_a = this.conversation) === null || _a === void 0 ? void 0 : _a.onConnection(connectionState => {
|
|
16561
16561
|
const connected = connectionState === 'join_channel_succeeded';
|
|
16562
16562
|
const ready = connectionState === 'attach_channel_succeeded';
|
|
16563
|
-
if (
|
|
16563
|
+
if (connected || ready) {
|
|
16564
16564
|
this.send(command, payload, waitForReady);
|
|
16565
16565
|
}
|
|
16566
16566
|
});
|
|
@@ -16664,7 +16664,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
|
|
|
16664
16664
|
return {
|
|
16665
16665
|
clientName: "@seamly/web-ui",
|
|
16666
16666
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
16667
|
-
clientVersion: "21.0.2-beta.
|
|
16667
|
+
clientVersion: "21.0.2-beta.2",
|
|
16668
16668
|
currentUrl: window.location.toString(),
|
|
16669
16669
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
16670
16670
|
timezone: getTimeZone(),
|
|
@@ -26355,21 +26355,24 @@ var isFocusable = function isFocusable(node, options) {
|
|
|
26355
26355
|
|
|
26356
26356
|
;// CONCATENATED MODULE: ./node_modules/focus-trap/dist/focus-trap.esm.js
|
|
26357
26357
|
/*!
|
|
26358
|
-
* focus-trap 7.
|
|
26358
|
+
* focus-trap 7.0.0
|
|
26359
26359
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
26360
26360
|
*/
|
|
26361
26361
|
|
|
26362
26362
|
|
|
26363
26363
|
function focus_trap_esm_ownKeys(object, enumerableOnly) {
|
|
26364
26364
|
var keys = Object.keys(object);
|
|
26365
|
+
|
|
26365
26366
|
if (Object.getOwnPropertySymbols) {
|
|
26366
26367
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
26367
26368
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
26368
26369
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26369
26370
|
})), keys.push.apply(keys, symbols);
|
|
26370
26371
|
}
|
|
26372
|
+
|
|
26371
26373
|
return keys;
|
|
26372
26374
|
}
|
|
26375
|
+
|
|
26373
26376
|
function focus_trap_esm_objectSpread2(target) {
|
|
26374
26377
|
for (var i = 1; i < arguments.length; i++) {
|
|
26375
26378
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
@@ -26379,8 +26382,10 @@ function focus_trap_esm_objectSpread2(target) {
|
|
|
26379
26382
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26380
26383
|
});
|
|
26381
26384
|
}
|
|
26385
|
+
|
|
26382
26386
|
return target;
|
|
26383
26387
|
}
|
|
26388
|
+
|
|
26384
26389
|
function focus_trap_esm_defineProperty(obj, key, value) {
|
|
26385
26390
|
if (key in obj) {
|
|
26386
26391
|
Object.defineProperty(obj, key, {
|
|
@@ -26392,52 +26397,64 @@ function focus_trap_esm_defineProperty(obj, key, value) {
|
|
|
26392
26397
|
} else {
|
|
26393
26398
|
obj[key] = value;
|
|
26394
26399
|
}
|
|
26400
|
+
|
|
26395
26401
|
return obj;
|
|
26396
26402
|
}
|
|
26397
26403
|
|
|
26398
|
-
var
|
|
26399
|
-
var
|
|
26400
|
-
|
|
26401
|
-
|
|
26402
|
-
|
|
26403
|
-
|
|
26404
|
-
|
|
26404
|
+
var activeFocusTraps = function () {
|
|
26405
|
+
var trapQueue = [];
|
|
26406
|
+
return {
|
|
26407
|
+
activateTrap: function activateTrap(trap) {
|
|
26408
|
+
if (trapQueue.length > 0) {
|
|
26409
|
+
var activeTrap = trapQueue[trapQueue.length - 1];
|
|
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();
|
|
26405
26435
|
}
|
|
26406
26436
|
}
|
|
26407
|
-
|
|
26408
|
-
|
|
26409
|
-
|
|
26410
|
-
} else {
|
|
26411
|
-
// move this existing trap to the front of the queue
|
|
26412
|
-
trapStack.splice(trapIndex, 1);
|
|
26413
|
-
trapStack.push(trap);
|
|
26414
|
-
}
|
|
26415
|
-
},
|
|
26416
|
-
deactivateTrap: function deactivateTrap(trapStack, trap) {
|
|
26417
|
-
var trapIndex = trapStack.indexOf(trap);
|
|
26418
|
-
if (trapIndex !== -1) {
|
|
26419
|
-
trapStack.splice(trapIndex, 1);
|
|
26420
|
-
}
|
|
26421
|
-
if (trapStack.length > 0) {
|
|
26422
|
-
trapStack[trapStack.length - 1].unpause();
|
|
26423
|
-
}
|
|
26424
|
-
}
|
|
26425
|
-
};
|
|
26437
|
+
};
|
|
26438
|
+
}();
|
|
26439
|
+
|
|
26426
26440
|
var isSelectableInput = function isSelectableInput(node) {
|
|
26427
26441
|
return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
|
|
26428
26442
|
};
|
|
26443
|
+
|
|
26429
26444
|
var isEscapeEvent = function isEscapeEvent(e) {
|
|
26430
26445
|
return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
|
|
26431
26446
|
};
|
|
26447
|
+
|
|
26432
26448
|
var isTabEvent = function isTabEvent(e) {
|
|
26433
26449
|
return e.key === 'Tab' || e.keyCode === 9;
|
|
26434
26450
|
};
|
|
26451
|
+
|
|
26435
26452
|
var delay = function delay(fn) {
|
|
26436
26453
|
return setTimeout(fn, 0);
|
|
26437
|
-
};
|
|
26438
|
-
|
|
26439
|
-
// Array.find/findIndex() are not supported on IE; this replicates enough
|
|
26454
|
+
}; // Array.find/findIndex() are not supported on IE; this replicates enough
|
|
26440
26455
|
// of Array.findIndex() for our needs
|
|
26456
|
+
|
|
26457
|
+
|
|
26441
26458
|
var findIndex = function findIndex(arr, fn) {
|
|
26442
26459
|
var idx = -1;
|
|
26443
26460
|
arr.every(function (value, i) {
|
|
@@ -26448,10 +26465,8 @@ var findIndex = function findIndex(arr, fn) {
|
|
|
26448
26465
|
|
|
26449
26466
|
return true; // next
|
|
26450
26467
|
});
|
|
26451
|
-
|
|
26452
26468
|
return idx;
|
|
26453
26469
|
};
|
|
26454
|
-
|
|
26455
26470
|
/**
|
|
26456
26471
|
* Get an option's value when it could be a plain value, or a handler that provides
|
|
26457
26472
|
* the value.
|
|
@@ -26459,12 +26474,16 @@ var findIndex = function findIndex(arr, fn) {
|
|
|
26459
26474
|
* @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
|
|
26460
26475
|
* @returns {*} The `value`, or the handler's returned value.
|
|
26461
26476
|
*/
|
|
26477
|
+
|
|
26478
|
+
|
|
26462
26479
|
var valueOrHandler = function valueOrHandler(value) {
|
|
26463
26480
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
26464
26481
|
params[_key - 1] = arguments[_key];
|
|
26465
26482
|
}
|
|
26483
|
+
|
|
26466
26484
|
return typeof value === 'function' ? value.apply(void 0, params) : value;
|
|
26467
26485
|
};
|
|
26486
|
+
|
|
26468
26487
|
var getActualTarget = function getActualTarget(event) {
|
|
26469
26488
|
// NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
|
|
26470
26489
|
// shadow host. However, event.target.composedPath() will be an array of
|
|
@@ -26475,16 +26494,18 @@ var getActualTarget = function getActualTarget(event) {
|
|
|
26475
26494
|
// composedPath()[0] === event.target always).
|
|
26476
26495
|
return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
|
|
26477
26496
|
};
|
|
26497
|
+
|
|
26478
26498
|
var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
26479
26499
|
// SSR: a live trap shouldn't be created in this type of environment so this
|
|
26480
26500
|
// should be safe code to execute if the `document` option isn't specified
|
|
26481
26501
|
var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
|
|
26482
|
-
|
|
26502
|
+
|
|
26483
26503
|
var config = focus_trap_esm_objectSpread2({
|
|
26484
26504
|
returnFocusOnDeactivate: true,
|
|
26485
26505
|
escapeDeactivates: true,
|
|
26486
26506
|
delayInitialFocus: true
|
|
26487
26507
|
}, userOptions);
|
|
26508
|
+
|
|
26488
26509
|
var state = {
|
|
26489
26510
|
// containers given to createFocusTrap()
|
|
26490
26511
|
// @type {Array<HTMLElement>}
|
|
@@ -26504,7 +26525,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26504
26525
|
// }>}
|
|
26505
26526
|
containerGroups: [],
|
|
26506
26527
|
// same order/length as `containers` list
|
|
26507
|
-
|
|
26508
26528
|
// references to objects in `containerGroups`, but only those that actually have
|
|
26509
26529
|
// tabbable nodes in them
|
|
26510
26530
|
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
@@ -26528,10 +26548,10 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26528
26548
|
* @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
|
|
26529
26549
|
* IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
|
|
26530
26550
|
*/
|
|
26551
|
+
|
|
26531
26552
|
var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
|
|
26532
26553
|
return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
|
|
26533
26554
|
};
|
|
26534
|
-
|
|
26535
26555
|
/**
|
|
26536
26556
|
* Finds the index of the container that contains the element.
|
|
26537
26557
|
* @param {HTMLElement} element
|
|
@@ -26539,15 +26559,16 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26539
26559
|
* `state.containerGroups` (the order/length of these lists are the same); -1
|
|
26540
26560
|
* if the element isn't found.
|
|
26541
26561
|
*/
|
|
26562
|
+
|
|
26563
|
+
|
|
26542
26564
|
var findContainerIndex = function findContainerIndex(element) {
|
|
26543
26565
|
// NOTE: search `containerGroups` because it's possible a group contains no tabbable
|
|
26544
26566
|
// nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
|
|
26545
26567
|
// and we still need to find the element in there
|
|
26546
26568
|
return state.containerGroups.findIndex(function (_ref) {
|
|
26547
26569
|
var container = _ref.container,
|
|
26548
|
-
|
|
26549
|
-
return container.contains(element) ||
|
|
26550
|
-
// fall back to explicit tabbable search which will take into consideration any
|
|
26570
|
+
tabbableNodes = _ref.tabbableNodes;
|
|
26571
|
+
return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any
|
|
26551
26572
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
26552
26573
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
26553
26574
|
// look inside web components even if open)
|
|
@@ -26556,7 +26577,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26556
26577
|
});
|
|
26557
26578
|
});
|
|
26558
26579
|
};
|
|
26559
|
-
|
|
26560
26580
|
/**
|
|
26561
26581
|
* Gets the node for the given option, which is expected to be an option that
|
|
26562
26582
|
* can be either a DOM node, a string that is a selector to get a node, `false`
|
|
@@ -26570,14 +26590,19 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26570
26590
|
* @throws {Error} If the option is set, not `false`, and is not, or does not
|
|
26571
26591
|
* resolve to a node.
|
|
26572
26592
|
*/
|
|
26593
|
+
|
|
26594
|
+
|
|
26573
26595
|
var getNodeForOption = function getNodeForOption(optionName) {
|
|
26574
26596
|
var optionValue = config[optionName];
|
|
26597
|
+
|
|
26575
26598
|
if (typeof optionValue === 'function') {
|
|
26576
26599
|
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
26577
26600
|
params[_key2 - 1] = arguments[_key2];
|
|
26578
26601
|
}
|
|
26602
|
+
|
|
26579
26603
|
optionValue = optionValue.apply(void 0, params);
|
|
26580
26604
|
}
|
|
26605
|
+
|
|
26581
26606
|
if (optionValue === true) {
|
|
26582
26607
|
optionValue = undefined; // use default value
|
|
26583
26608
|
}
|
|
@@ -26585,51 +26610,56 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26585
26610
|
if (!optionValue) {
|
|
26586
26611
|
if (optionValue === undefined || optionValue === false) {
|
|
26587
26612
|
return optionValue;
|
|
26588
|
-
}
|
|
26589
|
-
|
|
26613
|
+
} // else, empty string (invalid), null (invalid), 0 (invalid)
|
|
26614
|
+
|
|
26590
26615
|
|
|
26591
26616
|
throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
|
|
26592
26617
|
}
|
|
26618
|
+
|
|
26593
26619
|
var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
|
|
26594
26620
|
|
|
26595
26621
|
if (typeof optionValue === 'string') {
|
|
26596
26622
|
node = doc.querySelector(optionValue); // resolve to node, or null if fails
|
|
26623
|
+
|
|
26597
26624
|
if (!node) {
|
|
26598
26625
|
throw new Error("`".concat(optionName, "` as selector refers to no known node"));
|
|
26599
26626
|
}
|
|
26600
26627
|
}
|
|
26628
|
+
|
|
26601
26629
|
return node;
|
|
26602
26630
|
};
|
|
26631
|
+
|
|
26603
26632
|
var getInitialFocusNode = function getInitialFocusNode() {
|
|
26604
|
-
var node = getNodeForOption('initialFocus');
|
|
26633
|
+
var node = getNodeForOption('initialFocus'); // false explicitly indicates we want no initialFocus at all
|
|
26605
26634
|
|
|
26606
|
-
// false explicitly indicates we want no initialFocus at all
|
|
26607
26635
|
if (node === false) {
|
|
26608
26636
|
return false;
|
|
26609
26637
|
}
|
|
26638
|
+
|
|
26610
26639
|
if (node === undefined) {
|
|
26611
26640
|
// option not specified: use fallback options
|
|
26612
26641
|
if (findContainerIndex(doc.activeElement) >= 0) {
|
|
26613
26642
|
node = doc.activeElement;
|
|
26614
26643
|
} else {
|
|
26615
26644
|
var firstTabbableGroup = state.tabbableGroups[0];
|
|
26616
|
-
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
|
|
26645
|
+
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode; // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
|
|
26617
26646
|
|
|
26618
|
-
// NOTE: `fallbackFocus` option function cannot return `false` (not supported)
|
|
26619
26647
|
node = firstTabbableNode || getNodeForOption('fallbackFocus');
|
|
26620
26648
|
}
|
|
26621
26649
|
}
|
|
26650
|
+
|
|
26622
26651
|
if (!node) {
|
|
26623
26652
|
throw new Error('Your focus-trap needs to have at least one focusable element');
|
|
26624
26653
|
}
|
|
26654
|
+
|
|
26625
26655
|
return node;
|
|
26626
26656
|
};
|
|
26657
|
+
|
|
26627
26658
|
var updateTabbableNodes = function updateTabbableNodes() {
|
|
26628
26659
|
state.containerGroups = state.containers.map(function (container) {
|
|
26629
|
-
var tabbableNodes = tabbable(container, config.tabbableOptions);
|
|
26630
|
-
|
|
26631
|
-
// NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
|
|
26660
|
+
var tabbableNodes = tabbable(container, config.tabbableOptions); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
|
|
26632
26661
|
// are a superset of tabbable nodes
|
|
26662
|
+
|
|
26633
26663
|
var focusableNodes = focusable(container, config.tabbableOptions);
|
|
26634
26664
|
return {
|
|
26635
26665
|
container: container,
|
|
@@ -26637,6 +26667,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26637
26667
|
focusableNodes: focusableNodes,
|
|
26638
26668
|
firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
|
|
26639
26669
|
lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
|
|
26670
|
+
|
|
26640
26671
|
/**
|
|
26641
26672
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
26642
26673
|
* in this container, if any.
|
|
@@ -26660,14 +26691,17 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26660
26691
|
var nodeIdx = focusableNodes.findIndex(function (n) {
|
|
26661
26692
|
return n === node;
|
|
26662
26693
|
});
|
|
26694
|
+
|
|
26663
26695
|
if (nodeIdx < 0) {
|
|
26664
26696
|
return undefined;
|
|
26665
26697
|
}
|
|
26698
|
+
|
|
26666
26699
|
if (forward) {
|
|
26667
26700
|
return focusableNodes.slice(nodeIdx + 1).find(function (n) {
|
|
26668
26701
|
return isTabbable(n, config.tabbableOptions);
|
|
26669
26702
|
});
|
|
26670
26703
|
}
|
|
26704
|
+
|
|
26671
26705
|
return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
|
|
26672
26706
|
return isTabbable(n, config.tabbableOptions);
|
|
26673
26707
|
});
|
|
@@ -26676,46 +26710,53 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26676
26710
|
});
|
|
26677
26711
|
state.tabbableGroups = state.containerGroups.filter(function (group) {
|
|
26678
26712
|
return group.tabbableNodes.length > 0;
|
|
26679
|
-
});
|
|
26713
|
+
}); // throw if no groups have tabbable nodes and we don't have a fallback focus node either
|
|
26680
26714
|
|
|
26681
|
-
// throw if no groups have tabbable nodes and we don't have a fallback focus node either
|
|
26682
26715
|
if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
|
|
26683
26716
|
) {
|
|
26684
26717
|
throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
|
|
26685
26718
|
}
|
|
26686
26719
|
};
|
|
26720
|
+
|
|
26687
26721
|
var tryFocus = function tryFocus(node) {
|
|
26688
26722
|
if (node === false) {
|
|
26689
26723
|
return;
|
|
26690
26724
|
}
|
|
26725
|
+
|
|
26691
26726
|
if (node === doc.activeElement) {
|
|
26692
26727
|
return;
|
|
26693
26728
|
}
|
|
26729
|
+
|
|
26694
26730
|
if (!node || !node.focus) {
|
|
26695
26731
|
tryFocus(getInitialFocusNode());
|
|
26696
26732
|
return;
|
|
26697
26733
|
}
|
|
26734
|
+
|
|
26698
26735
|
node.focus({
|
|
26699
26736
|
preventScroll: !!config.preventScroll
|
|
26700
26737
|
});
|
|
26701
26738
|
state.mostRecentlyFocusedNode = node;
|
|
26739
|
+
|
|
26702
26740
|
if (isSelectableInput(node)) {
|
|
26703
26741
|
node.select();
|
|
26704
26742
|
}
|
|
26705
26743
|
};
|
|
26744
|
+
|
|
26706
26745
|
var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
|
|
26707
26746
|
var node = getNodeForOption('setReturnFocus', previousActiveElement);
|
|
26708
26747
|
return node ? node : node === false ? false : previousActiveElement;
|
|
26709
|
-
};
|
|
26710
|
-
|
|
26711
|
-
// This needs to be done on mousedown and touchstart instead of click
|
|
26748
|
+
}; // This needs to be done on mousedown and touchstart instead of click
|
|
26712
26749
|
// so that it precedes the focus event.
|
|
26750
|
+
|
|
26751
|
+
|
|
26713
26752
|
var checkPointerDown = function checkPointerDown(e) {
|
|
26714
26753
|
var target = getActualTarget(e);
|
|
26754
|
+
|
|
26715
26755
|
if (findContainerIndex(target) >= 0) {
|
|
26716
26756
|
// allow the click since it ocurred inside the trap
|
|
26717
26757
|
return;
|
|
26718
26758
|
}
|
|
26759
|
+
|
|
26719
26760
|
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
26720
26761
|
// immediately deactivate the trap
|
|
26721
26762
|
trap.deactivate({
|
|
@@ -26733,26 +26774,25 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26733
26774
|
returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
|
|
26734
26775
|
});
|
|
26735
26776
|
return;
|
|
26736
|
-
}
|
|
26737
|
-
|
|
26738
|
-
// This is needed for mobile devices.
|
|
26777
|
+
} // This is needed for mobile devices.
|
|
26739
26778
|
// (If we'll only let `click` events through,
|
|
26740
26779
|
// then on mobile they will be blocked anyways if `touchstart` is blocked.)
|
|
26780
|
+
|
|
26781
|
+
|
|
26741
26782
|
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
26742
26783
|
// allow the click outside the trap to take place
|
|
26743
26784
|
return;
|
|
26744
|
-
}
|
|
26785
|
+
} // otherwise, prevent the click
|
|
26786
|
+
|
|
26745
26787
|
|
|
26746
|
-
// otherwise, prevent the click
|
|
26747
26788
|
e.preventDefault();
|
|
26748
|
-
};
|
|
26789
|
+
}; // In case focus escapes the trap for some strange reason, pull it back in.
|
|
26790
|
+
|
|
26749
26791
|
|
|
26750
|
-
// In case focus escapes the trap for some strange reason, pull it back in.
|
|
26751
26792
|
var checkFocusIn = function checkFocusIn(e) {
|
|
26752
26793
|
var target = getActualTarget(e);
|
|
26753
|
-
var targetContained = findContainerIndex(target) >= 0;
|
|
26794
|
+
var targetContained = findContainerIndex(target) >= 0; // In Firefox when you Tab out of an iframe the Document is briefly focused.
|
|
26754
26795
|
|
|
26755
|
-
// In Firefox when you Tab out of an iframe the Document is briefly focused.
|
|
26756
26796
|
if (targetContained || target instanceof Document) {
|
|
26757
26797
|
if (targetContained) {
|
|
26758
26798
|
state.mostRecentlyFocusedNode = target;
|
|
@@ -26762,22 +26802,24 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26762
26802
|
e.stopImmediatePropagation();
|
|
26763
26803
|
tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
|
|
26764
26804
|
}
|
|
26765
|
-
};
|
|
26766
|
-
|
|
26767
|
-
// Hijack Tab events on the first and last focusable nodes of the trap,
|
|
26805
|
+
}; // Hijack Tab events on the first and last focusable nodes of the trap,
|
|
26768
26806
|
// in order to prevent focus from escaping. If it escapes for even a
|
|
26769
26807
|
// moment it can end up scrolling the page and causing confusion so we
|
|
26770
26808
|
// kind of need to capture the action at the keydown phase.
|
|
26809
|
+
|
|
26810
|
+
|
|
26771
26811
|
var checkTab = function checkTab(e) {
|
|
26772
26812
|
var target = getActualTarget(e);
|
|
26773
26813
|
updateTabbableNodes();
|
|
26774
26814
|
var destinationNode = null;
|
|
26815
|
+
|
|
26775
26816
|
if (state.tabbableGroups.length > 0) {
|
|
26776
26817
|
// make sure the target is actually contained in a group
|
|
26777
26818
|
// NOTE: the target may also be the container itself if it's focusable
|
|
26778
26819
|
// with tabIndex='-1' and was given initial focus
|
|
26779
26820
|
var containerIndex = findContainerIndex(target);
|
|
26780
26821
|
var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
|
|
26822
|
+
|
|
26781
26823
|
if (containerIndex < 0) {
|
|
26782
26824
|
// target not found in any group: quite possible focus has escaped the trap,
|
|
26783
26825
|
// so bring it back in to...
|
|
@@ -26790,12 +26832,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26790
26832
|
}
|
|
26791
26833
|
} else if (e.shiftKey) {
|
|
26792
26834
|
// REVERSE
|
|
26793
|
-
|
|
26794
26835
|
// is the target the first tabbable node in a group?
|
|
26795
26836
|
var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
|
|
26796
26837
|
var firstTabbableNode = _ref2.firstTabbableNode;
|
|
26797
26838
|
return target === firstTabbableNode;
|
|
26798
26839
|
});
|
|
26840
|
+
|
|
26799
26841
|
if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
|
|
26800
26842
|
// an exception case where the target is either the container itself, or
|
|
26801
26843
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
@@ -26805,6 +26847,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26805
26847
|
// first tabbable node, and go to the last tabbable node of the LAST group
|
|
26806
26848
|
startOfGroupIndex = containerIndex;
|
|
26807
26849
|
}
|
|
26850
|
+
|
|
26808
26851
|
if (startOfGroupIndex >= 0) {
|
|
26809
26852
|
// YES: then shift+tab should go to the last tabbable node in the
|
|
26810
26853
|
// previous group (and wrap around to the last tabbable node of
|
|
@@ -26815,12 +26858,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26815
26858
|
}
|
|
26816
26859
|
} else {
|
|
26817
26860
|
// FORWARD
|
|
26818
|
-
|
|
26819
26861
|
// is the target the last tabbable node in a group?
|
|
26820
26862
|
var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
|
|
26821
26863
|
var lastTabbableNode = _ref3.lastTabbableNode;
|
|
26822
26864
|
return target === lastTabbableNode;
|
|
26823
26865
|
});
|
|
26866
|
+
|
|
26824
26867
|
if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
|
|
26825
26868
|
// an exception case where the target is the container itself, or
|
|
26826
26869
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
@@ -26830,11 +26873,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26830
26873
|
// last tabbable node, and go to the first tabbable node of the FIRST group
|
|
26831
26874
|
lastOfGroupIndex = containerIndex;
|
|
26832
26875
|
}
|
|
26876
|
+
|
|
26833
26877
|
if (lastOfGroupIndex >= 0) {
|
|
26834
26878
|
// YES: then tab should go to the first tabbable node in the next
|
|
26835
26879
|
// group (and wrap around to the first tabbable node of the FIRST
|
|
26836
26880
|
// group if it's the last tabbable node of the LAST group)
|
|
26837
26881
|
var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
|
|
26882
|
+
|
|
26838
26883
|
var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
|
|
26839
26884
|
destinationNode = _destinationGroup.firstTabbableNode;
|
|
26840
26885
|
}
|
|
@@ -26843,11 +26888,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26843
26888
|
// NOTE: the fallbackFocus option does not support returning false to opt-out
|
|
26844
26889
|
destinationNode = getNodeForOption('fallbackFocus');
|
|
26845
26890
|
}
|
|
26891
|
+
|
|
26846
26892
|
if (destinationNode) {
|
|
26847
26893
|
e.preventDefault();
|
|
26848
26894
|
tryFocus(destinationNode);
|
|
26849
|
-
}
|
|
26850
|
-
|
|
26895
|
+
} // else, let the browser take care of [shift+]tab and move the focus
|
|
26896
|
+
|
|
26851
26897
|
};
|
|
26852
26898
|
|
|
26853
26899
|
var checkKey = function checkKey(e) {
|
|
@@ -26856,40 +26902,44 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26856
26902
|
trap.deactivate();
|
|
26857
26903
|
return;
|
|
26858
26904
|
}
|
|
26905
|
+
|
|
26859
26906
|
if (isTabEvent(e)) {
|
|
26860
26907
|
checkTab(e);
|
|
26861
26908
|
return;
|
|
26862
26909
|
}
|
|
26863
26910
|
};
|
|
26911
|
+
|
|
26864
26912
|
var checkClick = function checkClick(e) {
|
|
26865
26913
|
var target = getActualTarget(e);
|
|
26914
|
+
|
|
26866
26915
|
if (findContainerIndex(target) >= 0) {
|
|
26867
26916
|
return;
|
|
26868
26917
|
}
|
|
26918
|
+
|
|
26869
26919
|
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
26870
26920
|
return;
|
|
26871
26921
|
}
|
|
26922
|
+
|
|
26872
26923
|
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
26873
26924
|
return;
|
|
26874
26925
|
}
|
|
26926
|
+
|
|
26875
26927
|
e.preventDefault();
|
|
26876
26928
|
e.stopImmediatePropagation();
|
|
26877
|
-
};
|
|
26878
|
-
|
|
26879
|
-
//
|
|
26929
|
+
}; //
|
|
26880
26930
|
// EVENT LISTENERS
|
|
26881
26931
|
//
|
|
26882
26932
|
|
|
26933
|
+
|
|
26883
26934
|
var addListeners = function addListeners() {
|
|
26884
26935
|
if (!state.active) {
|
|
26885
26936
|
return;
|
|
26886
|
-
}
|
|
26937
|
+
} // There can be only one listening focus trap at a time
|
|
26887
26938
|
|
|
26888
|
-
// There can be only one listening focus trap at a time
|
|
26889
|
-
activeFocusTraps.activateTrap(trapStack, trap);
|
|
26890
26939
|
|
|
26891
|
-
// Delay ensures that the focused element doesn't capture the event
|
|
26940
|
+
activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
|
|
26892
26941
|
// that caused the focus trap activation.
|
|
26942
|
+
|
|
26893
26943
|
state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
|
|
26894
26944
|
tryFocus(getInitialFocusNode());
|
|
26895
26945
|
}) : tryFocus(getInitialFocusNode());
|
|
@@ -26912,58 +26962,70 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26912
26962
|
});
|
|
26913
26963
|
return trap;
|
|
26914
26964
|
};
|
|
26965
|
+
|
|
26915
26966
|
var removeListeners = function removeListeners() {
|
|
26916
26967
|
if (!state.active) {
|
|
26917
26968
|
return;
|
|
26918
26969
|
}
|
|
26970
|
+
|
|
26919
26971
|
doc.removeEventListener('focusin', checkFocusIn, true);
|
|
26920
26972
|
doc.removeEventListener('mousedown', checkPointerDown, true);
|
|
26921
26973
|
doc.removeEventListener('touchstart', checkPointerDown, true);
|
|
26922
26974
|
doc.removeEventListener('click', checkClick, true);
|
|
26923
26975
|
doc.removeEventListener('keydown', checkKey, true);
|
|
26924
26976
|
return trap;
|
|
26925
|
-
};
|
|
26926
|
-
|
|
26927
|
-
//
|
|
26977
|
+
}; //
|
|
26928
26978
|
// TRAP DEFINITION
|
|
26929
26979
|
//
|
|
26930
26980
|
|
|
26981
|
+
|
|
26931
26982
|
trap = {
|
|
26932
26983
|
get active() {
|
|
26933
26984
|
return state.active;
|
|
26934
26985
|
},
|
|
26986
|
+
|
|
26935
26987
|
get paused() {
|
|
26936
26988
|
return state.paused;
|
|
26937
26989
|
},
|
|
26990
|
+
|
|
26938
26991
|
activate: function activate(activateOptions) {
|
|
26939
26992
|
if (state.active) {
|
|
26940
26993
|
return this;
|
|
26941
26994
|
}
|
|
26995
|
+
|
|
26942
26996
|
var onActivate = getOption(activateOptions, 'onActivate');
|
|
26943
26997
|
var onPostActivate = getOption(activateOptions, 'onPostActivate');
|
|
26944
26998
|
var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
|
|
26999
|
+
|
|
26945
27000
|
if (!checkCanFocusTrap) {
|
|
26946
27001
|
updateTabbableNodes();
|
|
26947
27002
|
}
|
|
27003
|
+
|
|
26948
27004
|
state.active = true;
|
|
26949
27005
|
state.paused = false;
|
|
26950
27006
|
state.nodeFocusedBeforeActivation = doc.activeElement;
|
|
27007
|
+
|
|
26951
27008
|
if (onActivate) {
|
|
26952
27009
|
onActivate();
|
|
26953
27010
|
}
|
|
27011
|
+
|
|
26954
27012
|
var finishActivation = function finishActivation() {
|
|
26955
27013
|
if (checkCanFocusTrap) {
|
|
26956
27014
|
updateTabbableNodes();
|
|
26957
27015
|
}
|
|
27016
|
+
|
|
26958
27017
|
addListeners();
|
|
27018
|
+
|
|
26959
27019
|
if (onPostActivate) {
|
|
26960
27020
|
onPostActivate();
|
|
26961
27021
|
}
|
|
26962
27022
|
};
|
|
27023
|
+
|
|
26963
27024
|
if (checkCanFocusTrap) {
|
|
26964
27025
|
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
26965
27026
|
return this;
|
|
26966
27027
|
}
|
|
27028
|
+
|
|
26967
27029
|
finishActivation();
|
|
26968
27030
|
return this;
|
|
26969
27031
|
},
|
|
@@ -26971,38 +27033,46 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26971
27033
|
if (!state.active) {
|
|
26972
27034
|
return this;
|
|
26973
27035
|
}
|
|
27036
|
+
|
|
26974
27037
|
var options = focus_trap_esm_objectSpread2({
|
|
26975
27038
|
onDeactivate: config.onDeactivate,
|
|
26976
27039
|
onPostDeactivate: config.onPostDeactivate,
|
|
26977
27040
|
checkCanReturnFocus: config.checkCanReturnFocus
|
|
26978
27041
|
}, deactivateOptions);
|
|
27042
|
+
|
|
26979
27043
|
clearTimeout(state.delayInitialFocusTimer); // noop if undefined
|
|
27044
|
+
|
|
26980
27045
|
state.delayInitialFocusTimer = undefined;
|
|
26981
27046
|
removeListeners();
|
|
26982
27047
|
state.active = false;
|
|
26983
27048
|
state.paused = false;
|
|
26984
|
-
activeFocusTraps.deactivateTrap(
|
|
27049
|
+
activeFocusTraps.deactivateTrap(trap);
|
|
26985
27050
|
var onDeactivate = getOption(options, 'onDeactivate');
|
|
26986
27051
|
var onPostDeactivate = getOption(options, 'onPostDeactivate');
|
|
26987
27052
|
var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
|
|
26988
27053
|
var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
|
|
27054
|
+
|
|
26989
27055
|
if (onDeactivate) {
|
|
26990
27056
|
onDeactivate();
|
|
26991
27057
|
}
|
|
27058
|
+
|
|
26992
27059
|
var finishDeactivation = function finishDeactivation() {
|
|
26993
27060
|
delay(function () {
|
|
26994
27061
|
if (returnFocus) {
|
|
26995
27062
|
tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
26996
27063
|
}
|
|
27064
|
+
|
|
26997
27065
|
if (onPostDeactivate) {
|
|
26998
27066
|
onPostDeactivate();
|
|
26999
27067
|
}
|
|
27000
27068
|
});
|
|
27001
27069
|
};
|
|
27070
|
+
|
|
27002
27071
|
if (returnFocus && checkCanReturnFocus) {
|
|
27003
27072
|
checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
|
|
27004
27073
|
return this;
|
|
27005
27074
|
}
|
|
27075
|
+
|
|
27006
27076
|
finishDeactivation();
|
|
27007
27077
|
return this;
|
|
27008
27078
|
},
|
|
@@ -27010,6 +27080,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
27010
27080
|
if (state.paused || !state.active) {
|
|
27011
27081
|
return this;
|
|
27012
27082
|
}
|
|
27083
|
+
|
|
27013
27084
|
state.paused = true;
|
|
27014
27085
|
removeListeners();
|
|
27015
27086
|
return this;
|
|
@@ -27018,6 +27089,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
27018
27089
|
if (!state.paused || !state.active) {
|
|
27019
27090
|
return this;
|
|
27020
27091
|
}
|
|
27092
|
+
|
|
27021
27093
|
state.paused = false;
|
|
27022
27094
|
updateTabbableNodes();
|
|
27023
27095
|
addListeners();
|
|
@@ -27028,14 +27100,15 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
27028
27100
|
state.containers = elementsAsArray.map(function (element) {
|
|
27029
27101
|
return typeof element === 'string' ? doc.querySelector(element) : element;
|
|
27030
27102
|
});
|
|
27103
|
+
|
|
27031
27104
|
if (state.active) {
|
|
27032
27105
|
updateTabbableNodes();
|
|
27033
27106
|
}
|
|
27107
|
+
|
|
27034
27108
|
return this;
|
|
27035
27109
|
}
|
|
27036
|
-
};
|
|
27110
|
+
}; // initialize container elements
|
|
27037
27111
|
|
|
27038
|
-
// initialize container elements
|
|
27039
27112
|
trap.updateContainerElements(elements);
|
|
27040
27113
|
return trap;
|
|
27041
27114
|
};
|