diff --git a/package-lock.json b/package-lock.json index 02856df..1bcb85c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@babel/core": "^7.23.2", "@babel/preset-env": "^7.23.2", "@babel/preset-react": "^7.22.15", + "@dnd-kit/core": "^6.1.0", "@hello-pangea/dnd": "^16.5.0", "@uidotdev/usehooks": "^2.4.1", "babel-loader": "^9.1.3", @@ -1856,6 +1857,45 @@ "node": ">=10.0.0" } }, + "node_modules/@dnd-kit/accessibility": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.1.0.tgz", + "integrity": "sha512-ea7IkhKvlJUv9iSHJOnxinBcoOI3ppGnnL+VDJ75O45Nss6HtZd8IdN8touXPDtASfeI2T2LImb8VOZcL47wjQ==", + "dev": true, + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/core": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.1.0.tgz", + "integrity": "sha512-J3cQBClB4TVxwGo3KEjssGEXNJqGVWx17aRTZ1ob0FliR5IjYgTxl5YJbKTzA6IzrtelotH19v6y7uoIRUZPSg==", + "dev": true, + "dependencies": { + "@dnd-kit/accessibility": "^3.1.0", + "@dnd-kit/utilities": "^3.2.2", + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/utilities": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@dnd-kit/utilities/-/utilities-3.2.2.tgz", + "integrity": "sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==", + "dev": true, + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, "node_modules/@hello-pangea/dnd": { "version": "16.5.0", "resolved": "https://registry.npmjs.org/@hello-pangea/dnd/-/dnd-16.5.0.tgz", diff --git a/package.json b/package.json index 83f0692..b139a74 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "zustand": "^4.4.7", "@uidotdev/usehooks":"^2.4.1", "webpack-preprocessor-loader": "^1.3.0", - "preact": "^10.19.3" + "preact": "^10.19.3", + "@dnd-kit/core": "^6.1.0" }, "babel": { "presets": [ diff --git a/static/js/shop.bundle.js b/static/js/shop.bundle.js index f8bbeb3..ddebb4d 100644 --- a/static/js/shop.bundle.js +++ b/static/js/shop.bundle.js @@ -1,2 +1,2 @@ /*! For license information please see shop.bundle.js.LICENSE.txt */ -(()=>{var e={841:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===c}},366:(e,t,n)=>{"use strict";e.exports=n(841)},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=c(t),g=c(n),h=0;h{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case h:case g:case c:return e;default:return t}}case o:return t}}}function w(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||E(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===s},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===c||e.$$typeof===s||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b)},t.typeOf=E},296:(e,t,n)=>{"use strict";e.exports=n(103)},143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},962:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,l,c,s=e.get_operator(n),u=n[s];if(Array.isArray(u)||(u=[u]),"if"===s||"?:"==s){for(o=0;o0){var d=String(s).split("."),f=t;for(o=0;o{"use strict";n.r(t),n.d(t,{Children:()=>H,Component:()=>l.wA,Fragment:()=>l.HY,PureComponent:()=>L,StrictMode:()=>Ne,Suspense:()=>K,SuspenseList:()=>Q,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>_e,cloneElement:()=>Se,createContext:()=>l.kr,createElement:()=>l.az,createFactory:()=>we,createPortal:()=>ne,createRef:()=>l.Vf,default:()=>Le,findDOMNode:()=>De,flushSync:()=>Ie,forwardRef:()=>U,hydrate:()=>ue,isElement:()=>Te,isFragment:()=>Oe,isValidElement:()=>xe,lazy:()=>X,memo:()=>F,render:()=>se,startTransition:()=>Ae,unmountComponentAtNode:()=>Ce,unstable_batchedUpdates:()=>Pe,useCallback:()=>O,useContext:()=>S,useDebugValue:()=>C,useDeferredValue:()=>ke,useEffect:()=>v,useErrorBoundary:()=>D,useId:()=>P,useImperativeHandle:()=>w,useInsertionEffect:()=>je,useLayoutEffect:()=>_,useMemo:()=>x,useReducer:()=>y,useRef:()=>E,useState:()=>b,useSyncExternalStore:()=>Me,useTransition:()=>Re,version:()=>Ee});var r,o,i,a,l=n(400),c=0,s=[],u=[],d=l.YM.__b,f=l.YM.__r,p=l.YM.diffed,m=l.YM.__c,g=l.YM.unmount;function h(e,t){l.YM.__h&&l.YM.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function b(e){return c=1,y(T,e)}function y(e,t,n){var i=h(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):T(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!l||l.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&i.__c.props===e)&&(!l||l.call(this,e,t,n))};o.u=!0;var l=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=l;l=void 0,a(e,t,n),l=r}c&&c.call(this,e,t,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function v(e,t){var n=h(r++,3);!l.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function _(e,t){var n=h(r++,4);!l.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function E(e){return c=5,x((function(){return{current:e}}),[])}function w(e,t,n){c=6,_((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function x(e,t){var n=h(r++,7);return j(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function O(e,t){return c=8,x((function(){return e}),t)}function S(e){var t=o.context[e.__c],n=h(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function C(e,t){l.YM.useDebugValue&&l.YM.useDebugValue(t?t(e):e)}function D(e){var t=h(r++,10),n=b();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function P(){var e=h(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function I(){for(var e;e=s.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(k),e.__H.__h.forEach(R),e.__H.__h=[]}catch(t){e.__H.__h=[],l.YM.__e(t,e.__v)}}l.YM.__b=function(e){o=null,d&&d(e)},l.YM.__r=function(e){f&&f(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach(k),t.__h.forEach(R),t.__h=[],r=0)),i=o},l.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==s.push(t)&&a===l.YM.requestAnimationFrame||((a=l.YM.requestAnimationFrame)||A)(I)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),i=o=null},l.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(k),e.__h=e.__h.filter((function(e){return!e.__||R(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.YM.__e(n,e.__v)}})),m&&m(e,t)},l.YM.unmount=function(e){g&&g(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{k(e)}catch(e){t=e}})),n.__H=void 0,t&&l.YM.__e(t,n.__v))};var N="function"==typeof requestAnimationFrame;function A(e){var t,n=function(){clearTimeout(r),N&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);N&&(t=requestAnimationFrame(n))}function k(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function R(e){var t=o;e.__c=e.__(),o=t}function j(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function T(e,t){return"function"==typeof t?t(e):t}function M(e,t){for(var n in t)e[n]=t[n];return e}function B(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function L(e){this.props=e}function F(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:B(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,l.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(L.prototype=new l.wA).isPureReactComponent=!0,L.prototype.shouldComponentUpdate=function(e,t){return B(this.props,e)||B(this.state,t)};var W=l.YM.__b;l.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),W&&W(e)};var G="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function U(e){function t(t){var n=M({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=G,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $=function(e,t){return null==e?null:(0,l.bR)((0,l.bR)(e).map(t))},H={map:$,forEach:$,count:function(e){return e?(0,l.bR)(e).length:0},only:function(e){var t=(0,l.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:l.bR},V=l.YM.__e;l.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);V(e,t,n,r)};var Y=l.YM.unmount;function q(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=M({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return q(e,t,n)}))),e}function z(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return z(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function K(){this.__u=0,this.t=null,this.__b=null}function J(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function X(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,l.az)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Q(){this.u=null,this.o=null}l.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Y&&Y(e)},(K.prototype=new l.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=J(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=z(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},K.prototype.componentWillUnmount=function(){this.t=[]},K.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=q(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,l.az)(l.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,l.az)(l.HY,null,t.__a?null:e.children),o]};var Z=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),(0,l.sY)((0,l.az)(ee,{context:t.context},e.__v),t.l)}function ne(e,t){var n=(0,l.az)(te,{__v:e,i:t});return n.containerInfo=t,n}(Q.prototype=new l.wA).__a=function(e){var t=this,n=J(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Z(t,e,r)):o()};n?n(i):i()}},Q.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,l.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Q.prototype.componentDidUpdate=Q.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Z(e,n,t)}))};var re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ie=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ae=/[A-Z0-9]/g,le="undefined"!=typeof document,ce=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function se(e,t,n){return null==t.__k&&(t.textContent=""),(0,l.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function ue(e,t,n){return(0,l.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}l.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(l.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var de=l.YM.event;function fe(){}function pe(){return this.cancelBubble}function me(){return this.defaultPrevented}l.YM.event=function(e){return de&&(e=de(e)),e.persist=fe,e.isPropagationStopped=pe,e.isDefaultPrevented=me,e.nativeEvent=e};var ge,he={enumerable:!1,configurable:!0,get:function(){return this.class}},be=l.YM.vnode;l.YM.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||le&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ce(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":ie.test(o)?o=a:-1===n.indexOf("-")&&oe.test(o)?o=o.replace(ae,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,l.bR)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=(0,l.bR)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",he)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=re,be&&be(e)};var ye=l.YM.__r;l.YM.__r=function(e){ye&&ye(e),ge=e.__c};var ve=l.YM.diffed;l.YM.diffed=function(e){ve&&ve(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ge=null};var _e={ReactCurrentDispatcher:{current:{readContext:function(e){return ge.__n[e.__c].props.value}}}},Ee="17.0.2";function we(e){return l.az.bind(null,e)}function xe(e){return!!e&&e.$$typeof===re}function Oe(e){return xe(e)&&e.type===l.HY}function Se(e){return xe(e)?l.Tm.apply(null,arguments):e}function Ce(e){return!!e.__k&&((0,l.sY)(null,e),!0)}function De(e){return e&&(e.base||1===e.nodeType&&e)||null}var Pe=function(e,t){return e(t)},Ie=function(e,t){return e(t)},Ne=l.HY;function Ae(e){e()}function ke(e){return e}function Re(){return[!1,Ae]}var je=_,Te=xe;function Me(e,t){var n=t(),r=b({h:{__:n,v:t}}),o=r[0].h,i=r[1];return _((function(){o.__=n,o.v=t,Be(o)&&i({h:o})}),[e,n,t]),v((function(){return Be(o)&&i({h:o}),e((function(){Be(o)&&i({h:o})}))}),[e]),n}function Be(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Le={useState:b,useId:P,useReducer:y,useEffect:v,useLayoutEffect:_,useInsertionEffect:je,useTransition:Re,useDeferredValue:ke,useSyncExternalStore:Me,startTransition:Ae,useRef:E,useImperativeHandle:w,useMemo:x,useCallback:O,useContext:S,useDebugValue:C,version:"17.0.2",Children:H,render:se,hydrate:ue,unmountComponentAtNode:Ce,createPortal:ne,createElement:l.az,createContext:l.kr,createFactory:we,cloneElement:Se,createRef:l.Vf,Fragment:l.HY,isValidElement:xe,isElement:Te,isFragment:Oe,findDOMNode:De,Component:l.wA,PureComponent:L,memo:F,forwardRef:U,flushSync:Ie,unstable_batchedUpdates:Pe,StrictMode:Ne,Suspense:K,SuspenseList:Q,lazy:X,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:_e}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>_,Tm:()=>$,Vf:()=>v,YM:()=>o,ZB:()=>U,az:()=>b,bR:()=>I,kr:()=>H,sY:()=>G,wA:()=>E});var r,o,i,a,l,c,s,u,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var o,i,a,l={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return y(e,l,o,i,null)}function y(e,t,n,r,a){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(l),l}function v(){return{current:null}}function _(e){return e.children}function E(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var n;tt&&a.sort(s));S.__r=0}function C(e,t,n,r,o,i,a,l,c,s,u){var p,m,g,h,b,y=r&&r.__k||f,v=t.length;for(n.__d=c,D(n,t,y),c=n.__d,p=0;p0?y(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,l=N(o,n,a=r+d,u),o.__i=l,i=null,-1!==l&&(u--,(i=n[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&d--,"function"!=typeof o.type&&(o.__u|=65536)):l!==a&&(l===a+1?d++:l>a?u>c-a?d+=l-a:d--:d=l(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||l=0){if((c=t[a])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(l2&&(c.children=arguments.length>3?r.call(arguments,2):n),y(e.type,c,o||e.key,i||e.ref,null)}function H(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,O(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},E.prototype.render=_,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,u=0},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},250:(e,t,n)=>{"use strict";var r=n(748),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&u({inst:o})}),[e,n,t]),a((function(){return s(o)&&u({inst:o}),e((function(){s(o)&&u({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(748),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return c((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(748);function t(e){return t="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},t(e)}function r(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:String(n)}function o(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 i(e){for(var t=1;th,y=Symbol.for("react-redux-context"),v="undefined"!=typeof globalThis?globalThis:{};function _(){var t;if(!e.createContext)return{};const n=null!=(t=v[y])?t:v[y]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const E=_();let w=null;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var S=n(679),C=n.n(S),D=n(366);const P=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function I(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let l,c,s,u,d,f=!1;return function(p,m){return f?function(f,p){const m=!i(p,c),g=!o(f,l,p,c);return l=f,c=p,m&&g?(s=e(l,c),t.dependsOnOwnProps&&(u=t(r,c)),d=n(s,u,c),d):m?(e.dependsOnOwnProps&&(s=e(l,c)),t.dependsOnOwnProps&&(u=t(r,c)),d=n(s,u,c),d):g?function(){const t=e(l,c),r=!a(t,s);return s=t,r&&(d=n(s,u,c)),d}():d}(p,m):(l=p,c=m,s=e(l,c),u=t(r,c),d=n(s,u,c),f=!0,d)}}function N(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function A(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=A(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=A(o),o=r(t,n)),o},r}}function R(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function j(e,t,n){return x({},n,e,t)}const T={notify(){},get:()=>[]};function M(e,t){let n,r=T,o=0,i=!1;function a(){s.onStateChange&&s.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=b();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=T)}const s={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return s}const B="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function L(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function F(e,t){if(L(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{throw new Error("uSES not initialized!")};const U=[null,null];function $(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function H(e,t){return e===t}const V=function(t,n,r,{pure:o,areStatesEqual:i=H,areOwnPropsEqual:a=F,areStatePropsEqual:l=F,areMergedPropsEqual:c=F,forwardRef:s=!1,context:u=E}={}){const d=u,f=function(e){return e?"function"==typeof e?k(e):R(e,"mapStateToProps"):N((()=>({})))}(t),p=function(e){return e&&"object"==typeof e?N((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?k(e):R(e,"mapDispatchToProps"):N((e=>({dispatch:e})))}(n),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const l=e(t,n,a);return i?r(l,o)||(o=l):(i=!0,o=l),o}}}(e):R(e,"mergeProps"):()=>j}(r),g=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:g,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:l,areOwnPropsEqual:a,areMergedPropsEqual:c};function u(n){const[r,i,a]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=O(n,W);return[n.context,e,t]}),[n]),l=e.useMemo((()=>r&&r.Consumer&&(0,D.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),c=e.useContext(l),s=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=Boolean(c)&&Boolean(c.store),f=s?n.store:c.store,p=u?c.getServerState:f.getState,m=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=O(t,P);return I(n(e,i),r(e,i),o(e,i),e,i)}(f.dispatch,o)),[f]),[h,b]=e.useMemo((()=>{if(!g)return U;const e=M(f,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,s,c]),y=e.useMemo((()=>s?c:x({},c,{subscription:h})),[s,c,h]),v=e.useRef(),_=e.useRef(a),E=e.useRef(),w=e.useRef(!1),S=(e.useRef(!1),e.useRef(!1)),C=e.useRef();B((()=>(S.current=!0,()=>{S.current=!1})),[]);const N=e.useMemo((()=>()=>E.current&&a===_.current?E.current:m(f.getState(),a)),[f,a]),A=e.useMemo((()=>e=>h?function(e,t,n,r,o,i,a,l,c,s,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!l.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||s():(i.current=n,c.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,f,h,m,_,v,w,S,E,b,e):()=>{}),[h]);var k,R;let j;k=$,R=[_,v,w,a,E,b],B((()=>k(...R)),undefined);try{j=G(A,N,p?()=>m(p(),a):N)}catch(e){throw C.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),e}B((()=>{C.current=void 0,E.current=void 0,v.current=j}));const T=e.useMemo((()=>e.createElement(t,x({},j,{ref:i}))),[i,t,j]);return e.useMemo((()=>g?e.createElement(l.Provider,{value:y},T):T),[l,T,y])}const h=e.memo(u);if(h.WrappedComponent=t,h.displayName=u.displayName=r,s){const n=e.forwardRef((function(t,n){return e.createElement(h,x({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,C()(n,t)}return C()(h,t)}},Y=function({store:t,context:n,children:r,serverState:o,stabilityCheck:i="once",noopCheck:a="once"}){const l=e.useMemo((()=>{const e=M(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:i,noopCheck:a}}),[t,o,i,a]),c=e.useMemo((()=>t.getState()),[t]);B((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const s=n||E;return e.createElement(s.Provider,{value:l},r)};var q;function z(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),i=(0,e.useRef)(r),a=o.current||Boolean(n&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n{G=e})(m.useSyncExternalStore),q=e.unstable_batchedUpdates,h=q;var K=z,J=function(e,t){return z((function(){return e}),t)},X=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Q=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Z=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ee={top:0,right:0,bottom:0,left:0},te=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ee:n,o=e.border,i=void 0===o?ee:o,a=e.padding,l=void 0===a?ee:a,c=X(Q(t,r)),s=X(Z(t,i)),u=X(Z(s,l));return{marginBox:c,borderBox:X(t),paddingBox:s,contentBox:u,margin:r,border:i,padding:l}},ne=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},re=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,c=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return te({borderBox:c,border:i,margin:a,padding:l})},oe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),re(e,t)},ie=function(e,t){var n={top:ne(t.marginTop),right:ne(t.marginRight),bottom:ne(t.marginBottom),left:ne(t.marginLeft)},r={top:ne(t.paddingTop),right:ne(t.paddingRight),bottom:ne(t.paddingBottom),left:ne(t.paddingLeft)},o={top:ne(t.borderTopWidth),right:ne(t.borderRightWidth),bottom:ne(t.borderBottomWidth),left:ne(t.borderLeftWidth)};return te({borderBox:e,margin:n,padding:r,border:o})},ae=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ie(t,n)},le=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ce(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const r=(o=n,i=t.options,{...o,...i});var o,i;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((e=>{e()}))}}de.bind(null,"warn"),de.bind(null,"error");const me=!0,ge="Invariant failed";class he extends Error{}function be(e,t){if(!e)throw new he(me?ge:`${ge}: ${t||""}`)}he.prototype.toString=function(){return this.message};class ye extends e.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=fe,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof he&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=pe(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof he))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const ve=e=>e+1,_e=(e,t)=>{const n=e.droppableId===t.droppableId,r=ve(e.index),o=ve(t.index);return n?`\n You have moved the item from position ${r}\n to position ${o}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},Ee=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,we=e=>`\n The item has returned to its starting position\n of ${ve(e.index)}\n`,xe={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${ve(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return _e(e.source,t);const n=e.combine;return n?Ee(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${we(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${_e(e.source,t)}\n `:n?`\n You have dropped the item.\n ${Ee(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${we(e.source)}\n `}};var Oe=xe;const Se={x:0,y:0},Ce=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),De=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Pe=(e,t)=>e.x===t.x&&e.y===t.y,Ie=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),Ne=(e,t,n=0)=>"x"===e?{x:t,y:n}:{x:n,y:t},Ae=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),ke=(e,t)=>Math.min(...t.map((t=>Ae(e,t)))),Re=e=>t=>({x:e(t.x),y:e(t.y)}),je=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Te=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Me=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=X({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):X(e);var Be=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const o=((e,t)=>t?je(e,t.scroll.diff.displacement):e)(e.marginBox,r),i=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(o,n,t);return{page:e,withPlaceholder:t,active:Me(i,r)}},Le=(e,t)=>{e.frame||be(!1);const n=e.frame,r=De(t,n.scroll.initial),o=Ie(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},a=Be({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};const Fe=se((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),We=se((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),Ge=se((e=>Object.values(e))),Ue=se((e=>Object.values(e)));var $e=se(((e,t)=>{const n=Ue(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return n}));function He(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ve(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ye=se(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),qe=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const ze={point:Se,value:0},Ke={invisible:{},visible:{},all:[]};var Je={displaced:Ke,displacedBy:ze,at:null},Xe=(e,t)=>n=>e<=n&&n<=t,Qe=e=>{const t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;const a=r.tope.bottom,l=r.lefte.right;return!(!a||!l)||(a&&i||l&&o)}},Ze=e=>{const t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const et={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},tt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},nt=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:o})=>{const i=r?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Se;return je(e,n)})(e,t):e;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(i,t,o)&&((e,t,n)=>n(t)(e))(i,n,o)},rt=e=>nt({...e,isVisibleThroughFrameFn:Qe}),ot=e=>nt({...e,isVisibleThroughFrameFn:Ze}),it=(e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const i=o[e];return!i||i.shouldAnimate};function at({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:o,last:i}){return e.reduce((function(e,a){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return X(Q(n,r))}(a,n),c=a.descriptor.id;if(e.all.push(c),!rt({target:l,destination:t,viewport:r,withDroppableDisplacement:!0}))return e.invisible[a.descriptor.id]=!0,e;const s={draggableId:c,shouldAnimate:it(c,i,o)};return e.visible[c]=s,e}),{all:[],visible:{},invisible:{}})}function lt({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const o=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(e,{inHomeList:t});return{displaced:Ke,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function ct({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:o,last:i,index:a,forceShouldAnimate:l}){const c=qe(e,n);if(null==a)return lt({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});const s=t.find((e=>e.descriptor.index===a));if(!s)return lt({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});const u=Ye(e,t),d=t.indexOf(s);return{displaced:at({afterDragging:u.slice(d),destination:n,displacedBy:o,last:i,viewport:r.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function st(e,t){return Boolean(t.effected[e])}const ut=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,dt=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,ft=({axis:e,moveRelativeTo:t,isMoving:n})=>Ne(e.line,t.marginBox[e.end]+ut(e,n),dt(e,t.marginBox,n)),pt=({axis:e,moveRelativeTo:t,isMoving:n})=>Ne(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,n),dt(e,t.marginBox,n));var mt=(e,t)=>{const n=e.frame;return n?Ce(t,n.scroll.diff.displacement):t},gt=e=>{const t=(({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:o})=>{const i=t.page.borderBox.center,a=e.at;return n&&a?"REORDER"===a.type?(({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o})=>{const i=$e(r.descriptor.id,n),a=t.page,l=r.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:n})=>Ne(e.line,t.contentBox[e.start]+ut(e,n),dt(e,t.contentBox,n)))({axis:l,moveInto:r.page,isMoving:a});const{displaced:c,displacedBy:s}=e,u=c.all[0];if(u){const e=n[u];if(st(u,o))return pt({axis:l,moveRelativeTo:e.page,isMoving:a});const t=re(e.page,s.point);return pt({axis:l,moveRelativeTo:t,isMoving:a})}const d=i[i.length-1];if(d.descriptor.id===t.descriptor.id)return a.borderBox.center;if(st(d.descriptor.id,o)){const e=re(d.page,Ie(o.displacedBy.point));return ft({axis:l,moveRelativeTo:e,isMoving:a})}return ft({axis:l,moveRelativeTo:d.page,isMoving:a})})({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o}):(({afterCritical:e,impact:t,draggables:n})=>{const r=Ve(t);r||be(!1);const o=r.draggableId,i=n[o].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const o=Boolean(e.visible[n]||e.invisible[n]);return st(n,t)?o?Se:Ie(r.point):o?r.point:Se})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return Ce(i,a)})({impact:e,draggables:r,afterCritical:o}):i})(e),n=e.droppable;return n?mt(n,t):t},ht=(e,t)=>{const n=De(t,e.scroll.initial),r=Ie(n);return{frame:X({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function bt(e,t){return e.map((e=>t[e]))}var yt=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=((e,t)=>Ce(e.scroll.diff.displacement,t))(n,e),o=De(r,t.page.borderBox.center);return Ce(t.client.borderBox.center,o)},vt=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=De(n,e.page.borderBox.center),l={target:je(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:r};return i?(e=>{return nt({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return e=>t===et?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(l):ot(l)},_t=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:l,afterCritical:c})=>{if(!n.isEnabled)return null;const s=$e(n.descriptor.id,r),u=qe(t,n),d=(({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:o})=>{if(!n.isCombineEnabled)return null;if(!He(o))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...o,at:t}}const a=o.displaced.all,l=a.length?a[0]:null;if(e)return l?i(l):null;const c=Ye(t,r);if(!l)return c.length?i(c[c.length-1].descriptor.id):null;const s=c.findIndex((e=>e.descriptor.id===l));-1===s&&be(!1);const u=s-1;return u<0?null:i(c[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:n,insideDestination:s,previousImpact:o})||(({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:o,insideDestination:i,previousImpact:a,viewport:l,afterCritical:c})=>{const s=a.at;if(s||be(!1),"REORDER"===s.type){const r=(({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const o=r.index,i=e?o+1:o-1,a=n[0].descriptor.index,l=n[n.length-1].descriptor.index;return i(t?l:l+1)?null:i})({isMovingForward:e,isInHomeList:t,location:s.destination,insideDestination:i});return null==r?null:ct({draggable:n,insideDestination:i,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:r})}const u=(({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=r.draggableId,a=n[i].descriptor.index;return st(i,o)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:o,displaced:a.displaced,draggables:r,combine:s.combine,afterCritical:c});return null==u?null:ct({draggable:n,insideDestination:i,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:u})})({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:s,previousImpact:o,viewport:i,afterCritical:c});if(!d)return null;const f=gt({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:c});if(vt({draggable:t,destination:n,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:yt({pageBorderBoxCenter:f,draggable:t,viewport:i}),impact:d,scrollJumpRequest:null};const p=De(f,a),m=(({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:o})=>{const i=ht(t,Ce(t.scroll.current,o)),a=n.frame?Le(n,Ce(n.frame.scroll.current,o)):n,l=e.displaced,c=at({afterDragging:bt(l.all,r),destination:n,displacedBy:e.displacedBy,viewport:i.frame,last:l,forceShouldAnimate:!1}),s=at({afterDragging:bt(l.all,r),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:l,forceShouldAnimate:!1}),u={},d={},f=[l,c,s];return l.all.forEach((e=>{const t=function(e,t){for(let n=0;n{const t=e.subject.active;return t||be(!1),t},wt=(e,t)=>{const n=e.page.borderBox.center;return st(e.descriptor.id,t)?De(n,t.displacedBy.point):n},xt=(e,t)=>{const n=e.page.borderBox;return st(e.descriptor.id,t)?je(n,Ie(t.displacedBy.point)):n};var Ot=se((function(e,t){const n=t[e.line];return{value:n,point:Ne(e.line,n)}}));const St=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Ct=(e,t,n)=>{const r=e.frame;qe(t,e)&&be(!1),e.subject.withPlaceholder&&be(!1);const o=Ot(e.axis,t.displaceBy).point,i=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],i=$e(e.descriptor.id,n).reduce(((e,t)=>e+t.client.marginBox[r.size]),0)+t[r.line]-o;return i<=0?null:Ne(r.line,i)})(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=Be({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const l=i?Ce(r.scroll.max,i):r.scroll.max,c=St(r,l),s=Be({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c});return{...e,subject:s,frame:c}};var Dt=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Pt=({state:e,type:t})=>{const n=((e,t)=>{const n=Dt(e);return n?t[n]:null})(e.impact,e.dimensions.droppables),r=Boolean(n),o=e.dimensions.droppables[e.critical.droppable.id],i=n||o,a=i.axis.direction,l="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(l&&!r)return null;const c="MOVE_DOWN"===t||"MOVE_RIGHT"===t,s=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:f}=e.dimensions;return l?_t({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:s,destination:i,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:o,droppables:i,viewport:a,afterCritical:l})=>{const c=(({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:o})=>{const i=n.subject.active;if(!i)return null;const a=n.axis,l=Xe(i[a.start],i[a.end]),c=Ge(r).filter((e=>e!==n)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>Qe(o.frame)(Et(e)))).filter((t=>{const n=Et(t);return e?i[a.crossAxisEnd]{const t=Et(e),n=Xe(t[a.start],t[a.end]);return l(t[a.start])||l(t[a.end])||n(i[a.start])||n(i[a.end])})).sort(((t,n)=>{const r=Et(t)[a.crossAxisStart],o=Et(n)[a.crossAxisStart];return e?r-o:o-r})).filter(((e,t,n)=>Et(e)[a.crossAxisStart]===Et(n[0])[a.crossAxisStart]));if(!c.length)return null;if(1===c.length)return c[0];const s=c.filter((e=>Xe(Et(e)[a.start],Et(e)[a.end])(t[a.line])));return 1===s.length?s[0]:s.length>1?s.sort(((e,t)=>Et(e)[a.start]-Et(t)[a.start]))[0]:c.sort(((e,n)=>{const r=ke(t,Te(Et(e))),o=ke(t,Te(Et(n)));return r!==o?r-o:Et(e)[a.start]-Et(n)[a.start]}))[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:i,viewport:a});if(!c)return null;const s=$e(c.descriptor.id,o),u=(({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:o})=>{const i=r.filter((e=>ot({target:xt(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0}))).sort(((t,r)=>{const i=Ae(e,mt(n,wt(t,o))),a=Ae(e,mt(n,wt(r,o)));return i{if(!t){if(n.length)return null;const e={displaced:Ke,displacedBy:ze,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=gt({impact:e,draggable:r,droppable:i,draggables:o,afterCritical:l}),c=qe(r,i)?i:Ct(i,r,o);return vt({draggable:r,destination:c,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const c=Boolean(e[i.axis.line]<=t.page.borderBox.center[i.axis.line]),s=(()=>{const e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||c?e:e+1})(),u=Ot(i.axis,r.displaceBy);return ct({draggable:r,insideDestination:n,destination:i,viewport:a,displacedBy:u,last:Ke,index:s})})({previousPageBorderBoxCenter:t,destination:c,draggable:n,draggables:o,moveRelativeTo:u,insideDestination:s,viewport:a,afterCritical:l});if(!d)return null;const f=gt({impact:d,draggable:n,droppable:c,draggables:o,afterCritical:l});return{clientSelection:yt({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null}})({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:s,isOver:i,draggables:d,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function It(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Nt(e){const t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const At=(e,t)=>X(je(e,t));function kt({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Rt=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:o,viewport:i,afterCritical:a})=>{const l=At(t.page.borderBox,e),c=function({pageBorderBox:e,draggable:t,droppables:n}){const r=Ge(n).filter((t=>{if(!t.isEnabled)return!1;const n=t.subject.active;if(!n)return!1;if(o=n,!((r=e).lefto.left&&r.topo.top))return!1;var r,o;if(Nt(n)(e.center))return!0;const i=t.axis,a=n.center[i.crossAxisLine],l=e[i.crossAxisStart],c=e[i.crossAxisEnd],s=Xe(n[i.crossAxisStart],n[i.crossAxisEnd]),u=s(l),d=s(c);return!u&&!d||(u?la)}));return r.length?1===r.length?r[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,o=n.map((t=>{const n=t.axis,o=Ne(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:Ae(r,o)}})).sort(((e,t)=>t.distance-e.distance));return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:r}):null}({pageBorderBox:l,draggable:t,droppables:r});if(!c)return Je;const s=r[c],u=$e(s.descriptor.id,n),d=((e,t)=>{const n=e.frame;return n?At(t,n.scroll.diff.value):t})(s,l);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:o,afterCritical:i})=>{if(!r.isCombineEnabled)return null;const a=r.axis,l=Ot(r.axis,e.displaceBy),c=l.value,s=t[a.start],u=t[a.end],d=Ye(e,o).find((e=>{const t=e.descriptor.id,r=e.page.borderBox,o=r[a.size]/4,l=st(t,i),d=kt({displaced:n.displaced,id:t});return l?d?u>r[a.start]+o&&ur[a.start]-c+o&&sr[a.start]+c+o&&ur[a.start]+o&&s{const l=n.axis,c=Ot(n.axis,t.displaceBy),s=c.value,u=e[l.start],d=e[l.end],f=function({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:Ye(t,r).find((e=>{const t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=st(t,a),i=kt({displaced:o,id:t});return r?i?d<=n:u({...e,[t.descriptor.id]:t});var Tt=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:o,scrollJumpRequest:i})=>{const a=r||e.viewport,l=n||e.dimensions,c=t||e.current.client.selection,s=De(c,e.initial.client.selection),u={offset:s,selection:c,borderBoxCenter:Ce(e.initial.client.borderBoxCenter,s)},d={selection:Ce(u.selection,a.scroll.current),borderBoxCenter:Ce(u.borderBoxCenter,a.scroll.current),offset:Ce(u.offset,a.scroll.diff.value)},f={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:l,viewport:a,current:f};const p=l.draggables[e.critical.draggable.id],m=o||Rt({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),g=(({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:o})=>{const i=(({previousImpact:e,impact:t,droppables:n})=>{const r=Dt(e),o=Dt(t);if(!r)return n;if(r===o)return n;const i=n[r];if(!i.subject.withPlaceholder)return n;const a=(e=>{const t=e.subject.withPlaceholder;t||be(!1);const n=e.frame;if(!n){const t=Be({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||be(!1);const o=St(n,r),i=Be({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(i);return jt(n,a)})({previousImpact:r,impact:o,droppables:n}),a=Dt(o);if(!a)return i;const l=n[a];if(qe(e,l))return i;if(l.subject.withPlaceholder)return i;const c=Ct(l,e,t);return jt(i,c)})({draggable:p,impact:m,previousImpact:e.impact,draggables:l.draggables,droppables:l.droppables});return{...e,current:f,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}},Mt=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:o})=>{const i=e.displaced,a=function(e,t){return e.map((e=>t[e]))}(i.all,n),l=at({afterDragging:a,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:l}},Bt=({impact:e,draggable:t,droppable:n,draggables:r,viewport:o,afterCritical:i})=>{const a=gt({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i});return yt({pageBorderBoxCenter:a,draggable:t,viewport:o})},Lt=({state:e,dimensions:t,viewport:n})=>{"SNAP"!==e.movementMode&&be(!1);const r=e.impact,o=n||e.viewport,i=t||e.dimensions,{draggables:a,droppables:l}=i,c=a[e.critical.draggable.id],s=Dt(r);s||be(!1);const u=l[s],d=Mt({impact:r,viewport:o,destination:u,draggables:a}),f=Bt({impact:d,draggable:c,droppable:u,draggables:a,viewport:o,afterCritical:e.afterCritical});return Tt({impact:d,clientSelection:f,state:e,dimensions:i,viewport:o})},Ft=({draggable:e,home:t,draggables:n,viewport:r})=>{const o=Ot(t.axis,e.displaceBy),i=$e(t.descriptor.id,n),a=i.indexOf(e);-1===a&&be(!1);const l=i.slice(a+1),c=l.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),s={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:c};var u;return{impact:{displaced:at({afterDragging:l,destination:t,displacedBy:o,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:s}};const Wt=e=>"SNAP"===e.movementMode,Gt=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:jt(e.droppables,t)}))(e.dimensions,t);return!Wt(e)||n?Tt({state:e,dimensions:r}):Lt({state:e,dimensions:r})};function Ut(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const $t={phase:"IDLE",completed:null,shouldFlush:!1};var Ht=(e=$t,t)=>{if("FLUSH"===t.type)return{...$t,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&be(!1);const{critical:n,clientSelection:r,viewport:o,dimensions:i,movementMode:a}=t.payload,l=i.draggables[n.draggable.id],c=i.droppables[n.droppable.id],s={selection:r,borderBoxCenter:l.client.borderBox.center,offset:Se},u={client:s,page:{selection:Ce(s.selection,o.scroll.initial),borderBoxCenter:Ce(s.selection,o.scroll.initial),offset:Ce(s.selection,o.scroll.diff.value)}},d=Ge(i.droppables).every((e=>!e.isFixedOnPage)),{impact:f,afterCritical:p}=Ft({draggable:l,home:c,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:i,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&be(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&be(!1),(({state:e,published:t})=>{const n=t.modified.map((t=>{const n=e.dimensions.droppables[t.droppableId];return Le(n,t.scroll)})),r={...e.dimensions.droppables,...Fe(n)},o=We((({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map((e=>{const o=e.descriptor.droppableId,i=(e=>{const t=e.frame;return t||be(!1),t})(t[o]),a=i.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:n})=>{const r=re(e.client,t),o=oe(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:o}})({draggable:e,offset:Ce(r,a),initialWindowScroll:n.scroll.initial});return l}))})({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach((e=>{delete i[e]}));const a={droppables:r,draggables:i},l=Dt(e.impact),c=l?a.droppables[l]:null,s=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:f}=Ft({draggable:s,home:u,draggables:i,viewport:e.viewport}),p=c&&c.isCombineEnabled?e.impact:d,m=Rt({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:p,viewport:e.viewport,afterCritical:f}),g={...e,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:a,afterCritical:f,forceShouldAnimate:!1};return"COLLECTING"===e.phase?g:{...g,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;It(e)||be(!1);const{client:n}=t.payload;return Pe(n,e.current.client.selection)?e:Tt({state:e,clientSelection:n,impact:Wt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ut(e);if("COLLECTING"===e.phase)return Ut(e);It(e)||be(!1);const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const i=Le(o,r);return Gt(e,i,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;It(e)||be(!1);const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||be(!1),o.isEnabled===r&&be(!1);const i={...o,isEnabled:r};return Gt(e,i,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;It(e)||be(!1);const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||be(!1),o.isCombineEnabled===r&&be(!1);const i={...o,isCombineEnabled:r};return Gt(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;It(e)||be(!1),e.isWindowScrollAllowed||be(!1);const n=t.payload.newScroll;if(Pe(e.viewport.scroll.current,n))return Ut(e);const r=ht(e.viewport,n);return Wt(e)?Lt({state:e,viewport:r}):Tt({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!It(e))return e;const n=t.payload.maxScroll;if(Pe(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&be(!1);const n=Pt({state:e,type:t.type});return n?Tt({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;return"COLLECTING"!==e.phase&&be(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&be(!1),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};const Vt=e=>({type:"LIFT",payload:e}),Yt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),qt=()=>({type:"COLLECTION_STARTING",payload:null}),zt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Kt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Jt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Xt=e=>({type:"MOVE",payload:e}),Qt=()=>({type:"MOVE_UP",payload:null}),Zt=()=>({type:"MOVE_DOWN",payload:null}),en=()=>({type:"MOVE_RIGHT",payload:null}),tn=()=>({type:"MOVE_LEFT",payload:null}),nn=()=>({type:"FLUSH",payload:null}),rn=e=>({type:"DROP_COMPLETE",payload:e}),on=e=>({type:"DROP",payload:e}),an="cubic-bezier(.2,1,.1,1)",ln=0,cn=.7,sn=.75,un={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},dn=`${un.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,fn={fluid:`opacity ${dn}`,snap:`transform ${dn}, opacity ${dn}`,drop:e=>{const t=`${e}s ${an}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${dn}`,placeholder:`height ${dn}, width ${dn}, margin ${dn}`},pn=e=>Pe(e,Se)?void 0:`translate(${e.x}px, ${e.y}px)`,mn=pn,gn=(e,t)=>{const n=pn(e);if(n)return t?`${n} scale(${sn})`:n},{minDropTime:hn,maxDropTime:bn}=un,yn=bn-hn;var vn=({getState:e,dispatch:t})=>n=>r=>{if("DROP"!==r.type)return void n(r);const o=e(),i=r.payload.reason;if("COLLECTING"===o.phase)return void t((a={reason:i},{type:"DROP_PENDING",payload:a}));var a;if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&be(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&be(!1);const l=o.critical,c=o.dimensions,s=c.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=(({draggables:e,reason:t,lastImpact:n,home:r,viewport:o,onLiftImpact:i})=>n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:Ke},didDropInsideDroppable:!0}:{impact:Mt({draggables:e,impact:i,destination:r,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d?He(u):null,p=d?Ve(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:i,mode:o.movementMode,destination:f,combine:p},h=(({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:o})=>{const{draggables:i,droppables:a}=n,l=Dt(e),c=l?a[l]:null,s=a[t.descriptor.droppableId],u=Bt({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:c||s,viewport:r});return De(u,t.client.borderBox.center)})({impact:u,draggable:s,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(Pe(o.current.client.offset,h)&&!Boolean(g.combine))return void t(rn({completed:b}));const y=(({current:e,destination:t,reason:n})=>{const r=Ae(e,t);if(r<=0)return hn;if(r>=1500)return bn;const o=hn+yn*(r/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:h,reason:i});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:h,dropDuration:y,completed:b}))},_n=()=>({x:window.pageXOffset,y:window.pageYOffset});var En=e=>{const t=function({onWindowScroll:e}){const t=ue((function(){e(_n())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let r=fe;function o(){return r!==fe}return{start:function(){o()&&be(!1),r=pe(window,[n])},stop:function(){o()||be(!1),t.cancel(),r(),r=fe},isActive:o}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(n)&&t.stop(),e(n)}};const wn=(e,t)=>{t()},xn=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function On(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout((()=>{n=!0})),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var Sn=(e,t)=>{const n=((e,t)=>{const n=(()=>{const e=[];return{add:t=>{const n=setTimeout((()=>(t=>{const n=e.findIndex((e=>e.timerId===t));-1===n&&be(!1);const[r]=e.splice(n,1);r.callback()})(n))),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach((e=>{clearTimeout(e.timerId),e.callback()}))}}})();let r=null;const o=n=>{r||be(!1),r=null,wn(0,(()=>On(e().onDragEnd,n,t,Oe.onDragEnd)))};return{beforeCapture:(t,n)=>{r&&be(!1),wn(0,(()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:(t,n)=>{r&&be(!1),wn(0,(()=>{const r=e().onBeforeDragStart;r&&r(xn(t,n))}))},start:(o,i)=>{r&&be(!1);const a=xn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((()=>{wn(0,(()=>On(e().onDragStart,a,t,Oe.onDragStart)))}))},update:(o,i)=>{const a=He(i),l=Ve(i);r||be(!1);const c=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);c&&(r.lastCritical=o);const s=(d=a,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;s&&(r.lastLocation=a);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,l);if(f&&(r.lastCombine=l),!c&&!s&&!f)return;const p={...xn(o,r.mode),combine:l,destination:a};n.add((()=>{wn(0,(()=>On(e().onDragUpdate,p,t,Oe.onDragUpdate)))}))},flush:()=>{r||be(!1),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...xn(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if("BEFORE_INITIAL_CAPTURE"===r.type)return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if("INITIAL_PUBLISH"===r.type){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),"FLUSH"===r.type)return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}},Cn=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&be(!1),e.dispatch(rn({completed:r.completed}))},Dn=e=>{let t=null,n=null;return r=>o=>{if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"!==o.type)return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((()=>{n=null,t=pe(window,[i])}))}},Pn=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(on({reason:r.reason})))};const In=p;var Nn=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:o,autoScroller:l})=>{return u(Ht,In(function(){for(var e=arguments.length,t=new Array(e),n=0;ne=>t=>{"INITIAL_PUBLISH"===t.type&&c.dragging(),"DROP_ANIMATE"===t.type&&c.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||c.resting(),e(t)}),(e=>()=>t=>n=>{"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)})(e),(e=>({getState:t,dispatch:n})=>r=>o=>{if("LIFT"!==o.type)return void r(o);const{id:i,clientSelection:a,movementMode:l}=o.payload,c=t();"DROP_ANIMATING"===c.phase&&n(rn({completed:c.completed})),"IDLE"!==t().phase&&be(!1),n(nn()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:l}});const s={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:u,dimensions:d,viewport:f}=e.startPublishing(s);n({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:a,movementMode:l,viewport:f}})})(e),vn,Cn,Dn,Pn,(e=>t=>n=>r=>{if((e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&be(!1),void e.start(o)}n(r),e.scroll(t.getState())})(l),En,(e=>{let t=!1;return()=>n=>r=>{if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Sn(r,o))));var c},An=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const o=De({x:t,y:e},{x:r,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},kn=()=>{const e=document.documentElement;return e||be(!1),e},Rn=()=>{const e=kn();return An({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function jn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Tn=(e,t)=>{let n=null;const r=function({registry:e,callbacks:t}){let n={additions:{},removals:{},modified:{}},r=null;const o=()=>{r||(t.collectionStarting(),r=requestAnimationFrame((()=>{r=null;const{additions:o,removals:i,modified:a}=n,l=Object.keys(o).map((t=>e.draggable.getById(t).getDimension(Se))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),c=Object.keys(a).map((t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}))),s={additions:l,removals:Object.keys(i),modified:c};n={additions:{},removals:{},modified:{}},t.publish(s)})))};return{add:e=>{const t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:e=>{const t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||be(!1);const o=n.critical.draggable;"ADDITION"===t.type&&jn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&jn(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||be(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||be(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||be(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&be(!1);const r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},(({critical:e,scrollOptions:t,registry:n})=>{const r=(()=>{const e=_n(),t=Rn(),n=e.y,r=e.x,o=kn(),i=o.clientWidth,a=o.clientHeight;return{frame:X({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Se,displacement:Se}}}})(),o=r.scroll.current,i=e.droppable,a=n.droppable.getAllByType(i.type).map((e=>e.callbacks.getDimensionAndWatchScroll(o,t))),l=n.draggable.getAllByType(e.draggable.type).map((e=>e.getDimension(o)));return{dimensions:{draggables:We(l),droppables:Fe(a)},critical:e,viewport:r}})({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((e=>e.callbacks.dragStopped())),n.unsubscribe(),n=null}};return i},Mn=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,Bn=e=>{window.scrollBy(e.x,e.y)};const Ln=se((e=>Ge(e).filter((e=>!!e.isEnabled&&!!e.frame))));const Fn={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Wn=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;return 0===r?0:(n-e)/r},Gn=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})=>{const i=((e,t,n=(()=>Fn))=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-Wn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=r.maxPixelScroll*r.ease(o);return Math.ceil(i)})(e,t,o);return 0===i?0:r?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,a=t,l=i,c=Date.now()-a;if(c>=i)return e;if(c{const a=((e,t,n=(()=>Fn))=>{const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,r,i);return t[r.end]0===e?0:e));var Hn=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},l=Un({container:t,distanceToEdges:a,dragStartTime:e,axis:et,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),c=Un({container:t,distanceToEdges:a,dragStartTime:e,axis:tt,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),s=$n({x:c,y:l});if(Pe(s,Se))return null;const u=(({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,o=t.width>e.width;return o||r?o&&r?null:{x:o?0:n.x,y:r?0:n.y}:n})({container:t,subject:n,proposedScroll:s});return u?Pe(u,Se)?null:u:null};const Vn=Re((e=>0===e?0:e>0?1:-1)),Yn=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{const o=Ce(t,r),i={x:e(o.x,n.x),y:e(o.y,n.y)};return Pe(i,Se)?null:i}})(),qn=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=Vn(n),i=Yn({max:r,current:t,change:o});return!i||0!==o.x&&0===i.x||0!==o.y&&0===i.y},zn=(e,t)=>qn({current:e.scroll.current,max:e.scroll.max,change:t}),Kn=(e,t)=>{const n=e.frame;return!!n&&qn({current:n.scroll.current,max:n.scroll.max,change:t})};var Jn=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=Hn({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&zn(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:l,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});if(o)return void r(o)}const c=(({center:e,destination:t,droppables:n})=>{if(t){const e=n[t];return e.frame?e:null}const r=((e,t)=>{const n=Ln(t).find((t=>(t.frame||be(!1),Nt(t.frame.pageMarginBox)(e))))||null;return n})(e,n);return r})({center:a,destination:Dt(e.impact),droppables:e.dimensions.droppables});if(!c)return;const s=(({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const l=Hn({dragStartTime:r,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return l&&Kn(e,l)?l:null})({dragStartTime:t,droppable:c,subject:l,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});s&&o(c.descriptor.id,s)},Xn=({move:e,scrollDroppable:t,scrollWindow:n})=>r=>{const o=r.scrollJumpRequest;if(!o)return;const i=Dt(r.impact);i||be(!1);const a=((e,n)=>{if(!Kn(e,n))return n;const r=((e,t)=>{const n=e.frame;return n&&Kn(e,t)?Yn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,n);if(!r)return t(e.descriptor.id,n),null;const o=De(n,r);return t(e.descriptor.id,o),De(n,o)})(r.dimensions.droppables[i],o);if(!a)return;const l=r.viewport,c=((e,t,r)=>{if(!e)return r;if(!zn(t,r))return r;const o=((e,t)=>{if(!zn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return Yn({current:r,max:n,change:t})})(t,r);if(!o)return n(r),null;const i=De(r,o);return n(i),De(r,i)})(r.isWindowScrollAllowed,l,a);c&&((t,n)=>{const r=Ce(t.current.client.selection,n);e({client:r})})(r,c)},Qn=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const o=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=(()=>Fn)})=>{const r=ue(e),o=ue(t);let i=null;const a=e=>{i||be(!1);const{shouldUseTimeDampening:t,dragStartTime:a}=i;Jn({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{i&&be(!1);const t=Date.now();let r=!1;const o=()=>{r=!0};Jn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:n}),i={dragStartTime:t,shouldUseTimeDampening:r},r&&a(e)},stop:()=>{i&&(r.cancel(),o.cancel(),i=null)},scroll:a}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),i=Xn({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{r().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}};const Zn="data-rfd",er=(()=>{const e=`${Zn}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),tr=(()=>{const e=`${Zn}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),nr=(()=>{const e=`${Zn}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),rr={contextId:`${Zn}-scroll-container-context-id`},or=(e,t)=>e.map((e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""})).join(" ");var ir=e=>{const t=(e=>t=>`[${t}="${e}"]`)(e),n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(er.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),r=[(()=>{const e=`\n transition: ${fn.outOfTheWay};\n `;return{selector:t(tr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(nr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:or(r,"always"),resting:or(r,"resting"),dragging:or(r,"dragging"),dropAnimating:or(r,"dropAnimating"),userCancel:or(r,"userCancel")}},ar="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const lr=()=>{const e=document.querySelector("head");return e||be(!1),e},cr=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function sr(e,t){return Array.from(e.querySelectorAll(t))}var ur=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function dr(e){return e instanceof ur(e).HTMLElement}function fr(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((t=>t(e)))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||be(!1),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter((e=>e.descriptor.type===t))},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||be(!1),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter((e=>e.descriptor.type===t))},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var pr=e.default.createContext(null),mr=()=>{const e=document.body;return e||be(!1),e},gr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};const hr=e=>`rfd-announcement-${e}`;let br=0;const yr={separator:"::"};var vr="useId"in e.default?function(t,n=yr){const r=e.default.useId();return K((()=>`${t}${n.separator}${r}`),[n.separator,t,r])}:function(e,t=yr){return K((()=>`${e}${t.separator}${br++}`),[t.separator,e])},_r=e.default.createContext(null);function Er(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),n}function wr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const xr={13:!0,9:!0};var Or=e=>{xr[e.keyCode]&&e.preventDefault()},Sr=(()=>{const e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find((e=>`on${e}`in document))||e})();const Cr={type:"IDLE"};function Dr(){}const Pr={34:!0,33:!0,36:!0,35:!0};const Ir={type:"IDLE"},Nr=["input","button","textarea","select","option","optgroup","video","audio"];function Ar(e,t){if(null==t)return!1;if(Nr.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Ar(e,t.parentElement)}function kr(e,t){const n=t.target;return!!dr(n)&&Ar(e,n)}var Rr=e=>X(e.getBoundingClientRect()).center;const jr=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function Tr(e,t){return null==e?null:e[jr](t)?e:Tr(e.parentElement,t)}function Mr(e,t){return e.closest?e.closest(t):Tr(e,t)}function Br(e){e.preventDefault()}function Lr({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!!n()&&e===t}function Fr({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const o=n.draggable.findById(r);return!!o&&!!o.options.isEnabled&&!!Mn(t.getState(),r)}const Wr=[function(t){const n=(0,e.useRef)(Cr),r=(0,e.useRef)(fe),o=K((()=>({eventName:"mousedown",fn:function(e){if(e.defaultPrevented)return;if(0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,l,{sourceEvent:e});if(!o)return;e.preventDefault();const i={x:e.clientX,y:e.clientY};r.current(),u(o,i)}})),[t]),i=K((()=>({eventName:"webkitmouseforcewillbegin",fn:e=>{if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}})),[t]),a=J((function(){r.current=pe(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=J((()=>{"IDLE"!==n.current.type&&(n.current=Cr,r.current(),a())}),[a]),c=J((()=>{const e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=J((function(){const e=function({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:i}=e;if(0!==t)return;const a={x:o,y:i},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&be(!1),c=l.point,s=a,!(Math.abs(s.x-c.x)>=5||Math.abs(s.y-c.y)>=5))return;var c,s;e.preventDefault();const u=l.actions.fluidLift(a);r({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==n().type)return 27===t.keyCode?(t.preventDefault(),void e()):void Or(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const r=n();"IDLE"===r.type&&be(!1),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:Sr,fn:e}]}({cancel:c,completed:l,getPhase:()=>n.current,setPhase:e=>{n.current=e}});r.current=pe(window,e,{capture:!0,passive:!1})}),[c,l]),u=J((function(e,t){"IDLE"!==n.current.type&&be(!1),n.current={type:"PENDING",point:t,actions:e},s()}),[s]);ar((function(){return a(),function(){r.current()}}),[a])},function(t){const n=(0,e.useRef)(Dr),r=K((()=>({eventName:"keydown",fn:function(e){if(e.defaultPrevented)return;if(32!==e.keyCode)return;const r=t.findClosestDraggableId(e);if(!r)return;const i=t.tryGetLock(r,c,{sourceEvent:e});if(!i)return;e.preventDefault();let a=!0;const l=i.snapLift();function c(){a||be(!1),a=!1,n.current(),o()}n.current(),n.current=pe(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Pr[r.keyCode]?r.preventDefault():Or(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Sr,fn:n}]}(l,c),{capture:!0,passive:!1})}})),[t]),o=J((function(){n.current=pe(window,[r],{passive:!1,capture:!0})}),[r]);ar((function(){return o(),function(){n.current()}}),[o])},function(t){const n=(0,e.useRef)(Ir),r=(0,e.useRef)(fe),o=J((function(){return n.current}),[]),i=J((function(e){n.current=e}),[]),a=K((()=>({eventName:"touchstart",fn:function(e){if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,c,{sourceEvent:e});if(!o)return;const i=e.touches[0],{clientX:a,clientY:l}=i,s={x:a,y:l};r.current(),f(o,s)}})),[t]),l=J((function(){r.current=pe(window,[a],{capture:!0,passive:!1})}),[a]),c=J((()=>{const e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Ir),r.current(),l())}),[l,i]),s=J((()=>{const e=n.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),u=J((function(){const e={capture:!0,passive:!1},t={cancel:s,completed:c,getPhase:o},n=pe(window,function({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const r=n();if("DRAGGING"!==r.type)return void e();r.hasMoved=!0;const{clientX:o,clientY:i}=t.touches[0],a={x:o,y:i};t.preventDefault(),r.actions.move(a)}},{eventName:"touchend",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const r=n();"IDLE"===r.type&&be(!1);const o=t.touches[0];if(!o)return;if(!(o.force>=.15))return;const i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();i&&e()}},{eventName:Sr,fn:e}]}(t),e),i=pe(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:n=>{"DRAGGING"===t().type?(27===n.keyCode&&n.preventDefault(),e()):e()}},{eventName:Sr,fn:e}]}(t),e);r.current=function(){n(),i()}}),[s,o,c]),d=J((function(){const e=o();"PENDING"!==e.type&&be(!1);const t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=J((function(e,t){"IDLE"!==o().type&&be(!1);const n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);ar((function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Ir))}}),[o,l,i]),ar((function(){return pe(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function Gr({contextId:t,store:n,registry:r,customSensors:o,enableDefaultSensors:i}){const a=[...i?Wr:[],...o||[]],l=(0,e.useState)((()=>function(){let e=null;function t(){e||be(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&be(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],c=J((function(e,t){wr(e)&&!wr(t)&&l.tryAbandon()}),[l]);ar((function(){let e=n.getState();return n.subscribe((()=>{const t=n.getState();c(e,t),e=t}))}),[l,n,c]),ar((()=>l.tryAbandon),[l.tryAbandon]);const s=J((e=>Fr({lockAPI:l,registry:r,store:n,draggableId:e})),[l,r,n]),u=J(((e,o,i)=>function({lockAPI:e,contextId:t,store:n,registry:r,draggableId:o,forceSensorStop:i,sourceEvent:a}){if(!Fr({lockAPI:e,store:n,registry:r,draggableId:o}))return null;const l=r.draggable.getById(o),c=function(e,t){const n=`[${tr.contextId}="${e}"]`,r=sr(document,n).find((e=>e.getAttribute(tr.id)===t));return r&&dr(r)?r:null}(t,l.descriptor.id);if(!c)return null;if(a&&!l.options.canDragInteractiveElements&&kr(c,a))return null;const s=e.claim(i||fe);let u="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function f(){return e.isActive(s)}const p=function(e,t){Lr({expected:e,phase:u,isLockActive:f,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function m(t){function r(){e.release(),u="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=pe(window,[{eventName:"click",fn:Br,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch(on({reason:e}))}return"PRE_DRAG"!==u&&(r(),be(!1)),n.dispatch(Vt(t.liftActionArgs)),u="DRAGGING",{isActive:()=>Lr({expected:"DRAGGING",phase:u,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}return{isActive:()=>Lr({expected:"PRE_DRAG",phase:u,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:function(e){const t=ue((e=>{p((()=>Xt({client:e})))}));return{...m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>p(Qt),moveRight:()=>p(en),moveDown:()=>p(Zt),moveLeft:()=>p(tn)};return m({liftActionArgs:{id:o,clientSelection:Rr(c),movementMode:"SNAP"},cleanup:fe,actions:e})},abort:function(){Lr({expected:"PRE_DRAG",phase:u,isLockActive:f,shouldWarn:!0})&&e.release()}}}({lockAPI:l,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})),[t,l,r,n]),d=J((e=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof ur(r).Element))return null;var r;const o=function(e){return`[${er.contextId}="${e}"]`}(e),i=Mr(n,o);return i&&dr(i)?i:null}(e,t);return n?n.getAttribute(er.draggableId):null}(t,e)),[t]),f=J((e=>{const t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),p=J((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(nn()))}),[l,n]),m=J((()=>l.isClaimed()),[l]),g=K((()=>({canGetLock:s,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:m})),[s,u,d,f,p,m]);for(let e=0;e({onBeforeCapture:n=>{const r=()=>{t.onBeforeCapture&&t.onBeforeCapture(n)};e.default.version.startsWith("16")||e.default.version.startsWith("17")?r():(0,e.flushSync)(r)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),$r=e=>({...Fn,...e.autoScrollerOptions,durationDampening:{...Fn.durationDampening,...e.autoScrollerOptions}});function Hr(e){return e.current||be(!1),e.current}function Vr(t){const{contextId:n,setCallbacks:r,sensors:o,nonce:i,dragHandleUsageInstructions:a}=t,l=(0,e.useRef)(null),c=Er(t),s=J((()=>Ur(c.current)),[c]),u=J((()=>$r(c.current)),[c]),d=function(t){const n=K((()=>hr(t)),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){const e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),x(e.style,gr),mr().appendChild(e),function(){setTimeout((function(){const t=mr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),J((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(n),p=function({contextId:t,text:n}){const r=vr("hidden-text",{separator:"-"}),o=K((()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:t,uniqueId:r})),[r,t]);return(0,e.useEffect)((function(){const e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",mr().appendChild(e),function(){const t=mr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:n,text:a}),m=function(t,n){const r=K((()=>ir(t)),[t]),o=(0,e.useRef)(null),i=(0,e.useRef)(null),a=J(se((e=>{const t=i.current;t||be(!1),t.textContent=e})),[]),l=J((e=>{const t=o.current;t||be(!1),t.textContent=e}),[]);ar((()=>{(o.current||i.current)&&be(!1);const e=cr(n),c=cr(n);return o.current=e,i.current=c,e.setAttribute(`${Zn}-always`,t),c.setAttribute(`${Zn}-dynamic`,t),lr().appendChild(e),lr().appendChild(c),l(r.always),a(r.resting),()=>{const e=e=>{const t=e.current;t||be(!1),lr().removeChild(t),e.current=null};e(o),e(i)}}),[n,l,a,r.always,r.resting,t]);const c=J((()=>a(r.dragging)),[a,r.dragging]),s=J((e=>{a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),u=J((()=>{i.current&&a(r.resting)}),[a,r.resting]);return K((()=>({dragging:c,dropping:s,resting:u})),[c,s,u])}(n,i),g=J((e=>{Hr(l).dispatch(e)}),[]),h=K((()=>f({publishWhileDragging:Yt,updateDroppableScroll:zt,updateDroppableIsEnabled:Kt,updateDroppableIsCombineEnabled:Jt,collectionStarting:qt},g)),[g]),b=function(){const t=K(fr,[]);return(0,e.useEffect)((()=>function(){e.default.version.startsWith("16")||e.default.version.startsWith("17")?requestAnimationFrame(t.clean):t.clean()}),[t]),t}(),y=K((()=>Tn(b,h)),[b,h]),v=K((()=>Qn({scrollWindow:Bn,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:u,...f({move:Xt},g)})),[y.scrollDroppable,g,u]),_=function(t){const n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),i=(0,e.useRef)(!1),a=J((function(e,t){const r={id:e,focus:t};return n.current[e]=r,function(){const t=n.current;t[e]!==r&&delete t[e]}}),[]),l=J((function(e){const n=function(e,t){const n=`[${er.contextId}="${e}"]`,r=sr(document,n);if(!r.length)return null;const o=r.find((e=>e.getAttribute(er.draggableId)===t));return o&&dr(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),c=J((function(e,t){r.current===e&&(r.current=t)}),[]),s=J((function(){o.current||i.current&&(o.current=requestAnimationFrame((()=>{o.current=null;const e=r.current;e&&l(e)})))}),[l]),u=J((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(er.draggableId)===e&&(r.current=e)}),[]);return ar((()=>(i.current=!0,function(){i.current=!1;const e=o.current;e&&cancelAnimationFrame(e)})),[]),K((()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:c})),[a,u,s,c])}(n),E=K((()=>Nn({announce:d,autoScroller:v,dimensionMarshal:y,focusMarshal:_,getResponders:s,styleMarshal:m})),[d,v,y,_,s,m]);l.current=E;const w=J((()=>{const e=Hr(l);"IDLE"!==e.getState().phase&&e.dispatch(nn())}),[]),O=J((()=>{const e=Hr(l).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(K((()=>({isDragging:O,tryAbort:w})),[O,w]));const S=J((e=>Mn(Hr(l).getState(),e)),[]),C=J((()=>It(Hr(l).getState())),[]),D=K((()=>({marshal:y,focus:_,contextId:n,canLift:S,isMovementAllowed:C,dragHandleUsageInstructionsId:p,registry:b})),[n,y,p,_,S,C,b]);return Gr({contextId:n,store:E,registry:b,customSensors:o||null,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((()=>w),[w]),e.default.createElement(_r.Provider,{value:D},e.default.createElement(Y,{context:pr,store:E},t.children))}let Yr=0;var qr="useId"in e.default?function(){return e.default.useId()}:function(){return K((()=>""+Yr++),[])};function zr(t){const n=qr(),r=t.dragHandleUsageInstructions||Oe.dragHandleUsageInstructions;return e.default.createElement(ye,null,(o=>e.default.createElement(Vr,{nonce:t.nonce,contextId:n,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children)))}const Kr=5e3,Jr=4500,Xr=(e,t)=>t?fn.drop(t.duration):e?fn.snap:fn.fluid,Qr=(e,t)=>{if(e)return t?ln:cn};var Zr=e.default.createContext(null);function eo(t){const n=(0,e.useContext)(t);return n||be(!1),n}function to(e){e.preventDefault()}var no=(e,t)=>e===t,ro=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function oo(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const io={mapped:{type:"SECONDARY",offset:Se,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:oo(null)}},ao=V((()=>{const e=function(){const e=se(((e,t)=>({x:e,y:t}))),t=se(((e,t,n=null,r=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}))),n=se(((e,n,r,o,i=null,a=null,l=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}})));return(r,o)=>{if(wr(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=Dt(r.impact),c=(i=r.impact).at&&"COMBINE"===i.at.type?i.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,o.isClone,l,c,s)}var i;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,i=r.dimensions.draggables[o.draggableId],a=e.result,l=a.mode,c=ro(a),s=(e=>e.combine?e.combine.draggableId:null)(a),u={duration:r.dropDuration,curve:an,moveTo:r.newHomeClientOffset,opacity:s?ln:null,scale:s?sn:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:i,dropping:u,draggingOver:c,combineWith:s,mode:l,forceShouldAnimate:null,snapshot:t(l,n,c,s,u)}}}return null}}(),t=function(){const e=se(((e,t)=>({x:e,y:t}))),t=se(oo),n=se(((e,n=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}))),r=e=>e?n(Se,e,!0):null,o=(t,o,i,a)=>{const l=i.displaced.visible[t],c=Boolean(a.inVirtualList&&a.effected[t]),s=Ve(i),u=s&&s.draggableId===t?o:null;if(!l){if(!c)return r(u);if(i.displaced.invisible[t])return null;const o=Ie(a.displacedBy.point),l=e(o.x,o.y);return n(l,u,!0)}if(c)return r(u);const d=i.displacedBy.point,f=e(d.x,d.y);return n(f,u,l.shouldAnimate)};return(e,t)=>{if(wr(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||io}),{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:pr,areStatePropsEqual:no})((t=>{const n=(0,e.useRef)(null),r=J(((e=null)=>{n.current=e}),[]),o=J((()=>n.current),[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:l}=eo(_r),{type:c,droppableId:s}=eo(Zr),u=K((()=>({id:t.draggableId,index:t.index,type:c,droppableId:s})),[t.draggableId,t.index,c,s]),{children:d,draggableId:f,isEnabled:p,shouldRespectForcePress:m,canDragInteractiveElements:g,isClone:h,mapped:b,dropAnimationFinished:y}=t;h||function(t){const n=vr("draggable"),{descriptor:r,registry:o,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:c}=t,s=K((()=>({canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:c})),[a,c,l]),u=J((e=>{const t=i();return t||be(!1),function(e,t,n=Se){const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ie(o,r),a=oe(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),d=K((()=>({uniqueId:n,descriptor:r,options:s,getDimension:u})),[r,u,s,n]),f=(0,e.useRef)(d),p=(0,e.useRef)(!0);ar((()=>(o.draggable.register(f.current),()=>o.draggable.unregister(f.current))),[o.draggable]),ar((()=>{if(p.current)return void(p.current=!1);const e=f.current;f.current=d,o.draggable.update(d,e)}),[d,o.draggable])}(K((()=>({descriptor:u,registry:l,getDraggableRef:o,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:p})),[u,l,o,g,m,p]));const v=K((()=>p?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:to}:null),[i,a,f,p]),_=J((t=>{"DRAGGING"===b.type&&b.dropping&&"transform"===t.propertyName&&(e.default.version.startsWith("16")||e.default.version.startsWith("17")?y():(0,e.flushSync)(y))}),[y,b]),E=K((()=>{const e=function(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,i=Boolean(r),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),l=Boolean(o),c=l?gn(n,i):mn(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Xr(a,o),transform:c,opacity:Qr(i,l),zIndex:l?Jr:Kr,pointerEvents:"none"}}(e):{transform:mn((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}(b),t="DRAGGING"===b.type&&b.dropping?_:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:v}}),[i,v,f,b,_,r]),w=K((()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}})),[u.droppableId,u.id,u.index,u.type]);return e.default.createElement(e.default.Fragment,null,d(E,b.snapshot,w))}));var lo=ao;function co(t){return eo(Zr).isUsingCloneFor!==t.draggableId||t.isClone?e.default.createElement(lo,t):null}function so(t){const n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.default.createElement(co,x({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const uo=e=>t=>e===t,fo=uo("scroll"),po=uo("auto"),mo=(uo("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),go=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return mo(n,fo)||mo(n,po)})(e)?e:go(e.parentElement);var ho=go,bo=e=>({x:e.scrollLeft,y:e.scrollTop});const yo=e=>!!e&&("fixed"===window.getComputedStyle(e).position||yo(e.parentElement));const vo={passive:!1},_o={passive:!0};var Eo=e=>e.shouldPublishImmediately?vo:_o;const wo=e=>e&&e.env.closestScrollable||null;function xo(t){const n=(0,e.useRef)(null),r=eo(_r),o=vr("droppable"),{registry:i,marshal:a}=r,l=Er(t),c=K((()=>({id:t.droppableId,type:t.type,mode:t.mode})),[t.droppableId,t.mode,t.type]),s=(0,e.useRef)(c),u=K((()=>se(((e,t)=>{n.current||be(!1);const r={x:e,y:t};a.updateDroppableScroll(c.id,r)}))),[c.id,a]),d=J((()=>{const e=n.current;return e&&e.env.closestScrollable?bo(e.env.closestScrollable):Se}),[]),f=J((()=>{const e=d();u(e.x,e.y)}),[d,u]),p=K((()=>ue(f)),[f]),m=J((()=>{const e=n.current,t=wo(e);e&&t||be(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),g=J(((e,t)=>{n.current&&be(!1);const o=l.current,i=o.getDroppableRef();i||be(!1);const a=(e=>({closestScrollable:ho(e),isFixedOnPage:yo(e)}))(i),s={ref:i,descriptor:c,env:a,scrollOptions:t};n.current=s;const u=(({ref:e,descriptor:t,env:n,windowScroll:r,direction:o,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:l})=>{const c=n.closestScrollable,s=((e,t)=>{const n=ae(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Q({top:r,right:a,bottom:i,left:o},n.border);return te({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(e,c),u=oe(s,r),d=(()=>{if(!c)return null;const e=ae(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:oe(e,r),scroll:bo(c),scrollSize:t,shouldClipSubject:l}})(),f=(({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:o,client:i,page:a,closest:l})=>{const c=(()=>{if(!l)return null;const{scrollSize:e,client:t}=l,n=An({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Se,displacement:Se}}}})(),s="vertical"===o?et:tt;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:s,isEnabled:t,client:i,page:a,frame:c,subject:Be({page:a,withPlaceholder:null,axis:s,frame:c})}})({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:u,closest:d});return f})({ref:i,descriptor:c,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(rr.contextId,r.contextId),d.addEventListener("scroll",m,Eo(s.scrollOptions))),u}),[r.contextId,c,m,l]),h=J((()=>{const e=n.current,t=wo(e);return e&&t||be(!1),bo(t)}),[]),b=J((()=>{const e=n.current;e||be(!1);const t=wo(e);n.current=null,t&&(p.cancel(),t.removeAttribute(rr.contextId),t.removeEventListener("scroll",m,Eo(e.scrollOptions)))}),[m,p]),y=J((e=>{const t=n.current;t||be(!1);const r=wo(t);r||be(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),v=K((()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:h,dragStopped:b,scroll:y})),[b,g,h,y]),_=K((()=>({uniqueId:o,descriptor:c,callbacks:v})),[v,c,o]);ar((()=>(s.current=_.descriptor,i.droppable.register(_),()=>{n.current&&b(),i.droppable.unregister(_)})),[v,c,b,_,a,i.droppable]),ar((()=>{n.current&&a.updateDroppableIsEnabled(s.current.id,!t.isDropDisabled)}),[t.isDropDisabled,a]),ar((()=>{n.current&&a.updateDroppableIsCombineEnabled(s.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,a])}function Oo(){}const So={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var Co=e.default.memo((t=>{const n=(0,e.useRef)(null),r=J((()=>{n.current&&(clearTimeout(n.current),n.current=null)}),[]),{animate:o,onTransitionEnd:i,onClose:a,contextId:l}=t,[c,s]=(0,e.useState)("open"===t.animate);(0,e.useEffect)((()=>c?"open"!==o?(r(),s(!1),Oo):n.current?Oo:(n.current=setTimeout((()=>{n.current=null,s(!1)})),r):Oo),[o,c,r]);const u=J((e=>{"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),d=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||"close"===n?So:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?fn.placeholder:null}})({isAnimatingOpenOnMount:c,animate:t.animate,placeholder:t.placeholder});return e.default.createElement(t.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":l,onTransitionEnd:u,ref:t.innerRef})}));class Do extends e.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const Po={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||be(!1),document.body}},Io=e=>{let t,n={...e};for(t in Po)void 0===e[t]&&(n={...n,[t]:Po[t]});return n},No=(e,t)=>e===t.droppable.type,Ao=(e,t)=>t.draggables[e.draggable.id];var ko=V((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=se((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),r=se(((r,o,i,a,l,c)=>{const s=l.descriptor.id;if(l.descriptor.droppableId===r){const e=c?{render:c,dragging:n(l.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!a)return e;const u={isDraggingOver:i,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}}));return(n,o)=>{const i=Io(o),a=i.droppableId,l=i.type,c=!i.isDropDisabled,s=i.renderClone;if(wr(n)){const e=n.critical;if(!No(l,e))return t;const o=Ao(e,n.dimensions),i=Dt(n.impact)===a;return r(a,c,i,i,o,s)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!No(l,e.critical))return t;const o=Ao(e.critical,n.dimensions);return r(a,c,ro(e.result)===a,Dt(e.impact)===a,o,s)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!No(l,r.critical))return t;const o=Dt(r.impact)===a,i=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),c=r.critical.droppable.id===a;return o?i?e:t:c?e:t}return t}}),{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},((e,t,n)=>({...Io(n),...e,...t})),{context:pr,areStatePropsEqual:no})((t=>{const n=(0,e.useContext)(_r);n||be(!1);const{contextId:r,isMovementAllowed:o}=n,i=(0,e.useRef)(null),a=(0,e.useRef)(null),{children:l,droppableId:c,type:s,mode:u,direction:d,ignoreContainerClipping:f,isDropDisabled:p,isCombineEnabled:m,snapshot:g,useClone:h,updateViewportMaxScroll:b,getContainerForClone:y}=t,v=J((()=>i.current),[]),_=J(((e=null)=>{i.current=e}),[]),E=(J((()=>a.current),[]),J(((e=null)=>{a.current=e}),[])),w=J((()=>{o()&&b({maxScroll:Rn()})}),[o,b]);xo({droppableId:c,type:s,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:v});const x=K((()=>e.default.createElement(Do,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(({onClose:t,data:n,animate:o})=>e.default.createElement(Co,{placeholder:n,onClose:t,innerRef:E,animate:o,contextId:r,onTransitionEnd:w})))),[r,w,t.placeholder,t.shouldAnimatePlaceholder,E]),O=K((()=>({innerRef:_,placeholder:x,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":r}})),[r,c,x,_]),S=h?h.dragging.draggableId:null,C=K((()=>({droppableId:c,type:s,isUsingCloneFor:S})),[c,S,s]);return e.default.createElement(Zr.Provider,{value:C},l(O,g),function(){if(!h)return null;const{dragging:t,render:n}=h,r=e.default.createElement(co,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((e,r)=>n(e,r,t)));return e.default.createPortal(r,y())}())}));const Ro=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i},{useDebugValue:jo}=e.default,{useSyncExternalStoreWithSelector:To}=g,Mo=(e,t)=>{const n=(e=>e?Ro(e):Ro)(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=To(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return jo(r),r}(n,e,r);return Object.assign(r,n),r};function Bo(e){return Bo="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},Bo(e)}function Lo(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 Fo(e){for(var t=1;t5&&void 0!==arguments[5]&&arguments[5],a={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!i&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(a.transitionDuration="0.001s"),Fo(Fo({},e),a)):Fo(Fo({},e),a)},$o=function(e,t){var n=t.isDraggingOver;return Fo(Fo({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})};function Ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;var o=e<0?"-":"",i=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),a=i.length>3?i.length%3:0;return o+(a?i.substr(0,a)+r:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-i).toFixed(t).slice(2):"")}catch(t){return e}}var Vo=function(e,t){var n=t-e;return Array.from({length:n},(function(t,n){return e+n}))},Yo=function(e,t){return e.length===t.length&&e.every((function(e,n){return e.id===t[n].id}))},qo=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))};function zo(e,t){return!e&&!t||!(!e!=!t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(Object.getPrototypeOf(e)!==Object.getPrototypeOf([])||!!Object.keys(e).length==!!Object.keys(t).length)}var Ko=n(962);function Jo(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var Xo=n(697),Qo=n.n(Xo);function Zo(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function ei(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const ti=2**31-1;function ni(e,t,n){const r=n-Date.now();e.current=r<=ti?setTimeout(t,r):setTimeout((()=>ni(e,t,n)),ti)}function ri(){const t=Zo(),n=(0,e.useRef)();return ei((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=ti?n.current=setTimeout(r,o):ni(n,r,Date.now()+o))},clear:e}}),[])}var oi=n(473),ii=n.n(oi);function ai(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function li(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function ci(t,n,r){var o=(0,e.useRef)(void 0!==t),i=(0,e.useState)(n),a=i[0],l=i[1],c=void 0!==t,s=o.current;return o.current=c,!c&&s&&a!==n&&l(n),[c?t:a,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oe&&"function"!=typeof e?t=>{e.current=t}:e,ui=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=si(e),r=si(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var di=n(184),fi=n.n(di);function pi(){return(0,e.useState)(null)}var mi=Object.prototype.hasOwnProperty;function gi(e,t,n){for(n of e.keys())if(hi(n,t))return n}function hi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&hi(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=gi(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=gi(t,o)))return!1;if(!hi(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(mi.call(e,n)&&++r&&!mi.call(t,n))return!1;if(!(n in t)||!hi(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function bi(e){return e.split("-")[0]}function yi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vi(e){return e instanceof yi(e).Element||e instanceof Element}function _i(e){return e instanceof yi(e).HTMLElement||e instanceof HTMLElement}function Ei(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yi(e).ShadowRoot||e instanceof ShadowRoot)}var wi=Math.max,xi=Math.min,Oi=Math.round;function Si(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ci(){return!/^((?!chrome|android).)*safari/i.test(Si())}function Di(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&_i(e)&&(o=e.offsetWidth>0&&Oi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Oi(r.height)/e.offsetHeight||1);var a=(vi(e)?yi(e):window).visualViewport,l=!Ci()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,s=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c,x:c,y:s}}function Pi(e){var t=Di(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ii(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ei(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ni(e){return e?(e.nodeName||"").toLowerCase():null}function Ai(e){return yi(e).getComputedStyle(e)}function ki(e){return["table","td","th"].indexOf(Ni(e))>=0}function Ri(e){return((vi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ji(e){return"html"===Ni(e)?e:e.assignedSlot||e.parentNode||(Ei(e)?e.host:null)||Ri(e)}function Ti(e){return _i(e)&&"fixed"!==Ai(e).position?e.offsetParent:null}function Mi(e){for(var t=yi(e),n=Ti(e);n&&ki(n)&&"static"===Ai(n).position;)n=Ti(n);return n&&("html"===Ni(n)||"body"===Ni(n)&&"static"===Ai(n).position)?t:n||function(e){var t=/firefox/i.test(Si());if(/Trident/i.test(Si())&&_i(e)&&"fixed"===Ai(e).position)return null;var n=ji(e);for(Ei(n)&&(n=n.host);_i(n)&&["html","body"].indexOf(Ni(n))<0;){var r=Ai(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Bi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Li(e,t,n){return wi(e,xi(t,n))}function Fi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Wi(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Gi="top",Ui="bottom",$i="right",Hi="left",Vi="auto",Yi=[Gi,Ui,$i,Hi],qi="start",zi="end",Ki="viewport",Ji="popper",Xi=Yi.reduce((function(e,t){return e.concat([t+"-"+qi,t+"-"+zi])}),[]),Qi=[].concat(Yi,[Vi]).reduce((function(e,t){return e.concat([t,t+"-"+qi,t+"-"+zi])}),[]),Zi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ea={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=bi(n.placement),c=Bi(l),s=[Hi,$i].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return Fi("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Wi(e,Yi))}(o.padding,n),d=Pi(i),f="y"===c?Gi:Hi,p="y"===c?Ui:$i,m=n.rects.reference[s]+n.rects.reference[c]-a[c]-n.rects.popper[s],g=a[c]-n.rects.reference[c],h=Mi(i),b=h?"y"===c?h.clientHeight||0:h.clientWidth||0:0,y=m/2-g/2,v=u[f],_=b-d[s]-u[p],E=b/2-d[s]/2+y,w=Li(v,E,_),x=c;n.modifiersData[r]=((t={})[x]=w,t.centerOffset=w-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ii(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ta(e){return e.split("-")[1]}var na={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ra(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,s=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,g=void 0===m?0:m,h="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=h.x,g=h.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=Hi,_=Gi,E=window;if(s){var w=Mi(n),x="clientHeight",O="clientWidth";w===yi(n)&&"static"!==Ai(w=Ri(n)).position&&"absolute"===l&&(x="scrollHeight",O="scrollWidth"),(o===Gi||(o===Hi||o===$i)&&i===zi)&&(_=Ui,g-=(d&&w===E&&E.visualViewport?E.visualViewport.height:w[x])-r.height,g*=c?1:-1),o!==Hi&&(o!==Gi&&o!==Ui||i!==zi)||(v=$i,p-=(d&&w===E&&E.visualViewport?E.visualViewport.width:w[O])-r.width,p*=c?1:-1)}var S,C=Object.assign({position:l},s&&na),D=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Oi(n*o)/o||0,y:Oi(r*o)/o||0}}({x:p,y:g},yi(n)):{x:p,y:g};return p=D.x,g=D.y,c?Object.assign({},C,((S={})[_]=y?"0":"",S[v]=b?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",S)):Object.assign({},C,((t={})[_]=y?g+"px":"",t[v]=b?p+"px":"",t.transform="",t))}const oa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,c=void 0===l||l,s={placement:bi(t.placement),variation:ta(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ra(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ra(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ia={passive:!0};const aa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=yi(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,ia)})),l&&c.addEventListener("resize",n.update,ia),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,ia)})),l&&c.removeEventListener("resize",n.update,ia)}},data:{}};var la={left:"right",right:"left",bottom:"top",top:"bottom"};function ca(e){return e.replace(/left|right|bottom|top/g,(function(e){return la[e]}))}var sa={start:"end",end:"start"};function ua(e){return e.replace(/start|end/g,(function(e){return sa[e]}))}function da(e){var t=yi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fa(e){return Di(Ri(e)).left+da(e).scrollLeft}function pa(e){var t=Ai(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ma(e){return["html","body","#document"].indexOf(Ni(e))>=0?e.ownerDocument.body:_i(e)&&pa(e)?e:ma(ji(e))}function ga(e,t){var n;void 0===t&&(t=[]);var r=ma(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=yi(r),a=o?[i].concat(i.visualViewport||[],pa(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(ga(ji(a)))}function ha(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ba(e,t,n){return t===Ki?ha(function(e,t){var n=yi(e),r=Ri(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var s=Ci();(s||!s&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+fa(e),y:c}}(e,n)):vi(t)?function(e,t){var n=Di(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ha(function(e){var t,n=Ri(e),r=da(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=wi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+fa(e),c=-r.scrollTop;return"rtl"===Ai(o||n).direction&&(l+=wi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}(Ri(e)))}function ya(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?bi(o):null,a=o?ta(o):null,l=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case Gi:t={x:l,y:n.y-r.height};break;case Ui:t={x:l,y:n.y+n.height};break;case $i:t={x:n.x+n.width,y:c};break;case Hi:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var s=i?Bi(i):null;if(null!=s){var u="y"===s?"height":"width";switch(a){case qi:t[s]=t[s]-(n[u]/2-r[u]/2);break;case zi:t[s]=t[s]+(n[u]/2-r[u]/2)}}return t}function va(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,c=void 0===l?"clippingParents":l,s=n.rootBoundary,u=void 0===s?Ki:s,d=n.elementContext,f=void 0===d?Ji:d,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,h=void 0===g?0:g,b=Fi("number"!=typeof h?h:Wi(h,Yi)),y=f===Ji?"reference":Ji,v=e.rects.popper,_=e.elements[m?y:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=ga(ji(e)),n=["absolute","fixed"].indexOf(Ai(e).position)>=0&&_i(e)?Mi(e):e;return vi(n)?t.filter((function(e){return vi(e)&&Ii(e,n)&&"body"!==Ni(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=ba(e,n,r);return t.top=wi(o.top,t.top),t.right=xi(o.right,t.right),t.bottom=xi(o.bottom,t.bottom),t.left=wi(o.left,t.left),t}),ba(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(vi(_)?_:_.contextElement||Ri(e.elements.popper),c,u,a),w=Di(e.elements.reference),x=ya({reference:w,element:v,strategy:"absolute",placement:o}),O=ha(Object.assign({},v,x)),S=f===Ji?O:w,C={top:E.top-S.top+b.top,bottom:S.bottom-E.bottom+b.bottom,left:E.left-S.left+b.left,right:S.right-E.right+b.right},D=e.modifiersData.offset;if(f===Ji&&D){var P=D[o];Object.keys(C).forEach((function(e){var t=[$i,Ui].indexOf(e)>=0?1:-1,n=[Gi,Ui].indexOf(e)>=0?"y":"x";C[e]+=P[n]*t}))}return C}const _a={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,c=n.fallbackPlacements,s=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,g=n.allowedAutoPlacements,h=t.options.placement,b=bi(h),y=c||(b!==h&&m?function(e){if(bi(e)===Vi)return[];var t=ca(e);return[ua(e),t,ua(t)]}(h):[ca(h)]),v=[h].concat(y).reduce((function(e,n){return e.concat(bi(n)===Vi?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,s=void 0===c?Qi:c,u=ta(r),d=u?l?Xi:Xi.filter((function(e){return ta(e)===u})):Yi,f=d.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=va(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[bi(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:s,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),_=t.rects.reference,E=t.rects.popper,w=new Map,x=!0,O=v[0],S=0;S=0,N=I?"width":"height",A=va(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:s}),k=I?P?$i:Hi:P?Ui:Gi;_[N]>E[N]&&(k=ca(k));var R=ca(k),j=[];if(i&&j.push(A[D]<=0),l&&j.push(A[k]<=0,A[R]<=0),j.every((function(e){return e}))){O=C,x=!1;break}w.set(C,j)}if(x)for(var T=function(e){var t=v.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},M=m?3:1;M>0&&"break"!==T(M);M--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ea(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wa(e){return[Gi,$i,Ui,Hi].some((function(t){return e[t]>=0}))}const xa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=va(t,{elementContext:"reference"}),l=va(t,{altBoundary:!0}),c=Ea(a,r),s=Ea(l,o,i),u=wa(c),d=wa(s);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Oa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Qi.reduce((function(e,n){return e[n]=function(e,t,n){var r=bi(e),o=[Hi,Gi].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Hi,$i].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],c=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},Sa={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ya({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Ca={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,c=n.boundary,s=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,g=void 0===m?0:m,h=va(t,{boundary:c,rootBoundary:s,padding:d,altBoundary:u}),b=bi(t.placement),y=ta(t.placement),v=!y,_=Bi(b),E="x"===_?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var I,N="y"===_?Gi:Hi,A="y"===_?Ui:$i,k="y"===_?"height":"width",R=w[_],j=R+h[N],T=R-h[A],M=p?-O[k]/2:0,B=y===qi?x[k]:O[k],L=y===qi?-O[k]:-x[k],F=t.elements.arrow,W=p&&F?Pi(F):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=G[N],$=G[A],H=Li(0,x[k],W[k]),V=v?x[k]/2-M-H-U-C.mainAxis:B-H-U-C.mainAxis,Y=v?-x[k]/2+M+H+$+C.mainAxis:L+H+$+C.mainAxis,q=t.elements.arrow&&Mi(t.elements.arrow),z=q?"y"===_?q.clientTop||0:q.clientLeft||0:0,K=null!=(I=null==D?void 0:D[_])?I:0,J=R+Y-K,X=Li(p?xi(j,R+V-K-z):j,R,p?wi(T,J):T);w[_]=X,P[_]=X-R}if(l){var Q,Z="x"===_?Gi:Hi,ee="x"===_?Ui:$i,te=w[E],ne="y"===E?"height":"width",re=te+h[Z],oe=te-h[ee],ie=-1!==[Gi,Hi].indexOf(b),ae=null!=(Q=null==D?void 0:D[E])?Q:0,le=ie?re:te-x[ne]-O[ne]-ae+C.altAxis,ce=ie?te+x[ne]+O[ne]-ae-C.altAxis:oe,se=p&&ie?function(e,t,n){var r=Li(e,t,n);return r>n?n:r}(le,te,ce):Li(p?le:re,te,p?ce:oe);w[E]=se,P[E]=se-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function Da(e,t,n){void 0===n&&(n=!1);var r,o,i=_i(t),a=_i(t)&&function(e){var t=e.getBoundingClientRect(),n=Oi(t.width)/e.offsetWidth||1,r=Oi(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Ri(t),c=Di(e,a,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==Ni(t)||pa(l))&&(s=(r=t)!==yi(r)&&_i(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:da(r)),_i(t)?((u=Di(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=fa(l))),{x:c.left+s.scrollLeft-u.x,y:c.top+s.scrollTop-u.y,width:c.width,height:c.height}}function Pa(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Ia(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Na={placement:"bottom",modifiers:[],strategy:"absolute"};function Aa(){for(var e=arguments.length,t=new Array(e),n=0;n{}},Ta={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},Ma=[],Ba=function(t,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:a="absolute",modifiers:l=Ma}=r,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,Ra);const s=(0,e.useRef)(l),u=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),f=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=Zo();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:i,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),h=(0,e.useMemo)((()=>(hi(s.current,l)||(s.current=l),s.current)),[l]);return(0,e.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:i,strategy:a,modifiers:[...h,g,ja]})}),[a,i,g,o,h]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return u.current=ka(t,n,Object.assign({},c,{placement:i,strategy:a,modifiers:[...h,Ta,g]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},La=!("undefined"==typeof window||!window.document||!window.document.createElement);var Fa=!1,Wa=!1;try{var Ga={get passive(){return Fa=!0},get once(){return Wa=Fa=!0}};La&&(window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,!0))}catch(e){}const Ua=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Wa){var o=r.once,i=r.capture,a=n;!Wa&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,Fa?r:i)}e.addEventListener(t,n,r)},$a=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},Ha=function(e,t,n,r){return Ua(e,t,n,r),function(){$a(e,t,n,r)}};function Va(e){return e&&e.ownerDocument||document}const Ya=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function qa(t){const n=Ya(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const za=()=>{},Ka=e=>e&&("current"in e?e.current:e),Ja={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Xa(e){return"Escape"===e.code||27===e.keyCode}const Qa=()=>{},Za=function(t,n,{disabled:r,clickTrigger:o}={}){const i=n||Qa;!function(t,n=za,{disabled:r,clickTrigger:o="click"}={}){const i=(0,e.useRef)(!1),a=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=Ka(t);var r;ii()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!Jo(n,e.target)||a.current,a.current=!1}),[t]),c=qa((e=>{const n=Ka(t);n&&Jo(n,e.target)&&(a.current=!0)})),s=qa((e=>{i.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const i=Va(Ka(t)),a=i.defaultView||window;let u=null!=(e=a.event)?e:null==(n=a.parent)?void 0:n.event,d=null;Ja[o]&&(d=Ha(i,Ja[o],c,!0));const f=Ha(i,o,l,!0),p=Ha(i,o,(e=>{e!==u?s(e):u=void 0}));let m=[];return"ontouchstart"in i.documentElement&&(m=[].slice.call(i.body.children).map((e=>Ha(e,"mousemove",za)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,l,c,s])}(t,i,{disabled:r,clickTrigger:o});const a=qa((e=>{Xa(e)&&i(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=Va(Ka(t));let n=(e.defaultView||window).event;const o=Ha(e,"keyup",(e=>{e!==n?a(e):n=void 0}));return()=>{o()}}),[t,r,a])},el=(0,e.createContext)(La?window:void 0);function tl(){return(0,e.useContext)(el)}el.Provider;const nl=(e,t)=>La?null==e?(t||Va()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function rl(t,n){const r=tl(),[o,i]=(0,e.useState)((()=>nl(t,null==r?void 0:r.document)));if(!o){const e=nl(t);e&&i(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=nl(t);e!==o&&i(e)}),[t,o]),o}function ol(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const il=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,al="undefined"!=typeof document||il?e.useLayoutEffect:e.useEffect,ll=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=(0,e.useRef)(null),l=(0,e.useRef)(n),c=qa(r);(0,e.useEffect)((()=>{n?l.current=!0:c(a.current)}),[n,c]);const s=ui(a,t.ref),u=(0,e.cloneElement)(t,{ref:s});return n?u:i||!l.current&&o?null:u};var cl=n(400),sl=0;function ul(e,t,n,r,o,i){var a,l,c={};for(l in t)"ref"==l?a=t[l]:c[l]=t[l];var s={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--sl,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return cl.YM.vnode&&cl.YM.vnode(s),s}function dl({children:t,in:n,onExited:r,onEntered:o,transition:i}){const[a,l]=(0,e.useState)(!n);n&&a&&l(!1);const c=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),i=qa(n);return al((()=>{if(!r.current)return;let e=!1;return i({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,i]),al((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),s=ui(c,t.ref);return a&&!n?null:(0,e.cloneElement)(t,{ref:s})}function fl(e,t,n){return e?ul(e,Object.assign({},n)):t?ul(dl,Object.assign({},n,{transition:t})):ul(ll,Object.assign({},n))}Array.isArray;const pl=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:i,containerPadding:a,popperConfig:l={},transition:c,runTransition:s}=t,[u,d]=pi(),[f,p]=pi(),m=ui(d,n),g=rl(t.container),h=rl(t.target),[b,y]=(0,e.useState)(!t.show),v=Ba(h,u,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:l,popperConfig:c={}}){var s,u,d,f,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:i?"fixed":c.strategy,modifiers:ol(Object.assign({},m,{eventListeners:{enabled:t,options:null==(s=m.eventListeners)?void 0:s.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},null==(u=m.preventOverflow)?void 0:u.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(f=m.offset)?void 0:f.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:a||5,flip:r,offset:o,arrowElement:f,popperConfig:l}));t.show&&b&&y(!1);const _=t.show||!b;if(Za(u,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!_)return null;const{onExit:E,onExiting:w,onEnter:x,onEntering:O,onEntered:S}=t;let C=t.children(Object.assign({},v.attributes.popper,{style:v.styles.popper,ref:m}),{popper:v,placement:i,show:!!t.show,arrowProps:Object.assign({},v.attributes.arrow,{style:v.styles.arrow,ref:p})});return C=fl(c,s,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:C,onExit:E,onExiting:w,onExited:(...e)=>{y(!0),t.onExited&&t.onExited(...e)},onEnter:x,onEntering:O,onEntered:S}),g?e.default.createPortal(C,g):null}));pl.displayName="Overlay";const ml=pl;function gl(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const hl=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:bl,Provider:yl}=hl;function vl(t,n){const{prefixes:r}=(0,e.useContext)(hl);return t||r[n]||n}function _l(){const{dir:t}=(0,e.useContext)(hl);return"rtl"===t}const El=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"popover-header"),ul(n,{ref:o,className:fi()(e,t),...r}))));El.displayName="PopoverHeader";const wl=El,xl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"popover-body"),ul(n,{ref:o,className:fi()(e,t),...r}))));xl.displayName="PopoverBody";const Ol=xl;function Sl(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Cl(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const Dl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:l,popper:c,show:s,...u},d)=>{const f=vl(e,"popover"),p=_l(),[m]=(null==t?void 0:t.split("-"))||[],g=Sl(m,p);let h=r;return s&&!l&&(h={...r,...Cl(null==c?void 0:c.strategy)}),ul("div",{ref:d,role:"tooltip",style:h,"x-placement":m,className:fi()(n,f,m&&`bs-popover-${g}`),...u,children:[ul("div",{className:"popover-arrow",...a}),i?ul(Ol,{children:o}):o]})})),Pl=Object.assign(Dl,{Header:wl,Body:Ol,POPPER_OFFSET:[0,8]}),Il=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:l,show:c,...s},u)=>{e=vl(e,"tooltip");const d=_l(),[f]=(null==t?void 0:t.split("-"))||[],p=Sl(f,d);let m=r;return c&&!a&&(m={...r,...Cl(null==l?void 0:l.strategy)}),ul("div",{ref:u,style:m,role:"tooltip","x-placement":f,className:fi()(n,e,`bs-tooltip-${p}`),...s,children:[ul("div",{className:"tooltip-arrow",...i}),ul("div",{className:`${e}-inner`,children:o})]})}));Il.displayName="Tooltip";const Nl=Object.assign(Il,{TOOLTIP_OFFSET:[0,6]});function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Al(e,t)}const kl=e.default.createContext(null);var Rl="unmounted",jl="exited",Tl="entering",Ml="entered",Bl="exiting",Ll=function(t){var n,r;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=jl,r.appearStatus=Tl):o=Ml:o=e.unmountOnExit||e.mountOnEnter?Rl:jl,r.state={status:o},r.nextCallback=null,r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,Al(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rl?{status:jl}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Tl&&n!==Ml&&(t=Tl):n!==Tl&&n!==Ml||(t=Bl)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(t,n){if(void 0===t&&(t=!1),null!==n)if(this.cancelNextCallback(),n===Tl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jl&&this.setState({status:Rl})},i.performEnter=function(t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.props.nodeRef?[o]:[e.default.findDOMNode(this),o],a=i[0],l=i[1],c=this.getTimeouts(),s=o?c.appear:c.enter;t||r?(this.props.onEnter(a,l),this.safeSetState({status:Tl},(function(){n.props.onEntering(a,l),n.onTransitionEnd(s,(function(){n.safeSetState({status:Ml},(function(){n.props.onEntered(a,l)}))}))}))):this.safeSetState({status:Ml},(function(){n.props.onEntered(a)}))},i.performExit=function(){var t=this,n=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:e.default.findDOMNode(this);n?(this.props.onExit(o),this.safeSetState({status:Bl},(function(){t.props.onExiting(o),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:jl},(function(){t.props.onExited(o)}))}))}))):this.safeSetState({status:jl},(function(){t.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this),o=null==t&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Rl)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,O(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.default.createElement(kl.Provider,{value:null},"function"==typeof r?r(t,o):e.default.cloneElement(e.default.Children.only(r),o))},o}(e.default.Component);function Fl(){}Ll.contextType=kl,Ll.propTypes={},Ll.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fl,onEntering:Fl,onEntered:Fl,onExit:Fl,onExiting:Fl,onExited:Fl},Ll.UNMOUNTED=Rl,Ll.EXITED=jl,Ll.ENTERING=Tl,Ll.ENTERED=Ml,Ll.EXITING=Bl;const Wl=Ll;var Gl=/([A-Z])/g,Ul=/^ms-/;function $l(e){return function(e){return e.replace(Gl,"-$1").toLowerCase()}(e).replace(Ul,"-ms-")}var Hl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Vl=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue($l(t))||function(e,t){return function(e){var t=Va(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue($l(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Hl.test(e))}(o)?r+=o+"("+i+") ":n+=$l(o)+": "+i+";":e.style.removeProperty($l(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Yl(e,t,n,r){var o,i;null==n&&(i=-1===(o=Vl(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=Ha(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),l=Ha(e,"transitionend",t);return function(){a(),l()}}function ql(e,t){const n=Vl(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function zl(e,t){const n=ql(e,"transitionDuration"),r=ql(e,"transitionDelay"),o=Yl(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Kl(e){e.offsetHeight}function Jl(t){return t&&"setState"in t?e.default.findDOMNode(t):null!=t?t:null}const Xl=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:c,childRef:s,...u},d)=>{const f=(0,e.useRef)(null),p=ui(f,s),m=e=>{p(Jl(e))},g=e=>t=>{e&&f.current&&e(f.current,t)},h=(0,e.useCallback)(g(t),[t]),b=(0,e.useCallback)(g(n),[n]),y=(0,e.useCallback)(g(r),[r]),v=(0,e.useCallback)(g(o),[o]),_=(0,e.useCallback)(g(i),[i]),E=(0,e.useCallback)(g(a),[a]),w=(0,e.useCallback)(g(l),[l]);return ul(Wl,{ref:d,...u,onEnter:h,onEntered:y,onEntering:b,onExit:v,onExited:E,onExiting:_,addEndListener:w,nodeRef:f,children:"function"==typeof c?(e,t)=>c(e,{...t,ref:m}):e.default.cloneElement(c,{ref:m})})})),Ql={[Tl]:"show",[Ml]:"show"},Zl=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...i},a)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},c=(0,e.useCallback)(((e,t)=>{Kl(e),null==o||o(e,t)}),[o]);return ul(Xl,{ref:a,addEndListener:zl,...l,onEnter:c,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:fi()("fade",t,n.props.className,Ql[o],r[o])})})}));Zl.displayName="Fade";const ec=Zl,tc=e.forwardRef((({children:t,transition:n=ec,popperConfig:r={},rootClose:o=!1,placement:i="top",show:a=!1,...l},c)=>{const s=(0,e.useRef)({}),[u,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=vl(void 0,"popover"),o=vl(void 0,"tooltip"),i=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(gl(n.current,r))return Pl.POPPER_OFFSET;if(gl(n.current,o))return Nl.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[i]]}(l.offset),m=ui(c,f),g=!0===n?ec:n||void 0,h=qa((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return al((()=>{u&&l.target&&(null==s.current.scheduleUpdate||s.current.scheduleUpdate())}),[u,l.target]),(0,e.useEffect)((()=>{a||d(null)}),[a]),ul(ml,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:h},transition:g,rootClose:o,placement:i,show:a,children:(o,{arrowProps:i,popper:a,show:l})=>{var c,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Jl(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Jl(e)))}(o,i);const f=null==a?void 0:a.placement,p=Object.assign(s.current,{state:null==a?void 0:a.state,scheduleUpdate:null==a?void 0:a.update,placement:f,outOfBoundaries:(null==a||null==(c=a.state)||null==(d=c.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!u;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:i,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:i,popper:p,hasDoneInitialMeasure:m,className:fi()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));tc.displayName="Overlay";const nc=tc;function rc(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||Jo(o,i)||e(...t)}Qo().oneOf(["click","hover","focus"]);const oc=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:i,defaultShow:a=!1,onToggle:l,delay:c,placement:s,flip:u=s&&-1!==s.indexOf("auto"),...d})=>{const f=(0,e.useRef)(null),p=ui(f,r.ref),m=ri(),g=(0,e.useRef)(""),[h,b]=ci(i,a,l),y=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(c),{onFocus:v,onBlur:_,onClick:E}="function"!=typeof r?e.Children.only(r).props:{},w=(0,e.useCallback)((()=>{m.clear(),g.current="show",y.show?m.set((()=>{"show"===g.current&&b(!0)}),y.show):b(!0)}),[y.show,b,m]),x=(0,e.useCallback)((()=>{m.clear(),g.current="hide",y.hide?m.set((()=>{"hide"===g.current&&b(!1)}),y.hide):b(!1)}),[y.hide,b,m]),O=(0,e.useCallback)(((...e)=>{w(),null==v||v(...e)}),[w,v]),S=(0,e.useCallback)(((...e)=>{x(),null==_||_(...e)}),[x,_]),C=(0,e.useCallback)(((...e)=>{b(!h),null==E||E(...e)}),[E,b,h]),D=(0,e.useCallback)(((...e)=>{rc(w,e,"fromElement")}),[w]),P=(0,e.useCallback)(((...e)=>{rc(x,e,"toElement")}),[x]),I=null==t?[]:[].concat(t),N={ref:e=>{p(Jl(e))}};return-1!==I.indexOf("click")&&(N.onClick=C),-1!==I.indexOf("focus")&&(N.onFocus=O,N.onBlur=S),-1!==I.indexOf("hover")&&(N.onMouseOver=D,N.onMouseOut=P),ul(cl.HY,{children:["function"==typeof r?r(N):(0,e.cloneElement)(r,N),ul(nc,{...d,show:h,onHide:x,flip:u,placement:s,popperConfig:o,target:f.current,children:n})]})};function ic(t){var n=t.id,r=t.tip;return e.default.createElement(oc,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.default.createElement(Nl,{id:n},r)},e.default.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function ac(e){return ac="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},ac(e)}function lc(e,t){for(var n=0;n0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}function Fc(e,t){var n=Bc(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,Fc(e,t))})):"object"===n&&("string"!==Bc(e.type)||"object"!==Bc(e.args)&&"array"!==Bc(e.items)?Object.assign(r,Fc((0,Ko.apply)(e,t),t)):e.type in Mc?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,Fc((0,Ko.apply)(e.items,t),t))),r}const Wc={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Gc;const Uc=new Uint8Array(16);function $c(){if(!Gc&&(Gc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gc(Uc)}const Hc=[];for(let e=0;e<256;++e)Hc.push((e+256).toString(16).slice(1));const Vc=function(e,t,n){if(Wc.randomUUID&&!t&&!e)return Wc.randomUUID();const r=(e=e||{}).random||(e.rng||$c)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Hc[e[t+0]]+Hc[e[t+1]]+Hc[e[t+2]]+Hc[e[t+3]]+"-"+Hc[e[t+4]]+Hc[e[t+5]]+"-"+Hc[e[t+6]]+Hc[e[t+7]]+"-"+Hc[e[t+8]]+Hc[e[t+9]]+"-"+Hc[e[t+10]]+Hc[e[t+11]]+Hc[e[t+12]]+Hc[e[t+13]]+Hc[e[t+14]]+Hc[e[t+15]]}(r)};var Yc={eem:function(e){return e.options_data&&!1!==e.options_data.ext_pwr&&!1!==e.options_data.mono_eem?!0===e.options_data.ext_pwr?0:!0===e.options_data.mono_eem||"1 EEM"===e.options_data.n_eem?1:"3 EEM"===e.options_data.n_eem?3:e.consumes&&e.consumes.eem||0:e.consumes&&e.consumes.eem||0},clk:function(e){return e.options_data&&(!0===e.options_data.ext_clk||e.options_data.ext_clk&&!0===e.options_data.ext_clk.checked)?0:e.consumes&&e.consumes.clk||0},idc:function(e){return e.consumes&&e.consumes.idc||0},hp:function(e){return e.consumes&&e.consumes.hp||0}};function qc(e){return function(t,n){for(var r=0,o=n+1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);no.max}},os=function(e){return function(t,n,r){return Yc[e](t[n])>0&&!function(e,t,n){return e.slice(0,t).find((function(e){return e.resources&&ns(e.resources,n)}))}(t,n,e)}},is={eem_resource:{level:"warning",trigger:rs("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:os("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:rs("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:os("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC-BNC."},clk_resource:{level:"warning",trigger:rs("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:os("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:("eem",function(e,t,n){var r=function(e,t,n){return e.slice(t+1).findIndex((function(e){return e.resources&&ns(e.resources,n)}))+t+1}(e,t,"eem");return r-t==1}),message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:function(e,t,n){return!0},message:"This item has unimplemented warning"}};function as(e){var t,n={priority:0,icon:null},r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Xc(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;ts[o.level].priority>n.priority&&(n=ts[o.level])}}catch(e){r.e(e)}finally{r.f()}return n}function ls(e){var t=ts[e];return{icon:t.icon,color:t.color}}var cs={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:function(e,t){var n=ks.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:function(e,t){var n=ks.getState().crate_modes.desktop.hp;return e.crate_mode===ks.getState().crate_modes.rack.id&&t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&e.default.createElement("ul",null,a.specs.map((function(t,n){return e.default.createElement("li",{key:n},t)}))),c=a.datasheet_file&&a.datasheet_name&&e.default.createElement("div",{className:"ds"},e.default.createElement("span",{className:"doc-icon"}),e.default.createElement("a",{href:a.datasheet_file,target:"_blank",rel:"noopener noreferrer"},a.datasheet_name));return e.default.createElement("section",{className:"productItem"},e.default.createElement("div",{className:"content"},e.default.createElement("h3",{style:{marginBottom:a.name_codename?"5px":"20px"}},a.name),a.name_codename?e.default.createElement("p",null,a.name_codename):null,e.default.createElement("div",{className:"price"},"".concat(o," ").concat(Ho(a.price))),l,c),e.default.createElement("div",{className:"content"},e.default.createElement("button",{onClick:function(){return i(null,n,null)}},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.default.createElement(so,{draggableId:a.id,index:n},(function(t,n){return e.default.createElement(e.default.Fragment,null,e.default.createElement("img",js({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:Uo(t.draggableProps.style,n,!0),src:a.image})),n.isDragging&&e.default.createElement("img",{className:"simclone",src:a.image}))}))))}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Ws);return e.default.createElement("div",Gs({className:"k-popup-warning"},n),o.map((function(t,n){return e.default.createElement("p",{className:"rule warning",key:"warnmsg_".concat(r,"_").concat(t.name)},e.default.createElement("i",null,t.message))})))},rootClose:!0},e.default.createElement("img",{className:"alert-warning",src:i.icon}))}function $s(t){var n=t.crate_index,r=t.card_index,o=as(ks((function(e){return e.crates[n].items[r].show_warnings}),qo));return e.default.createElement("img",{className:"alert-warning align-self-start",src:o.icon})}function Hs(t){var n=e.default.useRef(null),r=e.default.useRef(t);return e.default.useLayoutEffect((function(){r.current=t})),e.default.useEffect((function(){var e=function(e){var t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function Vs(t){var n=t.options,r=t.data,o=t.target,i=t.id,a=Bc(n);return"array"===a?Array.from(n.map((function(e,t){return Vs({options:e,data:r,target:o,id:i+t})}))):"object"===a?"string"!==Bc(n.type)||"object"!==Bc(n.args)&&"array"!==Bc(n.items)?Vs({options:(0,Ko.apply)(n,r),data:r,target:o,id:i}):n.type in Mc?Mc[n.type](o,i+n.type,r,n.args):"Group"===n.type?e.default.createElement("div",{className:"border rounded",key:i+"group"},Vs({options:(0,Ko.apply)(n.items,r),data:r,target:o,id:i})):Mc.Default(n.type,i+"missing"):void 0}function Ys(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nwindow.innerWidth?u({x:r-f.w-20,y:o-f.h/2}):u({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",y,!0)},y=function(e){e.target!==document.getElementById(n)&&g()};return(0,e.useEffect)((function(){if(a){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),b()}}),[a]),(0,e.useEffect)((function(){a&&b()}),[a,f]),e.default.createElement("div",{ref:h},e.default.createElement("img",{className:"alert-info",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){l(!a),a||document.addEventListener("scroll",y,!0)}}),e.default.createElement("div",{style:{display:a?"flex":"none",top:s.y,left:s.x},className:"overlayVariant card border rounded",id:n},e.default.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Js(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Js(t,2),i=o[0],a=o[1];return e.default.createElement("p",{className:"card-text",key:n+i},e.default.createElement("i",null,i),": ",function(e){var t=Bc(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)}(a))}))))))}function Zs(e){return Zs="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},Zs(e)}function eu(t){var n=t.crate_index,r=t.card_index,o=t.first,i=t.last,a=ks((function(e){return e.crates[n].id})),l=ks((function(e){return e.crates[n].items[r].options})),c=ks((function(e){return e.crates[n].items[r].options_data})),s=ks((function(e){return e.crates[n].items[r].size})),u=ks((function(e){return e.crates[n].items[r].options_class})),d=ks((function(e){return e.updateOptions}));return e.default.createElement(Ks,{options:l,data:c,options_class:u,key:"popover"+a+r,id:"popover"+a+r,big:"big"===s,first:o,last:i,target:{construct:function(e,t){c[e]=t},update:function(e,t){e in c&&(c[e]=t),d(a,r,function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Zs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}}})}function tu(t){var n=t.crate_index,r=t.card_index,o=ks((function(e){return e.crates[n].items[r].id})),i=ks((function(e){return e.crates[n].items[r].options})),a=ks((function(e){return e.crates[n].items[r].options_data}));return e.default.createElement(Qs,{id:o+"options",options:i,data:a})}function nu(t){var n=t.crate_index,r=t.card_index,o=ks((function(e){return e.currency})),i=ks((function(e){return e.deleteCard})),a=ks((function(e){return e.highlightCard})),l=ks((function(e){return e.highlightReset})),c=ks((function(e){return e.crates[n].id===e.highlighted.crate&&r===e.highlighted.card})),s=ks((function(e){return e.crates[n].id})),u=ks((function(e){return e.crates[n].items[r]}),(function(e,t){return e.id===t.id})),d=ks((function(e){return e.crates[n].items[r].show_warnings}),zo),f=ks((function(e){return e.crates[n].items[r].options_data}),zo),p=ks((function(e){return!!e.crateParams(e.crates[n].crate_mode).warnings_disabled})),m=!p&&u&&u.options&&u.options.length>0,g=!p&&f&&Object.keys(f).length>0,h=!p&&d&&d.length>0;return e.default.createElement("tr",{key:"summary_crate_"+s+"_"+r,className:"hoverable ".concat(c?"selected":""),onClick:function(){return a(s,r)},onMouseEnter:function(){return a(s,r)},onMouseLeave:function(){return l()}},e.default.createElement("td",{className:"item-card-name"},e.default.createElement("span",{style:{display:"inline-block",width:"16px"}}," "),e.default.createElement("div",null,"".concat(u.name_number," ").concat(u.name," ").concat(u.name_codename))),e.default.createElement("td",{className:"price"},e.default.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(o," ").concat(Ho(u.price)),e.default.createElement("button",{onClick:function(){return i(s,r)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.default.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},h?e.default.createElement($s,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),m&&g?e.default.createElement(tu,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}function ru(t){var n=t.crate_index,r=ks((function(e){return e.crates[n].id})),o=ks((function(e){return e.crates[n].items.length}));return e.default.createElement("tbody",{key:"summary_crate_body"+r},e.default.createElement(Ls,{crate_index:n}),Vo(0,o).map((function(t,o){return e.default.createElement(nu,{crate_index:n,card_index:t,key:"summary_crate_"+r+"_"+t})})))}function ou(){var t=ks((function(e){return e.crates.length}));return e.default.createElement(e.default.Fragment,null,Vo(0,t).map((function(t,n){return e.default.createElement(ru,{crate_index:t,key:"summary_crate_body_"+t})})))}function iu(){var t=ks((function(e){return e.currency})),n=ks((function(e){return e.totalOrderPrice()}));return e.default.createElement("div",null,t," ",Ho(n),e.default.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"})))}function au(){var t=ks((function(e){return e.clearAll}));return e.default.createElement("div",{className:"summary-price"},e.default.createElement("table",null,e.default.createElement("thead",null,e.default.createElement("tr",null,e.default.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.default.createElement("span",{className:"item-card-name"},"Remove all cards"),e.default.createElement("button",{onClick:t},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"}))))),e.default.createElement(ou,null),e.default.createElement("tfoot",null,e.default.createElement("tr",null,e.default.createElement("td",{className:"item-card-name"},"Price estimate"),e.default.createElement("td",{className:"price"},e.default.createElement(iu,null),e.default.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}function lu(e){if((!Fs&&0!==Fs||e)&&La){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Fs=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Fs}function cu(e){void 0===e&&(e=Va());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const su="data-rr-ui-modal-open",uu=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(Vl(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(su,""),Vl(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(su),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},du=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let fu;const pu=(0,e.forwardRef)(((t,n)=>{let{show:r=!1,role:o="dialog",className:i,style:a,children:l,backdrop:c=!0,keyboard:s=!0,onBackdropClick:u,onEscapeKeyDown:d,transition:f,runTransition:p,backdropTransition:m,runBackdropTransition:g,autoFocus:h=!0,enforceFocus:b=!0,restoreFocus:y=!0,restoreFocusOptions:v,renderDialog:_,renderBackdrop:E=(e=>ul("div",Object.assign({},e))),manager:w,container:x,onShow:O,onHide:S=(()=>{}),onExit:C,onExited:D,onExiting:P,onEnter:I,onEntering:N,onEntered:A}=t,k=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,du);const R=tl(),j=rl(x),T=function(t){const n=tl(),r=t||function(e){return fu||(fu=new uu({ownerDocument:null==e?void 0:e.document})),fu}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(w),M=Zo(),B=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(r),[L,F]=(0,e.useState)(!r),W=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>T),[T]),La&&!B&&r&&(W.current=cu(null==R?void 0:R.document)),r&&L&&F(!1);const G=qa((()=>{if(T.add(),q.current=Ha(document,"keydown",V),Y.current=Ha(document,"focus",(()=>setTimeout($)),!0),O&&O(),h){var e,t;const n=cu(null!=(e=null==(t=T.dialog)?void 0:t.ownerDocument)?e:null==R?void 0:R.document);T.dialog&&n&&!Jo(T.dialog,n)&&(W.current=n,T.dialog.focus())}})),U=qa((()=>{var e;T.remove(),null==q.current||q.current(),null==Y.current||Y.current(),y&&(null==(e=W.current)||null==e.focus||e.focus(v),W.current=null)}));(0,e.useEffect)((()=>{r&&j&&G()}),[r,j,G]),(0,e.useEffect)((()=>{L&&U()}),[L,U]),ei((()=>{U()}));const $=qa((()=>{if(!b||!M()||!T.isTopModal())return;const e=cu(null==R?void 0:R.document);T.dialog&&e&&!Jo(T.dialog,e)&&T.dialog.focus()})),H=qa((e=>{e.target===e.currentTarget&&(null==u||u(e),!0===c&&S())})),V=qa((e=>{s&&Xa(e)&&T.isTopModal()&&(null==d||d(e),e.defaultPrevented||S())})),Y=(0,e.useRef)(),q=(0,e.useRef)();if(!j)return null;const z=Object.assign({role:o,ref:T.setDialogRef,"aria-modal":"dialog"===o||void 0},k,{style:a,className:i,tabIndex:-1});let K=_?_(z):ul("div",Object.assign({},z,{children:e.cloneElement(l,{role:"document"})}));K=fl(f,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:C,onExiting:P,onExited:(...e)=>{F(!0),null==D||D(...e)},onEnter:I,onEntering:N,onEntered:A,children:K});let J=null;return c&&(J=E({ref:T.setBackdropRef,onClick:H}),J=fl(m,g,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),ul(cl.HY,{children:e.default.createPortal(ul(cl.HY,{children:[J,K]}),j)})}));pu.displayName="Modal";const mu=Object.assign(pu,{Manager:uu});var gu=Function.prototype.bind.call(Function.prototype.call,[].slice);function hu(e,t){return gu(e.querySelectorAll(t))}function bu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const yu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vu=".sticky-top",_u=".navbar-toggler";class Eu extends uu{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Vl(t,{[e]:`${parseFloat(Vl(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Vl(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):gl(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";hu(t,yu).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),hu(t,vu).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),hu(t,_u).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=bu(n.className,r):n.setAttribute("class",bu(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";hu(t,yu).forEach((e=>this.restore(o,e))),hu(t,vu).forEach((e=>this.restore(i,e))),hu(t,_u).forEach((e=>this.restore(i,e)))}}let wu;const xu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"modal-body"),ul(n,{ref:o,className:fi()(e,t),...r}))));xu.displayName="ModalBody";const Ou=xu,Su=e.createContext({onHide(){}}),Cu=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:i,children:a,scrollable:l,...c},s)=>{const u=`${e=vl(e,"modal")}-dialog`,d="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return ul("div",{...c,ref:s,className:fi()(u,t,o&&`${e}-${o}`,r&&`${u}-centered`,l&&`${u}-scrollable`,i&&d),children:ul("div",{className:fi()(`${e}-content`,n),children:a})})}));Cu.displayName="ModalDialog";const Du=Cu,Pu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"modal-footer"),ul(n,{ref:o,className:fi()(e,t),...r}))));Pu.displayName="ModalFooter";const Iu=Pu,Nu={"aria-label":Qo().string,onClick:Qo().func,variant:Qo().oneOf(["white"])},Au=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>ul("button",{ref:o,type:"button",className:fi()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));Au.displayName="CloseButton",Au.propTypes=Nu;const ku=Au,Ru=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:i,...a},l)=>{const c=(0,e.useContext)(Su),s=qa((()=>{null==c||c.onHide(),null==o||o()}));return ul("div",{ref:l,...a,children:[i,r&&ul(ku,{"aria-label":t,variant:n,onClick:s})]})})),ju=Ru,Tu=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=vl(e,"modal-header"),ul(ju,{ref:i,...o,className:fi()(t,e),closeLabel:n,closeButton:r}))));Tu.displayName="ModalHeader";const Mu=Tu,Bu=("h4",e.forwardRef(((e,t)=>ul("div",{...e,ref:t,className:fi()(e.className,"h4")}))));const Lu=e.forwardRef((({className:e,bsPrefix:t,as:n=Bu,...r},o)=>(t=vl(t,"modal-title"),ul(n,{ref:o,className:fi()(e,t),...r}))));Lu.displayName="ModalTitle";const Fu=Lu;function Wu(e){return ul(ec,{...e,timeout:null})}function Gu(e){return ul(ec,{...e,timeout:null})}const Uu=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:i,children:a,dialogAs:l=Du,"aria-labelledby":c,"aria-describedby":s,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:g,onShow:h,onHide:b,container:y,autoFocus:v=!0,enforceFocus:_=!0,restoreFocus:E=!0,restoreFocusOptions:w,onEntered:x,onExit:O,onExiting:S,onEnter:C,onEntering:D,onExited:P,backdropClassName:I,manager:N,...A},k)=>{const[R,j]=(0,e.useState)({}),[T,M]=(0,e.useState)(!1),B=(0,e.useRef)(!1),L=(0,e.useRef)(!1),F=(0,e.useRef)(null),[W,G]=pi(),U=ui(k,G),$=qa(b),H=_l();t=vl(t,"modal");const V=(0,e.useMemo)((()=>({onHide:$})),[$]);function Y(){return N||function(e){return wu||(wu=new Eu(e)),wu}({isRTL:H})}function q(e){if(!La)return;const t=Y().getScrollbarWidth()>0,n=e.scrollHeight>Va(e).documentElement.clientHeight;j({paddingRight:t&&!n?lu():void 0,paddingLeft:!t&&n?lu():void 0})}const z=qa((()=>{W&&q(W.dialog)}));ei((()=>{$a(window,"resize",z),null==F.current||F.current()}));const K=()=>{B.current=!0},J=e=>{B.current&&W&&e.target===W.dialog&&(L.current=!0),B.current=!1},X=()=>{M(!0),F.current=Yl(W.dialog,(()=>{M(!1)}))},Q=e=>{"static"!==p?L.current||e.target!==e.currentTarget?L.current=!1:null==b||b():(e=>{e.target===e.currentTarget&&X()})(e)},Z=(0,e.useCallback)((e=>ul("div",{...e,className:fi()(`${t}-backdrop`,I,!f&&"show")})),[f,I,t]),ee={...r,...R};return ee.display="block",ul(Su.Provider,{value:V,children:ul(mu,{show:d,ref:U,backdrop:p,container:y,keyboard:!0,autoFocus:v,enforceFocus:_,restoreFocus:E,restoreFocusOptions:w,onEscapeKeyDown:e=>{m?null==g||g(e):(e.preventDefault(),"static"===p&&X())},onShow:h,onHide:b,onEnter:(e,t)=>{e&&q(e),null==C||C(e,t)},onEntering:(e,t)=>{null==D||D(e,t),Ua(window,"resize",z)},onEntered:x,onExit:e=>{null==F.current||F.current(),null==O||O(e)},onExiting:S,onExited:e=>{e&&(e.style.display=""),null==P||P(e),$a(window,"resize",z)},manager:Y(),transition:f?Wu:void 0,backdropTransition:f?Gu:void 0,renderBackdrop:Z,renderDialog:e=>ul("div",{role:"dialog",...e,style:ee,className:fi()(n,t,T&&`${t}-static`,!f&&"show"),onClick:p?Q:void 0,onMouseUp:J,"aria-label":u,"aria-labelledby":c,"aria-describedby":s,children:ul(l,{...A,onMouseDown:K,className:o,contentClassName:i,children:a})})})})}));Uu.displayName="Modal";const $u=Object.assign(Uu,{Body:Ou,Header:Mu,Title:Fu,Footer:Iu,Dialog:Du,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var Hu;function Vu(e){return Vu="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},Vu(e)}function Yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?"errorField":""),type:"email",placeholder:"Email",onFocus:c,onChange:function(e){return o(e.target.value)},onBlur:function(e){return o(e.target.value)},value:t.value}),t.error===hs.Empty?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Required")):null,t.error===hs.Invalid?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Your email is incomplete")):null,e.default.createElement("textarea",{onChange:function(e){return i(e.target.value)},defaultValue:n.value,rows:"5",placeholder:"Additional notes"}),e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.default.createElement(Ku,null),e.default.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2 order-form-submit",type:"button",disabled:l(),onClick:a,value:"".concat(r?"Processing ...":"Request quote")}))))}const Xu=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},Qu={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Zu(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Qu[e];return n+parseInt(Vl(t,r[0]),10)+parseInt(Vl(t,r[1]),10)}const ed={[jl]:"collapse",[Bl]:"collapsing",[Tl]:"collapsing",[Ml]:"collapse show"},td=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:a,children:l,dimension:c="height",in:s=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:f=!1,appear:p=!1,getDimensionValue:m=Zu,...g},h)=>{const b="function"==typeof c?c():c,y=(0,e.useMemo)((()=>Xu((e=>{e.style[b]="0"}),t)),[b,t]),v=(0,e.useMemo)((()=>Xu((e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`}),n)),[b,n]),_=(0,e.useMemo)((()=>Xu((e=>{e.style[b]=null}),r)),[b,r]),E=(0,e.useMemo)((()=>Xu((e=>{e.style[b]=`${m(b,e)}px`,Kl(e)}),o)),[o,m,b]),w=(0,e.useMemo)((()=>Xu((e=>{e.style[b]=null}),i)),[b,i]);return ul(Xl,{ref:h,addEndListener:zl,...g,"aria-expanded":g.role?s:null,onEnter:y,onEntering:v,onEntered:_,onExit:E,onExiting:w,childRef:l.ref,in:s,timeout:u,mountOnEnter:d,unmountOnExit:f,appear:p,children:(t,n)=>e.default.cloneElement(l,{...n,className:fi()(a,l.props.className,ed[t],"width"===b&&"collapse-horizontal")})})})),nd=td;function rd(e,t){return Array.isArray(e)?e.includes(t):e===t}const od=e.createContext({});od.displayName="AccordionContext";const id=od,ad=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:i,...a},l)=>{const{activeEventKey:c}=(0,e.useContext)(id);return n=vl(n,"accordion-collapse"),ul(nd,{ref:l,in:rd(c,i),...a,className:fi()(r,n),children:ul(t,{children:e.Children.only(o)})})}));ad.displayName="AccordionCollapse";const ld=ad,cd=e.createContext({eventKey:""});cd.displayName="AccordionItemContext";const sd=cd,ud=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:a,onExit:l,onExiting:c,onExited:s,...u},d)=>{n=vl(n,"accordion-body");const{eventKey:f}=(0,e.useContext)(sd);return ul(ld,{eventKey:f,onEnter:o,onEntering:i,onEntered:a,onExit:l,onExiting:c,onExited:s,children:ul(t,{ref:d,...u,className:fi()(r,n)})})}));ud.displayName="AccordionBody";const dd=ud,fd=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...i},a)=>{n=vl(n,"accordion-button");const{eventKey:l}=(0,e.useContext)(sd),c=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,e.useContext)(id);return e=>{let a=t===r?null:t;i&&(a=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(a,e),null==n||n(e)}}(l,o),{activeEventKey:s}=(0,e.useContext)(id);return"button"===t&&(i.type="button"),ul(t,{ref:a,onClick:c,...i,"aria-expanded":Array.isArray(s)?s.includes(l):l===s,className:fi()(r,n,!rd(s,l)&&"collapsed")})}));fd.displayName="AccordionButton";const pd=fd,md=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},a)=>(t=vl(t,"accordion-header"),ul(e,{ref:a,...i,className:fi()(n,t),children:ul(pd,{onClick:o,children:r})}))));md.displayName="AccordionHeader";const gd=md,hd=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...i},a)=>{n=vl(n,"accordion-item");const l=(0,e.useMemo)((()=>({eventKey:o})),[o]);return ul(sd.Provider,{value:l,children:ul(t,{ref:a,...i,className:fi()(r,n)})})}));hd.displayName="AccordionItem";const bd=hd,yd=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:a,onSelect:l,flush:c,alwaysOpen:s,...u}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,i=n,a=i[ai(r)],l=i[r],c=O(i,[ai(r),r].map(li)),s=t[r],u=ci(l,a,e[s]),d=u[0],f=u[1];return x({},c,((o={})[r]=d,o[s]=f,o))}),e)}(t,{activeKey:"onSelect"}),d=vl(i,"accordion"),f=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:l,alwaysOpen:s})),[o,l,s]);return ul(id.Provider,{value:f,children:ul(r,{ref:n,...u,className:fi()(a,d,c&&`${d}-flush`)})})}));yd.displayName="Accordion";const vd=Object.assign(yd,{Button:pd,Collapse:ld,Item:bd,Header:gd,Body:dd});var _d=["arrowProps","hasDoneInitialMeasure","show"];function Ed(e){return Ed="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},Ed(e)}function wd(){return wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,_d);return e.default.createElement("div",wd({className:"k-popup-connectors"},n),e.default.createElement(Id,{resources:o,library:Pd}))},rootClose:!0},e.default.createElement("div",{className:"progress-container"},e.default.createElement(Id,{resources:o,library:Dd})))}function Ad(e){return Ad="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},Ad(e)}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t0,h=!u&&l&&l.length>0,b=!u&&c&&c.length>0;return e.default.createElement(so,{draggableId:a.id,index:n},(function(t,l){return e.default.createElement("div",kd({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:jd({},Uo(t.draggableProps.style,l,!0,!!s,!1,!0)),onMouseEnter:function(){return f(d,n)},onMouseLeave:p}),e.default.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},h&&e.default.createElement(Us,{crate_index:r,card_index:n}),g&&e.default.createElement(eu,{crate_index:r,card_index:n,first:o,last:i})),e.default.createElement("h6",null,a.name_number),e.default.createElement("div",{onMouseEnter:function(){return f(d,n)},onClick:function(){return f(d,n)}},e.default.createElement("img",{className:"item-cart",src:a.image})),e.default.createElement("div",{style:{display:s?"flex":"none"},className:"overlayRemove",onClick:function(){return m(d,n)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.default.createElement("p",null,"Remove")),b&&e.default.createElement(Nd,{crate_index:r,card_index:n}))}))}function Md(t){for(var n=t.isDraggingOver,r=[],o=t.nToDraw;o>0;o--)r.push(e.default.createElement("div",{key:o,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.default.createElement(e.default.Fragment,null,r)}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a,key:t.id})}));return e.default.createElement(ko,{droppableId:r.id,direction:"horizontal"},(function(t,n){return e.default.createElement("div",Bd({ref:t.innerRef},t.droppableProps,{style:$o(t.droppableProps.style,n),className:"items-cart-list"}),l,t.placeholder&&e.default.createElement("div",{style:{display:"none"}},t.placeholder),e.default.createElement(Md,{nToDraw:a-i,isDraggingOver:n.isDraggingOver}))}))}function Fd(t){var n=t.crate_index,r=ks((function(e){return e.modes_order})),o=ks((function(e){return e.crate_modes})),i=ks((function(e){return e.crates[n]}),(function(e,t){return e.id===t.id&&e.crate_mode===t.crate_mode})),a=ks((function(e){return e.setCrateMode}));return r.includes(i.crate_mode)?e.default.createElement("div",{className:"crate-mode"},r.map((function(t,n){return e.default.createElement("a",{key:t,className:i.crate_mode===t?"active":"",onClick:function(){return a(i.id,t)},href:"#",role:"button"},o[t].name)}))):e.default.createElement("div",{className:"crate-mode"})}function Wd(t){var n=t.crate_index,r=ks((function(e){return e.crates[n].warnings}),Yo);return e.default.createElement("div",{className:"crate-info"},r.map((function(t,n){return e.default.createElement("p",{key:n,className:"rule",style:{color:ls(t.level).color}},e.default.createElement("img",{src:ls(t.level).icon})," ",e.default.createElement("i",null,t.message))})))}function Gd(t){var n=t.crate_index,r=ks((function(e){return e.crates[n]}),(function(e,t){return e.length===t.length})),o=ks((function(e){return e.delCrate}));return e.default.createElement("div",{className:"crate"},e.default.createElement("div",{className:"crate-bar d-inline-flex justify-content-between"},e.default.createElement(Fd,{crate_index:n}),e.default.createElement("div",{className:"delete-crate align-self-start align-content-start justify-content-end",onClick:function(){return o(r.id)}},"Delete crate ",e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))),e.default.createElement("div",{className:"crate-products"},e.default.createElement(Ld,{crate_index:n}),e.default.createElement(Wd,{crate_index:n})))}function Ud(){var t=ks((function(e){return e.crates}),(function(e,t){return e.length===t.length})),n=ks((function(e){return e.active_crate})),r=ks((function(e){return e.newCrate})),o=ks((function(e){return e.setActiveCrate}));return e.default.createElement(vd,{id:"accordion_crates",flush:!0,activeKey:n,onSelect:function(e){o(null!==e?e:"")}},t.map((function(t,n){return e.default.createElement(vd.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.default.createElement(vd.Header,null,t.name?t.name:e.default.createElement(e.default.Fragment,null,"Crate #","".concat(n))," "),e.default.createElement(vd.Body,null,e.default.createElement(Gd,{crate_index:n})))})),e.default.createElement(vd.Item,{eventKey:"last",id:"accordion_crates_add"},e.default.createElement(vd.Header,{onClick:r},"Add new crate")))}var $d,Hd=JSON.stringify({crates:[{items:[{pn:"1124",options:null},{pn:"2128",options:null},{pn:"2128",options:null},{pn:"2128",options:null}],type:"rack"},{items:[],type:"no_crate"}]});function Vd(){var t=ks((function(e){return e.importShouldOpen})),n=ks((function(e){return e.importValue})),r=ks((function(e){return e.loadDescription})),o=ks((function(e){return e.updateImportDescription})),i=ks((function(e){return e.closeImport})),a=ks((function(e){return e.openImport})),l=Hs((function(e){"mousedown"===e.type&&i()}));return e.default.createElement(e.default.Fragment,null,e.default.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:a},"Import JSON"),e.default.createElement($u,{show:t,animation:!0,centered:!0,className:"rfqFeedback"},e.default.createElement($u.Body,{ref:l},e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.default.createElement("br",null),Hd)),e.default.createElement("div",{className:"form-group w-100"},e.default.createElement("textarea",{onChange:function(e){o(e.target.value)},value:n.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),n.error!==hs.OK?e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"text-danger"},n.error===hs.Empty?"Empty input":"Invalid JSON")):null,e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.default.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.default.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 ".concat(n.error?"disabled":"")},"Load configuration")))))}function Yd(){var t=ks((function(e){return e.closeRFQFeedback})),n=ks((function(e){return e.shouldShowRFQFeedback})),r=ks((function(e){return e.processingResult})),o=Hs((function(e){"mousedown"===e.type&&t()}));return e.default.createElement($u,{show:n,animation:!0,centered:!0},e.default.createElement($u.Body,{ref:o,className:"rfqFeedback"},e.default.createElement("div",{className:"d-flex"},e.default.createElement("div",null,r.status===hs.OK?e.default.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.default.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.default.createElement("div",{style:{padding:"0 .5em"}},r.message))))}function qd(t){var n=t.title,r=t.description,o=ks((function(e){return e.isMobile})),i=ks((function(e){return e.switchSideMenu}));return e.default.createElement("section",{className:"panel"},e.default.createElement("h2",null,n),e.default.createElement("div",{className:"control justify-content-between"},r),e.default.createElement("div",null,e.default.createElement(Vd,null)),e.default.createElement(Yd,null),o?e.default.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.default.createElement("button",{onClick:i},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.default.createElement(Ud,null),e.default.createElement("section",{className:"summary"},e.default.createElement(au,null),e.default.createElement(Ju,null)))}function zd(){var t=ks((function(e){return e.addCardFromBacklog})),n=ks((function(e){return e.moveCard})),r=ks((function(e){return e.deleteCard})),o=ks((function(e){return e.cardIndexById}));return(0,e.useEffect)((function(){t(null,[o("eem_pwr_mod"),o("kasli")],-1,!0)}),[]),e.default.createElement(zr,{onDragEnd:function(e,o){e.destination?"backlog"===e.source.droppableId?t(e.destination.droppableId,e.source.index,e.destination.index):"backlog"===e.destination.droppableId?r(e.source.droppableId,e.source.index):n(e.source.droppableId,e.source.index,e.destination.droppableId,e.destination.index):console.warn("No drop destination")}},e.default.createElement(Rs,{aside:e.default.createElement(Bs,null),main:e.default.createElement(qd,{title:"Order hardware",description:e.default.createElement("p",{className:"description"},"Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card, most of the options can be modified after shipment. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at ",e.default.createElement("a",{href:"mailto:sales@m-labs.hk"},"sales@m-labs.hk"),". The price is estimated and must be confirmed by a quote.")})}))}($d=document.querySelector("#root-shop"),{render(t){(0,e.render)(t,$d)},unmount(){(0,e.unmountComponentAtNode)($d)}}).render(e.default.createElement(zd,null))})()})(); \ No newline at end of file +(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],s=0;(l=new Error(t.replace(/%s/g,(function(){return u[s++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},962:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,c,l,u=e.get_operator(n),s=n[u];if(Array.isArray(s)||(s=[s]),"if"===u||"?:"==u){for(o=0;o0){var f=String(u).split("."),d=t;for(o=0;o{"use strict";n.r(t),n.d(t,{Children:()=>Y,Component:()=>c.wA,Fragment:()=>c.HY,PureComponent:()=>F,StrictMode:()=>De,Suspense:()=>X,SuspenseList:()=>G,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>_e,cloneElement:()=>Se,createContext:()=>c.kr,createElement:()=>c.az,createFactory:()=>Ee,createPortal:()=>ne,createRef:()=>c.Vf,default:()=>Fe,findDOMNode:()=>Ce,flushSync:()=>Ne,forwardRef:()=>W,hydrate:()=>se,isElement:()=>Me,isFragment:()=>Oe,isValidElement:()=>xe,lazy:()=>Q,memo:()=>B,render:()=>ue,startTransition:()=>Pe,unmountComponentAtNode:()=>ke,unstable_batchedUpdates:()=>je,useCallback:()=>O,useContext:()=>S,useDebugValue:()=>k,useDeferredValue:()=>Re,useEffect:()=>b,useErrorBoundary:()=>C,useId:()=>j,useImperativeHandle:()=>E,useInsertionEffect:()=>Te,useLayoutEffect:()=>_,useMemo:()=>x,useReducer:()=>g,useRef:()=>w,useState:()=>y,useSyncExternalStore:()=>Ie,useTransition:()=>Ae,version:()=>we});var r,o,i,a,c=n(400),l=0,u=[],s=[],f=c.YM.__b,d=c.YM.__r,p=c.YM.diffed,m=c.YM.__c,h=c.YM.unmount;function v(e,t){c.YM.__h&&c.YM.__h(o,e,l||t),l=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:s}),n.__[e]}function y(e){return l=1,g(M,e)}function g(e,t,n){var i=v(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):M(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!c||c.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&i.__c.props===e)&&(!c||c.call(this,e,t,n))};o.u=!0;var c=o.shouldComponentUpdate,l=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=c;c=void 0,a(e,t,n),c=r}l&&l.call(this,e,t,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function b(e,t){var n=v(r++,3);!c.YM.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function _(e,t){var n=v(r++,4);!c.YM.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return l=5,x((function(){return{current:e}}),[])}function E(e,t,n){l=6,_((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function x(e,t){var n=v(r++,7);return T(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function O(e,t){return l=8,x((function(){return e}),t)}function S(e){var t=o.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function k(e,t){c.YM.useDebugValue&&c.YM.useDebugValue(t?t(e):e)}function C(e){var t=v(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function j(){var e=v(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function N(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(A),e.__H.__h=[]}catch(t){e.__H.__h=[],c.YM.__e(t,e.__v)}}c.YM.__b=function(e){o=null,f&&f(e)},c.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=s,e.__N=e.i=void 0}))):(t.__h.forEach(R),t.__h.forEach(A),t.__h=[],r=0)),i=o},c.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&a===c.YM.requestAnimationFrame||((a=c.YM.requestAnimationFrame)||P)(N)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==s&&(e.__=e.__V),e.i=void 0,e.__V=s}))),i=o=null},c.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(R),e.__h=e.__h.filter((function(e){return!e.__||A(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],c.YM.__e(n,e.__v)}})),m&&m(e,t)},c.YM.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{R(e)}catch(e){t=e}})),n.__H=void 0,t&&c.YM.__e(t,n.__v))};var D="function"==typeof requestAnimationFrame;function P(e){var t,n=function(){clearTimeout(r),D&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);D&&(t=requestAnimationFrame(n))}function R(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function A(e){var t=o;e.__c=e.__(),o=t}function T(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function M(e,t){return"function"==typeof t?t(e):t}function I(e,t){for(var n in t)e[n]=t[n];return e}function L(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function F(e){this.props=e}function B(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:L(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,c.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(F.prototype=new c.wA).isPureReactComponent=!0,F.prototype.shouldComponentUpdate=function(e,t){return L(this.props,e)||L(this.state,t)};var H=c.YM.__b;c.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),H&&H(e)};var U="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function W(e){function t(t){var n=I({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=U,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var V=function(e,t){return null==e?null:(0,c.bR)((0,c.bR)(e).map(t))},Y={map:V,forEach:V,count:function(e){return e?(0,c.bR)(e).length:0},only:function(e){var t=(0,c.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:c.bR},z=c.YM.__e;c.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);z(e,t,n,r)};var K=c.YM.unmount;function $(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=I({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return $(e,t,n)}))),e}function q(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return q(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function X(){this.__u=0,this.t=null,this.__b=null}function J(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Q(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,c.az)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function G(){this.u=null,this.o=null}c.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),K&&K(e)},(X.prototype=new c.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=J(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=q(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},X.prototype.componentWillUnmount=function(){this.t=[]},X.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=$(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,c.az)(c.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,c.az)(c.HY,null,t.__a?null:e.children),o]};var Z=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),(0,c.sY)((0,c.az)(ee,{context:t.context},e.__v),t.l)}function ne(e,t){var n=(0,c.az)(te,{__v:e,i:t});return n.containerInfo=t,n}(G.prototype=new c.wA).__a=function(e){var t=this,n=J(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Z(t,e,r)):o()};n?n(i):i()}},G.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,c.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},G.prototype.componentDidUpdate=G.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Z(e,n,t)}))};var re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ie=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ae=/[A-Z0-9]/g,ce="undefined"!=typeof document,le=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ue(e,t,n){return null==t.__k&&(t.textContent=""),(0,c.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function se(e,t,n){return(0,c.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}c.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(c.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var fe=c.YM.event;function de(){}function pe(){return this.cancelBubble}function me(){return this.defaultPrevented}c.YM.event=function(e){return fe&&(e=fe(e)),e.persist=de,e.isPropagationStopped=pe,e.isDefaultPrevented=me,e.nativeEvent=e};var he,ve={enumerable:!1,configurable:!0,get:function(){return this.class}},ye=c.YM.vnode;c.YM.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||ce&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||le(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":ie.test(o)?o=a:-1===n.indexOf("-")&&oe.test(o)?o=o.replace(ae,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,c.bR)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=(0,c.bR)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",ve)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=re,ye&&ye(e)};var ge=c.YM.__r;c.YM.__r=function(e){ge&&ge(e),he=e.__c};var be=c.YM.diffed;c.YM.diffed=function(e){be&&be(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),he=null};var _e={ReactCurrentDispatcher:{current:{readContext:function(e){return he.__n[e.__c].props.value}}}},we="17.0.2";function Ee(e){return c.az.bind(null,e)}function xe(e){return!!e&&e.$$typeof===re}function Oe(e){return xe(e)&&e.type===c.HY}function Se(e){return xe(e)?c.Tm.apply(null,arguments):e}function ke(e){return!!e.__k&&((0,c.sY)(null,e),!0)}function Ce(e){return e&&(e.base||1===e.nodeType&&e)||null}var je=function(e,t){return e(t)},Ne=function(e,t){return e(t)},De=c.HY;function Pe(e){e()}function Re(e){return e}function Ae(){return[!1,Pe]}var Te=_,Me=xe;function Ie(e,t){var n=t(),r=y({h:{__:n,v:t}}),o=r[0].h,i=r[1];return _((function(){o.__=n,o.v=t,Le(o)&&i({h:o})}),[e,n,t]),b((function(){return Le(o)&&i({h:o}),e((function(){Le(o)&&i({h:o})}))}),[e]),n}function Le(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Fe={useState:y,useId:j,useReducer:g,useEffect:b,useLayoutEffect:_,useInsertionEffect:Te,useTransition:Ae,useDeferredValue:Re,useSyncExternalStore:Ie,startTransition:Pe,useRef:w,useImperativeHandle:E,useMemo:x,useCallback:O,useContext:S,useDebugValue:k,version:"17.0.2",Children:Y,render:ue,hydrate:se,unmountComponentAtNode:ke,createPortal:ne,createElement:c.az,createContext:c.kr,createFactory:Ee,cloneElement:Se,createRef:c.Vf,Fragment:c.HY,isValidElement:xe,isElement:Me,isFragment:Oe,findDOMNode:Ce,Component:c.wA,PureComponent:F,memo:B,forwardRef:W,flushSync:Ne,unstable_batchedUpdates:je,StrictMode:De,Suspense:X,SuspenseList:G,lazy:Q,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:_e}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>_,Tm:()=>V,Vf:()=>b,YM:()=>o,ZB:()=>W,az:()=>y,bR:()=>N,kr:()=>Y,sY:()=>U,wA:()=>w});var r,o,i,a,c,l,u,s,f={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var o,i,a,c={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=t[a];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return g(e,c,o,i,null)}function g(e,t,n,r,a){var c={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(c),c}function b(){return{current:null}}function _(e){return e.children}function w(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;tt&&a.sort(u));S.__r=0}function k(e,t,n,r,o,i,a,c,l,u,s){var p,m,h,v,y,g=r&&r.__k||d,b=t.length;for(n.__d=l,C(n,t,g),l=n.__d,p=0;p0?g(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,c=D(o,n,a=r+f,s),o.__i=c,i=null,-1!==c&&(s--,(i=n[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&f--,"function"!=typeof o.type&&(o.__u|=65536)):c!==a&&(c===a+1?f++:c>a?s>l-a?f+=c-a:f--:f=c(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||c=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(c2&&(l.children=arguments.length>3?r.call(arguments,2):n),g(e.type,l,o||e.key,i||e.ref,null)}function Y(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,O(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=d.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},w.prototype.render=_,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,s=0},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},250:(e,t,n)=>{"use strict";var r=n(748),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,c=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,u(o)&&s({inst:o})}),[e,n,t]),a((function(){return u(o)&&s({inst:o}),e((function(){u(o)&&s({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},139:(e,t,n)=>{"use strict";var r=n(748),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,c=r.useRef,l=r.useEffect,u=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return c=t}return c=e}if(t=c,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return l((function(){d.hasValue=!0,d.value=p}),[p]),s(p),p}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(748);const t="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function r(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function o(e){return"nodeType"in e}function i(e){var t,n;return e?r(e)?e:o(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function a(e){const{Document:t}=i(e);return e instanceof t}function c(e){return!r(e)&&e instanceof i(e).HTMLElement}function l(e){return e instanceof i(e).SVGElement}function u(e){return e?r(e)?e.document:o(e)?a(e)?e:c(e)||l(e)?e.ownerDocument:document:document:document}const s=t?e.useLayoutEffect:e.useEffect;function f(t){const n=(0,e.useRef)(t);return s((()=>{n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r{r.current!==t&&(r.current=t)}),n),r}function p(t,n){const r=(0,e.useRef)();return(0,e.useMemo)((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function m(t){const n=f(t),r=(0,e.useRef)(null),o=(0,e.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,o]}function h(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current}let v={};function y(t,n){return(0,e.useMemo)((()=>{if(n)return n;const e=null==v[t]?0:v[t]+1;return v[t]=e,t+"-"+e}),[t,n])}function g(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const b=g(1),_=g(-1);function w(e){if(!e)return!1;const{KeyboardEvent:t}=i(e.target);return t&&e instanceof t}function E(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=i(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const x="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function O(e){return e.matches(x)?e:e.querySelector(x)}const S={display:"none"};function k(t){let{id:n,value:r}=t;return e.default.createElement("div",{id:n,style:S},r)}function C(t){let{id:n,announcement:r,ariaLiveType:o="assertive"}=t;return e.default.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},r)}const j=(0,e.createContext)(null),N={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},D={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function P(t){let{announcements:n=D,container:r,hiddenTextDescribedById:o,screenReaderInstructions:i=N}=t;const{announce:a,announcement:c}=function(){const[t,n]=(0,e.useState)("");return{announce:(0,e.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:t}}(),l=y("DndLiveRegion"),[u,s]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{s(!0)}),[]),function(t){const n=(0,e.useContext)(j);(0,e.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of ");return n(t)}),[t,n])}((0,e.useMemo)((()=>({onDragStart(e){let{active:t}=e;a(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&a(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;a(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;a(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;a(n.onDragCancel({active:t,over:r}))}})),[a,n])),!u)return null;const f=e.default.createElement(e.default.Fragment,null,e.default.createElement(k,{id:o,value:i.draggable}),e.default.createElement(C,{id:l,announcement:c}));return r?(0,e.createPortal)(f,r):f}var R;function A(){}function T(t,n){return(0,e.useMemo)((()=>({sensor:t,options:null!=n?n:{}})),[t,n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(R||(R={}));const M=Object.freeze({x:0,y:0});function I(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function L(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,c=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=L(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(I)};function B(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:M}function H(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const U=H(1);const W={ignoreTransform:!1};function V(e,t){void 0===t&&(t=W);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=i(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:c}=r,l=e.left-a-(1-o)*parseFloat(n),u=e.top-c-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),s=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:s,height:f,top:u,right:l+s,bottom:u+f,left:l}}(n,t,r))}const{top:r,left:o,width:a,height:c,bottom:l,right:u}=n;return{top:r,left:o,width:a,height:c,bottom:l,right:u}}function Y(e){return V(e,{ignoreTransform:!0})}function z(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(a(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!c(o)||l(o))return n;if(n.includes(o))return n;const u=i(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=i(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,u)&&n.push(o),function(e,t){return void 0===t&&(t=i(e).getComputedStyle(e)),"fixed"===t.position}(o,u)?n:r(o.parentNode)}(e):n}function K(e){const[t]=z(e,1);return null!=t?t:null}function $(e){return t&&e?r(e)?e:o(e)?a(e)||e===u(e).scrollingElement?window:c(e)?e:null:null:null}function q(e){return r(e)?e.scrollX:e.scrollLeft}function X(e){return r(e)?e.scrollY:e.scrollTop}function J(e){return{x:q(e),y:X(e)}}var Q;function G(e){return!(!t||!e)&&e===document.scrollingElement}function Z(e){const t={x:0,y:0},n=G(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Q||(Q={}));const ee={x:.2,y:.2};function te(e,t,n,r,o){let{top:i,left:a,right:c,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=ee);const{isTop:u,isBottom:s,isLeft:f,isRight:d}=Z(e),p={x:0,y:0},m={x:0,y:0},h=t.height*o.y,v=t.width*o.x;return!u&&i<=t.top+h?(p.y=Q.Backward,m.y=r*Math.abs((t.top+h-i)/h)):!s&&l>=t.bottom-h&&(p.y=Q.Forward,m.y=r*Math.abs((t.bottom-h-l)/h)),!d&&c>=t.right-v?(p.x=Q.Forward,m.x=r*Math.abs((t.right-v-c)/v)):!f&&a<=t.left+v&&(p.x=Q.Backward,m.x=r*Math.abs((t.left+v-a)/v)),{direction:p,speed:m}}function ne(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function re(e){return e.reduce(((e,t)=>b(e,J(t))),M)}const oe=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+q(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+X(t)),0)}]];class ie{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=z(t),r=re(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of oe)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ae{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ce(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var le,ue;function se(e){e.preventDefault()}function fe(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(le||(le={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(ue||(ue={}));const de={start:[ue.Space,ue.Enter],cancel:[ue.Esc],end:[ue.Space,ue.Enter]},pe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ue.Right:return{...n,x:n.x+25};case ue.Left:return{...n,x:n.x-25};case ue.Down:return{...n,y:n.y+25};case ue.Up:return{...n,y:n.y-25}}};class me{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ae(u(t)),this.windowListeners=new ae(i(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(le.Resize,this.handleCancel),this.windowListeners.add(le.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(le.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=V),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);K(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(M)}handleKeyDown(e){if(w(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=de,coordinateGetter:i=pe,scrollBehavior:a="smooth"}=r,{code:c}=e;if(o.end.includes(c))return void this.handleEnd(e);if(o.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:M;this.referenceCoordinates||(this.referenceCoordinates=u);const s=i(e,{active:t,context:n.current,currentCoordinates:u});if(s){const t=_(s,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:c,isLeft:l,isBottom:u,maxScroll:f,minScroll:d}=Z(n),p=ne(n),m={x:Math.min(o===ue.Right?p.right-p.width/2:p.right,Math.max(o===ue.Right?p.left:p.left+p.width/2,s.x)),y:Math.min(o===ue.Down?p.bottom-p.height/2:p.bottom,Math.max(o===ue.Down?p.top:p.top+p.height/2,s.y))},h=o===ue.Right&&!c||o===ue.Left&&!l,v=o===ue.Down&&!u||o===ue.Up&&!i;if(h&&m.x!==s.x){const e=n.scrollLeft+t.x,i=o===ue.Right&&e<=f.x||o===ue.Left&&e>=d.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===ue.Right?n.scrollLeft-f.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(v&&m.y!==s.y){const e=n.scrollTop+t.y,i=o===ue.Down&&e<=f.y||o===ue.Up&&e>=d.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===ue.Down?n.scrollTop-f.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,b(_(s,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function he(e){return Boolean(e&&"distance"in e)}function ve(e){return Boolean(e&&"delay"in e)}me.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=de,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ye{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=i(e);return e instanceof t?e:u(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=u(a),this.documentListeners=new ae(this.document),this.listeners=new ae(n),this.windowListeners=new ae(i(a)),this.initialCoordinates=null!=(r=E(o))?r:M,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(le.Resize,this.handleCancel),this.windowListeners.add(le.DragStart,se),this.windowListeners.add(le.VisibilityChange,this.handleCancel),this.windowListeners.add(le.ContextMenu,se),this.documentListeners.add(le.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ve(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(he(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(le.Click,fe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(le.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const c=null!=(t=E(e))?t:M,l=_(r,c);if(!n&&a){if(he(a)){if(null!=a.tolerance&&ce(l,a.tolerance))return this.handleCancel();if(ce(l,a.distance))return this.handleStart()}return ve(a)&&ce(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ue.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ge={move:{name:"pointermove"},end:{name:"pointerup"}};class be extends ye{constructor(e){const{event:t}=e,n=u(t.target);super(e,ge,n)}}be.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const _e={move:{name:"mousemove"},end:{name:"mouseup"}};var we;!function(e){e[e.RightClick=2]="RightClick"}(we||(we={}));class Ee extends ye{constructor(e){super(e,_e,u(e.event.target))}}Ee.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==we.RightClick&&(null==r||r({event:n}),!0)}}];const xe={move:{name:"touchmove"},end:{name:"touchend"}};class Oe extends ye{constructor(e){super(e,xe)}static setup(){return window.addEventListener(xe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(xe.move.name,e)};function e(){}}}var Se,ke;Oe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Se||(Se={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ke||(ke={}));const Ce={x:{[Q.Backward]:!1,[Q.Forward]:!1},y:{[Q.Backward]:!1,[Q.Forward]:!1}};var je,Ne;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(je||(je={})),function(e){e.Optimized="optimized"}(Ne||(Ne={}));const De=new Map;function Pe(e,t){return p((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Re(t){let{callback:n,disabled:r}=t;const o=f(n),i=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[r]);return(0,e.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Ae(e){return new ie(V(e),e)}function Te(t,n,r){void 0===n&&(n=Ae);const[o,i]=(0,e.useReducer)((function(e){if(!t)return null;var o;if(!1===t.isConnected)return null!=(o=null!=e?e:r)?o:null;const i=n(t);return JSON.stringify(e)===JSON.stringify(i)?e:i}),null),a=function(t){let{callback:n,disabled:r}=t;const o=f(n),i=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,r]);return(0,e.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){i();break}}}}),c=Re({callback:i});return s((()=>{i(),t?(null==c||c.observe(t),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==a||a.disconnect())}),[t]),o}const Me=[];function Ie(t,n){void 0===n&&(n=[]);const r=(0,e.useRef)(null);return(0,e.useEffect)((()=>{r.current=null}),n),(0,e.useEffect)((()=>{const e=t!==M;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?_(t,r.current):M}function Le(t){return(0,e.useMemo)((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const Fe=[];const Be=[{sensor:be,options:{}},{sensor:me,options:{}}],He={current:{}},Ue={draggable:{measure:Y},droppable:{measure:Y,strategy:je.WhileDragging,frequency:Ne.Optimized},dragOverlay:{measure:V}};class We extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ve={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new We,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:A},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ue,measureDroppableContainers:A,windowRect:null,measuringScheduled:!1},Ye={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:A,draggableNodes:new Map,over:null,measureDroppableContainers:A},ze=(0,e.createContext)(Ye),Ke=(0,e.createContext)(Ve);function $e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new We}}}function qe(e,t){switch(t.type){case R.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case R.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case R.DragEnd:case R.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case R.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new We(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case R.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new We(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case R.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new We(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Xe(t){let{disabled:n}=t;const{active:r,activatorEvent:o,draggableNodes:i}=(0,e.useContext)(ze),a=h(o),c=h(null==r?void 0:r.id);return(0,e.useEffect)((()=>{if(!n&&!o&&a&&null!=c){if(!w(a))return;if(document.activeElement===a.target)return;const e=i.get(c);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=O(e);if(t){t.focus();break}}}))}}),[o,n,i,c,a]),null}const Je=(0,e.createContext)({...M,scaleX:1,scaleY:1});var Qe;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Qe||(Qe={}));const Ge=(0,e.memo)((function(n){var r,o,a,l;let{id:u,accessibility:f,autoScroll:v=!0,children:g,sensors:_=Be,collisionDetection:w=F,measuring:x,modifiers:O,...S}=n;const k=(0,e.useReducer)(qe,void 0,$e),[C,N]=k,[D,A]=function(){const[t]=(0,e.useState)((()=>new Set)),n=(0,e.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]);return[(0,e.useCallback)((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]),n]}(),[T,I]=(0,e.useState)(Qe.Uninitialized),L=T===Qe.Initialized,{draggable:{active:H,nodes:W,translate:Y},droppable:{containers:q}}=C,X=H?W.get(H):null,Z=(0,e.useRef)({initial:null,translated:null}),ee=(0,e.useMemo)((()=>{var e;return null!=H?{id:H,data:null!=(e=null==X?void 0:X.data)?e:He,rect:Z}:null}),[H,X]),ne=(0,e.useRef)(null),[oe,ae]=(0,e.useState)(null),[ce,le]=(0,e.useState)(null),ue=d(S,Object.values(S)),se=y("DndDescribedBy",u),fe=(0,e.useMemo)((()=>q.getEnabled()),[q]),de=(_e=x,(0,e.useMemo)((()=>({draggable:{...Ue.draggable,...null==_e?void 0:_e.draggable},droppable:{...Ue.droppable,...null==_e?void 0:_e.droppable},dragOverlay:{...Ue.dragOverlay,...null==_e?void 0:_e.dragOverlay}})),[null==_e?void 0:_e.draggable,null==_e?void 0:_e.droppable,null==_e?void 0:_e.dragOverlay])),{droppableRects:pe,measureDroppableContainers:me,measuringScheduled:he}=function(t,n){let{dragging:r,dependencies:o,config:i}=n;const[a,c]=(0,e.useState)(null),{frequency:l,measure:u,strategy:s}=i,f=(0,e.useRef)(t),m=function(){switch(s){case je.Always:return!1;case je.BeforeDragging:return r;default:return!r}}(),h=d(m),v=(0,e.useCallback)((function(e){void 0===e&&(e=[]),h.current||c((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),y=(0,e.useRef)(null),g=p((e=>{if(m&&!r)return De;if(!e||e===De||f.current!==t||null!=a){const e=new Map;for(let n of t){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new ie(u(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,a,r,m,u]);return(0,e.useEffect)((()=>{f.current=t}),[t]),(0,e.useEffect)((()=>{m||v()}),[r,m]),(0,e.useEffect)((()=>{a&&a.length>0&&c(null)}),[JSON.stringify(a)]),(0,e.useEffect)((()=>{m||"number"!=typeof l||null!==y.current||(y.current=setTimeout((()=>{v(),y.current=null}),l))}),[l,m,v,...o]),{droppableRects:g,measureDroppableContainers:v,measuringScheduled:null!=a}}(fe,{dragging:L,dependencies:[Y.x,Y.y],config:de.droppable}),ve=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return p((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(W,H),ye=(0,e.useMemo)((()=>ce?E(ce):null),[ce]),ge=function(){const e=!1===(null==oe?void 0:oe.autoScrollEnabled),t="object"==typeof v?!1===v.enabled:!1===v,n=L&&!e&&!t;return"object"==typeof v?{...v,enabled:n}:{enabled:n}}(),be=function(e,t){return Pe(e,t)}(ve,de.draggable.measure);var _e;!function(t){let{activeNode:n,measure:r,initialRect:o,config:i=!0}=t;const a=(0,e.useRef)(!1),{x:c,y:l}="boolean"==typeof i?{x:i,y:i}:i;s((()=>{if(!c&&!l||!n)return void(a.current=!1);if(a.current||!o)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=B(r(e),o);if(c||(t.x=0),l||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=K(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,c,l,o,r])}({activeNode:H?W.get(H):null,config:ge.layoutShiftCompensation,initialRect:be,measure:de.draggable.measure});const we=Te(ve,de.draggable.measure,be),Ee=Te(ve?ve.parentElement:null),xe=(0,e.useRef)({activatorEvent:null,active:null,activeNode:ve,collisionRect:null,collisions:null,droppableRects:pe,draggableNodes:W,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Oe=q.getNodeFor(null==(r=xe.current.over)?void 0:r.id),Ne=function(t){let{measure:n}=t;const[r,o]=(0,e.useState)(null),i=Re({callback:(0,e.useCallback)((e=>{for(const{target:t}of e)if(c(t)){o((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,e.useCallback)((e=>{const t=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return c(t)?t:e}(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),o(t?n(t):null)}),[n,i]),[l,u]=m(a);return(0,e.useMemo)((()=>({nodeRef:l,rect:r,setRef:u})),[r,l,u])}({measure:de.dragOverlay.measure}),Ae=null!=(o=Ne.nodeRef.current)?o:ve,We=L?null!=(a=Ne.rect)?a:we:null,Ve=Boolean(Ne.nodeRef.current&&Ne.rect),Ye=B(Ge=Ve?null:we,Pe(Ge));var Ge;const Ze=Le(Ae?i(Ae):null),et=function(t){const n=(0,e.useRef)(t),r=p((e=>t?e&&e!==Me&&t&&n.current&&t.parentNode===n.current.parentNode?e:z(t):Me),[t]);return(0,e.useEffect)((()=>{n.current=t}),[t]),r}(L?null!=Oe?Oe:ve:null),tt=function(t,n){void 0===n&&(n=V);const[r]=t,o=Le(r?i(r):null),[a,c]=(0,e.useReducer)((function(){return t.length?t.map((e=>G(e)?o:new ie(n(e),e))):Fe}),Fe),l=Re({callback:c});return t.length>0&&a===Fe&&c(),s((()=>{t.length?t.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),c())}),[t]),a}(et),nt=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(O,{transform:{x:Y.x-Ye.x,y:Y.y-Ye.y,scaleX:1,scaleY:1},activatorEvent:ce,active:ee,activeNodeRect:we,containerNodeRect:Ee,draggingNodeRect:We,over:xe.current.over,overlayNodeRect:Ne.rect,scrollableAncestors:et,scrollableAncestorRects:tt,windowRect:Ze}),rt=ye?b(ye,Y):null,ot=function(t){const[n,r]=(0,e.useState)(null),o=(0,e.useRef)(t),i=(0,e.useCallback)((e=>{const t=$(e.target);t&&r((e=>e?(e.set(t,J(t)),new Map(e)):null))}),[]);return(0,e.useEffect)((()=>{const e=o.current;if(t!==e){n(e);const a=t.map((e=>{const t=$(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,J(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),o.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=$(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,t]),(0,e.useMemo)((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>b(e,t)),M):re(t):M),[t,n])}(et),it=Ie(ot),at=Ie(ot,[we]),ct=b(nt,it),lt=We?U(We,nt):null,ut=ee&<?w({active:ee,collisionRect:lt,droppableRects:pe,droppableContainers:fe,pointerCoordinates:rt}):null,st=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n.id}(ut),[ft,dt]=(0,e.useState)(null),pt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ve?nt:b(nt,at),null!=(l=null==ft?void 0:ft.rect)?l:null,we),mt=(0,e.useCallback)(((t,n)=>{let{sensor:r,options:o}=n;if(null==ne.current)return;const i=W.get(ne.current);if(!i)return;const a=t.nativeEvent,c=new r({active:ne.current,activeNode:i,event:a,options:o,context:xe,onStart(t){const n=ne.current;if(null==n)return;const r=W.get(n);if(!r)return;const{onDragStart:o}=ue.current,i={active:{id:n,data:r.data,rect:Z}};(0,e.unstable_batchedUpdates)((()=>{null==o||o(i),I(Qe.Initializing),N({type:R.DragStart,initialCoordinates:t,active:n}),D({type:"onDragStart",event:i})}))},onMove(e){N({type:R.DragMove,coordinates:e})},onEnd:l(R.DragEnd),onCancel:l(R.DragCancel)});function l(t){return async function(){const{active:n,collisions:r,over:o,scrollAdjustedTranslate:i}=xe.current;let c=null;if(n&&i){const{cancelDrop:e}=ue.current;c={activatorEvent:a,active:n,collisions:r,delta:i,over:o},t===R.DragEnd&&"function"==typeof e&&await Promise.resolve(e(c))&&(t=R.DragCancel)}ne.current=null,(0,e.unstable_batchedUpdates)((()=>{N({type:t}),I(Qe.Uninitialized),dt(null),ae(null),le(null);const e=t===R.DragEnd?"onDragEnd":"onDragCancel";if(c){const t=ue.current[e];null==t||t(c),D({type:e,event:c})}}))}}(0,e.unstable_batchedUpdates)((()=>{ae(c),le(t.nativeEvent)}))}),[W]),ht=(0,e.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=W.get(r);if(null!==ne.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},ne.current=r,mt(n,t))}),[W,mt]),vt=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(_,ht);!function(n){(0,e.useEffect)((()=>{if(!t)return;const e=n.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),n.map((e=>{let{sensor:t}=e;return t})))}(_),s((()=>{we&&T===Qe.Initializing&&I(Qe.Initialized)}),[we,T]),(0,e.useEffect)((()=>{const{onDragMove:t}=ue.current,{active:n,activatorEvent:r,collisions:o,over:i}=xe.current;if(!n||!r)return;const a={active:n,activatorEvent:r,collisions:o,delta:{x:ct.x,y:ct.y},over:i};(0,e.unstable_batchedUpdates)((()=>{null==t||t(a),D({type:"onDragMove",event:a})}))}),[ct.x,ct.y]),(0,e.useEffect)((()=>{const{active:t,activatorEvent:n,collisions:r,droppableContainers:o,scrollAdjustedTranslate:i}=xe.current;if(!t||null==ne.current||!n||!i)return;const{onDragOver:a}=ue.current,c=o.get(st),l=c&&c.rect.current?{id:c.id,rect:c.rect.current,data:c.data,disabled:c.disabled}:null,u={active:t,activatorEvent:n,collisions:r,delta:{x:i.x,y:i.y},over:l};(0,e.unstable_batchedUpdates)((()=>{dt(l),null==a||a(u),D({type:"onDragOver",event:u})}))}),[st]),s((()=>{xe.current={activatorEvent:ce,active:ee,activeNode:ve,collisionRect:lt,collisions:ut,droppableRects:pe,draggableNodes:W,draggingNode:Ae,draggingNodeRect:We,droppableContainers:q,over:ft,scrollableAncestors:et,scrollAdjustedTranslate:ct},Z.current={initial:We,translated:lt}}),[ee,ve,ut,lt,W,Ae,We,pe,q,ft,et,ct]),function(t){let{acceleration:n,activator:r=Se.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:c=5,order:l=ke.TreeOrder,pointerCoordinates:u,scrollableAncestors:s,scrollableAncestorRects:f,delta:d,threshold:m}=t;const v=function(e){let{delta:t,disabled:n}=e;const r=h(t);return p((e=>{if(n||!r||!e)return Ce;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[Q.Backward]:e.x[Q.Backward]||-1===o,[Q.Forward]:e.x[Q.Forward]||1===o},y:{[Q.Backward]:e.y[Q.Backward]||-1===i,[Q.Forward]:e.y[Q.Forward]||1===i}}}),[n,t,r])}({delta:d,disabled:!a}),[y,g]=function(){const t=(0,e.useRef)(null);return[(0,e.useCallback)(((e,n)=>{t.current=setInterval(e,n)}),[]),(0,e.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),b=(0,e.useRef)({x:0,y:0}),_=(0,e.useRef)({x:0,y:0}),w=(0,e.useMemo)((()=>{switch(r){case Se.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Se.DraggableRect:return i}}),[r,i,u]),E=(0,e.useRef)(null),x=(0,e.useCallback)((()=>{const e=E.current;if(!e)return;const t=b.current.x*_.current.x,n=b.current.y*_.current.y;e.scrollBy(t,n)}),[]),O=(0,e.useMemo)((()=>l===ke.TreeOrder?[...s].reverse():s),[l,s]);(0,e.useEffect)((()=>{if(a&&s.length&&w){for(const e of O){if(!1===(null==o?void 0:o(e)))continue;const t=s.indexOf(e),r=f[t];if(!r)continue;const{direction:i,speed:a}=te(e,r,w,n,m);for(const e of["x","y"])v[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return g(),E.current=e,y(x,c),b.current=a,void(_.current=i)}b.current={x:0,y:0},_.current={x:0,y:0},g()}else g()}),[n,x,o,g,a,c,JSON.stringify(w),JSON.stringify(v),y,s,O,f,JSON.stringify(m)])}({...ge,delta:Y,draggingRect:lt,pointerCoordinates:rt,scrollableAncestors:et,scrollableAncestorRects:tt});const yt=(0,e.useMemo)((()=>({active:ee,activeNode:ve,activeNodeRect:we,activatorEvent:ce,collisions:ut,containerNodeRect:Ee,dragOverlay:Ne,draggableNodes:W,droppableContainers:q,droppableRects:pe,over:ft,measureDroppableContainers:me,scrollableAncestors:et,scrollableAncestorRects:tt,measuringConfiguration:de,measuringScheduled:he,windowRect:Ze})),[ee,ve,we,ce,ut,Ee,Ne,W,q,pe,ft,me,et,tt,de,he,Ze]),gt=(0,e.useMemo)((()=>({activatorEvent:ce,activators:vt,active:ee,activeNodeRect:we,ariaDescribedById:{draggable:se},dispatch:N,draggableNodes:W,over:ft,measureDroppableContainers:me})),[ce,vt,ee,we,N,se,W,ft,me]);return e.default.createElement(j.Provider,{value:A},e.default.createElement(ze.Provider,{value:gt},e.default.createElement(Ke.Provider,{value:yt},e.default.createElement(Je.Provider,{value:pt},g)),e.default.createElement(Xe,{disabled:!1===(null==f?void 0:f.restoreFocus)})),e.default.createElement(P,{...f,hiddenTextDescribedById:se}))})),Ze=(0,e.createContext)(null),et="button",tt="Droppable";function nt(t){let{id:n,data:r,disabled:o=!1,attributes:i}=t;const a=y(tt),{activators:c,activatorEvent:l,active:u,activeNodeRect:f,ariaDescribedById:p,draggableNodes:h,over:v}=(0,e.useContext)(ze),{role:g=et,roleDescription:b="draggable",tabIndex:_=0}=null!=i?i:{},w=(null==u?void 0:u.id)===n,E=(0,e.useContext)(w?Je:Ze),[x,O]=m(),[S,k]=m(),C=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{let{eventName:r,handler:o}=t;return e[r]=e=>{o(e,n)},e}),{})),[t,n])}(c,n),j=d(r);return s((()=>(h.set(n,{id:n,key:a,node:x,activatorNode:S,data:j}),()=>{const e=h.get(n);e&&e.key===a&&h.delete(n)})),[h,n]),{active:u,activatorEvent:l,activeNodeRect:f,attributes:(0,e.useMemo)((()=>({role:g,tabIndex:_,"aria-disabled":o,"aria-pressed":!(!w||g!==et)||void 0,"aria-roledescription":b,"aria-describedby":p.draggable})),[o,g,_,w,b,p.draggable]),isDragging:w,listeners:o?void 0:C,node:x,over:v,setNodeRef:O,setActivatorNodeRef:k,transform:E}}const rt="Droppable",ot={timeout:25};function it(t){let{data:n,disabled:r=!1,id:o,resizeObserverConfig:i}=t;const a=y(rt),{active:c,dispatch:l,over:u,measureDroppableContainers:f}=(0,e.useContext)(ze),p=(0,e.useRef)({disabled:r}),h=(0,e.useRef)(!1),v=(0,e.useRef)(null),g=(0,e.useRef)(null),{disabled:b,updateMeasurementsFor:_,timeout:w}={...ot,...i},E=d(null!=_?_:o),x=Re({callback:(0,e.useCallback)((()=>{h.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{f(Array.isArray(E.current)?E.current:[E.current]),g.current=null}),w)):h.current=!0}),[w]),disabled:b||!c}),O=(0,e.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),h.current=!1),e&&x.observe(e))}),[x]),[S,k]=m(O),C=d(n);return(0,e.useEffect)((()=>{x&&S.current&&(x.disconnect(),h.current=!1,x.observe(S.current))}),[S,x]),s((()=>(l({type:R.RegisterDroppable,element:{id:o,key:a,disabled:r,node:S,rect:v,data:C}}),()=>l({type:R.UnregisterDroppable,key:a,id:o}))),[o]),(0,e.useEffect)((()=>{r!==p.current.disabled&&(l({type:R.SetDroppableDisabled,id:o,key:a,disabled:r}),p.current.disabled=r)}),[o,a,r,l]),{active:c,rect:v,isOver:(null==u?void 0:u.id)===o,node:S,over:u,setNodeRef:k}}var at=n(798);const ct=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i},{useDebugValue:lt}=e.default,{useSyncExternalStoreWithSelector:ut}=at,st=(e,t)=>{const n=(e=>e?ct(e):ct)(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=ut(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return lt(r),r}(n,e,r);return Object.assign(r,n),r};function ft(e){return ft="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},ft(e)}function dt(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 pt(e){for(var t=1;t5&&void 0!==arguments[5]&&arguments[5],a={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!i&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(a.transitionDuration="0.001s"),pt(pt({},e),a)):pt(pt({},e),a)},yt=function(e,t){var n=t.isDraggingOver;return pt(pt({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})};function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;var o=e<0?"-":"",i=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),a=i.length>3?i.length%3:0;return o+(a?i.substr(0,a)+r:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-i).toFixed(t).slice(2):"")}catch(t){return e}}var bt=function(e,t){var n=t-e;return Array.from({length:n},(function(t,n){return e+n}))},_t=function(e,t){return e.length===t.length&&e.every((function(e,n){return e.id===t[n].id}))},wt=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))};function Et(e,t){return!e&&!t||!(!e!=!t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(Object.getPrototypeOf(e)!==Object.getPrototypeOf([])||!!Object.keys(e).length==!!Object.keys(t).length)}var xt=n(962);function Ot(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var St=n(697),kt=n.n(St);function Ct(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function jt(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const Nt=2**31-1;function Dt(e,t,n){const r=n-Date.now();e.current=r<=Nt?setTimeout(t,r):setTimeout((()=>Dt(e,t,n)),Nt)}function Pt(){const t=Ct(),n=(0,e.useRef)();return jt((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=Nt?n.current=setTimeout(r,o):Dt(n,r,Date.now()+o))},clear:e}}),[])}var Rt=n(473),At=n.n(Rt);function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function It(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Lt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function Ft(t,n,r){var o=(0,e.useRef)(void 0!==t),i=(0,e.useState)(n),a=i[0],c=i[1],l=void 0!==t,u=o.current;return o.current=l,!l&&u&&a!==n&&c(n),[l?t:a,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oe&&"function"!=typeof e?t=>{e.current=t}:e,Ht=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=Bt(e),r=Bt(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var Ut=n(184),Wt=n.n(Ut);function Vt(){return(0,e.useState)(null)}var Yt=Object.prototype.hasOwnProperty;function zt(e,t,n){for(n of e.keys())if(Kt(n,t))return n}function Kt(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Kt(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=zt(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=zt(t,o)))return!1;if(!Kt(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Yt.call(e,n)&&++r&&!Yt.call(t,n))return!1;if(!(n in t)||!Kt(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function $t(e){return e.split("-")[0]}function qt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xt(e){return e instanceof qt(e).Element||e instanceof Element}function Jt(e){return e instanceof qt(e).HTMLElement||e instanceof HTMLElement}function Qt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qt(e).ShadowRoot||e instanceof ShadowRoot)}var Gt=Math.max,Zt=Math.min,en=Math.round;function tn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function nn(){return!/^((?!chrome|android).)*safari/i.test(tn())}function rn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jt(e)&&(o=e.offsetWidth>0&&en(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&en(r.height)/e.offsetHeight||1);var a=(Xt(e)?qt(e):window).visualViewport,c=!nn()&&n,l=(r.left+(c&&a?a.offsetLeft:0))/o,u=(r.top+(c&&a?a.offsetTop:0))/i,s=r.width/o,f=r.height/i;return{width:s,height:f,top:u,right:l+s,bottom:u+f,left:l,x:l,y:u}}function on(e){var t=rn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function an(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qt(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(e){return e?(e.nodeName||"").toLowerCase():null}function ln(e){return qt(e).getComputedStyle(e)}function un(e){return["table","td","th"].indexOf(cn(e))>=0}function sn(e){return((Xt(e)?e.ownerDocument:e.document)||window.document).documentElement}function fn(e){return"html"===cn(e)?e:e.assignedSlot||e.parentNode||(Qt(e)?e.host:null)||sn(e)}function dn(e){return Jt(e)&&"fixed"!==ln(e).position?e.offsetParent:null}function pn(e){for(var t=qt(e),n=dn(e);n&&un(n)&&"static"===ln(n).position;)n=dn(n);return n&&("html"===cn(n)||"body"===cn(n)&&"static"===ln(n).position)?t:n||function(e){var t=/firefox/i.test(tn());if(/Trident/i.test(tn())&&Jt(e)&&"fixed"===ln(e).position)return null;var n=fn(e);for(Qt(n)&&(n=n.host);Jt(n)&&["html","body"].indexOf(cn(n))<0;){var r=ln(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function mn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hn(e,t,n){return Gt(e,Zt(t,n))}function vn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var gn="top",bn="bottom",_n="right",wn="left",En="auto",xn=[gn,bn,_n,wn],On="start",Sn="end",kn="viewport",Cn="popper",jn=xn.reduce((function(e,t){return e.concat([t+"-"+On,t+"-"+Sn])}),[]),Nn=[].concat(xn,[En]).reduce((function(e,t){return e.concat([t,t+"-"+On,t+"-"+Sn])}),[]),Dn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Pn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=$t(n.placement),l=mn(c),u=[wn,_n].indexOf(c)>=0?"height":"width";if(i&&a){var s=function(e,t){return vn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yn(e,xn))}(o.padding,n),f=on(i),d="y"===l?gn:wn,p="y"===l?bn:_n,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],h=a[l]-n.rects.reference[l],v=pn(i),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,b=s[d],_=y-f[u]-s[p],w=y/2-f[u]/2+g,E=hn(b,w,_),x=l;n.modifiersData[r]=((t={})[x]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&an(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rn(e){return e.split("-")[1]}var An={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,s=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,m=a.y,h=void 0===m?0:m,v="function"==typeof s?s({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=wn,_=gn,w=window;if(u){var E=pn(n),x="clientHeight",O="clientWidth";E===qt(n)&&"static"!==ln(E=sn(n)).position&&"absolute"===c&&(x="scrollHeight",O="scrollWidth"),(o===gn||(o===wn||o===_n)&&i===Sn)&&(_=bn,h-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[x])-r.height,h*=l?1:-1),o!==wn&&(o!==gn&&o!==bn||i!==Sn)||(b=_n,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[O])-r.width,p*=l?1:-1)}var S,k=Object.assign({position:c},u&&An),C=!0===s?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:en(n*o)/o||0,y:en(r*o)/o||0}}({x:p,y:h},qt(n)):{x:p,y:h};return p=C.x,h=C.y,l?Object.assign({},k,((S={})[_]=g?"0":"",S[b]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[_]=g?h+"px":"",t[b]=y?p+"px":"",t.transform="",t))}const Mn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,l=void 0===c||c,u={placement:$t(t.placement),variation:Rn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Tn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var In={passive:!0};const Ln={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,c=void 0===a||a,l=qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,In)})),c&&l.addEventListener("resize",n.update,In),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,In)})),c&&l.removeEventListener("resize",n.update,In)}},data:{}};var Fn={left:"right",right:"left",bottom:"top",top:"bottom"};function Bn(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fn[e]}))}var Hn={start:"end",end:"start"};function Un(e){return e.replace(/start|end/g,(function(e){return Hn[e]}))}function Wn(e){var t=qt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vn(e){return rn(sn(e)).left+Wn(e).scrollLeft}function Yn(e){var t=ln(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zn(e){return["html","body","#document"].indexOf(cn(e))>=0?e.ownerDocument.body:Jt(e)&&Yn(e)?e:zn(fn(e))}function Kn(e,t){var n;void 0===t&&(t=[]);var r=zn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=qt(r),a=o?[i].concat(i.visualViewport||[],Yn(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Kn(fn(a)))}function $n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qn(e,t,n){return t===kn?$n(function(e,t){var n=qt(e),r=sn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=nn();(u||!u&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+Vn(e),y:l}}(e,n)):Xt(t)?function(e,t){var n=rn(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):$n(function(e){var t,n=sn(e),r=Wn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Gt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Gt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Vn(e),l=-r.scrollTop;return"rtl"===ln(o||n).direction&&(c+=Gt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}(sn(e)))}function Xn(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?$t(o):null,a=o?Rn(o):null,c=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case gn:t={x:c,y:n.y-r.height};break;case bn:t={x:c,y:n.y+n.height};break;case _n:t={x:n.x+n.width,y:l};break;case wn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?mn(i):null;if(null!=u){var s="y"===u?"height":"width";switch(a){case On:t[u]=t[u]-(n[s]/2-r[s]/2);break;case Sn:t[u]=t[u]+(n[s]/2-r[s]/2)}}return t}function Jn(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,c=n.boundary,l=void 0===c?"clippingParents":c,u=n.rootBoundary,s=void 0===u?kn:u,f=n.elementContext,d=void 0===f?Cn:f,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,v=void 0===h?0:h,y=vn("number"!=typeof v?v:yn(v,xn)),g=d===Cn?"reference":Cn,b=e.rects.popper,_=e.elements[m?g:d],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Kn(fn(e)),n=["absolute","fixed"].indexOf(ln(e).position)>=0&&Jt(e)?pn(e):e;return Xt(n)?t.filter((function(e){return Xt(e)&&an(e,n)&&"body"!==cn(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce((function(t,n){var o=qn(e,n,r);return t.top=Gt(o.top,t.top),t.right=Zt(o.right,t.right),t.bottom=Zt(o.bottom,t.bottom),t.left=Gt(o.left,t.left),t}),qn(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}(Xt(_)?_:_.contextElement||sn(e.elements.popper),l,s,a),E=rn(e.elements.reference),x=Xn({reference:E,element:b,strategy:"absolute",placement:o}),O=$n(Object.assign({},b,x)),S=d===Cn?O:E,k={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},C=e.modifiersData.offset;if(d===Cn&&C){var j=C[o];Object.keys(k).forEach((function(e){var t=[_n,bn].indexOf(e)>=0?1:-1,n=[gn,bn].indexOf(e)>=0?"y":"x";k[e]+=j[n]*t}))}return k}const Qn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,l=n.fallbackPlacements,u=n.padding,s=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,v=t.options.placement,y=$t(v),g=l||(y!==v&&m?function(e){if($t(e)===En)return[];var t=Bn(e);return[Un(e),t,Un(t)]}(v):[Bn(v)]),b=[v].concat(g).reduce((function(e,n){return e.concat($t(n)===En?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Nn:l,s=Rn(r),f=s?c?jn:jn.filter((function(e){return Rn(e)===s})):xn,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Jn(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[$t(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:s,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),_=t.rects.reference,w=t.rects.popper,E=new Map,x=!0,O=b[0],S=0;S=0,D=N?"width":"height",P=Jn(t,{placement:k,boundary:s,rootBoundary:f,altBoundary:d,padding:u}),R=N?j?_n:wn:j?bn:gn;_[D]>w[D]&&(R=Bn(R));var A=Bn(R),T=[];if(i&&T.push(P[C]<=0),c&&T.push(P[R]<=0,P[A]<=0),T.every((function(e){return e}))){O=k,x=!1;break}E.set(k,T)}if(x)for(var M=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},I=m?3:1;I>0&&"break"!==M(I);I--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Gn(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Zn(e){return[gn,_n,bn,wn].some((function(t){return e[t]>=0}))}const er={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Jn(t,{elementContext:"reference"}),c=Jn(t,{altBoundary:!0}),l=Gn(a,r),u=Gn(c,o,i),s=Zn(l),f=Zn(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:s,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":f})}},tr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Nn.reduce((function(e,n){return e[n]=function(e,t,n){var r=$t(e),o=[wn,gn].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[wn,_n].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],l=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},nr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Xn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},rr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,s=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,v=Jn(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:s}),y=$t(t.placement),g=Rn(t.placement),b=!g,_=mn(y),w="x"===_?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(E){if(i){var N,D="y"===_?gn:wn,P="y"===_?bn:_n,R="y"===_?"height":"width",A=E[_],T=A+v[D],M=A-v[P],I=p?-O[R]/2:0,L=g===On?x[R]:O[R],F=g===On?-O[R]:-x[R],B=t.elements.arrow,H=p&&B?on(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[D],V=U[P],Y=hn(0,x[R],H[R]),z=b?x[R]/2-I-Y-W-k.mainAxis:L-Y-W-k.mainAxis,K=b?-x[R]/2+I+Y+V+k.mainAxis:F+Y+V+k.mainAxis,$=t.elements.arrow&&pn(t.elements.arrow),q=$?"y"===_?$.clientTop||0:$.clientLeft||0:0,X=null!=(N=null==C?void 0:C[_])?N:0,J=A+K-X,Q=hn(p?Zt(T,A+z-X-q):T,A,p?Gt(M,J):M);E[_]=Q,j[_]=Q-A}if(c){var G,Z="x"===_?gn:wn,ee="x"===_?bn:_n,te=E[w],ne="y"===w?"height":"width",re=te+v[Z],oe=te-v[ee],ie=-1!==[gn,wn].indexOf(y),ae=null!=(G=null==C?void 0:C[w])?G:0,ce=ie?re:te-x[ne]-O[ne]-ae+k.altAxis,le=ie?te+x[ne]+O[ne]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=hn(e,t,n);return r>n?n:r}(ce,te,le):hn(p?ce:re,te,p?le:oe);E[w]=ue,j[w]=ue-te}t.modifiersData[r]=j}},requiresIfExists:["offset"]};function or(e,t,n){void 0===n&&(n=!1);var r,o,i=Jt(t),a=Jt(t)&&function(e){var t=e.getBoundingClientRect(),n=en(t.width)/e.offsetWidth||1,r=en(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),c=sn(t),l=rn(e,a,n),u={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&(("body"!==cn(t)||Yn(c))&&(u=(r=t)!==qt(r)&&Jt(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Wn(r)),Jt(t)?((s=rn(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):c&&(s.x=Vn(c))),{x:l.left+u.scrollLeft-s.x,y:l.top+u.scrollTop-s.y,width:l.width,height:l.height}}function ir(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ar={placement:"bottom",modifiers:[],strategy:"absolute"};function cr(){for(var e=arguments.length,t=new Array(e),n=0;n{}},fr={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},dr=[],pr=function(t,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:a="absolute",modifiers:c=dr}=r,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,ur);const u=(0,e.useRef)(c),s=(0,e.useRef)(),f=(0,e.useCallback)((()=>{var e;null==(e=s.current)||e.update()}),[]),d=(0,e.useCallback)((()=>{var e;null==(e=s.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=Ct();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:i,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),h=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:f,forceUpdate:d,placement:e.placement})}})),[f,d,m]),v=(0,e.useMemo)((()=>(Kt(u.current,c)||(u.current=c),u.current)),[c]);return(0,e.useEffect)((()=>{s.current&&o&&s.current.setOptions({placement:i,strategy:a,modifiers:[...v,h,sr]})}),[a,i,h,o,v]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return s.current=lr(t,n,Object.assign({},l,{placement:i,strategy:a,modifiers:[...v,fr,h]})),()=>{null!=s.current&&(s.current.destroy(),s.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},mr=!("undefined"==typeof window||!window.document||!window.document.createElement);var hr=!1,vr=!1;try{var yr={get passive(){return hr=!0},get once(){return vr=hr=!0}};mr&&(window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,!0))}catch(e){}const gr=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!vr){var o=r.once,i=r.capture,a=n;!vr&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,hr?r:i)}e.addEventListener(t,n,r)},br=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},_r=function(e,t,n,r){return gr(e,t,n,r),function(){br(e,t,n,r)}};function wr(e){return e&&e.ownerDocument||document}const Er=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function xr(t){const n=Er(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Or=()=>{},Sr=e=>e&&("current"in e?e.current:e),kr={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Cr(e){return"Escape"===e.code||27===e.keyCode}const jr=()=>{},Nr=function(t,n,{disabled:r,clickTrigger:o}={}){const i=n||jr;!function(t,n=Or,{disabled:r,clickTrigger:o="click"}={}){const i=(0,e.useRef)(!1),a=(0,e.useRef)(!1),c=(0,e.useCallback)((e=>{const n=Sr(t);var r;At()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!Ot(n,e.target)||a.current,a.current=!1}),[t]),l=xr((e=>{const n=Sr(t);n&&Ot(n,e.target)&&(a.current=!0)})),u=xr((e=>{i.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const i=wr(Sr(t)),a=i.defaultView||window;let s=null!=(e=a.event)?e:null==(n=a.parent)?void 0:n.event,f=null;kr[o]&&(f=_r(i,kr[o],l,!0));const d=_r(i,o,c,!0),p=_r(i,o,(e=>{e!==s?u(e):s=void 0}));let m=[];return"ontouchstart"in i.documentElement&&(m=[].slice.call(i.body.children).map((e=>_r(e,"mousemove",Or)))),()=>{null==f||f(),d(),p(),m.forEach((e=>e()))}}),[t,r,o,c,l,u])}(t,i,{disabled:r,clickTrigger:o});const a=xr((e=>{Cr(e)&&i(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=wr(Sr(t));let n=(e.defaultView||window).event;const o=_r(e,"keyup",(e=>{e!==n?a(e):n=void 0}));return()=>{o()}}),[t,r,a])},Dr=(0,e.createContext)(mr?window:void 0);function Pr(){return(0,e.useContext)(Dr)}Dr.Provider;const Rr=(e,t)=>mr?null==e?(t||wr()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ar(t,n){const r=Pr(),[o,i]=(0,e.useState)((()=>Rr(t,null==r?void 0:r.document)));if(!o){const e=Rr(t);e&&i(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=Rr(t);e!==o&&i(e)}),[t,o]),o}function Tr(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const Mr=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,Ir="undefined"!=typeof document||Mr?e.useLayoutEffect:e.useEffect,Lr=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=(0,e.useRef)(null),c=(0,e.useRef)(n),l=xr(r);(0,e.useEffect)((()=>{n?c.current=!0:l(a.current)}),[n,l]);const u=Ht(a,t.ref),s=(0,e.cloneElement)(t,{ref:u});return n?s:i||!c.current&&o?null:s};var Fr=n(400),Br=0;function Hr(e,t,n,r,o,i){var a,c,l={};for(c in t)"ref"==c?a=t[c]:l[c]=t[c];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Br,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===l[c]&&(l[c]=a[c]);return Fr.YM.vnode&&Fr.YM.vnode(u),u}function Ur({children:t,in:n,onExited:r,onEntered:o,transition:i}){const[a,c]=(0,e.useState)(!n);n&&a&&c(!1);const l=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),i=xr(n);return Ir((()=>{if(!r.current)return;let e=!1;return i({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,i]),Ir((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(c(!0),null==r||r(e.element)))}),(t=>{throw e.in||c(!0),t}))}}),u=Ht(l,t.ref);return a&&!n?null:(0,e.cloneElement)(t,{ref:u})}function Wr(e,t,n){return e?Hr(e,Object.assign({},n)):t?Hr(Ur,Object.assign({},n,{transition:t})):Hr(Lr,Object.assign({},n))}Array.isArray;const Vr=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:i,containerPadding:a,popperConfig:c={},transition:l,runTransition:u}=t,[s,f]=Vt(),[d,p]=Vt(),m=Ht(f,n),h=Ar(t.container),v=Ar(t.target),[y,g]=(0,e.useState)(!t.show),b=pr(v,s,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:c,popperConfig:l={}}){var u,s,f,d,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:Tr(Object.assign({},m,{eventListeners:{enabled:t,options:null==(u=m.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},null==(s=m.preventOverflow)?void 0:s.options):null==(f=m.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:o},null==(d=m.offset)?void 0:d.options)},arrow:Object.assign({},m.arrow,{enabled:!!c,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:c})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:a||5,flip:r,offset:o,arrowElement:d,popperConfig:c}));t.show&&y&&g(!1);const _=t.show||!y;if(Nr(s,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!_)return null;const{onExit:w,onExiting:E,onEnter:x,onEntering:O,onEntered:S}=t;let k=t.children(Object.assign({},b.attributes.popper,{style:b.styles.popper,ref:m}),{popper:b,placement:i,show:!!t.show,arrowProps:Object.assign({},b.attributes.arrow,{style:b.styles.arrow,ref:p})});return k=Wr(l,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:k,onExit:w,onExiting:E,onExited:(...e)=>{g(!0),t.onExited&&t.onExited(...e)},onEnter:x,onEntering:O,onEntered:S}),h?e.default.createPortal(k,h):null}));Vr.displayName="Overlay";const Yr=Vr;function zr(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const Kr=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:$r,Provider:qr}=Kr;function Xr(t,n){const{prefixes:r}=(0,e.useContext)(Kr);return t||r[n]||n}function Jr(){const{dir:t}=(0,e.useContext)(Kr);return"rtl"===t}const Qr=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"popover-header"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));Qr.displayName="PopoverHeader";const Gr=Qr,Zr=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"popover-body"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));Zr.displayName="PopoverBody";const eo=Zr;function to(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function no(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const ro=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:c,popper:l,show:u,...s},f)=>{const d=Xr(e,"popover"),p=Jr(),[m]=(null==t?void 0:t.split("-"))||[],h=to(m,p);let v=r;return u&&!c&&(v={...r,...no(null==l?void 0:l.strategy)}),Hr("div",{ref:f,role:"tooltip",style:v,"x-placement":m,className:Wt()(n,d,m&&`bs-popover-${h}`),...s,children:[Hr("div",{className:"popover-arrow",...a}),i?Hr(eo,{children:o}):o]})})),oo=Object.assign(ro,{Header:Gr,Body:eo,POPPER_OFFSET:[0,8]}),io=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:c,show:l,...u},s)=>{e=Xr(e,"tooltip");const f=Jr(),[d]=(null==t?void 0:t.split("-"))||[],p=to(d,f);let m=r;return l&&!a&&(m={...r,...no(null==c?void 0:c.strategy)}),Hr("div",{ref:s,style:m,role:"tooltip","x-placement":d,className:Wt()(n,e,`bs-tooltip-${p}`),...u,children:[Hr("div",{className:"tooltip-arrow",...i}),Hr("div",{className:`${e}-inner`,children:o})]})}));io.displayName="Tooltip";const ao=Object.assign(io,{TOOLTIP_OFFSET:[0,6]});function co(e,t){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},co(e,t)}const lo=e.default.createContext(null);var uo="unmounted",so="exited",fo="entering",po="entered",mo="exiting",ho=function(t){var n,r;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=so,r.appearStatus=fo):o=po:o=e.unmountOnExit||e.mountOnEnter?uo:so,r.state={status:o},r.nextCallback=null,r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,co(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uo?{status:so}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==fo&&n!==po&&(t=fo):n!==fo&&n!==po||(t=mo)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(t,n){if(void 0===t&&(t=!1),null!==n)if(this.cancelNextCallback(),n===fo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===so&&this.setState({status:uo})},i.performEnter=function(t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.props.nodeRef?[o]:[e.default.findDOMNode(this),o],a=i[0],c=i[1],l=this.getTimeouts(),u=o?l.appear:l.enter;t||r?(this.props.onEnter(a,c),this.safeSetState({status:fo},(function(){n.props.onEntering(a,c),n.onTransitionEnd(u,(function(){n.safeSetState({status:po},(function(){n.props.onEntered(a,c)}))}))}))):this.safeSetState({status:po},(function(){n.props.onEntered(a)}))},i.performExit=function(){var t=this,n=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:e.default.findDOMNode(this);n?(this.props.onExit(o),this.safeSetState({status:mo},(function(){t.props.onExiting(o),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:so},(function(){t.props.onExited(o)}))}))}))):this.safeSetState({status:so},(function(){t.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this),o=null==t&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],c=i[1];this.props.addEndListener(a,c)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===uo)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Mt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.default.createElement(lo.Provider,{value:null},"function"==typeof r?r(t,o):e.default.cloneElement(e.default.Children.only(r),o))},o}(e.default.Component);function vo(){}ho.contextType=lo,ho.propTypes={},ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vo,onEntering:vo,onEntered:vo,onExit:vo,onExiting:vo,onExited:vo},ho.UNMOUNTED=uo,ho.EXITED=so,ho.ENTERING=fo,ho.ENTERED=po,ho.EXITING=mo;const yo=ho;var go=/([A-Z])/g,bo=/^ms-/;function _o(e){return function(e){return e.replace(go,"-$1").toLowerCase()}(e).replace(bo,"-ms-")}var wo=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Eo=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(_o(t))||function(e,t){return function(e){var t=wr(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(_o(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!wo.test(e))}(o)?r+=o+"("+i+") ":n+=_o(o)+": "+i+";":e.style.removeProperty(_o(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function xo(e,t,n,r){var o,i;null==n&&(i=-1===(o=Eo(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=_r(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),c=_r(e,"transitionend",t);return function(){a(),c()}}function Oo(e,t){const n=Eo(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function So(e,t){const n=Oo(e,"transitionDuration"),r=Oo(e,"transitionDelay"),o=xo(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function ko(e){e.offsetHeight}function Co(t){return t&&"setState"in t?e.default.findDOMNode(t):null!=t?t:null}const jo=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:a,addEndListener:c,children:l,childRef:u,...s},f)=>{const d=(0,e.useRef)(null),p=Ht(d,u),m=e=>{p(Co(e))},h=e=>t=>{e&&d.current&&e(d.current,t)},v=(0,e.useCallback)(h(t),[t]),y=(0,e.useCallback)(h(n),[n]),g=(0,e.useCallback)(h(r),[r]),b=(0,e.useCallback)(h(o),[o]),_=(0,e.useCallback)(h(i),[i]),w=(0,e.useCallback)(h(a),[a]),E=(0,e.useCallback)(h(c),[c]);return Hr(yo,{ref:f,...s,onEnter:v,onEntered:g,onEntering:y,onExit:b,onExited:w,onExiting:_,addEndListener:E,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:m}):e.default.cloneElement(l,{ref:m})})})),No={[fo]:"show",[po]:"show"},Do=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...i},a)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=(0,e.useCallback)(((e,t)=>{ko(e),null==o||o(e,t)}),[o]);return Hr(jo,{ref:a,addEndListener:So,...c,onEnter:l,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:Wt()("fade",t,n.props.className,No[o],r[o])})})}));Do.displayName="Fade";const Po=Do,Ro=e.forwardRef((({children:t,transition:n=Po,popperConfig:r={},rootClose:o=!1,placement:i="top",show:a=!1,...c},l)=>{const u=(0,e.useRef)({}),[s,f]=(0,e.useState)(null),[d,p]=function(t){const n=(0,e.useRef)(null),r=Xr(void 0,"popover"),o=Xr(void 0,"tooltip"),i=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(zr(n.current,r))return oo.POPPER_OFFSET;if(zr(n.current,o))return ao.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[i]]}(c.offset),m=Ht(l,d),h=!0===n?Po:n||void 0,v=xr((e=>{f(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return Ir((()=>{s&&c.target&&(null==u.current.scheduleUpdate||u.current.scheduleUpdate())}),[s,c.target]),(0,e.useEffect)((()=>{a||f(null)}),[a]),Hr(Yr,{...c,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:v},transition:h,rootClose:o,placement:i,show:a,children:(o,{arrowProps:i,popper:a,show:c})=>{var l,f;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Co(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Co(e)))}(o,i);const d=null==a?void 0:a.placement,p=Object.assign(u.current,{state:null==a?void 0:a.state,scheduleUpdate:null==a?void 0:a.update,placement:d,outOfBoundaries:(null==a||null==(l=a.state)||null==(f=l.modifiersData.hide)?void 0:f.isReferenceHidden)||!1,strategy:r.strategy}),m=!!s;return"function"==typeof t?t({...o,placement:d,show:c,...!n&&c&&{className:"show"},popper:p,arrowProps:i,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:d,arrowProps:i,popper:p,hasDoneInitialMeasure:m,className:Wt()(t.props.className,!n&&c&&"show"),style:{...t.props.style,...o.style}})}})}));Ro.displayName="Overlay";const Ao=Ro;function To(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||Ot(o,i)||e(...t)}kt().oneOf(["click","hover","focus"]);const Mo=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:i,defaultShow:a=!1,onToggle:c,delay:l,placement:u,flip:s=u&&-1!==u.indexOf("auto"),...f})=>{const d=(0,e.useRef)(null),p=Ht(d,r.ref),m=Pt(),h=(0,e.useRef)(""),[v,y]=Ft(i,a,c),g=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(l),{onFocus:b,onBlur:_,onClick:w}="function"!=typeof r?e.Children.only(r).props:{},E=(0,e.useCallback)((()=>{m.clear(),h.current="show",g.show?m.set((()=>{"show"===h.current&&y(!0)}),g.show):y(!0)}),[g.show,y,m]),x=(0,e.useCallback)((()=>{m.clear(),h.current="hide",g.hide?m.set((()=>{"hide"===h.current&&y(!1)}),g.hide):y(!1)}),[g.hide,y,m]),O=(0,e.useCallback)(((...e)=>{E(),null==b||b(...e)}),[E,b]),S=(0,e.useCallback)(((...e)=>{x(),null==_||_(...e)}),[x,_]),k=(0,e.useCallback)(((...e)=>{y(!v),null==w||w(...e)}),[w,y,v]),C=(0,e.useCallback)(((...e)=>{To(E,e,"fromElement")}),[E]),j=(0,e.useCallback)(((...e)=>{To(x,e,"toElement")}),[x]),N=null==t?[]:[].concat(t),D={ref:e=>{p(Co(e))}};return-1!==N.indexOf("click")&&(D.onClick=k),-1!==N.indexOf("focus")&&(D.onFocus=O,D.onBlur=S),-1!==N.indexOf("hover")&&(D.onMouseOver=C,D.onMouseOut=j),Hr(Fr.HY,{children:["function"==typeof r?r(D):(0,e.cloneElement)(r,D),Hr(Ao,{...f,show:v,onHide:x,flip:s,placement:u,popperConfig:o,target:d.current,children:n})]})};function Io(t){var n=t.id,r=t.tip;return e.default.createElement(Mo,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.default.createElement(ao,{id:n},r)},e.default.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function Lo(e){return Lo="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},Lo(e)}function Fo(e,t){for(var n=0;n0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}function vi(e,t){var n=mi(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,vi(e,t))})):"object"===n&&("string"!==mi(e.type)||"object"!==mi(e.args)&&"array"!==mi(e.items)?Object.assign(r,vi((0,xt.apply)(e,t),t)):e.type in pi?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,vi((0,xt.apply)(e.items,t),t))),r}const yi={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let gi;const bi=new Uint8Array(16);function _i(){if(!gi&&(gi="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gi(bi)}const wi=[];for(let e=0;e<256;++e)wi.push((e+256).toString(16).slice(1));const Ei=function(e,t,n){if(yi.randomUUID&&!t&&!e)return yi.randomUUID();const r=(e=e||{}).random||(e.rng||_i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return wi[e[t+0]]+wi[e[t+1]]+wi[e[t+2]]+wi[e[t+3]]+"-"+wi[e[t+4]]+wi[e[t+5]]+"-"+wi[e[t+6]]+wi[e[t+7]]+"-"+wi[e[t+8]]+wi[e[t+9]]+"-"+wi[e[t+10]]+wi[e[t+11]]+wi[e[t+12]]+wi[e[t+13]]+wi[e[t+14]]+wi[e[t+15]]}(r)};var xi={eem:function(e){return e.options_data&&!1!==e.options_data.ext_pwr&&!1!==e.options_data.mono_eem?!0===e.options_data.ext_pwr?0:!0===e.options_data.mono_eem||"1 EEM"===e.options_data.n_eem?1:"3 EEM"===e.options_data.n_eem?3:e.consumes&&e.consumes.eem||0:e.consumes&&e.consumes.eem||0},clk:function(e){return e.options_data&&(!0===e.options_data.ext_clk||e.options_data.ext_clk&&!0===e.options_data.ext_clk.checked)?0:e.consumes&&e.consumes.clk||0},idc:function(e){return e.consumes&&e.consumes.idc||0},hp:function(e){return e.consumes&&e.consumes.hp||0}};function Oi(e){return function(t,n){for(var r=0,o=n+1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);no.max}},Mi=function(e){return function(t,n,r){return xi[e](t[n])>0&&!function(e,t,n){return e.slice(0,t).find((function(e){return e.resources&&Ai(e.resources,n)}))}(t,n,e)}},Ii={eem_resource:{level:"warning",trigger:Ti("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:Mi("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:Ti("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:Mi("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC-BNC."},clk_resource:{level:"warning",trigger:Ti("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:Mi("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:("eem",function(e,t,n){var r=function(e,t,n){return e.slice(t+1).findIndex((function(e){return e.resources&&Ai(e.resources,n)}))+t+1}(e,t,"eem");return r-t==1}),message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:function(e,t,n){return!0},message:"This item has unimplemented warning"}};function Li(e){var t,n={priority:0,icon:null},r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ji(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;Ri[o.level].priority>n.priority&&(n=Ri[o.level])}}catch(e){r.e(e)}finally{r.f()}return n}function Fi(e){var t=Ri[e];return{icon:t.icon,color:t.color}}var Bi={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:function(e,t){var n=ua.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:function(e,t){var n=ua.getState().crate_modes.desktop.hp;return e.crate_mode===ua.getState().crate_modes.rack.id&&t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&e.default.createElement("ul",null,a.specs.map((function(t,n){return e.default.createElement("li",{key:n},t)})))),d=a.datasheet_file&&a.datasheet_name&&e.default.createElement("div",{className:"ds"},e.default.createElement("span",{className:"doc-icon"}),e.default.createElement("a",{href:a.datasheet_file,target:"_blank",rel:"noopener noreferrer"},a.datasheet_name));return e.default.createElement("section",{className:"productItem"},e.default.createElement("div",{className:"content"},e.default.createElement("h3",{style:{marginBottom:a.name_codename?"5px":"20px"}},a.name),a.name_codename?e.default.createElement("p",null,a.name_codename):null,e.default.createElement("div",{className:"price"},"".concat(o," ").concat(gt(a.price))),f,d),e.default.createElement("div",{className:"content"},e.default.createElement("button",{onClick:function(){return i(null,n,null)}},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.default.createElement("div",fa({ref:s},u,l),(function(t,n){return e.default.createElement(e.default.Fragment,null,e.default.createElement("img",fa({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:vt(t.draggableProps.style,n,!0),src:a.image})),n.isDragging&&e.default.createElement("img",{className:"simclone",src:a.image}))}))))}function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ya);return e.default.createElement("div",ga({className:"k-popup-warning"},n),o.map((function(t,n){return e.default.createElement("p",{className:"rule warning",key:"warnmsg_".concat(r,"_").concat(t.name)},e.default.createElement("i",null,t.message))})))},rootClose:!0},e.default.createElement("img",{className:"alert-warning",src:i.icon}))}function _a(t){var n=t.crate_index,r=t.card_index,o=Li(ua((function(e){return e.crates[n].items[r].show_warnings}),wt));return e.default.createElement("img",{className:"alert-warning align-self-start",src:o.icon})}function wa(t){var n=e.default.useRef(null),r=e.default.useRef(t);return e.default.useLayoutEffect((function(){r.current=t})),e.default.useEffect((function(){var e=function(e){var t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function Ea(t){var n=t.options,r=t.data,o=t.target,i=t.id,a=mi(n);return"array"===a?Array.from(n.map((function(e,t){return Ea({options:e,data:r,target:o,id:i+t})}))):"object"===a?"string"!==mi(n.type)||"object"!==mi(n.args)&&"array"!==mi(n.items)?Ea({options:(0,xt.apply)(n,r),data:r,target:o,id:i}):n.type in pi?pi[n.type](o,i+n.type,r,n.args):"Group"===n.type?e.default.createElement("div",{className:"border rounded",key:i+"group"},Ea({options:(0,xt.apply)(n.items,r),data:r,target:o,id:i})):pi.Default(n.type,i+"missing"):void 0}function xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nwindow.innerWidth?s({x:r-d.w-20,y:o-d.h/2}):s({x:r-d.w/2,y:o-d.h-20})}else document.removeEventListener("scroll",g,!0)},g=function(e){e.target!==document.getElementById(n)&&h()};return(0,e.useEffect)((function(){if(a){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),y()}}),[a]),(0,e.useEffect)((function(){a&&y()}),[a,d]),e.default.createElement("div",{ref:v},e.default.createElement("img",{className:"alert-info",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){c(!a),a||document.addEventListener("scroll",g,!0)}}),e.default.createElement("div",{style:{display:a?"flex":"none",top:u.y,left:u.x},className:"overlayVariant card border rounded",id:n},e.default.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Ca(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Ca(t,2),i=o[0],a=o[1];return e.default.createElement("p",{className:"card-text",key:n+i},e.default.createElement("i",null,i),": ",function(e){var t=mi(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)}(a))}))))))}function Da(e){return Da="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},Da(e)}function Pa(t){var n=t.crate_index,r=t.card_index,o=t.first,i=t.last,a=ua((function(e){return e.crates[n].id})),c=ua((function(e){return e.crates[n].items[r].options})),l=ua((function(e){return e.crates[n].items[r].options_data})),u=ua((function(e){return e.crates[n].items[r].size})),s=ua((function(e){return e.crates[n].items[r].options_class})),f=ua((function(e){return e.updateOptions}));return e.default.createElement(ka,{options:c,data:l,options_class:s,key:"popover"+a+r,id:"popover"+a+r,big:"big"===u,first:o,last:i,target:{construct:function(e,t){l[e]=t},update:function(e,t){e in l&&(l[e]=t),f(a,r,function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Da(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Da(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Da(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}}})}function Ra(t){var n=t.crate_index,r=t.card_index,o=ua((function(e){return e.crates[n].items[r].id})),i=ua((function(e){return e.crates[n].items[r].options})),a=ua((function(e){return e.crates[n].items[r].options_data}));return e.default.createElement(Na,{id:o+"options",options:i,data:a})}function Aa(t){var n=t.crate_index,r=t.card_index,o=ua((function(e){return e.currency})),i=ua((function(e){return e.deleteCard})),a=ua((function(e){return e.highlightCard})),c=ua((function(e){return e.highlightReset})),l=ua((function(e){return e.crates[n].id===e.highlighted.crate&&r===e.highlighted.card})),u=ua((function(e){return e.crates[n].id})),s=ua((function(e){return e.crates[n].items[r]}),(function(e,t){return e.id===t.id})),f=ua((function(e){return e.crates[n].items[r].show_warnings}),Et),d=ua((function(e){return e.crates[n].items[r].options_data}),Et),p=ua((function(e){return!!e.crateParams(e.crates[n].crate_mode).warnings_disabled})),m=!p&&s&&s.options&&s.options.length>0,h=!p&&d&&Object.keys(d).length>0,v=!p&&f&&f.length>0;return e.default.createElement("tr",{key:"summary_crate_"+u+"_"+r,className:"hoverable ".concat(l?"selected":""),onClick:function(){return a(u,r)},onMouseEnter:function(){return a(u,r)},onMouseLeave:function(){return c()}},e.default.createElement("td",{className:"item-card-name"},e.default.createElement("span",{style:{display:"inline-block",width:"16px"}}," "),e.default.createElement("div",null,"".concat(s.name_number," ").concat(s.name," ").concat(s.name_codename))),e.default.createElement("td",{className:"price"},e.default.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(o," ").concat(gt(s.price)),e.default.createElement("button",{onClick:function(){return i(u,r)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.default.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},v?e.default.createElement(_a,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),m&&h?e.default.createElement(Ra,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}function Ta(t){var n=t.crate_index,r=ua((function(e){return e.crates[n].id})),o=ua((function(e){return e.crates[n].items.length}));return e.default.createElement("tbody",{key:"summary_crate_body"+r},e.default.createElement(ha,{crate_index:n}),bt(0,o).map((function(t,o){return e.default.createElement(Aa,{crate_index:n,card_index:t,key:"summary_crate_"+r+"_"+t})})))}function Ma(){var t=ua((function(e){return e.crates.length}));return e.default.createElement(e.default.Fragment,null,bt(0,t).map((function(t,n){return e.default.createElement(Ta,{crate_index:t,key:"summary_crate_body_"+t})})))}function Ia(){var t=ua((function(e){return e.currency})),n=ua((function(e){return e.totalOrderPrice()}));return e.default.createElement("div",null,t," ",gt(n),e.default.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"})))}function La(){var t=ua((function(e){return e.clearAll}));return e.default.createElement("div",{className:"summary-price"},e.default.createElement("table",null,e.default.createElement("thead",null,e.default.createElement("tr",null,e.default.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.default.createElement("span",{className:"item-card-name"},"Remove all cards"),e.default.createElement("button",{onClick:t},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"}))))),e.default.createElement(Ma,null),e.default.createElement("tfoot",null,e.default.createElement("tr",null,e.default.createElement("td",{className:"item-card-name"},"Price estimate"),e.default.createElement("td",{className:"price"},e.default.createElement(Ia,null),e.default.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}function Fa(e){if((!va&&0!==va||e)&&mr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),va=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return va}function Ba(e){void 0===e&&(e=wr());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Ha="data-rr-ui-modal-open",Ua=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(Eo(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Ha,""),Eo(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Ha),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},Wa=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Va;const Ya=(0,e.forwardRef)(((t,n)=>{let{show:r=!1,role:o="dialog",className:i,style:a,children:c,backdrop:l=!0,keyboard:u=!0,onBackdropClick:s,onEscapeKeyDown:f,transition:d,runTransition:p,backdropTransition:m,runBackdropTransition:h,autoFocus:v=!0,enforceFocus:y=!0,restoreFocus:g=!0,restoreFocusOptions:b,renderDialog:_,renderBackdrop:w=(e=>Hr("div",Object.assign({},e))),manager:E,container:x,onShow:O,onHide:S=(()=>{}),onExit:k,onExited:C,onExiting:j,onEnter:N,onEntering:D,onEntered:P}=t,R=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,Wa);const A=Pr(),T=Ar(x),M=function(t){const n=Pr(),r=t||function(e){return Va||(Va=new Ua({ownerDocument:null==e?void 0:e.document})),Va}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(E),I=Ct(),L=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(r),[F,B]=(0,e.useState)(!r),H=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>M),[M]),mr&&!L&&r&&(H.current=Ba(null==A?void 0:A.document)),r&&F&&B(!1);const U=xr((()=>{if(M.add(),$.current=_r(document,"keydown",z),K.current=_r(document,"focus",(()=>setTimeout(V)),!0),O&&O(),v){var e,t;const n=Ba(null!=(e=null==(t=M.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);M.dialog&&n&&!Ot(M.dialog,n)&&(H.current=n,M.dialog.focus())}})),W=xr((()=>{var e;M.remove(),null==$.current||$.current(),null==K.current||K.current(),g&&(null==(e=H.current)||null==e.focus||e.focus(b),H.current=null)}));(0,e.useEffect)((()=>{r&&T&&U()}),[r,T,U]),(0,e.useEffect)((()=>{F&&W()}),[F,W]),jt((()=>{W()}));const V=xr((()=>{if(!y||!I()||!M.isTopModal())return;const e=Ba(null==A?void 0:A.document);M.dialog&&e&&!Ot(M.dialog,e)&&M.dialog.focus()})),Y=xr((e=>{e.target===e.currentTarget&&(null==s||s(e),!0===l&&S())})),z=xr((e=>{u&&Cr(e)&&M.isTopModal()&&(null==f||f(e),e.defaultPrevented||S())})),K=(0,e.useRef)(),$=(0,e.useRef)();if(!T)return null;const q=Object.assign({role:o,ref:M.setDialogRef,"aria-modal":"dialog"===o||void 0},R,{style:a,className:i,tabIndex:-1});let X=_?_(q):Hr("div",Object.assign({},q,{children:e.cloneElement(c,{role:"document"})}));X=Wr(d,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:k,onExiting:j,onExited:(...e)=>{B(!0),null==C||C(...e)},onEnter:N,onEntering:D,onEntered:P,children:X});let J=null;return l&&(J=w({ref:M.setBackdropRef,onClick:Y}),J=Wr(m,h,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),Hr(Fr.HY,{children:e.default.createPortal(Hr(Fr.HY,{children:[J,X]}),T)})}));Ya.displayName="Modal";const za=Object.assign(Ya,{Manager:Ua});var Ka=Function.prototype.bind.call(Function.prototype.call,[].slice);function $a(e,t){return Ka(e.querySelectorAll(t))}function qa(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Xa=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ja=".sticky-top",Qa=".navbar-toggler";class Ga extends Ua{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Eo(t,{[e]:`${parseFloat(Eo(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Eo(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):zr(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";$a(t,Xa).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),$a(t,Ja).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),$a(t,Qa).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=qa(n.className,r):n.setAttribute("class",qa(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";$a(t,Xa).forEach((e=>this.restore(o,e))),$a(t,Ja).forEach((e=>this.restore(i,e))),$a(t,Qa).forEach((e=>this.restore(i,e)))}}let Za;const ec=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"modal-body"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));ec.displayName="ModalBody";const tc=ec,nc=e.createContext({onHide(){}}),rc=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:i,children:a,scrollable:c,...l},u)=>{const s=`${e=Xr(e,"modal")}-dialog`,f="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return Hr("div",{...l,ref:u,className:Wt()(s,t,o&&`${e}-${o}`,r&&`${s}-centered`,c&&`${s}-scrollable`,i&&f),children:Hr("div",{className:Wt()(`${e}-content`,n),children:a})})}));rc.displayName="ModalDialog";const oc=rc,ic=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"modal-footer"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));ic.displayName="ModalFooter";const ac=ic,cc={"aria-label":kt().string,onClick:kt().func,variant:kt().oneOf(["white"])},lc=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>Hr("button",{ref:o,type:"button",className:Wt()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));lc.displayName="CloseButton",lc.propTypes=cc;const uc=lc,sc=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:i,...a},c)=>{const l=(0,e.useContext)(nc),u=xr((()=>{null==l||l.onHide(),null==o||o()}));return Hr("div",{ref:c,...a,children:[i,r&&Hr(uc,{"aria-label":t,variant:n,onClick:u})]})})),fc=sc,dc=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=Xr(e,"modal-header"),Hr(fc,{ref:i,...o,className:Wt()(t,e),closeLabel:n,closeButton:r}))));dc.displayName="ModalHeader";const pc=dc,mc=("h4",e.forwardRef(((e,t)=>Hr("div",{...e,ref:t,className:Wt()(e.className,"h4")}))));const hc=e.forwardRef((({className:e,bsPrefix:t,as:n=mc,...r},o)=>(t=Xr(t,"modal-title"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));hc.displayName="ModalTitle";const vc=hc;function yc(e){return Hr(Po,{...e,timeout:null})}function gc(e){return Hr(Po,{...e,timeout:null})}const bc=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:i,children:a,dialogAs:c=oc,"aria-labelledby":l,"aria-describedby":u,"aria-label":s,show:f=!1,animation:d=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:h,onShow:v,onHide:y,container:g,autoFocus:b=!0,enforceFocus:_=!0,restoreFocus:w=!0,restoreFocusOptions:E,onEntered:x,onExit:O,onExiting:S,onEnter:k,onEntering:C,onExited:j,backdropClassName:N,manager:D,...P},R)=>{const[A,T]=(0,e.useState)({}),[M,I]=(0,e.useState)(!1),L=(0,e.useRef)(!1),F=(0,e.useRef)(!1),B=(0,e.useRef)(null),[H,U]=Vt(),W=Ht(R,U),V=xr(y),Y=Jr();t=Xr(t,"modal");const z=(0,e.useMemo)((()=>({onHide:V})),[V]);function K(){return D||function(e){return Za||(Za=new Ga(e)),Za}({isRTL:Y})}function $(e){if(!mr)return;const t=K().getScrollbarWidth()>0,n=e.scrollHeight>wr(e).documentElement.clientHeight;T({paddingRight:t&&!n?Fa():void 0,paddingLeft:!t&&n?Fa():void 0})}const q=xr((()=>{H&&$(H.dialog)}));jt((()=>{br(window,"resize",q),null==B.current||B.current()}));const X=()=>{L.current=!0},J=e=>{L.current&&H&&e.target===H.dialog&&(F.current=!0),L.current=!1},Q=()=>{I(!0),B.current=xo(H.dialog,(()=>{I(!1)}))},G=e=>{"static"!==p?F.current||e.target!==e.currentTarget?F.current=!1:null==y||y():(e=>{e.target===e.currentTarget&&Q()})(e)},Z=(0,e.useCallback)((e=>Hr("div",{...e,className:Wt()(`${t}-backdrop`,N,!d&&"show")})),[d,N,t]),ee={...r,...A};return ee.display="block",Hr(nc.Provider,{value:z,children:Hr(za,{show:f,ref:W,backdrop:p,container:g,keyboard:!0,autoFocus:b,enforceFocus:_,restoreFocus:w,restoreFocusOptions:E,onEscapeKeyDown:e=>{m?null==h||h(e):(e.preventDefault(),"static"===p&&Q())},onShow:v,onHide:y,onEnter:(e,t)=>{e&&$(e),null==k||k(e,t)},onEntering:(e,t)=>{null==C||C(e,t),gr(window,"resize",q)},onEntered:x,onExit:e=>{null==B.current||B.current(),null==O||O(e)},onExiting:S,onExited:e=>{e&&(e.style.display=""),null==j||j(e),br(window,"resize",q)},manager:K(),transition:d?yc:void 0,backdropTransition:d?gc:void 0,renderBackdrop:Z,renderDialog:e=>Hr("div",{role:"dialog",...e,style:ee,className:Wt()(n,t,M&&`${t}-static`,!d&&"show"),onClick:p?G:void 0,onMouseUp:J,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,children:Hr(c,{...P,onMouseDown:X,className:o,contentClassName:i,children:a})})})})}));bc.displayName="Modal";const _c=Object.assign(bc,{Body:tc,Header:pc,Title:vc,Footer:ac,Dialog:oc,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var wc;function Ec(e){return Ec="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},Ec(e)}function xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?"errorField":""),type:"email",placeholder:"Email",onFocus:l,onChange:function(e){return o(e.target.value)},onBlur:function(e){return o(e.target.value)},value:t.value}),t.error===$i.Empty?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Required")):null,t.error===$i.Invalid?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Your email is incomplete")):null,e.default.createElement("textarea",{onChange:function(e){return i(e.target.value)},defaultValue:n.value,rows:"5",placeholder:"Additional notes"}),e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.default.createElement(kc,null),e.default.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2 order-form-submit",type:"button",disabled:c(),onClick:a,value:"".concat(r?"Processing ...":"Request quote")}))))}const jc=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},Nc={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Dc(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Nc[e];return n+parseInt(Eo(t,r[0]),10)+parseInt(Eo(t,r[1]),10)}const Pc={[so]:"collapse",[mo]:"collapsing",[fo]:"collapsing",[po]:"collapse show"},Rc=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:a,children:c,dimension:l="height",in:u=!1,timeout:s=300,mountOnEnter:f=!1,unmountOnExit:d=!1,appear:p=!1,getDimensionValue:m=Dc,...h},v)=>{const y="function"==typeof l?l():l,g=(0,e.useMemo)((()=>jc((e=>{e.style[y]="0"}),t)),[y,t]),b=(0,e.useMemo)((()=>jc((e=>{const t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`}),n)),[y,n]),_=(0,e.useMemo)((()=>jc((e=>{e.style[y]=null}),r)),[y,r]),w=(0,e.useMemo)((()=>jc((e=>{e.style[y]=`${m(y,e)}px`,ko(e)}),o)),[o,m,y]),E=(0,e.useMemo)((()=>jc((e=>{e.style[y]=null}),i)),[y,i]);return Hr(jo,{ref:v,addEndListener:So,...h,"aria-expanded":h.role?u:null,onEnter:g,onEntering:b,onEntered:_,onExit:w,onExiting:E,childRef:c.ref,in:u,timeout:s,mountOnEnter:f,unmountOnExit:d,appear:p,children:(t,n)=>e.default.cloneElement(c,{...n,className:Wt()(a,c.props.className,Pc[t],"width"===y&&"collapse-horizontal")})})})),Ac=Rc;function Tc(e,t){return Array.isArray(e)?e.includes(t):e===t}const Mc=e.createContext({});Mc.displayName="AccordionContext";const Ic=Mc,Lc=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:i,...a},c)=>{const{activeEventKey:l}=(0,e.useContext)(Ic);return n=Xr(n,"accordion-collapse"),Hr(Ac,{ref:c,in:Tc(l,i),...a,className:Wt()(r,n),children:Hr(t,{children:e.Children.only(o)})})}));Lc.displayName="AccordionCollapse";const Fc=Lc,Bc=e.createContext({eventKey:""});Bc.displayName="AccordionItemContext";const Hc=Bc,Uc=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:a,onExit:c,onExiting:l,onExited:u,...s},f)=>{n=Xr(n,"accordion-body");const{eventKey:d}=(0,e.useContext)(Hc);return Hr(Fc,{eventKey:d,onEnter:o,onEntering:i,onEntered:a,onExit:c,onExiting:l,onExited:u,children:Hr(t,{ref:f,...s,className:Wt()(r,n)})})}));Uc.displayName="AccordionBody";const Wc=Uc,Vc=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...i},a)=>{n=Xr(n,"accordion-button");const{eventKey:c}=(0,e.useContext)(Hc),l=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,e.useContext)(Ic);return e=>{let a=t===r?null:t;i&&(a=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(a,e),null==n||n(e)}}(c,o),{activeEventKey:u}=(0,e.useContext)(Ic);return"button"===t&&(i.type="button"),Hr(t,{ref:a,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(c):c===u,className:Wt()(r,n,!Tc(u,c)&&"collapsed")})}));Vc.displayName="AccordionButton";const Yc=Vc,zc=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},a)=>(t=Xr(t,"accordion-header"),Hr(e,{ref:a,...i,className:Wt()(n,t),children:Hr(Yc,{onClick:o,children:r})}))));zc.displayName="AccordionHeader";const Kc=zc,$c=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...i},a)=>{n=Xr(n,"accordion-item");const c=(0,e.useMemo)((()=>({eventKey:o})),[o]);return Hr(Hc.Provider,{value:c,children:Hr(t,{ref:a,...i,className:Wt()(r,n)})})}));$c.displayName="AccordionItem";const qc=$c,Xc=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:a,onSelect:c,flush:l,alwaysOpen:u,...s}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,i=n,a=i[It(r)],c=i[r],l=Mt(i,[It(r),r].map(Lt)),u=t[r],s=Ft(c,a,e[u]),f=s[0],d=s[1];return Tt({},l,((o={})[r]=f,o[u]=d,o))}),e)}(t,{activeKey:"onSelect"}),f=Xr(i,"accordion"),d=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:c,alwaysOpen:u})),[o,c,u]);return Hr(Ic.Provider,{value:d,children:Hr(r,{ref:n,...s,className:Wt()(a,f,l&&`${f}-flush`)})})}));Xc.displayName="Accordion";const Jc=Object.assign(Xc,{Button:Yc,Collapse:Fc,Item:qc,Header:Kc,Body:Wc});var Qc=["arrowProps","hasDoneInitialMeasure","show"];function Gc(e){return Gc="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},Gc(e)}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Qc);return e.default.createElement("div",Zc({className:"k-popup-connectors"},n),e.default.createElement(al,{resources:o,library:il}))},rootClose:!0},e.default.createElement("div",{className:"progress-container"},e.default.createElement(al,{resources:o,library:ol})))}function ll(e){return ll="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},ll(e)}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t0),_=!s&&c&&c.length>0,w=!s&&l&&l.length>0;return e.default.createElement("div",ul({ref:g},y,v),(function(t,c){return e.default.createElement("div",ul({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:fl({},vt(t.draggableProps.style,c,!0,!!u,!1,!0)),onMouseEnter:function(){return d(f,n)},onMouseLeave:p}),e.default.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},_&&e.default.createElement(ba,{crate_index:r,card_index:n}),b&&e.default.createElement(Pa,{crate_index:r,card_index:n,first:o,last:i})),e.default.createElement("h6",null,a.name_number),e.default.createElement("div",{onMouseEnter:function(){return d(f,n)},onClick:function(){return d(f,n)}},e.default.createElement("img",{className:"item-cart",src:a.image})),e.default.createElement("div",{style:{display:u?"flex":"none"},className:"overlayRemove",onClick:function(){return m(f,n)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.default.createElement("p",null,"Remove")),w&&e.default.createElement(cl,{crate_index:r,card_index:n}))}))}function pl(t){for(var n=t.isDraggingOver,r=[],o=t.nToDraw;o>0;o--)r.push(e.default.createElement("div",{key:o,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.default.createElement(e.default.Fragment,null,r)}function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t=c,key:t.id})}));return e.default.createElement("div",{ref:i},(function(t,n){return e.default.createElement("div",ml({ref:t.innerRef},t.droppableProps,{style:yt(t.droppableProps.style,n),className:"items-cart-list"}),l,t.placeholder&&e.default.createElement("div",{style:{display:"none"}},t.placeholder),e.default.createElement(pl,{nToDraw:c-a,isDraggingOver:n.isDraggingOver}))}))}function vl(t){var n=t.crate_index,r=ua((function(e){return e.modes_order})),o=ua((function(e){return e.crate_modes})),i=ua((function(e){return e.crates[n]}),(function(e,t){return e.id===t.id&&e.crate_mode===t.crate_mode})),a=ua((function(e){return e.setCrateMode}));return r.includes(i.crate_mode)?e.default.createElement("div",{className:"crate-mode"},r.map((function(t,n){return e.default.createElement("a",{key:t,className:i.crate_mode===t?"active":"",onClick:function(){return a(i.id,t)},href:"#",role:"button"},o[t].name)}))):e.default.createElement("div",{className:"crate-mode"})}function yl(t){var n=t.crate_index,r=ua((function(e){return e.crates[n].warnings}),_t);return e.default.createElement("div",{className:"crate-info"},r.map((function(t,n){return e.default.createElement("p",{key:n,className:"rule",style:{color:Fi(t.level).color}},e.default.createElement("img",{src:Fi(t.level).icon})," ",e.default.createElement("i",null,t.message))})))}function gl(t){var n=t.crate_index,r=ua((function(e){return e.crates[n]}),(function(e,t){return e.length===t.length})),o=ua((function(e){return e.delCrate}));return e.default.createElement("div",{className:"crate"},e.default.createElement("div",{className:"crate-bar d-inline-flex justify-content-between"},e.default.createElement(vl,{crate_index:n}),e.default.createElement("div",{className:"delete-crate align-self-start align-content-start justify-content-end",onClick:function(){return o(r.id)}},"Delete crate ",e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))),e.default.createElement("div",{className:"crate-products"},e.default.createElement(hl,{crate_index:n}),e.default.createElement(yl,{crate_index:n})))}function bl(){var t=ua((function(e){return e.crates}),(function(e,t){return e.length===t.length})),n=ua((function(e){return e.active_crate})),r=ua((function(e){return e.newCrate})),o=ua((function(e){return e.setActiveCrate}));return e.default.createElement(Jc,{id:"accordion_crates",flush:!0,activeKey:n,onSelect:function(e){o(null!==e?e:"")}},t.map((function(t,n){return e.default.createElement(Jc.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.default.createElement(Jc.Header,null,t.name?t.name:e.default.createElement(e.default.Fragment,null,"Crate #","".concat(n))," "),e.default.createElement(Jc.Body,null,e.default.createElement(gl,{crate_index:n})))})),e.default.createElement(Jc.Item,{eventKey:"last",id:"accordion_crates_add"},e.default.createElement(Jc.Header,{onClick:r},"Add new crate")))}var _l,wl=JSON.stringify({crates:[{items:[{pn:"1124",options:null},{pn:"2128",options:null},{pn:"2128",options:null},{pn:"2128",options:null}],type:"rack"},{items:[],type:"no_crate"}]});function El(){var t=ua((function(e){return e.importShouldOpen})),n=ua((function(e){return e.importValue})),r=ua((function(e){return e.loadDescription})),o=ua((function(e){return e.updateImportDescription})),i=ua((function(e){return e.closeImport})),a=ua((function(e){return e.openImport})),c=wa((function(e){"mousedown"===e.type&&i()}));return e.default.createElement(e.default.Fragment,null,e.default.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:a},"Import JSON"),e.default.createElement(_c,{show:t,animation:!0,centered:!0,className:"rfqFeedback"},e.default.createElement(_c.Body,{ref:c},e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.default.createElement("br",null),wl)),e.default.createElement("div",{className:"form-group w-100"},e.default.createElement("textarea",{onChange:function(e){o(e.target.value)},value:n.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),n.error!==$i.OK?e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"text-danger"},n.error===$i.Empty?"Empty input":"Invalid JSON")):null,e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.default.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.default.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 ".concat(n.error?"disabled":"")},"Load configuration")))))}function xl(){var t=ua((function(e){return e.closeRFQFeedback})),n=ua((function(e){return e.shouldShowRFQFeedback})),r=ua((function(e){return e.processingResult})),o=wa((function(e){"mousedown"===e.type&&t()}));return e.default.createElement(_c,{show:n,animation:!0,centered:!0},e.default.createElement(_c.Body,{ref:o,className:"rfqFeedback"},e.default.createElement("div",{className:"d-flex"},e.default.createElement("div",null,r.status===$i.OK?e.default.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.default.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.default.createElement("div",{style:{padding:"0 .5em"}},r.message))))}function Ol(t){var n=t.title,r=t.description,o=ua((function(e){return e.isMobile})),i=ua((function(e){return e.switchSideMenu}));return e.default.createElement("section",{className:"panel"},e.default.createElement("h2",null,n),e.default.createElement("div",{className:"control justify-content-between"},r),e.default.createElement("div",null,e.default.createElement(El,null)),e.default.createElement(xl,null),o?e.default.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.default.createElement("button",{onClick:i},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.default.createElement(bl,null),e.default.createElement("section",{className:"summary"},e.default.createElement(La,null),e.default.createElement(Cc,null)))}function Sl(){var t=ua((function(e){return e.addCardFromBacklog})),n=ua((function(e){return e.moveCard})),r=ua((function(e){return e.deleteCard})),o=ua((function(e){return e.cardIndexById})),i=function(){for(var t=arguments.length,n=new Array(t),r=0;r[...n].filter((e=>null!=e))),[...n])}(T(Ee),T(Oe));return(0,e.useEffect)((function(){t(null,[o("eem_pwr_mod"),o("kasli")],-1,!0)}),[]),e.default.createElement(Ge,{sensors:i,onDragEnd:function(e){console.log(e),drop_result.destination?"backlog"===drop_result.source.droppableId?t(drop_result.destination.droppableId,drop_result.source.index,drop_result.destination.index):"backlog"===drop_result.destination.droppableId?r(drop_result.source.droppableId,drop_result.source.index):n(drop_result.source.droppableId,drop_result.source.index,drop_result.destination.droppableId,drop_result.destination.index):console.warn("No drop destination")}},e.default.createElement(sa,{aside:e.default.createElement(ma,null),main:e.default.createElement(Ol,{title:"Order hardware",description:e.default.createElement("p",{className:"description"},"Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card, most of the options can be modified after shipment. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at ",e.default.createElement("a",{href:"mailto:sales@m-labs.hk"},"sales@m-labs.hk"),". The price is estimated and must be confirmed by a quote.")})}))}(_l=document.querySelector("#root-shop"),{render(t){(0,e.render)(t,_l)},unmount(){(0,e.unmountComponentAtNode)(_l)}}).render(e.default.createElement(Sl,null))})()})(); \ No newline at end of file diff --git a/static/js/shop/Backlog.jsx b/static/js/shop/Backlog.jsx index 2b14ff7..2c81fab 100644 --- a/static/js/shop/Backlog.jsx +++ b/static/js/shop/Backlog.jsx @@ -1,5 +1,6 @@ import React from 'react'; -import {Droppable} from "@hello-pangea/dnd"; +//import {Droppable} from "@hello-pangea/dnd"; +import {useDroppable} from '@dnd-kit/core'; import {ProductItem} from "./ProductItem"; import {useShopStore} from "./shop_store"; // #!render_count @@ -17,6 +18,10 @@ export function Backlog() { const onClickToggleMobileSideMenu = useShopStore((state) => state.switchSideMenu); const isMobile = useShopStore((state) => state.isMobile); + const {setNodeRef} = useDroppable({ + id: data.id, + }); + // #!render_count console.log("Backlog renders: ", renderCount) @@ -52,9 +57,7 @@ export function Backlog() { ); return ( - +
{(provided) => (
)} - +
); } \ No newline at end of file diff --git a/static/js/shop/Cart.jsx b/static/js/shop/Cart.jsx index fcc0aaa..a4ca908 100644 --- a/static/js/shop/Cart.jsx +++ b/static/js/shop/Cart.jsx @@ -1,5 +1,6 @@ import React from 'react' -import {Droppable} from "@hello-pangea/dnd"; +//import {Droppable} from "@hello-pangea/dnd"; +import {useDroppable} from '@dnd-kit/core'; import {cartStyle, compareArraysWithIds} from "./utils"; import {ProductCartItem} from "./ProductCartItem"; import {FakePlaceholder} from "./FakePlaceholder"; @@ -22,6 +23,10 @@ export function Cart({crate_index}) { }); const crateParams = useShopStore((state) => state.crateParams); + const {setNodeRef} = useDroppable({ + id: crate.id, + }); + // #!render_count console.log("Cart renders: ", renderCount) @@ -42,7 +47,7 @@ export function Cart({crate_index}) { }); return ( - +
{(provided, snapshot) => (
)} - +
); } \ No newline at end of file diff --git a/static/js/shop/ProductCartItem.jsx b/static/js/shop/ProductCartItem.jsx index 39b7fc7..10b3482 100644 --- a/static/js/shop/ProductCartItem.jsx +++ b/static/js/shop/ProductCartItem.jsx @@ -1,5 +1,6 @@ import React from 'react' -import {Draggable} from "@hello-pangea/dnd"; +//import {Draggable} from "@hello-pangea/dnd"; +import {useDraggable} from '@dnd-kit/core'; import {compareObjectsEmptiness, productStyle} from "./utils"; import {Resources} from "./Resources"; import {CardWarnings} from "./CardWarnings"; @@ -31,6 +32,10 @@ export function ProductCartItem({card_index, crate_index, first, last}) { const removeHighlight = useShopStore((state) => state.highlightReset); const onCardRemove = useShopStore((state) => state.deleteCard); + const {attributes, listeners, setNodeRef, transform} = useDraggable({ + id: card.id, + }); + // #!render_count console.log("ProductCartItem renders: ", renderCount) @@ -40,7 +45,7 @@ export function ProductCartItem({card_index, crate_index, first, last}) { const resources = !options_disabled && card_counted_resources && card_counted_resources.length > 0; return ( - +
{(provided, snapshot) => (
)} - +
); } diff --git a/static/js/shop/ProductItem.jsx b/static/js/shop/ProductItem.jsx index 393af65..4d244da 100644 --- a/static/js/shop/ProductItem.jsx +++ b/static/js/shop/ProductItem.jsx @@ -1,5 +1,6 @@ import React from 'react'; -import {Draggable} from "@hello-pangea/dnd"; +//import {Draggable} from "@hello-pangea/dnd"; +import {useDraggable} from '@dnd-kit/core'; import {formatMoney, productStyle} from "./utils"; import {useShopStore} from "./shop_store"; @@ -19,6 +20,10 @@ export function ProductItem({card_index}) { const onAddCard = useShopStore((state) => state.addCardFromBacklog); const card = getCardDescription(card_index); + const {attributes, listeners, setNodeRef, transform} = useDraggable({ + id: card.id, + }); + // #!render_count console.log("ProductItem renders: ", renderCount) @@ -62,7 +67,7 @@ export function ProductItem({card_index}) { add - +
{(provided, snapshot) => ( )} - +
diff --git a/static/js/shop/Shop.jsx b/static/js/shop/Shop.jsx index 59f56ab..e9eb1a1 100644 --- a/static/js/shop/Shop.jsx +++ b/static/js/shop/Shop.jsx @@ -1,5 +1,6 @@ import React, {useEffect} from 'react'; -import {DragDropContext} from "@hello-pangea/dnd"; +//import {DragDropContext} from "@hello-pangea/dnd"; +import {DndContext, useSensor, useSensors, TouchSensor, MouseSensor} from "@dnd-kit/core"; // #!render_count import {useRenderCount} from "@uidotdev/usehooks"; @@ -23,7 +24,16 @@ export function Shop() { const deleteCard = useShopStore((state) => state.deleteCard); const cardIndexById = useShopStore((state) => state.cardIndexById); - const handleOnDragEnd = (drop_result, _provided) => { + const mouseSensor = useSensor(MouseSensor); + const touchSensor = useSensor(TouchSensor); + const sensors = useSensors( + mouseSensor, + touchSensor, + ); + + const handleOnDragEnd = (event) => { + console.log(event); + if (!drop_result.destination) { console.warn("No drop destination"); return; @@ -44,7 +54,7 @@ export function Shop() { console.log("Shop renders: ", renderCount) return ( - + @@ -62,7 +72,7 @@ export function Shop() { /> )}> - + ); } \ No newline at end of file