summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/6290.cf33d7ac6ef66c65cff4.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/6290.cf33d7ac6ef66c65cff4.js')
-rw-r--r--web/gui/v2/6290.cf33d7ac6ef66c65cff4.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/gui/v2/6290.cf33d7ac6ef66c65cff4.js b/web/gui/v2/6290.cf33d7ac6ef66c65cff4.js
new file mode 100644
index 0000000000..8cff607eb8
--- /dev/null
+++ b/web/gui/v2/6290.cf33d7ac6ef66c65cff4.js
@@ -0,0 +1,2 @@
+/*! For license information please see 6290.cf33d7ac6ef66c65cff4.js.LICENSE.txt */
+!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4d385d48-417e-4cd6-9062-590f770c1024",e._sentryDebugIdIdentifier="sentry-dbid-4d385d48-417e-4cd6-9062-590f770c1024")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"0c0a7a41a0e7ecb4870dbce38dbd7d5e0913bb7f"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6290],{17563:function(e,t,n){const r=n(70610),o=n(44020),i=n(80500),a=n(92806),s=Symbol("encodeFragmentIdentifier");function u(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!o&&c(n,e).includes(e.arrayFormatSeparator);n=i?c(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===n?n:c(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?c(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>c(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:c(a,t),n(c(e,t),a,r)}for(const o of Object.keys(r)){const e=r[o];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=v(e[n],t);else r[o]=v(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",o,"]"].join("")]:[...n,[l(t,e),"[",l(o,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[l(n,e),t,l(o,e)].join("")]:[[r,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),o={};for(const a of Object.keys(e))n(a)||(o[a]=e[a]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?l(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":o.reduce(r(n),[]).join("&"):l(n,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let u=t.stringify(a,n);u&&(u=`?${u}`);let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${u}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:o,query:i,fragmentIdentifier:u}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:u},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},83656:function(e,t,n){n.d(t,{Z5:function(){return xo},_l:function(){return li},bK:function(){return pi}});var r=n(67294),o=n(94578),i=n(87462),a=n(1413);function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var u="function"===typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function d(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(s(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(s(1));return n(f)(e,t)}if("function"!==typeof e)throw new Error(s(2));var o=e,i=t,a=[],l=a,p=!1;function v(){l===a&&(l=a.slice())}function h(){if(p)throw new Error(s(3));return i}function m(e){if("function"!==typeof e)throw new Error(s(4));if(p)throw new Error(s(5));var t=!0;return v(),l.push(e),function(){if(t){if(p)throw new Error(s(6));t=!1,v();var n=l.indexOf(e);l.splice(n,1),a=null}}}function g(e){if(!d(e))throw new Error(s(7));if("undefined"===typeof e.type)throw new Error(s(8));if(p)throw new Error(s(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}return g({type:c.INIT}),(r={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!==typeof e)throw new Error(s(10));o=e,g({type:c.REPLACE})}})[u]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[u]=function(){return this},e},r}function p(e,t){return function(){return t(e.apply(this,arguments))}}function v(e,t){if("function"===typeof e)return p(e,t);if("object"!==typeof e||null===e)throw new Error(s(16));var n={};for(var r in e){var o=e[r];"function"===typeof o&&(n[r]=p(o,t))}return n}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var m=r.createContext(null);var g=function(e){e()},b=function(){return g};var y={notify:function(){},get:function(){return[]}};function S(e,t){var n,r=y;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=b(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var 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)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=y)},getListeners:function(){return r}};return a}var E="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var w=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=S(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);E((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var s=n||m;return r.createElement(s.Provider,{value:i},o)},_=n(63366),I=n(8679),R=n.n(I),C=n(72973),x=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],T=["reactReduxForwardedRef"],D=[],O=[null,null];function A(e,t){var n=e[1];return[t.payload,n+1]}function N(e,t,n){E((function(){return e.apply(void 0,t)}),n)}function P(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function L(e,t,n,r,o,i,a,s,u,l){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,o.current)}catch(p){n=p,d=p}n||(d=null),e===i.current?a.current||u():(i.current=e,s.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function M(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,s=n.methodName,u=void 0===s?"connectAdvanced":s,l=n.renderCountProp,c=void 0===l?void 0:l,d=n.shouldHandleStateChanges,f=void 0===d||d,p=n.storeKey,v=void 0===p?"store":p,h=(n.withRef,n.forwardRef),g=void 0!==h&&h,b=n.context,y=void 0===b?m:b,E=(0,_.Z)(n,x),w=y;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.Z)({},E,{getDisplayName:a,methodName:u,renderCountProp:c,shouldHandleStateChanges:f,storeKey:v,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=E.pure;var d=l?r.useMemo:function(e){return e()};function p(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,_.Z)(n,T);return[n.context,e,t]}),[n]),a=o[0],u=o[1],l=o[2],c=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,C.isContextConsumer)(r.createElement(a.Consumer,null))?a:w}),[a,w]),p=(0,r.useContext)(c),v=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var h=v?n.store:p.store,m=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(h)}),[h]),g=(0,r.useMemo)((function(){if(!f)return O;var e=S(h,v?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,v,p]),b=g[0],y=g[1],E=(0,r.useMemo)((function(){return v?p:(0,i.Z)({},p,{subscription:b})}),[v,p,b]),I=(0,r.useReducer)(A,D,k),R=I[0][0],x=I[1];if(R&&R.error)throw R.error;var M=(0,r.useRef)(),B=(0,r.useRef)(l),V=(0,r.useRef)(),F=(0,r.useRef)(!1),U=d((function(){return V.current&&l===B.current?V.current:m(h.getState(),l)}),[h,R,l]);N(P,[B,M,F,l,U,V,y]),N(L,[f,h,b,m,B,M,F,V,y,x],[h,b,m]);var Z=(0,r.useMemo)((function(){return r.createElement(t,(0,i.Z)({},U,{ref:u}))}),[u,t,U]);return(0,r.useMemo)((function(){return f?r.createElement(c.Provider,{value:E},Z):Z}),[c,Z,E])}var h=l?r.memo(p):p;if(h.WrappedComponent=t,h.displayName=p.displayName=o,g){var m=r.forwardRef((function(e,t){return r.createElement(h,(0,i.Z)({},e,{reactReduxForwardedRef:t}))}));return m.displayName=o,m.WrappedComponent=t,R()(m,t)}return R()(h,t)}}function B(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function V(e,t){if(B(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!B(e[n[o]],t[n[o]]))return!1;return!0}function F(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function U(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Z(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=U(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=U(o),o=r(t,n)),o},r}}var G=[function(e){return"function"===typeof e?Z(e):void 0},function(e){return e?void 0:F((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?F((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];var j=[function(e){return"function"===typeof e?Z(e):void 0},function(e){return e?void 0:F((function(){return{}}))}];function H(e,t,n){return(0,i.Z)({},n,e,t)}var z=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var u=e(t,n,s);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return H}}],W=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function $(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function q(e,t,n,r,o){var i,a,s,u,l,c=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function v(o,p){var v=!d(p,a),h=!c(o,i,p,a);return i=o,a=p,v&&h?(s=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a)):v?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a)):h?function(){var t=e(i,a),r=!f(t,s);return s=t,r&&(l=n(s,u,a)),l}():l}return function(o,c){return p?v(o,c):(s=e(i=o,a=c),u=t(r,a),l=n(s,u,a),p=!0,l)}}function Y(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,_.Z)(t,W),a=n(e,i),s=r(e,i),u=o(e,i);return(i.pure?q:$)(a,s,u,e,i)}var K=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function J(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function X(e,t){return e===t}function Q(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?M:n,o=t.mapStateToPropsFactories,a=void 0===o?j:o,s=t.mapDispatchToPropsFactories,u=void 0===s?G:s,l=t.mergePropsFactories,c=void 0===l?z:l,d=t.selectorFactory,f=void 0===d?Y:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,l=s.pure,d=void 0===l||l,p=s.areStatesEqual,v=void 0===p?X:p,h=s.areOwnPropsEqual,m=void 0===h?V:h,g=s.areStatePropsEqual,b=void 0===g?V:g,y=s.areMergedPropsEqual,S=void 0===y?V:y,E=(0,_.Z)(s,K),w=J(e,a,"mapStateToProps"),I=J(t,u,"mapDispatchToProps"),R=J(n,c,"mergeProps");return r(f,(0,i.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:I,initMergeProps:R,pure:d,areStatesEqual:v,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:S},E))}}var ee=Q();var te,ne=n(73935);te=ne.unstable_batchedUpdates,g=te;var re=n(51163),oe=n(27642),ie=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function ae(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||ie(r)&&ie(o)))return!1;var r,o;return!0}var se=function(e,t){var n;void 0===t&&(t=ae);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},ue=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function le(e,t){}le.bind(null,"warn"),le.bind(null,"error");function ce(){}function de(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,i.Z)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var fe=!0,pe="Invariant failed";function ve(e){this.message=e}function he(e,t){if(!e)throw new ve(fe?pe:pe+": "+(t||""))}ve.prototype.toString=function(){return this.message};var me=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=ce,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof ve&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=de(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof ve))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ge=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ge(e.index),o=ge(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 "},ye=function(e,t,n){return 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 "},Se=function(e){return"\n The item has returned to its starting position\n of "+ge(e.index)+"\n"},Ee={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:function(e){return"\n You have lifted an item in position "+ge(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?ye(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Se(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+ye(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Se(e.source)+"\n "}},we={x:0,y:0},_e=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ie=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Re=function(e,t){return e.x===t.x&&e.y===t.y},Ce=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},xe=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},De=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Oe=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ae=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ne=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Pe=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=(0,oe.Dz)({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):(0,oe.Dz)(e)},Le=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Ae(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,n){var r;return n&&n.increasedBy?(0,i.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Pe(s,o)}},ke=function(e,t){e.frame||he(!1);var n=e.frame,r=Ie(t,n.scroll.initial),o=Ce(r),a=(0,i.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),s=Le({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,i.Z)({},e,{frame:a,subject:s})};function Me(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Be(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Ve(e,t){if(e.find)return e.find(t);var n=Be(e,t);return-1!==n?e[n]:void 0}function Fe(e){return Array.prototype.slice.call(e)}var Ue=se((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ze=se((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ge=se((function(e){return Me(e)})),je=se((function(e){return Me(e)})),He=se((function(e,t){var n=je(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function ze(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function We(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var $e=se((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),qe=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ye={point:we,value:0},Ke={invisible:{},visible:{},all:[]},Je={displaced:Ke,displacedBy:Ye,at:null},Xe=function(e,t){return function(n){return e<=n&&n<=t}},Qe=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},tt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},nt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},rt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:we;return Ae(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},ot=function(e){return rt((0,i.Z)({},e,{isVisibleThroughFrameFn:Qe}))},it=function(e){return rt((0,i.Z)({},e,{isVisibleThroughFrameFn:et}))},at=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,oe.Dz)((0,oe.jn)(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!ot({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l={draggableId:u,shouldAnimate:at(u,a,i)};return e.visible[u]=l,e}),{all:[],visible:{},invisible:{}})}function ut(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Ke,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function lt(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,u=e.forceShouldAnimate,l=qe(t,r);if(null==s)return ut({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var c=Ve(n,(function(e){return e.descriptor.index===s}));if(!c)return ut({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var d=$e(t,n),f=n.indexOf(c);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ct(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,u=e.viewport,l=e.afterCritical,c=s.at;if(c||he(!1),"REORDER"===c.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return a<s||a>(n?u:u+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==d?null:lt({draggable:r,insideDestination:a,destination:i,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return ct(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:c.combine,afterCritical:l});return null==f?null:lt({draggable:r,insideDestination:a,destination:i,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=We(n);o||he(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return ct(r,n)?i?we:Ce(o.point):i?o.point:we}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return _e(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},vt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},ht=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return xe(t.line,n.marginBox[t.end]+pt(t,r),vt(t,n.marginBox,r))},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return xe(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),vt(t,n.marginBox,r))},gt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=He(o.descriptor.id,r),s=n.page,u=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return xe(t.line,n.contentBox[t.start]+pt(t,r),vt(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:s});var l=t.displaced,c=t.displacedBy,d=l.all[0];if(d){var f=r[d];if(ct(d,i))return mt({axis:u,moveRelativeTo:f.page,isMoving:s});var p=(0,oe.cv)(f.page,c.point);return mt({axis:u,moveRelativeTo:p,isMoving:s})}var v=a[a.length-1];if(v.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ct(v.descriptor.id,i)){var h=(0,oe.cv)(v.page,Ce(i.displacedBy.point));return ht({axis:u,moveRelativeTo:h,isMoving:s})}return ht({axis:u,moveRelativeTo:v.page,isMoving:s})},bt=function(e,t){var n=e.frame;return n?_e(t,n.scroll.diff.displacement):t},yt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?gt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ft({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?bt(n,t):t},St=function(e,t){var n=Ie(t,e.scroll.initial),r=Ce(n);return{frame:(0,oe.Dz)({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 Et(e,t){return e.map((function(e){return t[e]}))}var wt=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return _e(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ie(r,n.page.borderBox.center);return _e(n.client.borderBox.center,o)},_t=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,u=void 0!==s&&s,l=Ie(r,t.page.borderBox.center),c={target:Ae(t.page.borderBox,l),destination:n,withDroppableDisplacement:a,viewport:o};return u?function(e){return rt((0,i.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===tt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):it(c)},It=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,s=e.viewport,u=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var d=He(r.descriptor.id,o),f=qe(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!ze(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,i.Z)({},a,{at:t})}var u=a.displaced.all,l=u.length?u[0]:null;if(t)return l?s(l):null;var c=$e(n,o);if(!l)return c.length?s(c[c.length-1].descriptor.id):null;var d=Be(c,(function(e){return e.descriptor.id===l}));-1===d&&he(!1);var f=d-1;return f<0?null:s(c[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:c});if(!p)return null;var v=yt({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:c});if(_t({draggable:n,destination:r,newPageBorderBoxCenter:v,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:v,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var h=Ie(v,u),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=St(n,_e(n.scroll.current,a)),u=r.frame?ke(r,_e(r.frame.scroll.current,a)):r,l=t.displaced,c=st({afterDragging:Et(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:l,forceShouldAnimate:!1}),d=st({afterDragging:Et(l.all,o),destination:u,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),f={},p={},v=[l,c,d];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,v);t?p[e]=t:f[e]=!0})),(0,i.Z)({},t,{displaced:{all:l.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:l,impact:m,scrollJumpRequest:h}},Rt=function(e){var t=e.subject.active;return t||he(!1),t},Ct=function(e,t){var n=e.page.borderBox.center;return ct(e.descriptor.id,t)?Ie(n,t.displacedBy.point):n},xt=function(e,t){var n=e.page.borderBox;return ct(e.descriptor.id,t)?Ae(n,Ce(t.displacedBy.point)):n},Tt=se((function(e,t){var n=t[e.line];return{value:n,point:xe(e.line,n)}})),Dt=function(e,t){return(0,i.Z)({},e,{scroll:(0,i.Z)({},e.scroll,{max:t})})},Ot=function(e,t,n){var r=e.frame;qe(t,e)&&he(!1),e.subject.withPlaceholder&&he(!1);var o=Tt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return xe(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=He(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:xe(r.line,i)}(e,o,n),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var u=Le({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,i.Z)({},e,{subject:u})}var l=a?_e(r.scroll.max,a):r.scroll.max,c=Dt(r,l),d=Le({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:c});return(0,i.Z)({},e,{subject:d,frame:c})},At=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,u=e.afterCritical,l=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,u=Xe(a[s.start],a[s.end]),l=Ge(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Qe(i.frame)(Rt(e))})).filter((function(e){var n=Rt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Rt(e),n=Xe(t[s.start],t[s.end]);return u(t[s.start])||u(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Rt(e)[s.crossAxisStart],o=Rt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Rt(e)[s.crossAxisStart]===Rt(n[0])[s.crossAxisStart]}));if(!l.length)return null;if(1===l.length)return l[0];var c=l.filter((function(e){return Xe(Rt(e)[s.start],Rt(e)[s.end])(n[s.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return Rt(e)[s.start]-Rt(t)[s.start]}))[0]:l.sort((function(e,t){var r=De(n,Ne(Rt(e))),o=De(n,Ne(Rt(t)));return r!==o?r-o:Rt(e)[s.start]-Rt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!l)return null;var c=He(l.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return it({target:xt(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Te(t,bt(r,Ct(e,i))),a=Te(t,bt(r,Ct(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:l,insideDestination:c,afterCritical:u}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,u=e.afterCritical;if(!n){if(r.length)return null;var l={displaced:Ke,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=yt({impact:l,draggable:o,droppable:a,draggables:i,afterCritical:u}),d=qe(o,a)?a:Ot(a,o,i);return _t({draggable:o,destination:d,newPageBorderBoxCenter:c,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||f?e:e+1}(),v=Tt(a.axis,o.displaceBy);return lt({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:v,last:Ke,index:p})}({previousPageBorderBoxCenter:n,destination:l,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:s,afterCritical:u});if(!f)return null;var p=yt({impact:f,draggable:r,droppable:l,draggables:i,afterCritical:u});return{clientSelection:wt({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Nt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Pt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Nt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,u="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var l="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,v=f.droppables;return u?It({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):At({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,isOver:a,draggables:p,droppables:v,viewport:t.viewport,afterCritical:t.afterCritical})};function Lt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function kt(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Mt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ge(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(kt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],u=t[i.crossAxisEnd],l=Xe(o[i.crossAxisStart],o[i.crossAxisEnd]),c=l(s),d=l(u);return!c&&!d||(c?s<a:u>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=xe(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Bt=function(e,t){return(0,oe.Dz)(Ae(e,t))};function Vt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,u=Bt(n.page.borderBox,t),l=Mt({pageBorderBox:u,draggable:n,droppables:o});if(!l)return Je;var c=o[l],d=He(c.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Bt(t,n.scroll.diff.value):t}(c,u);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,u=Tt(o.axis,t.displaceBy),l=u.value,c=n[s.start],d=n[s.end],f=Ve($e(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=ct(t,a),u=Vt({displaced:r.displaced,id:t});return i?u?d>n[s.start]+o&&d<n[s.end]-o:c>n[s.start]-l+o&&c<n[s.end]-l-o:u?d>n[s.start]+l+o&&d<n[s.end]+l-o:c>n[s.start]+o&&c<n[s.end]-o}));return f?{displacedBy:u,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,u=r.axis,l=Tt(r.axis,n.displaceBy),c=l.value,d=t[u.start],f=t[u.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ve($e(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=ct(t,s),o=Vt({displaced:i,id:t});return r?o?f<=n:d<n-c:o?f<=n+c:d<n})),inHomeList:qe(n,r)});return lt({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:l,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Ut=function(e,t){var n;return(0,i.Z)({},e,((n={})[t.descriptor.id]=t,n))},Zt=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Nt(t),a=Nt(n);if(!o)return r;if(o===a)return r;var s=r[o];if(!s.subject.withPlaceholder)return r;var u=function(e){var t=e.subject.withPlaceholder;t||he(!1);var n=e.frame;if(!n){var r=Le({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,i.Z)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||he(!1);var a=Dt(n,o),s=Le({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,i.Z)({},e,{subject:s,frame:a})}(s);return Ut(r,u)},Gt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,s=e.scrollJumpRequest,u=o||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,d=Ie(c,t.initial.client.selection),f={offset:d,selection:c,borderBoxCenter:_e(t.initial.client.borderBoxCenter,d)},p={selection:_e(f.selection,u.scroll.current),borderBoxCenter:_e(f.borderBoxCenter,u.scroll.current),offset:_e(f.offset,u.scroll.diff.value)},v={client:f,page:p};if("COLLECTING"===t.phase)return(0,i.Z)({phase:"COLLECTING"},t,{dimensions:l,viewport:u,current:v});var h=l.draggables[t.critical.draggable.id],m=a||Ft({pageOffset:p.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Zt({previousImpact:o,impact:i,droppables:r}),s=Nt(i);if(!s)return a;var u=r[s];if(qe(t,u))return a;if(u.subject.withPlaceholder)return a;var l=Ot(u,t,n);return Ut(a,l)}({draggable:h,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return(0,i.Z)({},t,{current:v,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:u,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var jt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,s=t.displaced,u=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),l=st({afterDragging:u,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,i.Z)({},t,{displaced:l})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=yt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return wt({pageBorderBoxCenter:s,draggable:n,viewport:i})},zt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&he(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,u=a.droppables,l=s[t.critical.draggable.id],c=Nt(o);c||he(!1);var d=u[c],f=jt({impact:o,viewport:i,destination:d,draggables:s}),p=Ht({impact:f,draggable:l,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return Gt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},Wt=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Tt(n.axis,t.displaceBy),a=He(n.descriptor.id,r),s=a.indexOf(t);-1===s&&he(!1);var u,l=a.slice(s+1),c=l.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:st({afterDragging:l,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:d}},$t=function(e){0},qt=function(e){0},Yt=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||he(!1),t}(n[t]),s=a.scroll.diff.value,u=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=(0,oe.cv)(t.client,n),a=(0,oe.oc)(o,r);return(0,i.Z)({},t,{placeholder:(0,i.Z)({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:_e(o,s),initialWindowScroll:r.scroll.initial});return u}))},Kt=function(e){return"SNAP"===e.movementMode},Jt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Ut(e.droppables,t)}}(e.dimensions,t);return!Kt(e)||n?Gt({state:e,dimensions:r}):zt({state:e,dimensions:r})};function Xt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,i.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Qt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(e,t){if(void 0===e&&(e=Qt),"FLUSH"===t.type)return(0,i.Z)({},Qt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&he(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,s=n.dimensions,u=n.movementMode,l=s.draggables[r.draggable.id],c=s.droppables[r.droppable.id],d={selection:o,borderBoxCenter:l.client.borderBox.center,offset:we},f={client:d,page:{selection:_e(d.selection,a.scroll.initial),borderBoxCenter:_e(d.selection,a.scroll.initial),offset:_e(d.selection,a.scroll.diff.value)}},p=Ge(s.droppables).every((function(e){return!e.isFixedOnPage})),v=Wt({draggable:l,home:c,draggables:s.draggables,viewport:a}),h=v.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:u,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:h,afterCritical:v.afterCritical,onLiftImpact:h,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&he(!1),(0,i.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&he(!1),function(e){var t=e.state,n=e.published;$t();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return ke(n,e.scroll)})),o=(0,i.Z)({},t.dimensions.droppables,{},Ue(r)),a=Ze(Yt({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),s=(0,i.Z)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var u={droppables:o,draggables:s},l=Nt(t.impact),c=l?u.droppables[l]:null,d=u.draggables[t.critical.draggable.id],f=u.droppables[t.critical.droppable.id],p=Wt({draggable:d,home:f,draggables:s,viewport:t.viewport}),v=p.impact,h=p.afterCritical,m=c&&c.isCombineEnabled?t.impact:v,g=Ft({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h});qt();var b=(0,i.Z)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:v,dimensions:u,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?b:(0,i.Z)({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Lt(e)||he(!1);var m=t.payload.client;return Re(m,e.current.client.selection)?e:Gt({state:e,clientSelection:m,impact:Kt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Xt(e);if("COLLECTING"===e.phase)return Xt(e);Lt(e)||he(!1);var g=t.payload,b=g.id,y=g.newScroll,S=e.dimensions.droppables[b];if(!S)return e;var E=ke(S,y);return Jt(e,E,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Lt(e)||he(!1);var w=t.payload,_=w.id,I=w.isEnabled,R=e.dimensions.droppables[_];R||he(!1),R.isEnabled===I&&he(!1);var C=(0,i.Z)({},R,{isEnabled:I});return Jt(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Lt(e)||he(!1);var x=t.payload,T=x.id,D=x.isCombineEnabled,O=e.dimensions.droppables[T];O||he(!1),O.isCombineEnabled===D&&he(!1);var A=(0,i.Z)({},O,{isCombineEnabled:D});return Jt(e,A,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Lt(e)||he(!1),e.isWindowScrollAllowed||he(!1);var N=t.payload.newScroll;if(Re(e.viewport.scroll.current,N))return Xt(e);var P=St(e.viewport,N);return Kt(e)?zt({state:e,viewport:P}):Gt({state:e,viewport:P})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Lt(e))return e;var L=t.payload.maxScroll;if(Re(L,e.viewport.scroll.max))return e;var k=(0,i.Z)({},e.viewport,{scroll:(0,i.Z)({},e.viewport.scroll,{max:L})});return(0,i.Z)({phase:"DRAGGING"},e,{viewport:k})}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&&he(!1);var M=Pt({state:e,type:t.type});return M?Gt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var B=t.payload.reason;return"COLLECTING"!==e.phase&&he(!1),(0,i.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:B})}if("DROP_ANIMATE"===t.type){var V=t.payload,F=V.completed,U=V.dropDuration,Z=V.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&he(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:U,newHomeClientOffset:Z,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"LIFT",payload:e}},nn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},rn=function(){return{type:"COLLECTION_STARTING",payload:null}},on=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},an=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},un=function(e){return{type:"MOVE",payload:e}},ln=function(){return{type:"MOVE_UP",payload:null}},cn=function(){return{type:"MOVE_DOWN",payload:null}},dn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},pn=function(){return{type:"FLUSH",payload:null}},vn=function(e){return{type:"DROP_COMPLETE",payload:e}},hn=function(e){return{type:"DROP",payload:e}},mn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var gn="cubic-bezier(.2,1,.1,1)",bn={drop:0,combining:.7},yn={drop:.75},Sn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",En={fluid:"opacity "+Sn,snap:"transform "+Sn+", opacity "+Sn,drop:function(e){var t=e+"s "+gn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Sn,placeholder:"height "+Sn+", width "+Sn+", margin "+Sn},wn=function(e){return Re(e,we)?null:"translate("+e.x+"px, "+e.y+"px)"},_n={moveTo:wn,drop:function(e,t){var n=wn(e);return n?t?n+" scale("+yn.drop+")":n:null}},In=.33,Rn=.55,Cn=Rn-In,xn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&he(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&he(!1);var s=o.critical,u=o.dimensions,l=u.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,i.Z)({},r,{displaced:Ke}),didDropInsideDroppable:!0}:{impact:jt({draggables:t,impact:s,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=c.impact,f=c.didDropInsideDroppable,p=f?ze(d):null,v=f?We(d):null,h={index:s.draggable.index,droppableId:s.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:a,mode:o.movementMode,destination:p,combine:v},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,u=Nt(t),l=u?s[u]:null,c=s[n.descriptor.droppableId],d=Ht({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:l||c,viewport:o});return Ie(d,n.client.borderBox.center)}({impact:d,draggable:l,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:d};if(!Re(o.current.client.offset,g)||Boolean(m.combine)){var y=function(e){var t=e.current,n=e.destination,r=e.reason,o=Te(t,n);if(o<=0)return In;if(o>=1500)return Rn;var i=In+Cn*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:g,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:y,completed:b}))}else n(vn({completed:b}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Dn(e){var t=e.onWindowScroll;var n=ue((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=ce;function i(){return o!==ce}return{start:function(){i()&&he(!1),o=de(window,[r])},stop:function(){i()||he(!1),n.cancel(),o(),o=ce},isActive:i}}var On=function(e){var t=Dn({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.