@abtnode/webapp 1.16.14-beta-dd4f6a50 → 1.16.14-beta-a90ba909

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 948.3de71452.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[948],{50948:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return qe.LK},configResponsive:function(){return Ge},createUpdateEffect:function(){return r.a},useAntdTable:function(){return l},useAsyncEffect:function(){return d},useBoolean:function(){return h},useClickAway:function(){return y},useControllableValue:function(){return w},useCookieState:function(){return Z},useCountDown:function(){return R},useCounter:function(){return C},useCreation:function(){return A.Z},useDebounce:function(){return F},useDebounceEffect:function(){return M},useDebounceFn:function(){return x.Z},useDeepCompareEffect:function(){return z},useDeepCompareLayoutEffect:function(){return P},useDocumentVisibility:function(){return U},useDrag:function(){return Y},useDrop:function(){return H},useDynamicList:function(){return X},useEventEmitter:function(){return B},useEventListener:function(){return j.Z},useEventTarget:function(){return G},useExternal:function(){return J},useFavicon:function(){return Q},useFocusWithin:function(){return ee},useFullscreen:function(){return ie},useFusionTable:function(){return oe},useGetState:function(){return ue},useHistoryTravel:function(){return ce},useHover:function(){return se},useInViewport:function(){return de},useInfiniteScroll:function(){return le.Z},useInterval:function(){return fe},useIsomorphicLayoutEffect:function(){return ve},useKeyPress:function(){return ye},useLatest:function(){return p.Z},useLocalStorageState:function(){return we},useLockFn:function(){return Ee},useLongPress:function(){return Ze},useMap:function(){return ke},useMemoizedFn:function(){return u.Z},useMount:function(){return Te.Z},useMouse:function(){return Ce},useMutationObserver:function(){return Wt},useNetwork:function(){return Fe},usePagination:function(){return c},usePrevious:function(){return Ie},useRafInterval:function(){return De},useRafState:function(){return Re},useRafTimeout:function(){return je},useReactive:function(){return Ve.Z},useRequest:function(){return a.Z},useResetState:function(){return Ue},useResponsive:function(){return Ke},useSafeState:function(){return $e},useScroll:function(){return Qe},useSelections:function(){return et},useSessionStorageState:function(){return tt},useSet:function(){return nt},useSetState:function(){return rt},useSize:function(){return Rt},useTextSelection:function(){return At},useThrottle:function(){return Nt},useThrottleEffect:function(){return Dt},useThrottleFn:function(){return It},useTimeout:function(){return zt},useTitle:function(){return Vt},useToggle:function(){return v},useTrackedEffect:function(){return qt},useUnmount:function(){return re.Z},useUnmountedRef:function(){return Je},useUpdate:function(){return b.Z},useUpdateEffect:function(){return s.Z},useUpdateLayoutEffect:function(){return Ut},useVirtualList:function(){return Yt},useWebSocket:function(){return Ht},useWhyDidYouUpdate:function(){return Xt}});var r=n(64402),i=n(27812),o=n(5057),u=n(99360),a=n(27429),c=function(e,t){var n;void 0===t&&(t={});var r=t.defaultPageSize,c=void 0===r?10:r,s=t.defaultCurrent,l=void 0===s?1:s,f=(0,i.__rest)(t,["defaultPageSize","defaultCurrent"]),d=(0,a.Z)(e,(0,i.__assign)({defaultParams:[{current:l,pageSize:c}],refreshDepsAction:function(){w(1)}},f)),v=d.params[0]||{},h=v.current,p=void 0===h?1:h,m=v.pageSize,g=void 0===m?c:m,_=(null===(n=d.data)||void 0===n?void 0:n.total)||0,y=(0,o.useMemo)((function(){return Math.ceil(_/g)}),[g,_]),b=function(e,t){var n=e<=0?1:e,r=t<=0?1:t,o=Math.ceil(_/r);n>o&&(n=Math.max(1,o));var u=(0,i.__read)(d.params||[]),a=u[0],c=void 0===a?{}:a,s=u.slice(1);d.run.apply(d,(0,i.__spreadArray)([(0,i.__assign)((0,i.__assign)({},c),{current:n,pageSize:r})],(0,i.__read)(s),!1))},w=function(e){b(e,g)};return(0,i.__assign)((0,i.__assign)({},d),{pagination:{current:p,pageSize:g,total:_,totalPage:y,onChange:(0,u.Z)(b),changeCurrent:(0,u.Z)(w),changePageSize:(0,u.Z)((function(e){b(p,e)}))}})},s=n(64217),l=function(e,t){var n;void 0===t&&(t={});var r=t.form,a=t.defaultType,l=void 0===a?"simple":a,f=t.defaultParams,d=t.manual,v=void 0!==d&&d,h=t.refreshDeps,p=void 0===h?[]:h,m=t.ready,g=void 0===m||m,_=(0,i.__rest)(t,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),y=c(e,(0,i.__assign)({manual:!0},_)),b=y.params,w=void 0===b?[]:b,E=y.run,S=w[2]||{},Z=(0,i.__read)((0,o.useState)((null===S||void 0===S?void 0:S.type)||l),2),k=Z[0],T=Z[1],L=(0,o.useRef)({}),R=(0,o.useRef)([]),O=!!(null===r||void 0===r?void 0:r.getInternalHooks),C=function(){if(!r)return{};if(O)return r.getFieldsValue(null,(function(){return!0}));var e=r.getFieldsValue(),t={};return Object.keys(e).forEach((function(n){r.getFieldInstance&&!r.getFieldInstance(n)||(t[n]=e[n])})),t},A=function(){if(r){if(O)return r.setFieldsValue(L.current);var e={};Object.keys(L.current).forEach((function(t){r.getFieldInstance&&!r.getFieldInstance(t)||(e[t]=L.current[t])})),r.setFieldsValue(e)}},x=function(e){g&&setTimeout((function(){(function(){if(!r)return Promise.resolve({});var e=C(),t=Object.keys(e);return O?r.validateFields(t):new Promise((function(e,n){r.validateFields(t,(function(t,r){t?n(t):e(r)}))}))})().then((function(n){void 0===n&&(n={});var o=e||(0,i.__assign)((0,i.__assign)({pageSize:t.defaultPageSize||10},(null===w||void 0===w?void 0:w[0])||{}),{current:1});r?(L.current=(0,i.__assign)((0,i.__assign)({},L.current),n),E(o,n,{allFormData:L.current,type:k})):E(o)})).catch((function(e){return e}))}))};(0,o.useEffect)((function(){if(w.length>0)return L.current=(null===S||void 0===S?void 0:S.allFormData)||{},A(),void E.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(w),!1));!v&&g&&(L.current=(null===f||void 0===f?void 0:f[1])||{},A(),x(null===f||void 0===f?void 0:f[0]))}),[]),(0,s.Z)((function(){g&&A()}),[k]);var F=(0,o.useRef)(!1);return F.current=!1,(0,s.Z)((function(){!v&&g&&(F.current=!0,r&&r.resetFields(),L.current=(null===f||void 0===f?void 0:f[1])||{},A(),x(null===f||void 0===f?void 0:f[0]))}),[g]),(0,s.Z)((function(){F.current||g&&(v||(F.current=!0,y.pagination.changeCurrent(1)))}),(0,i.__spreadArray)([],(0,i.__read)(p),!1)),(0,i.__assign)((0,i.__assign)({},y),{tableProps:{dataSource:(null===(n=y.data)||void 0===n?void 0:n.list)||R.current,loading:y.loading,onChange:(0,u.Z)((function(e,t,n,r){var o=(0,i.__read)(w||[]),u=o[0],a=o.slice(1);E.apply(void 0,(0,i.__spreadArray)([(0,i.__assign)((0,i.__assign)({},u),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:r})],(0,i.__read)(a),!1))})),pagination:{current:y.pagination.current,pageSize:y.pagination.pageSize,total:y.pagination.total}},search:{submit:(0,u.Z)((function(e){var t;null===(t=null===e||void 0===e?void 0:e.preventDefault)||void 0===t||t.call(e),x()})),type:k,changeType:(0,u.Z)((function(){var e=C();L.current=(0,i.__assign)((0,i.__assign)({},L.current),e),T((function(e){return"simple"===e?"advance":"simple"}))})),reset:(0,u.Z)((function(){var e,n;r&&r.resetFields(),x((0,i.__assign)((0,i.__assign)({},(null===f||void 0===f?void 0:f[0])||{}),{pageSize:t.defaultPageSize||(null===(n=null===(e=t.defaultParams)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageSize)||10,current:1}))}))}})},f=n(89141);var d=function(e,t){(0,o.useEffect)((function(){var t=e(),n=!1;return function(){(0,i.__awaiter)(this,void 0,void 0,(function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:if(r=t,!(0,f.mf)(r[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:return e.sent().done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}var r}))}))}(),function(){n=!0}}),t)};var v=function(e,t){void 0===e&&(e=!1);var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1];return[r,(0,o.useMemo)((function(){var n=void 0===t?!e:t;return{toggle:function(){return u((function(t){return t===e?n:e}))},set:function(e){return u(e)},setLeft:function(){return u(e)},setRight:function(){return u(n)}}}),[])]};function h(e){void 0===e&&(e=!1);var t=(0,i.__read)(v(!!e),2),n=t[0],r=t[1],u=r.toggle,a=r.set;return[n,(0,o.useMemo)((function(){return{toggle:u,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}}),[])]}var p=n(67120),m=n(41168),g=function(e){if(!e||!document.getRootNode)return document;var t,n=Array.isArray(e)?e:[e];return function(e){return e.every((function(e){var t=(0,m.n)(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=(0,m.n)(n[0]))?t.getRootNode():document},_=n(78590);function y(e,t,n){void 0===n&&(n="click");var r=(0,p.Z)(e);(0,_.Z)((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=(0,m.n)(t);return!n||n.contains(e.target)}))||r.current(e)},i=g(t),o=Array.isArray(n)?n:[n];return o.forEach((function(t){return i.addEventListener(t,e)})),function(){o.forEach((function(t){return i.removeEventListener(t,e)}))}}),Array.isArray(n)?n:[n],t)}var b=n(39861);var w=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.defaultValue,r=t.defaultValuePropName,a=void 0===r?"defaultValue":r,c=t.valuePropName,s=void 0===c?"value":c,l=t.trigger,d=void 0===l?"onChange":l,v=e[s],h=e.hasOwnProperty(s),p=(0,o.useMemo)((function(){return h?v:e.hasOwnProperty(a)?e[a]:n}),[]),m=(0,o.useRef)(p);h&&(m.current=v);var g=(0,b.Z)();return[m.current,(0,u.Z)((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=(0,f.mf)(t)?t(m.current):t;h||(m.current=o,g()),e[d]&&e[d].apply(e,(0,i.__spreadArray)([o],(0,i.__read)(n),!1))}))]},E=n(4899),S=n.n(E);var Z=function(e,t){void 0===t&&(t={});var n=(0,i.__read)((0,o.useState)((function(){var n=S().get(e);return(0,f.HD)(n)?n:(0,f.mf)(t.defaultValue)?t.defaultValue():t.defaultValue})),2),r=n[0],a=n[1],c=(0,u.Z)((function(n,o){void 0===o&&(o={});var u=(0,i.__assign)((0,i.__assign)({},t),o),c=(u.defaultValue,(0,i.__rest)(u,["defaultValue"])),s=(0,f.mf)(n)?n(r):n;a(s),void 0===s?S().remove(e):S().set(e,s,c)}));return[r,c]},k=n(74410),T=n.n(k),L=function(e){if(!e)return 0;var t=T()(e).valueOf()-Date.now();return t<0?0:t},R=function(e){void 0===e&&(e={});var t=e||{},n=t.leftTime,r=t.targetDate,u=t.interval,a=void 0===u?1e3:u,c=t.onEnd,s=(0,o.useMemo)((function(){return"leftTime"in e?(0,f.hj)(n)&&n>0?Date.now()+n:void 0:r}),[n,r]),l=(0,i.__read)((0,o.useState)((function(){return L(s)})),2),d=l[0],v=l[1],h=(0,p.Z)(c);(0,o.useEffect)((function(){if(s){v(L(s));var e=setInterval((function(){var t,n=L(s);v(n),0===n&&(clearInterval(e),null===(t=h.current)||void 0===t||t.call(h))}),a);return function(){return clearInterval(e)}}v(0)}),[s,a]);var m=(0,o.useMemo)((function(){return e=d,{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3};var e}),[d]);return[d,m]};function O(e,t){void 0===t&&(t={});var n=t.min,r=t.max,i=e;return(0,f.hj)(r)&&(i=Math.min(r,i)),(0,f.hj)(n)&&(i=Math.max(n,i)),i}var C=function(e,t){void 0===e&&(e=0),void 0===t&&(t={});var n=t.min,r=t.max,a=(0,i.__read)((0,o.useState)((function(){return O(e,{min:n,max:r})})),2),c=a[0],s=a[1],l=function(e){s((function(t){return O((0,f.hj)(e)?e:e(t),{max:r,min:n})}))};return[c,{inc:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t+e}))})),dec:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t-e}))})),set:(0,u.Z)((function(e){l(e)})),reset:(0,u.Z)((function(){l(e)}))}]},A=n(93066),x=n(7411);var F=function(e,t){var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=(0,x.Z)((function(){u(e)}),t).run;return(0,o.useEffect)((function(){a()}),[e]),r};var M=function(e,t,n){var r=(0,i.__read)((0,o.useState)({}),2),u=r[0],a=r[1],c=(0,x.Z)((function(){a({})}),n).run;(0,o.useEffect)((function(){return c()}),t),(0,s.Z)(e,[u])},I=n(50482),N=n.n(I),D=function(e){return function(t,n){var r,i,u=(0,o.useRef)(),a=(0,o.useRef)(0);void 0!==n&&(r=n,i=u.current,void 0===r&&(r=[]),void 0===i&&(i=[]),N()(r,i))||(u.current=n,a.current+=1),e(t,[a.current])}},z=D(o.useEffect),P=D(o.useLayoutEffect),j=n(80226),V=n(87374),q=function(){return V.Z?document.visibilityState:"visible"};var U=function(){var e=(0,i.__read)((0,o.useState)((function(){return q()})),2),t=e[0],n=e[1];return(0,j.Z)("visibilitychange",(function(){n(q())}),{target:function(){return document}}),t},Y=function(e,t,n){void 0===n&&(n={});var r=(0,p.Z)(n),i=(0,p.Z)(e);(0,_.Z)((function(){var e=(0,m.n)(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){var t,n;null===(n=(t=r.current).onDragStart)||void 0===n||n.call(t,e),e.dataTransfer.setData("custom",JSON.stringify(i.current))},o=function(e){var t,n;null===(n=(t=r.current).onDragEnd)||void 0===n||n.call(t,e)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",n),e.addEventListener("dragend",o),function(){e.removeEventListener("dragstart",n),e.removeEventListener("dragend",o)}}}),[],t)},H=function(e,t){void 0===t&&(t={});var n=(0,p.Z)(t),r=(0,o.useRef)();(0,_.Z)((function(){var t=(0,m.n)(e);if(null===t||void 0===t?void 0:t.addEventListener){var i=function(e,t){var r=e.getData("text/uri-list"),i=e.getData("custom");if(i&&n.current.onDom){var o=i;try{o=JSON.parse(i)}catch(u){o=i}n.current.onDom(o,t)}else r&&n.current.onUri?n.current.onUri(r,t):e.files&&e.files.length&&n.current.onFiles?n.current.onFiles(Array.from(e.files),t):e.items&&e.items.length&&n.current.onText&&e.items[0].getAsString((function(e){n.current.onText(e,t)}))},o=function(e){var t,i;e.preventDefault(),e.stopPropagation(),r.current=e.target,null===(i=(t=n.current).onDragEnter)||void 0===i||i.call(t,e)},u=function(e){var t,r;e.preventDefault(),null===(r=(t=n.current).onDragOver)||void 0===r||r.call(t,e)},a=function(e){var t,i;e.target===r.current&&(null===(i=(t=n.current).onDragLeave)||void 0===i||i.call(t,e))},c=function(e){var t,r;e.preventDefault(),i(e.dataTransfer,e),null===(r=(t=n.current).onDrop)||void 0===r||r.call(t,e)},s=function(e){var t,r;i(e.clipboardData,e),null===(r=(t=n.current).onPaste)||void 0===r||r.call(t,e)};return t.addEventListener("dragenter",o),t.addEventListener("dragover",u),t.addEventListener("dragleave",a),t.addEventListener("drop",c),t.addEventListener("paste",s),function(){t.removeEventListener("dragenter",o),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",a),t.removeEventListener("drop",c),t.removeEventListener("paste",s)}}}),[],e)},X=function(e){void 0===e&&(e=[]);var t=(0,o.useRef)(-1),n=(0,o.useRef)([]),r=(0,o.useCallback)((function(e){t.current+=1,n.current.splice(e,0,t.current)}),[]),u=(0,i.__read)((0,o.useState)((function(){return e.forEach((function(e,t){r(t)})),e})),2),a=u[0],c=u[1],s=(0,o.useCallback)((function(e){n.current=[],c((function(){return e.forEach((function(e,t){r(t)})),e}))}),[]),l=(0,o.useCallback)((function(e,t){c((function(n){var o=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return o.splice(e,0,t),r(e),o}))}),[]),f=(0,o.useCallback)((function(e){return n.current[e]}),[]),d=(0,o.useCallback)((function(e){return n.current.findIndex((function(t){return t===e}))}),[]),v=(0,o.useCallback)((function(e,t){c((function(n){var o=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return t.forEach((function(t,n){r(e+n)})),o.splice.apply(o,(0,i.__spreadArray)([e,0],(0,i.__read)(t),!1)),o}))}),[]),h=(0,o.useCallback)((function(e,t){c((function(n){var r=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return r[e]=t,r}))}),[]),p=(0,o.useCallback)((function(e){c((function(t){var r=(0,i.__spreadArray)([],(0,i.__read)(t),!1);r.splice(e,1);try{n.current.splice(e,1)}catch(o){console.error(o)}return r}))}),[]),m=(0,o.useCallback)((function(e,t){e!==t&&c((function(r){var o=(0,i.__spreadArray)([],(0,i.__read)(r),!1),u=o.filter((function(t,n){return n!==e}));u.splice(t,0,o[e]);try{var a=n.current.filter((function(t,n){return n!==e}));a.splice(t,0,n.current[e]),n.current=a}catch(c){console.error(c)}return u}))}),[]),g=(0,o.useCallback)((function(e){c((function(t){return r(t.length),t.concat([e])}))}),[]),_=(0,o.useCallback)((function(){try{n.current=n.current.slice(0,n.current.length-1)}catch(e){console.error(e)}c((function(e){return e.slice(0,e.length-1)}))}),[]),y=(0,o.useCallback)((function(e){c((function(t){return r(0),[e].concat(t)}))}),[]),b=(0,o.useCallback)((function(){try{n.current=n.current.slice(1,n.current.length)}catch(e){console.error(e)}c((function(e){return e.slice(1,e.length)}))}),[]),w=(0,o.useCallback)((function(e){return e.map((function(e,t){return{key:t,item:e}})).sort((function(e,t){return d(e.key)-d(t.key)})).filter((function(e){return!!e.item})).map((function(e){return e.item}))}),[]);return{list:a,insert:l,merge:v,replace:h,remove:p,getKey:f,getIndex:d,move:m,push:g,pop:_,unshift:y,shift:b,sortList:w,resetList:s}},W=function(){var e=this;this.subscriptions=new Set,this.emit=function(t){var n,r;try{for(var o=(0,i.__values)(e.subscriptions),u=o.next();!u.done;u=o.next())(0,u.value)(t)}catch(a){n={error:a}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},this.useSubscription=function(t){var n=(0,o.useRef)();n.current=t,(0,o.useEffect)((function(){function t(e){n.current&&n.current(e)}return e.subscriptions.add(t),function(){e.subscriptions.delete(t)}}),[])}};function B(){var e=(0,o.useRef)();return e.current||(e.current=new W),e.current}var G=function(e){var t=e||{},n=t.initialValue,r=t.transformer,u=(0,i.__read)((0,o.useState)(n),2),a=u[0],c=u[1],s=(0,p.Z)(r),l=(0,o.useCallback)((function(){return c(n)}),[]);return[a,{onChange:(0,o.useCallback)((function(e){var t=e.target.value;return(0,f.mf)(s.current)?c(s.current(t)):c(t)}),[]),reset:l}]},K={},J=function(e,t){var n=(0,i.__read)((0,o.useState)(e?"loading":"unset"),2),r=n[0],u=n[1],a=(0,o.useRef)();return(0,o.useEffect)((function(){if(e){var n=e.replace(/[|#].*$/,"");if("css"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^css!|\.css$)/.test(n)){var r=function(e,t){void 0===t&&(t={});var n=document.querySelector('link[href="'.concat(e,'"]'));if(!n){var r=document.createElement("link");return r.rel="stylesheet",r.href=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),"hideFocus"in r&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.css);a.current=r.ref,u(r.status)}else if("js"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^js!|\.js$)/.test(n)){r=function(e,t){void 0===t&&(t={});var n=document.querySelector('script[src="'.concat(e,'"]'));if(!n){var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.js);a.current=r.ref,u(r.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(a.current){void 0===K[e]?K[e]=1:K[e]+=1;var i=function(e){var t,n="load"===e.type?"ready":"error";null===(t=a.current)||void 0===t||t.setAttribute("data-status",n),u(n)};return a.current.addEventListener("load",i),a.current.addEventListener("error",i),function(){var n,r,o;null===(n=a.current)||void 0===n||n.removeEventListener("load",i),null===(r=a.current)||void 0===r||r.removeEventListener("error",i),K[e]-=1,0!==K[e]||(null===t||void 0===t?void 0:t.keepWhenUnused)||null===(o=a.current)||void 0===o||o.remove(),a.current=void 0}}}else u("unset")}),[e]),r},$={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},Q=function(e){(0,o.useEffect)((function(){if(e){var t=e.split("."),n=t[t.length-1].toLocaleUpperCase(),r=document.querySelector("link[rel*='icon']")||document.createElement("link");r.type=$[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function ee(e,t){var n=(0,i.__read)((0,o.useState)(!1),2),r=n[0],u=n[1],a=t||{},c=a.onFocus,s=a.onBlur,l=a.onChange;return(0,j.Z)("focusin",(function(e){r||(null===c||void 0===c||c(e),null===l||void 0===l||l(!0),u(!0))}),{target:e}),(0,j.Z)("focusout",(function(e){var t,n;r&&!(null===(n=null===(t=e.currentTarget)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,e.relatedTarget))&&(null===s||void 0===s||s(e),null===l||void 0===l||l(!1),u(!1))}),{target:e}),r}var te=n(20026),ne=n.n(te),re=n(78923),ie=function(e,t){var n=t||{},r=n.onExit,a=n.onEnter,c=n.pageFullscreen,s=void 0!==c&&c,l=(0,f.jn)(s)||!s?{}:s,d=l.className,v=void 0===d?"ahooks-page-fullscreen":d,h=l.zIndex,g=void 0===h?999999:h,_=(0,p.Z)(r),y=(0,p.Z)(a),b=(0,i.__read)((0,o.useState)(!1),2),w=b[0],E=b[1],S=function(e){var t,n;e?null===(t=y.current)||void 0===t||t.call(y):null===(n=_.current)||void 0===n||n.call(_)},Z=(0,u.Z)((function(){if(ne().isEnabled){var t=(0,m.n)(e);if(ne().element){var n=ne().element===t;S(n),E(n)}else S(!1),E(!1),ne().off("change",Z)}})),k=function(t){var n=(0,m.n)(e);if(n){var r=document.getElementById(v);t?(n.classList.add(v),r||((r=document.createElement("style")).setAttribute("id",v),r.textContent="\n .".concat(v," {\n position: fixed; left: 0; top: 0; right: 0; bottom: 0;\n width: 100% !important; height: 100% !important;\n z-index: ").concat(g,";\n }"),n.appendChild(r))):(n.classList.remove(v),r&&r.remove()),w!==t&&(S(t),E(t))}},T=function(){var t=(0,m.n)(e);if(t)if(s)k(!0);else if(ne().isEnabled)try{ne().request(t),ne().on("change",Z)}catch(n){console.error(n)}},L=function(){var t=(0,m.n)(e);t&&(s?k(!1):ne().isEnabled&&ne().element===t&&ne().exit())};return(0,re.Z)((function(){ne().isEnabled&&!s&&ne().off("change",Z)})),[w,{enterFullscreen:(0,u.Z)(T),exitFullscreen:(0,u.Z)(L),toggleFullscreen:(0,u.Z)((function(){w?L():T()})),isEnabled:ne().isEnabled}]},oe=function(e,t){var n;return void 0===t&&(t={}),function(e){var t={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(t,n){var r;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},null===(r=e.params[0])||void 0===r?void 0:r.filters,{field:t,order:n})},onFilter:function(t){var n;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},t,null===(n=e.params[0])||void 0===n?void 0:n.sorter)}},n={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return(0,i.__assign)((0,i.__assign)({},e),{tableProps:t,paginationProps:n})}(l(e,(0,i.__assign)((0,i.__assign)({},t),{form:t.field?(n=t.field,{getFieldInstance:function(e){return n.getNames().includes(e)},setFieldsValue:n.setValues,getFieldsValue:n.getValues,resetFields:n.resetToDefault,validateFields:function(e,t){n.validate(e,t)}}):void 0})))};var ue=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1],u=(0,o.useRef)(n);return u.current=n,[n,r,(0,o.useCallback)((function(){return u.current}),[])]},ae=function(e,t){var n=function(e,t){var n=e>0?e-1:t.length+e;return n>=t.length-1&&(n=t.length-1),n<0&&(n=0),n}(e,t);return{_current:t[n],_before:t.slice(0,n),_after:t.slice(n+1)}};function ce(e,t){void 0===t&&(t=0);var n=(0,i.__read)((0,o.useState)({present:e,past:[],future:[]}),2),r=n[0],a=n[1],c=r.present,s=r.past,l=r.future,d=(0,o.useRef)(e),v=function(e){var t=(0,f.hj)(e)?e:Number(e);if(0!==t)return t>0?function(e){if(void 0===e&&(e=1),0!==l.length){var t=ae(e,l),n=t._before,r=t._current,o=t._after;a({past:(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(s),!1),[c],!1),(0,i.__read)(n),!1),present:r,future:o})}}(t):void function(e){if(void 0===e&&(e=-1),0!==s.length){var t=ae(e,s),n=t._before,r=t._current,o=t._after;a({past:n,present:r,future:(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(o),!1),[c],!1),(0,i.__read)(l),!1)})}}(t)};return{value:c,backLength:s.length,forwardLength:l.length,setValue:(0,u.Z)((function(e){var n=(0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(s),!1),[c],!1),r=(0,f.hj)(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),a({present:e,future:[],past:n})})),go:(0,u.Z)(v),back:(0,u.Z)((function(){v(-1)})),forward:(0,u.Z)((function(){v(1)})),reset:(0,u.Z)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length>0?e[0]:d.current;d.current=n,a({present:n,future:[],past:[]})}))}}var se=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,u=n.onChange,a=(0,i.__read)(h(!1),2),c=a[0],s=a[1],l=s.setTrue,f=s.setFalse;return(0,j.Z)("mouseenter",(function(){null===r||void 0===r||r(),l(),null===u||void 0===u||u(!0)}),{target:e}),(0,j.Z)("mouseleave",(function(){null===o||void 0===o||o(),f(),null===u||void 0===u||u(!1)}),{target:e}),c},le=n(66411),fe=function(e,t,n){void 0===n&&(n={});var r=(0,u.Z)(e),i=(0,o.useRef)(null),a=(0,o.useCallback)((function(){i.current&&clearInterval(i.current)}),[]);return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return n.immediate&&r(),i.current=setInterval(r,t),a}),[t,n.immediate]),a};n(53634);var de=function(e,t){var n=(0,i.__read)((0,o.useState)(),2),r=n[0],u=n[1],a=(0,i.__read)((0,o.useState)(),2),c=a[0],s=a[1];return(0,_.Z)((function(){var n=(0,m.n)(e);if(n){var r=new IntersectionObserver((function(e){var t,n;try{for(var r=(0,i.__values)(e),o=r.next();!o.done;o=r.next()){var a=o.value;s(a.intersectionRatio),u(a.isIntersecting)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(0,i.__assign)((0,i.__assign)({},t),{root:(0,m.n)(null===t||void 0===t?void 0:t.root)}));return r.observe(n),function(){r.disconnect()}}}),[null===t||void 0===t?void 0:t.rootMargin,null===t||void 0===t?void 0:t.threshold],e),[r,c]},ve=V.Z?o.useLayoutEffect:o.useEffect,he=function(e,t,n){var r,i,u=(0,o.useRef)(),a=(0,o.useRef)(0);r=t,void 0===(i=u.current)&&(i=[]),N()(r,i)||(u.current=t,a.current+=1),(0,_.Z)(e,[a.current],n)},pe={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:"")?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},me={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?pe.meta.includes(e.keyCode):e.metaKey}};function ge(e,t,n){var r,o;if(!e.key)return!1;if((0,f.hj)(t))return e.keyCode===t;var u=t.split("."),a=0;try{for(var c=(0,i.__values)(u),s=c.next();!s.done;s=c.next()){var l=s.value,d=me[l],v=pe[l.toLowerCase()];(d&&d(e)||v&&v===e.keyCode)&&a++}}catch(h){r={error:h}}finally{try{s&&!s.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return n?a===u.length&&function(e){var t=Object.keys(me).reduce((function(t,n){return me[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===u.length:a===u.length}var _e=["keydown"];var ye=function(e,t,n){var r=n||{},o=r.events,u=void 0===o?_e:o,a=r.target,c=r.exactMatch,s=void 0!==c&&c,l=r.useCapture,d=void 0!==l&&l,v=(0,p.Z)(t),h=(0,p.Z)(e);he((function(){var e,t,n,r=(0,m.n)(a,window);if(r){var o=function(e){var t,n=function(e,t){return(0,f.mf)(e)?e:(0,f.HD)(e)||(0,f.hj)(e)?function(n){return ge(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return ge(n,e,t)}))}:function(){return Boolean(e)}}(h.current,s);if(n(e))return null===(t=v.current)||void 0===t?void 0:t.call(v,e)};try{for(var c=(0,i.__values)(u),l=c.next();!l.done;l=c.next()){var p=l.value;null===(n=null===r||void 0===r?void 0:r.addEventListener)||void 0===n||n.call(r,p,o,d)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return function(){var e,t,n;try{for(var a=(0,i.__values)(u),c=a.next();!c.done;c=a.next()){var s=c.value;null===(n=null===r||void 0===r?void 0:r.removeEventListener)||void 0===n||n.call(r,s,o,d)}}catch(l){e={error:l}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}}}),[u],a)};function be(e){return function(t,n){var r;void 0===n&&(n={});var a=n.onError,c=void 0===a?function(e){console.error(e)}:a;try{r=e()}catch(p){c(p)}function l(){try{var e=null===r||void 0===r?void 0:r.getItem(t);if(e)return i=e,(null===n||void 0===n?void 0:n.deserializer)?null===n||void 0===n?void 0:n.deserializer(i):JSON.parse(i)}catch(o){c(o)}var i;return(0,f.mf)(null===n||void 0===n?void 0:n.defaultValue)?null===n||void 0===n?void 0:n.defaultValue():null===n||void 0===n?void 0:n.defaultValue}var d=(0,i.__read)((0,o.useState)((function(){return l()})),2),v=d[0],h=d[1];return(0,s.Z)((function(){h(l())}),[t]),[v,(0,u.Z)((function(e){var i=(0,f.mf)(e)?e(v):e;if(h(i),(0,f.G7)(i))null===r||void 0===r||r.removeItem(t);else try{null===r||void 0===r||r.setItem(t,function(e){return(null===n||void 0===n?void 0:n.serializer)?null===n||void 0===n?void 0:n.serializer(e):JSON.stringify(e)}(i))}catch(o){console.error(o)}}))]}}var we=be((function(){return V.Z?localStorage:void 0}));var Ee=function(e){var t=this,n=(0,o.useRef)(!1);return(0,o.useCallback)((function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return(0,i.__awaiter)(t,void 0,void 0,(function(){var t,o;return(0,i.__generator)(this,(function(u){switch(u.label){case 0:if(n.current)return[2];n.current=!0,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(r),!1))];case 2:return t=u.sent(),n.current=!1,[2,t];case 3:throw o=u.sent(),n.current=!1,o;case 4:return[2]}}))}))}),[e])},Se=V.Z&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var Ze=function(e,t,n){var r=void 0===n?{}:n,i=r.delay,u=void 0===i?300:i,a=r.moveThreshold,c=r.onClick,s=r.onLongPressEnd,l=(0,p.Z)(e),f=(0,p.Z)(c),d=(0,p.Z)(s),v=(0,o.useRef)(),h=(0,o.useRef)(!1),g=(0,o.useRef)({x:0,y:0}),y=!!((null===a||void 0===a?void 0:a.x)&&a.x>0||(null===a||void 0===a?void 0:a.y)&&a.y>0);(0,_.Z)((function(){var e=(0,m.n)(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(y){var t=c(e),n=t.clientX,r=t.clientY;g.current.x=n,g.current.y=r}v.current=setTimeout((function(){l.current(e),h.current=!0}),u)},r=function(e){v.current&&function(e){var t=c(e),n=t.clientX,r=t.clientY,i=Math.abs(n-g.current.x),o=Math.abs(r-g.current.y);return!!((null===a||void 0===a?void 0:a.x)&&i>a.x||(null===a||void 0===a?void 0:a.y)&&o>a.y)}(e)&&(clearInterval(v.current),v.current=void 0)},i=function(e,t){var n;void 0===t&&(t=!1),v.current&&clearTimeout(v.current),h.current&&(null===(n=d.current)||void 0===n||n.call(d,e)),t&&!h.current&&f.current&&f.current(e),h.current=!1},o=function(e){return i(e,!0)};return Se?(e.addEventListener("touchstart",n),e.addEventListener("touchend",o),y&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",o),e.addEventListener("mouseleave",i),y&&e.addEventListener("mousemove",r)),function(){v.current&&(clearTimeout(v.current),h.current=!1),Se?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",o),y&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",o),e.removeEventListener("mouseleave",i),y&&e.removeEventListener("mousemove",r))}}function c(e){return e instanceof TouchEvent?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}}),[],t)};var ke=function(e){var t=function(){return new Map(e)},n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1];return[r,{set:(0,u.Z)((function(e,t){a((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:(0,u.Z)((function(e){a(new Map(e))})),remove:(0,u.Z)((function(e){a((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())})),get:(0,u.Z)((function(e){return r.get(e)}))}]},Te=n(42061);var Le,Re=function(e){var t=(0,o.useRef)(0),n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=(0,o.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){u(e)}))}),[]);return(0,re.Z)((function(){cancelAnimationFrame(t.current)})),[r,a]},Oe={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Ce=function(e){var t=(0,i.__read)(Re(Oe),2),n=t[0],r=t[1];return(0,j.Z)("mousemove",(function(t){var n=t.screenX,i=t.screenY,o=t.clientX,u=t.clientY,a=t.pageX,c=t.pageY,s={screenX:n,screenY:i,clientX:o,clientY:u,pageX:a,pageY:c,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},l=(0,m.n)(e);if(l){var f=l.getBoundingClientRect(),d=f.left,v=f.top,h=f.width,p=f.height;s.elementPosX=d+window.pageXOffset,s.elementPosY=v+window.pageYOffset,s.elementX=a-s.elementPosX,s.elementY=c-s.elementPosY,s.elementW=h,s.elementH=p}r(s)}),{target:function(){return document}}),n};function Ae(){var e=navigator;return(0,f.Kn)(e)?e.connection||e.mozConnection||e.webkitConnection:null}function xe(){var e=Ae();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}!function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"}(Le||(Le={}));var Fe=function(){var e=(0,i.__read)((0,o.useState)((function(){return(0,i.__assign)({since:void 0,online:null===navigator||void 0===navigator?void 0:navigator.onLine},xe())})),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),{online:!0,since:new Date})}))},t=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),{online:!1,since:new Date})}))},r=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),xe())}))};window.addEventListener(Le.ONLINE,e),window.addEventListener(Le.OFFLINE,t);var o=Ae();return null===o||void 0===o||o.addEventListener(Le.CHANGE,r),function(){window.removeEventListener(Le.ONLINE,e),window.removeEventListener(Le.OFFLINE,t),null===o||void 0===o||o.removeEventListener(Le.CHANGE,r)}}),[]),t},Me=function(e,t){return!Object.is(e,t)};var Ie=function(e,t){void 0===t&&(t=Me);var n=(0,o.useRef)(),r=(0,o.useRef)();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current};var Ne=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};var De=function(e,t,n){var r=null===n||void 0===n?void 0:n.immediate,i=(0,p.Z)(e),u=(0,o.useRef)();return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r&&i.current(),u.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=(new Date).getTime(),r={id:0};return r.id=requestAnimationFrame((function i(){(new Date).getTime()-n>=t&&(e(),n=(new Date).getTime()),r.id=requestAnimationFrame(i)})),r}((function(){i.current()}),t),function(){u.current&&Ne(u.current)}}),[t]),(0,o.useCallback)((function(){u.current&&Ne(u.current)}),[])};var ze=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var Pe,je=function(e,t){var n=(0,p.Z)(e),r=(0,o.useRef)();return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setTimeout(e,t)};var n={id:0},r=(new Date).getTime();return n.id=requestAnimationFrame((function i(){(new Date).getTime()-r>=t?e():n.id=requestAnimationFrame(i)})),n}((function(){n.current()}),t),function(){r.current&&ze(r.current)}}),[t]),(0,o.useCallback)((function(){r.current&&ze(r.current)}),[])},Ve=n(12673),qe=n(813),Ue=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1],a=(0,u.Z)((function(){r(e)}));return[n,r,a]},Ye=new Set,He={xs:0,sm:576,md:768,lg:992,xl:1200};function Xe(){var e,t,n=Pe;if(Be(),n!==Pe)try{for(var r=(0,i.__values)(Ye),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(u){e={error:u}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}var We=!1;function Be(){var e,t,n=window.innerWidth,r={},o=!1;try{for(var u=(0,i.__values)(Object.keys(He)),a=u.next();!a.done;a=u.next()){var c=a.value;r[c]=n>=He[c],r[c]!==Pe[c]&&(o=!0)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}o&&(Pe=r)}function Ge(e){He=e,Pe&&Be()}function Ke(){V.Z&&!We&&(Pe={},Be(),window.addEventListener("resize",Xe),We=!0);var e=(0,i.__read)((0,o.useState)(Pe),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){if(V.Z){We||window.addEventListener("resize",Xe);var e=function(){n(Pe)};return Ye.add(e),function(){Ye.delete(e),0===Ye.size&&(window.removeEventListener("resize",Xe),We=!1)}}}),[]),t}var Je=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var $e=function(e){var t=Je(),n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1];return[r,(0,o.useCallback)((function(e){t.current||u(e)}),[])]};var Qe=function(e,t){void 0===t&&(t=function(){return!0});var n=(0,i.__read)(Re(),2),r=n[0],o=n[1],u=(0,p.Z)(t);return(0,_.Z)((function(){var t=(0,m.n)(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},u.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),r};function et(e,t){void 0===t&&(t=[]);var n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1],c=(0,o.useMemo)((function(){return new Set(r)}),[r]),s=function(e){return c.has(e)},l=function(e){return c.add(e),a(Array.from(c))},f=function(e){return c.delete(e),a(Array.from(c))},d=function(){e.forEach((function(e){c.add(e)})),a(Array.from(c))},v=function(){e.forEach((function(e){c.delete(e)})),a(Array.from(c))},h=(0,o.useMemo)((function(){return e.every((function(e){return!c.has(e)}))}),[e,c]),p=(0,o.useMemo)((function(){return e.every((function(e){return c.has(e)}))&&!h}),[e,c,h]),m=(0,o.useMemo)((function(){return!h&&!p}),[h,p]);return{selected:r,noneSelected:h,allSelected:p,partiallySelected:m,setSelected:a,isSelected:s,select:(0,u.Z)(l),unSelect:(0,u.Z)(f),toggle:(0,u.Z)((function(e){s(e)?f(e):l(e)})),selectAll:(0,u.Z)(d),unSelectAll:(0,u.Z)(v),toggleAll:(0,u.Z)((function(){return p?v():d()}))}}var tt=be((function(){return V.Z?sessionStorage:void 0}));var nt=function(e){var t=function(){return new Set(e)},n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1];return[r,{add:(0,u.Z)((function(e){r.has(e)||a((function(t){var n=new Set(t);return n.add(e),n}))})),remove:(0,u.Z)((function(e){r.has(e)&&a((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())}))}]},rt=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1];return[n,(0,o.useCallback)((function(e){r((function(t){var n=(0,f.mf)(e)?e(t):e;return n?(0,i.__assign)((0,i.__assign)({},t),n):t}))}),[])]},it=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),ot="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,ut="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),at="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(ut):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ct=["top","right","bottom","left","width","height","size","weight"],st="undefined"!==typeof MutationObserver,lt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&a()}function u(){at(o)}function a(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);i=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ot&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),st?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ot&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ct.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ft=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},dt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ut},vt=yt(0,0,0,0);function ht(e){return parseFloat(e)||0}function pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ht(e["border-"+n+"-width"])}),0)}function mt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return vt;var r=dt(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=ht(o)}return t}(r),o=i.left+i.right,u=i.top+i.bottom,a=ht(r.width),c=ht(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=pt(r,"left","right")+o),Math.round(c+u)!==n&&(c-=pt(r,"top","bottom")+u)),!function(e){return e===dt(e).document.documentElement}(e)){var s=Math.round(a+o)-t,l=Math.round(c+u)-n;1!==Math.abs(s)&&(a-=s),1!==Math.abs(l)&&(c-=l)}return yt(i.left,i.top,a,c)}var gt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof dt(e).SVGGraphicsElement}:function(e){return e instanceof dt(e).SVGElement&&"function"===typeof e.getBBox};function _t(e){return ot?gt(e)?function(e){var t=e.getBBox();return yt(0,0,t.width,t.height)}(e):mt(e):vt}function yt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var bt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_t(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wt=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(o.prototype);return ft(u,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),u}(t);ft(this,{target:e,contentRect:n})},Et=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new it,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new bt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new wt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),St="undefined"!==typeof WeakMap?new WeakMap:new it,Zt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=lt.getInstance(),r=new Et(t,n,this);St.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Zt.prototype[e]=function(){var t;return(t=St.get(this))[e].apply(t,arguments)}}));var kt="undefined"!==typeof ut.ResizeObserver?ut.ResizeObserver:Zt,Tt=(0,n(36941).Z)(o.useLayoutEffect),Lt=V.Z?Tt:_.Z;var Rt=function(e){var t=(0,i.__read)(Re((function(){var t=(0,m.n)(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0})),2),n=t[0],r=t[1];return Lt((function(){var t=(0,m.n)(e);if(t){var n=new kt((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,i=t.clientHeight;r({width:n,height:i})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),n},Ot={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},Ct=(0,i.__assign)({text:""},Ot);var At=function(e){var t=(0,i.__read)((0,o.useState)(Ct),2),n=t[0],r=t[1],u=(0,o.useRef)(n),a=(0,o.useRef)(!1);return u.current=n,(0,_.Z)((function(){var t=(0,m.n)(e,document);if(t){var o=function(){var e,t=null,o=Ot;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&a.current&&(o=function(e){if(!e)return Ot;if(e.rangeCount<1)return Ot;var t=e.getRangeAt(0).getBoundingClientRect();return{height:t.height,width:t.width,top:t.top,left:t.left,right:t.right,bottom:t.bottom}}(t),r((0,i.__assign)((0,i.__assign)((0,i.__assign)({},n),{text:e}),o)))},c=function(e){if(window.getSelection){u.current.text&&r((0,i.__assign)({},Ct)),a.current=!1;var n=window.getSelection();n&&(n.removeAllRanges(),a.current=t.contains(e.target))}};return t.addEventListener("mouseup",o),document.addEventListener("mousedown",c),function(){t.removeEventListener("mouseup",o),document.removeEventListener("mousedown",c)}}}),[],e),n},xt=n(8406),Ft=n.n(xt),Mt=n(59818);var It=function(e,t){var n;Mt.Z&&((0,f.mf)(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var r=(0,p.Z)(e),u=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,a=(0,o.useMemo)((function(){return Ft()((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.current.apply(r,(0,i.__spreadArray)([],(0,i.__read)(e),!1))}),u,t)}),[]);return(0,re.Z)((function(){a.cancel()})),{run:a,cancel:a.cancel,flush:a.flush}};var Nt=function(e,t){var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=It((function(){u(e)}),t).run;return(0,o.useEffect)((function(){a()}),[e]),r};var Dt=function(e,t,n){var r=(0,i.__read)((0,o.useState)({}),2),u=r[0],a=r[1],c=It((function(){a({})}),n).run;(0,o.useEffect)((function(){return c()}),t),(0,s.Z)(e,[u])},zt=function(e,t){var n=(0,u.Z)(e),r=(0,o.useRef)(null),i=(0,o.useCallback)((function(){r.current&&clearTimeout(r.current)}),[]);return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r.current=setTimeout(n,t),i}),[t]),i},Pt={restoreOnUnmount:!1};var jt,Vt=function(e,t){void 0===t&&(t=Pt);var n=(0,o.useRef)(V.Z?document.title:"");(0,o.useEffect)((function(){document.title=e}),[e]),(0,re.Z)((function(){t.restoreOnUnmount&&(document.title=n.current)}))},qt=function(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){var r,i,o=(r=n.current,i=t,r?r.map((function(e,t){return Object.is(r[t],null===i||void 0===i?void 0:i[t])?-1:t})).filter((function(e){return e>=0})):i?i.map((function(e,t){return t})):[]),u=n.current;return n.current=t,e(o,u,t)}),t)},Ut=(0,r.a)(o.useLayoutEffect),Yt=function(e,t){var n=t.containerTarget,r=t.wrapperTarget,a=t.itemHeight,c=t.overscan,l=void 0===c?5:c,d=(0,p.Z)(a),v=Rt(n),h=(0,o.useRef)(!1),g=(0,i.__read)((0,o.useState)([]),2),_=g[0],y=g[1],b=(0,i.__read)((0,o.useState)({}),2),w=b[0],E=b[1],S=function(t){return(0,f.hj)(d.current)?t*d.current:e.slice(0,t).reduce((function(t,n,r){return t+d.current(r,e[r])}),0)},Z=(0,o.useMemo)((function(){return(0,f.hj)(d.current)?e.length*d.current:e.reduce((function(t,n,r){return t+d.current(r,e[r])}),0)}),[e]),k=function(){var t=(0,m.n)(n);if(t){var r=t.scrollTop,i=t.clientHeight,o=function(t){if((0,f.hj)(d.current))return Math.floor(t/d.current)+1;for(var n=0,r=0,i=0;i<e.length;i++)if((n+=d.current(i,e[i]))>=t){r=i;break}return r+1}(r),u=function(t,n){if((0,f.hj)(d.current))return Math.ceil(t/d.current);for(var r=0,i=0,o=n;o<e.length&&(i=o,!((r+=d.current(o,e[o]))>=t));o++);return i-n}(i,o),a=Math.max(0,o-l),c=Math.min(e.length,o+u+l),s=S(a);E({height:Z-s+"px",marginTop:s+"px"}),y(e.slice(a,c).map((function(e,t){return{data:e,index:t+a}})))}};(0,s.Z)((function(){var e=(0,m.n)(r);e&&Object.keys(w).forEach((function(t){return e.style[t]=w[t]}))}),[w]),(0,o.useEffect)((function(){(null===v||void 0===v?void 0:v.width)&&(null===v||void 0===v?void 0:v.height)&&k()}),[null===v||void 0===v?void 0:v.width,null===v||void 0===v?void 0:v.height,e]),(0,j.Z)("scroll",(function(e){h.current?h.current=!1:(e.preventDefault(),k())}),{target:n});return[_,(0,u.Z)((function(e){var t=(0,m.n)(n);t&&(h.current=!0,t.scrollTop=S(e),k())}))]};function Ht(e,t){void 0===t&&(t={});var n=t.reconnectLimit,r=void 0===n?3:n,a=t.reconnectInterval,c=void 0===a?3e3:a,s=t.manual,l=void 0!==s&&s,f=t.onOpen,d=t.onClose,v=t.onMessage,h=t.onError,m=t.protocols,g=(0,p.Z)(f),_=(0,p.Z)(d),y=(0,p.Z)(v),b=(0,p.Z)(h),w=(0,o.useRef)(0),E=(0,o.useRef)(),S=(0,o.useRef)(),Z=(0,o.useRef)(!1),k=(0,i.__read)((0,o.useState)(),2),T=k[0],L=k[1],R=(0,i.__read)((0,o.useState)(jt.Closed),2),O=R[0],C=R[1],A=function(){var e;w.current<r&&(null===(e=S.current)||void 0===e?void 0:e.readyState)!==jt.Open&&(E.current&&clearTimeout(E.current),E.current=setTimeout((function(){x(),w.current++}),c))},x=function(){E.current&&clearTimeout(E.current),S.current&&S.current.close();var t=new WebSocket(e,m);C(jt.Connecting),t.onerror=function(e){var n;Z.current||(A(),null===(n=b.current)||void 0===n||n.call(b,e,t),C(t.readyState||jt.Closed))},t.onopen=function(e){var n;Z.current||(null===(n=g.current)||void 0===n||n.call(g,e,t),w.current=0,C(t.readyState||jt.Open))},t.onmessage=function(e){var n;Z.current||(null===(n=y.current)||void 0===n||n.call(y,e,t),L(e))},t.onclose=function(e){var n;Z.current||(A(),null===(n=_.current)||void 0===n||n.call(_,e,t),C(t.readyState||jt.Closed))},S.current=t},F=function(){w.current=0,x()},M=function(){var e;E.current&&clearTimeout(E.current),w.current=r,null===(e=S.current)||void 0===e||e.close()};return(0,o.useEffect)((function(){l||F()}),[e,l]),(0,re.Z)((function(){Z.current=!0,M()})),{latestMessage:T,sendMessage:(0,u.Z)((function(e){var t;if(O!==jt.Open)throw new Error("WebSocket disconnected");null===(t=S.current)||void 0===t||t.send(e)})),connect:(0,u.Z)(F),disconnect:(0,u.Z)(M),readyState:O,webSocketIns:S.current}}function Xt(e,t){var n=(0,o.useRef)({});(0,o.useEffect)((function(){if(n.current){var r=Object.keys((0,i.__assign)((0,i.__assign)({},n.current),t)),o={};r.forEach((function(e){Object.is(n.current[e],t[e])||(o[e]={from:n.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}n.current=t}))}!function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"}(jt||(jt={}));var Wt=function(e,t,n){void 0===n&&(n={});var r=(0,p.Z)(e);he((function(){var e=(0,m.n)(t);if(e){var i=new MutationObserver(r.current);return i.observe(e,n),function(){i&&i.disconnect()}}}),[n],t)}},53634:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;u.prototype.THROTTLE_TIMEOUT=100,u.prototype.POLL_INTERVAL=null,u.prototype.USE_MUTATION_OBSERVER=!0,u._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},u._resetCrossOriginUpdater=function(){n=null,r=null},u.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},u.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},u.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},u.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},u.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},u.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},u.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,u=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(u=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),c(e,"resize",r,!0)),c(t,"scroll",r,!0),u&&u.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=s){var l=i(t);l&&this._monitorIntersections(l.ownerDocument)}}},u.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var u=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),u(),t!=r){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},u.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},u.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,u=l(i),a=this._rootContainsTarget(i),c=r.entry,s=e&&a&&this._computeTargetAndRootIntersection(i,u,t),f=null;this._rootContainsTarget(i)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:u,rootBounds:f,intersectionRect:s});c?e&&a?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},u.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var u=i,a=h(t),c=!1;!c&&a;){var f=null,v=1==a.nodeType?window.getComputedStyle(a):{};if("none"==v.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==e)n&&!this.root?!r||0==r.width&&0==r.height?(a=null,f=null,u=null):f=r:f=o;else{var p=h(a),m=p&&l(p),g=p&&this._computeTargetAndRootIntersection(p,m,o);m&&g?(a=p,f=d(m,g)):(a=null,u=null)}else{var _=a.ownerDocument;a!=_.body&&a!=_.documentElement&&"visible"!=v.overflow&&(f=l(a))}if(f&&(u=s(f,u)),!u)break;a=a&&h(a)}return u}},u.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=l(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},u.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},u.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},u.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},u.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return v(n,t)&&(!this.root||n==t.ownerDocument)},u.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},u.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=u,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=f(e.rootBounds),this.boundingClientRect=f(e.boundingClientRect),this.intersectionRect=f(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function u(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),o=Math.min(e.right,t.right),u=o-i,a=r-n;return u>=0&&a>=0&&{top:n,bottom:r,left:i,right:o,width:u,height:a}||null}function l(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function v(e,t){for(var n=t;n;){if(n==e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}}()},20026:function(e){!function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r<i;r++)if((e=n[r])&&e[1]in t){for(r=0;r<e.length;r++)o[n[0][r]]=e[r];return o}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(e,n){return new Promise(function(i,o){var u=function(){this.off("change",u),i()}.bind(this);this.on("change",u);var a=(e=e||t.documentElement)[r.requestFullscreen](n);a instanceof Promise&&a.then(u).catch(o)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var i=function(){this.off("change",i),e()}.bind(this);this.on("change",i);var o=t[r.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=i[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=i[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=o:window.screenfull=o):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()}}]);