9 lines
42 KiB
JavaScript
9 lines
42 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.compose=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./node_modules/@wordpress/compose/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/createClass.js":function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/inherits.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js"),o=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},"./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");var o=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function u(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");var o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function u(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},"./node_modules/@wordpress/compose/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"createHigherOrderComponent",(function(){return o})),n.d(t,"compose",(function(){return i})),n.d(t,"ifCondition",(function(){return c})),n.d(t,"pure",(function(){return b})),n.d(t,"withGlobalEvents",(function(){return E})),n.d(t,"withInstanceId",(function(){return S})),n.d(t,"withSafeTimeout",(function(){return T})),n.d(t,"withState",(function(){return R})),n.d(t,"useConstrainedTabbing",(function(){return I})),n.d(t,"useCopyOnClick",(function(){return H})),n.d(t,"__experimentalUseDialog",(function(){return X})),n.d(t,"__experimentalUseDragging",(function(){return $})),n.d(t,"useFocusOnMount",(function(){return U})),n.d(t,"__experimentalUseFocusOutside",(function(){return G})),n.d(t,"useFocusReturn",(function(){return W})),n.d(t,"useInstanceId",(function(){return _})),n.d(t,"useIsomorphicLayoutEffect",(function(){return Y})),n.d(t,"useKeyboardShortcut",(function(){return te})),n.d(t,"useMediaQuery",(function(){return ne})),n.d(t,"usePrevious",(function(){return re})),n.d(t,"useReducedMotion",(function(){return oe})),n.d(t,"useViewportMatch",(function(){return le})),n.d(t,"useResizeObserver",(function(){return de})),n.d(t,"useAsyncList",(function(){return be})),n.d(t,"useWarnOnChange",(function(){return ye})),n.d(t,"useDebounce",(function(){return ge})),n.d(t,"useThrottle",(function(){return je})),n.d(t,"useRefEffect",(function(){return Oe}));var r=n("lodash");var o=function(e,t){return function(n){var o=e(n),i=n.displayName,u=void 0===i?n.name||"Component":i;return o.displayName="".concat(Object(r.upperFirst)(Object(r.camelCase)(t)),"(").concat(u,")"),o}},i=r.flowRight,u=n("@wordpress/element"),c=function(e){return o((function(t){return function(n){return e(n)?Object(u.createElement)(t,n):null}}),"ifCondition")},a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),f=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),d=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),p=n("@wordpress/is-shallow-equal"),h=n.n(p);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var b=o((function(e){return e.prototype instanceof u.Component?function(e){Object(l.a)(n,e);var t=m(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"shouldComponentUpdate",value:function(e,t){return!h()(e,this.props)||!h()(t,this.state)}}]),n}(e):function(t){Object(l.a)(r,t);var n=m(r);function r(){return Object(a.a)(this,r),n.apply(this,arguments)}return Object(s.a)(r,[{key:"shouldComponentUpdate",value:function(e){return!h()(e,this.props)}},{key:"render",value:function(){return Object(u.createElement)(e,this.props)}}]),r}(u.Component)}),"pure"),y=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),v=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),g=n("@wordpress/deprecated"),j=n.n(g);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var w=new(function(){function e(){Object(a.a)(this,e),this.listeners={},this.handleEvent=this.handleEvent.bind(this)}return Object(s.a)(e,[{key:"add",value:function(e,t){this.listeners[e]||(window.addEventListener(e,this.handleEvent),this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"remove",value:function(e,t){this.listeners[e]=Object(r.without)(this.listeners[e],t),this.listeners[e].length||(window.removeEventListener(e,this.handleEvent),delete this.listeners[e])}},{key:"handleEvent",value:function(e){Object(r.forEach)(this.listeners[e.type],(function(t){t.handleEvent(e)}))}}]),e}());function E(e){return j()("wp.compose.withGlobalEvents",{alternative:"useEffect"}),o((function(t){var n=function(n){Object(l.a)(i,n);var o=O(i);function i(){var e;return Object(a.a)(this,i),(e=o.apply(this,arguments)).handleEvent=e.handleEvent.bind(Object(v.a)(e)),e.handleRef=e.handleRef.bind(Object(v.a)(e)),e}return Object(s.a)(i,[{key:"componentDidMount",value:function(){var t=this;Object(r.forEach)(e,(function(e,n){w.add(n,t)}))}},{key:"componentWillUnmount",value:function(){var t=this;Object(r.forEach)(e,(function(e,n){w.remove(n,t)}))}},{key:"handleEvent",value:function(t){var n=e[t.type];"function"==typeof this.wrappedRef[n]&&this.wrappedRef[n](t)}},{key:"handleRef",value:function(e){this.wrappedRef=e,this.props.forwardedRef&&this.props.forwardedRef(e)}},{key:"render",value:function(){return Object(u.createElement)(t,Object(y.a)({},this.props.ownProps,{ref:this.handleRef}))}}]),i}(u.Component);return Object(u.forwardRef)((function(e,t){return Object(u.createElement)(n,{ownProps:e,forwardedRef:t})}))}),"withGlobalEvents")}var k=new WeakMap;function _(e,t){return Object(u.useMemo)((function(){var n=function(e){var t=k.get(e)||0;return k.set(e,t+1),t}(e);return t?"".concat(t,"-").concat(n):n}),[e])}var S=o((function(e){return function(t){var n=_(e);return Object(u.createElement)(e,Object(y.a)({},t,{instanceId:n}))}}),"withInstanceId");function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var T=o((function(e){return function(t){Object(l.a)(o,t);var n=x(o);function o(){var e;return Object(a.a)(this,o),(e=n.apply(this,arguments)).timeouts=[],e.setTimeout=e.setTimeout.bind(Object(v.a)(e)),e.clearTimeout=e.clearTimeout.bind(Object(v.a)(e)),e}return Object(s.a)(o,[{key:"componentWillUnmount",value:function(){this.timeouts.forEach(clearTimeout)}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,r=setTimeout((function(){e(),n.clearTimeout(r)}),t);return this.timeouts.push(r),r}))},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){clearTimeout(e),this.timeouts=Object(r.without)(this.timeouts,e)}))},{key:"render",value:function(){return Object(u.createElement)(e,Object(y.a)({},this.props,{setTimeout:this.setTimeout,clearTimeout:this.clearTimeout}))}}]),o}(u.Component)}),"withSafeTimeout");function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o((function(t){return function(n){Object(l.a)(o,n);var r=C(o);function o(){var t;return Object(a.a)(this,o),(t=r.apply(this,arguments)).setState=t.setState.bind(Object(v.a)(t)),t.state=e,t}return Object(s.a)(o,[{key:"render",value:function(){return Object(u.createElement)(t,Object(y.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var A=n("@wordpress/keycodes"),P=n("@wordpress/dom"),M=n("./node_modules/memize/index.js"),L=n.n(M);var D=function(e,t){return Object(u.useCallback)(L()(e,{maxSize:1}),t)};var I=function(){return D((function(e){e&&e.addEventListener("keydown",(function(t){if(t.keyCode===A.TAB){var n=P.focus.tabbable.find(e);if(n.length){var r=n[0],o=n[n.length-1];t.shiftKey&&t.target===r?(t.preventDefault(),o.focus()):(t.shiftKey||t.target!==o)&&n.includes(t.target)||(t.preventDefault(),r.focus())}}}))}),[])},N=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),z=n("./node_modules/clipboard/dist/clipboard.js"),q=n.n(z);function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(N.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new q.a(e.current,{text:function(){return"function"==typeof t?t():t}}),r.current.on("success",(function(e){var t=e.clearSelection,r=e.trigger;t(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[t,n,a]),c}var F=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),K=n("./node_modules/react-merge-refs/dist/react-merge-refs.esm.js");function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=Object(u.useRef)(e);return Object(u.useEffect)((function(){t.current=e}),[e]),D((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=P.focus.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}var W=function(e){var t=Object(u.useRef)(),n=Object(u.useRef)(),r=Object(u.useRef)(e);return Object(u.useEffect)((function(){r.current=e}),[e]),D((function(e){if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){var o=t.current.contains(t.current.ownerDocument.activeElement);if(t.current.isConnected&&!o)return;r.current?r.current():n.current.focus()}}),[])},B=["button","submit"];function G(e){var t=Object(u.useRef)(e);Object(u.useEffect)((function(){t.current=e}),[e]);var n=Object(u.useRef)(!1),o=Object(u.useRef)(),i=Object(u.useCallback)((function(){clearTimeout(o.current)}),[]);Object(u.useEffect)((function(){return function(){return i()}}),[]),Object(u.useEffect)((function(){e||i()}),[e,i]);var c=Object(u.useCallback)((function(e){var t=e.type,o=e.target;Object(r.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(r.includes)(B,e.type)}return!1}(o)&&(n.current=!0)}),[]),a=Object(u.useCallback)((function(e){e.persist(),n.current||(o.current=setTimeout((function(){document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:i,onMouseDown:c,onMouseUp:c,onTouchStart:c,onTouchEnd:c,onBlur:a}}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){Object(F.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=function(e){var t=Object(u.useRef)();Object(u.useEffect)((function(){t.current=e.onClose}),[e.onClose]);var n=I(),r=U(),o=W(),i=G(e.onClose),c=D((function(e){e&&e.addEventListener("keydown",(function(e){e.keyCode===A.ESCAPE&&t.current&&(e.stopPropagation(),t.current())}))}),[]);return[Object(K.a)([n,o,r,c]),V(V({},i),{},{tabIndex:"-1"})]},Y="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function $(e){var t=e.onDragStart,n=e.onDragMove,r=e.onDragEnd,o=Object(u.useState)(!1),i=Object(N.a)(o,2),c=i[0],a=i[1],s=Object(u.useRef)({onDragStart:t,onDragMove:n,onDragEnd:r});Y((function(){s.current.onDragStart=t,s.current.onDragMove=n,s.current.onDragEnd=r}),[t,n,r]);var l=Object(u.useCallback)((function(){var e;return s.current.onDragMove&&(e=s.current).onDragMove.apply(e,arguments)}),[]),f=Object(u.useCallback)((function(){var e;s.current.onDragEnd&&(e=s.current).onDragEnd.apply(e,arguments);document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",f),a(!1)}),[]),d=Object(u.useCallback)((function(){var e;s.current.onDragStart&&(e=s.current).onDragStart.apply(e,arguments);document.addEventListener("mousemove",l),document.addEventListener("mouseup",f),a(!0)}),[]);return Object(u.useEffect)((function(){return function(){c&&(document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",f))}}),[c]),{startDrag:d,endDrag:f,isDragging:c}}var J=n("./node_modules/mousetrap/mousetrap.js"),Z=n.n(J);n("./node_modules/mousetrap/plugins/global-bind/mousetrap-global-bind.js");function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],t)}var te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,s=n.isDisabled,l=void 0!==s&&s,f=n.target,d=Object(u.useRef)(t);Object(u.useEffect)((function(){d.current=t}),[t]),Object(u.useEffect)((function(){if(!l){var t=new Z.a(f?f.current:document);return Object(r.castArray)(e).forEach((function(e){var n=e.split("+"),r=new Set(n.filter((function(e){return e.length>1}))),o=r.has("alt"),u=r.has("shift");if(ee()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(e,". Alt and Shift+Alt modifiers are reserved for character input."));t[i?"bindGlobal":"bind"](e,(function(){return d.current.apply(d,arguments)}),a)})),function(){t.reset()}}}),[e,i,a,f,l])};function ne(e){var t=Object(u.useState)((function(){return!(!e||"undefined"==typeof window||!window.matchMedia(e).matches)})),n=Object(N.a)(t,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(e){var t=function(){return o(window.matchMedia(e).matches)};t();var n=window.matchMedia(e);return n.addListener(t),function(){n.removeListener(t)}}}),[e]),e&&r}function re(e){var t=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){t.current=e}),[e]),t.current}var oe="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return ne("(prefers-reduced-motion: reduce)")},ie={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},ue={">=":"min-width","<":"max-width"},ce={">=":function(e,t){return t>=e},"<":function(e,t){return t<e}},ae=Object(u.createContext)(null),se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(ae),r=!n&&"(".concat(ue[t],": ").concat(ie[e],"px)"),o=ne(r);return n?ce[t](ie[e],n):o};se.__experimentalWidthProvider=ae.Provider;var le=se,fe=n("./node_modules/react-resize-aware/dist/index.js"),de=n.n(fe).a,pe=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),he=n("@wordpress/priority-queue");function me(e,t){return"reset"===t.type?t.list:"append"===t.type?[].concat(Object(pe.a)(e),[t.item]):e}var be=function(e){var t=Object(u.useReducer)(me,[]),n=Object(N.a)(t,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var t=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];if(!t.includes(o))break;n.push(o)}return n}(e,r);o({type:"reset",list:t});var n=Object(he.createQueue)();return n.add({},function t(r){return function(){e.length<=r||(o({type:"append",item:e[r]}),n.add({},t(r+1)))}}(t.length)),function(){return n.reset()}}),[e]),r};var ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=re(e);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(N.a)(n,2),o=r[0],i=r[1];i!==e[o]&&console.warn("".concat(t,": ").concat(o," key changed:"),i,e[o])}))},ve=n("./node_modules/use-memo-one/dist/use-memo-one.esm.js");function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Object(ve.a)((function(){return r.debounce.apply(void 0,t)}),t);return Object(u.useEffect)((function(){return function(){return o.cancel()}}),[o]),o}function je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Object(ve.a)((function(){return r.throttle.apply(void 0,t)}),t);return Object(u.useEffect)((function(){return function(){return o.cancel()}}),[o]),o}function Oe(e,t){var n=Object(u.useRef)();return Object(u.useCallback)((function(t){t?n.current=e(t):n.current&&n.current()}),t)}},"./node_modules/clipboard/dist/clipboard.js":function(e,t,n){
|
|
/*!
|
|
* clipboard.js v2.0.6
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/
|
|
var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,u=r.length;i<u;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(3),o=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(5);function o(e,t,n,r,o){var u=i.apply(this,arguments);return e.addEventListener(n,u,o),{destroy:function(){e.removeEventListener(n,u,o)}}}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,i)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return u(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),a=n(1),s=n.n(a),l=n(2),f=n.n(l),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=f()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){var t=m("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(s.a);function m(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=h}]).default},e.exports=r()},"./node_modules/memize/index.js":function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,u,c=n,a=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(u=0;u<a;u++)if(c.args[u]!==arguments[u]){c=c.next;continue e}return c!==n&&(c===r&&(r=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n,c.prev=null,n.prev=c,n=c),c.val}c=c.next}for(i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return c={args:i,val:e.apply(null,i)},n?(n.prev=c,c.next=n):r=c,o===t.maxSize?(r=r.prev).next=null:o++,n=c,c.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},"./node_modules/mousetrap/mousetrap.js":function(e,t,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},s={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();v.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);c=null},v.init=function(){var e=v(i);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),o.Mousetrap=v,e.exports&&(e.exports=v),void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return a[e.which]?a[e.which]:s[e.which]?s[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function b(e,t,n){return n||(n=function(){if(!c)for(var e in c={},a)e>95&&e<112||a.hasOwnProperty(e)&&(c[a[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function y(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&l[r]&&(r=l[r],i.push("shift")),m(r)&&i.push(r);return{key:r,modifiers:i,action:t=b(r,i,t)}}function v(e){var t=this;if(e=e||i,!(t instanceof v))return new v(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,u=!1,c=!1;function a(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(c=!1)}function s(e,n,o,i,u,c){var a,s,l,f,d=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&m(e)&&(n=[e]),a=0;a<t._callbacks[e].length;++a)if(s=t._callbacks[e][a],(i||!s.seq||r[s.seq]==s.level)&&p==s.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(l=n,f=s.modifiers,l.sort().join(",")===f.sort().join(",")))){var h=!i&&s.combo==u,b=i&&s.seq==i&&s.level==c;(h||b)&&t._callbacks[e].splice(a,1),d.push(s)}return d}function l(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function f(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function d(e,t,i,u){function s(t){return function(){c=t,++r[e],clearTimeout(n),n=setTimeout(a,1e3)}}function f(t){l(i,t,e),"keyup"!==u&&(o=h(t)),setTimeout(a,10)}r[e]=0;for(var d=0;d<t.length;++d){var p=d+1===t.length?f:s(u||y(t[d+1]).action);b(t[d],p,u,e,d)}}function b(e,n,r,o,i){t._directMap[e+":"+r]=n;var u,c=(e=e.replace(/\s+/g," ")).split(" ");c.length>1?d(e,c,n,r):(u=y(e,r),t._callbacks[u.key]=t._callbacks[u.key]||[],s(u.key,u.modifiers,{type:u.action},o,e,i),t._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=s(e,t,n),i={},f=0,d=!1;for(r=0;r<o.length;++r)o[r].seq&&(f=Math.max(f,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=f)continue;d=!0,i[o[r].seq]=1,l(o[r].callback,n,o[r].combo,o[r].seq)}else d||l(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&u;n.type!=c||m(e)||p||a(i),u=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)b(e[r],t,n)},p(e,"keypress",f),p(e,"keydown",f),p(e,"keyup",f)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},"./node_modules/mousetrap/plugins/global-bind/mousetrap-global-bind.js":function(e,t){!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,o,i){return!!this.paused||!t[o]&&!t[i]&&n.call(this,e,r,o)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var o=0;o<e.length;o++)t[e[o]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},"./node_modules/react-merge-refs/dist/react-merge-refs.esm.js":function(e,t,n){"use strict";t.a=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}},"./node_modules/react-resize-aware/dist/index.js":function(e,t,n){var r=n("react"),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},u=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=u);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},"./node_modules/use-memo-one/dist/use-memo-one.esm.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("react");function o(e,t){var n=Object(r.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(r.useRef)(!0),i=Object(r.useRef)(n),u=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return Object(r.useEffect)((function(){o.current=!1,i.current=u}),[u]),u.result}},"@wordpress/deprecated":function(e,t){e.exports=window.wp.deprecated},"@wordpress/dom":function(e,t){e.exports=window.wp.dom},"@wordpress/element":function(e,t){e.exports=window.wp.element},"@wordpress/is-shallow-equal":function(e,t){e.exports=window.wp.isShallowEqual},"@wordpress/keycodes":function(e,t){e.exports=window.wp.keycodes},"@wordpress/priority-queue":function(e,t){e.exports=window.wp.priorityQueue},lodash:function(e,t){e.exports=window.lodash},react:function(e,t){e.exports=window.React}}); |