diff --git a/static/images/shop/graphic-03_Urukul-4412.svg b/static/images/shop/graphic-03_Urukul-4412.svg
new file mode 100644
index 0000000..f95bffd
--- /dev/null
+++ b/static/images/shop/graphic-03_Urukul-4412.svg
@@ -0,0 +1 @@
+
diff --git a/static/js/shop.bundle.js b/static/js/shop.bundle.js
index 1aef3de..245ca50 100644
--- a/static/js/shop.bundle.js
+++ b/static/js/shop.bundle.js
@@ -1,2 +1,2 @@
/*! For license information please see shop.bundle.js.LICENSE.txt */
-(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=u(t),h=u(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case g:case h:case u:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||E(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===s},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},296:(e,t,n)=>{"use strict";e.exports=n(103)},143:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,l],c=0;(u=new Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},962:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,a,i,l,u,s=e.get_operator(n),c=n[s];if(Array.isArray(c)||(c=[c]),"if"===s||"?:"==s){for(o=0;o0){var d=String(s).split("."),f=t;for(o=0;o{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),I=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var L,B=Object.assign;function j(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=i&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function U(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case x:return"Portal";case C:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,ke=null,Se=null;function Ce(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,st=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!=(a&=i)&&(r=dt(a))}else 0!=(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<=Mn),jn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Vn(e,t,n,r){Oe(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Qn(e){jr(e,0)}function Kn(e){if($(Eo(e)))return e}function Jn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Yn=Xn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,gr=null,vr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Or=Cr("animationend"),Ir=Cr("animationiteration"),Dr=Cr("animationstart"),Pr=Cr("transitionend"),Nr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _r(e,t){Nr.set(e,t),u(t,[e])}for(var Tr=0;TrSo||(e.current=ko[So],ko[So]=null,So--)}function Io(e,t){So++,ko[So]=e.current,e.current=t}var Do={},Po=Co(Do),No=Co(!1),Ro=Do;function _o(e,t){var n=e.type.contextTypes;if(!n)return Do;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function To(e){return null!=e.childContextTypes}function Ao(){Oo(No),Oo(Po)}function Mo(e,t,n){if(Po.current!==Do)throw Error(a(168));Io(Po,t),Io(No,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,G(e)||"Unknown",o));return B({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Do,Ro=Po.current,Io(Po,e),Io(No,No.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Lo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Oo(No),Oo(Po),Io(Po,e)):Oo(No),Io(No,n)}var Fo=null,zo=!1,Uo=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function Go(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=yt;try{var n=Fo;for(yt=1;e>=i,o-=i,Yo=1<<32-it(t)+o|n<h?(g=d,d=null):g=d.sibling;var v=p(o,d,l[h],u);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,h),null===c?s=v:c.sibling=v,c=v,d=g}if(h===l.length)return n(o,d),aa&&Zo(o,h),s;if(null===d){for(;hg?(v=h,h=null):v=h.sibling;var y=p(o,h,b.value,s);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),l=i(y,l,g),null===d?c=y:d.sibling=y,d=y,h=v}if(b.done)return n(o,h),aa&&Zo(o,g),c;if(null===h){for(;!b.done;g++,b=u.next())null!==(b=f(o,b.value,s))&&(l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return aa&&Zo(o,g),c}for(h=r(o,h);!b.done;g++,b=u.next())null!==(b=m(h,o,g,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(o,e)})),aa&&Zo(o,g),c}return function e(r,a,i,u){if("object"==typeof i&&null!==i&&i.type===k&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var s=i.key,c=a;null!==c;){if(c.key===s){if((s=i.type)===k){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===_&&Ka(s)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=$a(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===k?((a=Ls(i.props.children,r.mode,u,i.key)).return=r,r=a):((u=Ms(i.type,i.key,i.props,null,r.mode,u)).ref=$a(r,a,i),u.return=r,r=u)}return l(r);case x:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fs(i,r.mode,u)).return=r,r=a}return l(r);case _:return e(r,a,(c=i._init)(i._payload),u)}if(te(i))return h(r,a,i,u);if(M(i))return g(r,a,i,u);Qa(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=js(i,r.mode,u)).return=r,r=a),l(r)):n(r,a)}}var Ya=Ja(!0),Xa=Ja(!1),Za={},ei=Co(Za),ti=Co(Za),ni=Co(Za);function ri(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(Io(ni,t),Io(ti,e),Io(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ei),Io(ei,t)}function ai(){Oo(ei),Oo(ti),Oo(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ue(t,e.type);t!==n&&(Io(ti,e),Io(ei,n))}function li(e){ti.current===e&&(Oo(ei),Oo(ti))}var ui=Co(0);function si(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function di(){for(var e=0;en?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{yt=n,pi.transition=r}}function el(){return Ii().memoizedState}function tl(e,t,n){var r=ns(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?ol(t,n):null!==(n=Pa(e,t,n,r))&&(rs(n,e,r,ts()),al(n,t,r))}function nl(e,t,n){var r=ns(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var u=t.interleaved;return null===u?(o.next=o,Da(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pa(e,t,o,r))&&(rs(n,e,r,o=ts()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function ol(e,t){yi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var il={readContext:Oa,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ll={readContext:Oa,useCallback:function(e,t){return Oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Gi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4194308,4,$i.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Oi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oi().memoizedState=e},useState:ji,useDebugValue:Ki,useDeferredValue:function(e){return Oi().memoizedState=e},useTransition:function(){var e=ji(!1),t=e[0];return e=Zi.bind(null,e[1]),Oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hi,o=Oi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Nu)throw Error(a(349));0!=(30&mi)||Ti(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Gi(Mi.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Oi(),t=Nu.identifierPrefix;if(aa){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-it(Yo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ei++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Oa,useCallback:Ji,useContext:Oa,useEffect:Hi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:qi,useMemo:Yi,useReducer:Pi,useRef:zi,useState:function(){return Pi(Di)},useDebugValue:Ki,useDeferredValue:function(e){return Xi(Ii(),gi.memoizedState,e)},useTransition:function(){return[Pi(Di)[0],Ii().memoizedState]},useMutableSource:Ri,useSyncExternalStore:_i,useId:el,unstable_isNewReconciler:!1},sl={readContext:Oa,useCallback:Ji,useContext:Oa,useEffect:Hi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:qi,useMemo:Yi,useReducer:Ni,useRef:zi,useState:function(){return Ni(Di)},useDebugValue:Ki,useDeferredValue:function(e){var t=Ii();return null===gi?t.memoizedState=e:Xi(t,gi.memoizedState,e)},useTransition:function(){return[Ni(Di)[0],Ii().memoizedState]},useMutableSource:Ri,useSyncExternalStore:_i,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function ml(e,t,n){(n=Aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,qu=r),fl(0,t)},n}function hl(e,t,n){(n=Aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===$u?$u=new Set([this]):$u.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Os.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Aa(-1,1)).tag=2,Ma(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=w.ReactCurrentOwner,wl=!1;function El(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ya(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=Si(e,t,n,r,a,o),n=Ci(),null===e||wl?(aa&&n&&ta(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ts(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ms(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Sl(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=As(a,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Il(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Io(Au,Tu),Tu|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Io(Au,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Io(Au,Tu),Tu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Io(Au,Tu),Tu|=r;return El(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,n,r,o){var a=To(n)?Ro:Po.current;return a=_o(t,a),Ca(t,o),n=Si(e,t,n,r,a,o),r=Ci(),null===e||wl?(aa&&r&&ta(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Dl(e,t,n,r,o){if(To(n)){var a=!0;Bo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Hl(e,t),Ha(t,n,r),qa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;s="object"==typeof s&&null!==s?Oa(s):_o(t,s=To(n)?Ro:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Va(t,i,r,s),Ra=!1;var f=t.memoizedState;i.state=f,ja(t,r,i,o),u=t.memoizedState,l!==r||f!==u||No.current||Ra?("function"==typeof c&&(Ua(t,n,c,r),u=t.memoizedState),(l=Ra||Ga(t,n,l,r,f,u,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ta(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:va(t.type,l),i.props=s,d=t.pendingProps,f=i.context,u="object"==typeof(u=n.contextType)&&null!==u?Oa(u):_o(t,u=To(n)?Ro:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==u)&&Va(t,i,r,u),Ra=!1,f=t.memoizedState,i.state=f,ja(t,r,i,o);var m=t.memoizedState;l!==d||f!==m||No.current||Ra?("function"==typeof p&&(Ua(t,n,p,r),m=t.memoizedState),(s=Ra||Ga(t,n,s,r,f,m,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,a,o)}function Pl(e,t,n,r,o,a){Ol(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&jo(t,n,!1),Vl(e,t,a);r=t.stateNode,yl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,l,a)):El(e,t,l,a),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),oi(e,t.containerInfo)}function Rl(e,t,n,r,o){return ma(),ha(o),t.flags|=256,El(e,t,n,r),t.child}var _l,Tl,Al,Ml,Ll={dehydrated:null,treeContext:null,retryLane:0};function Bl(e){return{baseLanes:e,cachePool:null,transitions:null}}function jl(e,t,n){var r,o=t.pendingProps,i=ui.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Io(ui,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Bs(u,o,0,null),e=Ls(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Bl(n),t.memoizedState=Ll,e):Fl(t,u));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bs({mode:"visible",children:r.children},o,0,null),(i=Ls(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ya(t,e.child,null,l),t.child.memoizedState=Bl(l),t.memoizedState=Ll,i);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,zl(e,t,l,r=dl(i=Error(a(419)),r,void 0))}if(u=0!=(l&e.childLanes),wl||u){if(null!==(r=Nu)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Na(e,o),rs(r,e,o,-1))}return gs(),zl(e,t,l,r=dl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ds.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=so(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Ko++]=Yo,Qo[Ko++]=Xo,Qo[Ko++]=Jo,Yo=e.id,Xo=e.overflow,Jo=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,u,o,r,i,n);if(l){l=o.fallback,u=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=As(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=As(r,l):(l=Ls(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Bl(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=As(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fl(e,t){return(t=Bs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&ha(r),Ya(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sa(e.return,t,n)}function Wl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Gl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(El(e,t,r.children,n),0!=(2&(r=ui.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Io(ui,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===si(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Wl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===si(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Wl(t,!0,n,null,a);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $l(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $l(t),null;case 1:case 17:return To(t.type)&&Ao(),$l(t),null;case 3:return r=t.stateNode,ai(),Oo(No),Oo(Po),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(ls(ia),ia=null))),Tl(e,t),$l(t),null;case 5:li(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return $l(t),null}if(e=ri(ei.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[mo]=i,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[mo]=r,_l(e,t,!1,!1),t.stateNode=e;e:{switch(u=ye(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;oGu&&(t.flags|=128,r=!0,ql(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=si(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(i,!0),null===i.tail&&"hidden"===i.tailMode&&!u.alternate&&!aa)return $l(t),null}else 2*Ye()-i.renderingStartTime>Gu&&1073741824!==n&&(t.flags|=128,r=!0,ql(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=i.last)?n.sibling=u:t.child=u,i.last=u)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,n=ui.current,Io(ui,r?1&n|2:1&n),t):($l(t),null);case 22:case 23:return fs(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Tu)&&($l(t),6&t.subtreeFlags&&(t.flags|=8192)):$l(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Kl(e,t){switch(na(t),t.tag){case 1:return To(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Oo(No),Oo(Po),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Oo(ui),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ui),null;case 4:return ai(),null;case 10:return ka(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}_l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tl=function(){},Al=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=K(e,o),r=K(e,r),i=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&u[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Fr("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ml=function(e,t,n,r){n!==r&&(t.flags|=4)};var Jl=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cs(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Cs(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tu(t,n,a)}o=o.next}while(o!==r)}}function ou(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function au(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[go],delete t[vo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var du=null,fu=!1;function pu(e,t,n){for(n=n.child;null!==n;)mu(e,t,n),n=n.sibling}function mu(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Yl||eu(n,t);case 6:var r=du,o=fu;du=null,pu(e,t,n),fu=o,null!==(du=r)&&(fu?(e=du,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):du.removeChild(n.stateNode));break;case 18:null!==du&&(fu?(e=du,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Wt(e)):uo(du,n.stateNode));break;case 4:r=du,o=fu,du=n.stateNode.containerInfo,fu=!0,pu(e,t,n),du=r,fu=o;break;case 0:case 11:case 14:case 15:if(!Yl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&tu(n,t,i),o=o.next}while(o!==r)}pu(e,t,n);break;case 1:if(!Yl&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cs(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,pu(e,t,n),Yl=r):pu(e,t,n);break;default:pu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Ps.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,Uu,Hu),r);break}xs(e,Uu,Hu);break;default:throw Error(a(329))}}}return os(e,Ye()),e.callbackNode===n?as.bind(null,e):null}function is(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Uu,Uu=n,null!==t&&ls(t)),e}function ls(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function us(e,t){for(t&=~Fu,t&=~ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Ku)var r=!1;else{if(e=Ku,Ku=null,Ju=0,0!=(6&Pu))throw Error(a(331));var o=Pu;for(Pu|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!=(16&Zl.flags)){var u=i.deletions;if(null!==u){for(var s=0;sYe()-Wu?ps(e,0):Fu|=n),os(e,t)}function Is(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=ts();null!==(e=Na(e,t))&&(vt(e,t,n),os(e,n))}function Ds(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Is(e,n)}function Ps(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Is(e,n)}function Ns(e,t){return $e(e,t)}function Rs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _s(e,t,n,r){return new Rs(e,t,n,r)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=_s(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ms(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ts(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case k:return Ls(n.children,o,i,t);case S:l=8,o|=8;break;case C:return(e=_s(12,n,t,2|o)).elementType=C,e.lanes=i,e;case P:return(e=_s(13,n,t,o)).elementType=P,e.lanes=i,e;case N:return(e=_s(19,n,t,o)).elementType=N,e.lanes=i,e;case T:return Bs(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case I:l=9;break e;case D:l=11;break e;case R:l=14;break e;case _:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=_s(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ls(e,t,n,r){return(e=_s(7,e,r,t)).lanes=n,e}function Bs(e,t,n,r){return(e=_s(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function js(e,t,n){return(e=_s(6,e,null,t)).lanes=n,e}function Fs(e,t,n){return(t=_s(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Us(e,t,n,r,o,a,i,l,u){return e=new zs(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=_s(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(a),e}function Ws(e){if(!e)return Do;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(To(n))return Lo(e,n,t)}return t}function Gs(e,t,n,r,o,a,i,l,u){return(e=Us(n,r,!0,e,0,a,0,l,u)).context=Ws(null),n=e.current,(a=Aa(r=ts(),o=ns(n))).callback=null!=t?t:null,Ma(n,a,o),e.current.lanes=o,vt(e,o,r),os(e,r),e}function Hs(e,t,n,r){var o=t.current,a=ts(),i=ns(o);return n=Ws(n),null===t.context?t.context=n:t.pendingContext=n,(t=Aa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ma(o,t,i))&&(rs(e,o,i,a),La(e,o,i)),i}function Vs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n{"use strict";var r=n(935);t.s=r.createRoot,r.hydrateRoot},935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(448)},921:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,a=60108,i=60114,l=60109,u=60110,s=60112,c=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;n=m("react.element"),r=m("react.portal"),o=m("react.fragment"),a=m("react.strict_mode"),i=m("react.profiler"),l=m("react.provider"),u=m("react.context"),s=m("react.forward_ref"),c=m("react.suspense"),d=m("react.suspense_list"),f=m("react.memo"),p=m("react.lazy"),m("react.block"),m("react.server.block"),m("react.fundamental"),m("react.debug_trace_mode"),m("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case f:case l:return e;default:return t}}case r:return t}}}(e)===u}},864:(e,t,n)=>{"use strict";e.exports=n(921)},251:(e,t,n)=>{"use strict";var r=n(294),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=s,t.jsxs=s},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=y.prototype=new b;w.constructor=y,h(w,v.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=r;else if(1{"use strict";e.exports=n(408)},893:(e,t,n)=>{"use strict";e.exports=n(251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(sa(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],d=1,f=null,p=3,m=!1,h=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function E(e){if(g=!1,w(e),!h)if(null!==r(s))h=!0,T(x);else{var t=r(c);null!==t&&A(E,t.startTime-e)}}function x(e,n){h=!1,g&&(g=!1,b(O),O=-1),m=!0;var a=p;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!P());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var l=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(s)&&o(s),w(n)}else o(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&A(E,d.startTime-n),u=!1}return u}finally{f=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,C=null,O=-1,I=5,D=-1;function P(){return!(t.unstable_now()-De||125i?(e.sortIndex=a,n(c,e),null===r(s)&&e===r(c)&&(g?(b(O),O=-1):g=!0,A(E,a-i))):(e.sortIndex=l,n(s,e),h||m||(h=!0,T(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(294);function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:r}=Object.prototype,{getPrototypeOf:o}=Object,a=(i=Object.create(null),e=>{const t=r.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:s}=Array,c=u("undefined"),d=l("ArrayBuffer"),f=u("string"),p=u("function"),m=u("number"),h=e=>null!==e&&"object"==typeof e,g=e=>{if("object"!==a(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},v=l("Date"),b=l("File"),y=l("Blob"),w=l("FileList"),E=l("URLSearchParams");function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),s(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!c(e)&&e!==S,O=(I="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>I&&e instanceof I);var I;const D=l("HTMLFormElement"),P=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),N=l("RegExp"),R=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)},_="abcdefghijklmnopqrstuvwxyz",T="0123456789",A={DIGIT:T,ALPHA:_,ALPHA_DIGIT:_+_.toUpperCase()+T},M=l("AsyncFunction"),L={isArray:s,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=a(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:g,isUndefined:c,isDate:v,isFile:b,isBlob:y,isRegExp:N,isFunction:p,isStream:e=>h(e)&&p(e.pipe),isURLSearchParams:E,isTypedArray:O,isFileList:w,forEach:x,merge:function e(){const{caseless:t}=C(this)&&this||{},n={},r=(r,o)=>{const a=t&&k(n,o)||o;g(n[a])&&g(r)?n[a]=e(n[a],r):g(r)?n[a]=e({},r):s(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e(x(n,((n,o)=>{r&&p(n)?e[o]=t(n,r):e[o]=n}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,i,l;const u={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],r&&!r(l,e,t)||u[l]||(t[l]=e[l],u[l]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(s(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:D,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:R,freezeMethods:e=>{R(e,((t,n)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];p(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return s(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:k,global:S,isContextDefined:C,ALPHABET:A,generateString:(e=16,t=A.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=s(e)?[]:{};return x(e,((e,t)=>{const a=n(e,r+1);!c(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:M,isThenable:e=>e&&(h(e)||p(e))&&p(e.then)&&p(e.catch)};function B(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}L.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j=B.prototype,F={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{F[e]={value:e}})),Object.defineProperties(B,F),Object.defineProperty(j,"isAxiosError",{value:!0}),B.from=(e,t,n,r,o,a)=>{const i=Object.create(j);return L.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),B.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const z=B;function U(e){return L.isPlainObject(e)||L.isArray(e)}function W(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map((function(e,t){return e=W(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const H=L.toFlatObject(L,{},null,(function(e){return/^is[A-Z]/.test(e)})),V=function(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!L.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,a=n.dots,i=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(L.isDate(e))return e.toISOString();if(!l&&L.isBlob(e))throw new z("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(e)||L.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(L.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(L.isArray(e)&&function(e){return L.isArray(e)&&!e.some(U)}(e)||(L.isFileList(e)||L.endsWith(n,"[]"))&&(l=L.toArray(e)))return n=W(n),l.forEach((function(e,r){!L.isUndefined(e)&&null!==e&&t.append(!0===i?G([n],r,a):null===i?n:n+"[]",u(e))})),!1;return!!U(e)||(t.append(G(o,n,a),u(e)),!1)}const c=[],d=Object.assign(H,{defaultVisitor:s,convertValue:u,isVisitable:U});if(!L.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!L.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),L.forEach(n,(function(n,a){!0===(!(L.isUndefined(n)||null===n)&&o.call(t,n,L.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t};function q(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function $(e,t){this._pairs=[],e&&V(e,this,t)}const Q=$.prototype;Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){const t=e?function(t){return e.call(this,t,q)}:q;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const K=$;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;const r=n&&n.encode||J,o=n&&n.serialize;let a;if(a=o?o(t,n):L.isURLSearchParams(t)?t.toString():new K(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const X=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Z={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:K,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},te=function(e){function t(e,n,r,o){let a=e[o++];const i=Number.isFinite(+a),l=o>=e.length;return a=!a&&L.isArray(r)?r.length:a,l?(L.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&L.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&L.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r{t(function(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ne={transitional:Z,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=L.isObject(e);if(o&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return r&&r?JSON.stringify(te(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new ee.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ee.isNode&&L.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=L.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(L.isString(e))try{return(0,JSON.parse)(e),L.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ne.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&L.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw z.from(e,z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ee.classes.FormData,Blob:ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],(e=>{ne.headers[e]={}}));const re=ne,oe=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ae=Symbol("internals");function ie(e){return e&&String(e).trim().toLowerCase()}function le(e){return!1===e||null==e?e:L.isArray(e)?e.map(le):String(e)}function ue(e,t,n,r,o){return L.isFunction(r)?r.call(this,t,n):(o&&(t=n),L.isString(t)?L.isString(r)?-1!==t.indexOf(r):L.isRegExp(r)?r.test(t):void 0:void 0)}class se{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ie(t);if(!o)throw new Error("header name must be a non-empty string");const a=L.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=le(e))}const a=(e,t)=>L.forEach(e,((e,n)=>o(e,n,t)));return L.isPlainObject(e)||e instanceof this.constructor?a(e,t):L.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&oe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ie(e)){const n=L.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(L.isFunction(t))return t.call(this,e,n);if(L.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ie(e)){const n=L.findKey(this,e);return!(!n||void 0===this[n]||t&&!ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ie(e)){const o=L.findKey(n,e);!o||t&&!ue(0,n[o],o,t)||(delete n[o],r=!0)}}return L.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ue(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return L.forEach(this,((r,o)=>{const a=L.findKey(n,o);if(a)return t[a]=le(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=le(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return L.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&L.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ie(e);t[r]||(function(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return L.isArray(e)?e.forEach(r):r(e),this}}se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.reduceDescriptors(se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),L.freezeMethods(se);const ce=se;function de(e,t){const n=this||re,r=t||n,o=ce.from(r.headers);let a=r.data;return L.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function fe(e){return!(!e||!e.__CANCEL__)}function pe(e,t,n){z.call(this,null==e?"canceled":e,z.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(pe,z,{__CANCEL__:!0});const me=pe,he=ee.isStandardBrowserEnv?{write:function(e,t,n,r,o,a){const i=[];i.push(e+"="+encodeURIComponent(t)),L.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),L.isString(r)&&i.push("path="+r),L.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ge(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ve=ee.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=L.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function be(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(l){const u=Date.now(),s=r[i];o||(o=u),n[a]=l,r[a]=u;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const a=o.loaded,i=o.lengthComputable?o.total:void 0,l=a-n,u=r(l);n=a;const s={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:u||void 0,estimated:u&&i&&a<=i?(i-a)/u:void 0,event:o};s[t?"download":"upload"]=!0,e(s)}}const ye="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ce.from(e.headers).normalize(),a=e.responseType;let i,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}L.isFormData(r)&&(ee.isStandardBrowserEnv||ee.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?L.isString(l=o.getContentType())&&o.setContentType(l.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let s=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const c=ge(e.baseURL,e.url);function d(){if(!s)return;const r=ce.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s}),s=null}if(s.open(e.method.toUpperCase(),Y(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=d:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(d)},s.onabort=function(){s&&(n(new z("Request aborted",z.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new z("Network Error",z.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Z;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new z(t,r.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,s)),s=null},ee.isStandardBrowserEnv){const t=ve(c)&&e.xsrfCookieName&&he.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in s&&L.forEach(o.toJSON(),(function(e,t){s.setRequestHeader(t,e)})),L.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",be(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",be(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{s&&(n(!t||t.type?new me(null,e,s):t),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);f&&-1===ee.protocols.indexOf(f)?n(new z("Unsupported protocol "+f+":",z.ERR_BAD_REQUEST,e)):s.send(r||null)}))},we={http:null,xhr:ye};L.forEach(we,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ee=e=>`- ${e}`,xe=e=>L.isFunction(e)||null===e||!1===e,ke=e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Ee).join("\n"):" "+Ee(e[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new me(null,e)}function Ce(e){return Se(e),e.headers=ce.from(e.headers),e.data=de.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ke(e.adapter||re.adapter)(e).then((function(t){return Se(e),t.data=de.call(e,e.transformResponse,t),t.headers=ce.from(t.headers),t}),(function(t){return fe(t)||(Se(e),t&&t.response&&(t.response.data=de.call(e,e.transformResponse,t.response),t.response.headers=ce.from(t.response.headers))),Promise.reject(t)}))}const Oe=e=>e instanceof ce?e.toJSON():e;function Ie(e,t){t=t||{};const n={};function r(e,t,n){return L.isPlainObject(e)&&L.isPlainObject(t)?L.merge.call({caseless:n},e,t):L.isPlainObject(t)?L.merge({},t):L.isArray(t)?t.slice():t}function o(e,t,n){return L.isUndefined(t)?L.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!L.isUndefined(t))return r(void 0,t)}function i(e,t){return L.isUndefined(t)?L.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t)=>o(Oe(e),Oe(t),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=u[r]||o,i=a(e[r],t[r],r);L.isUndefined(i)&&a!==l||(n[r]=i)})),n}const De={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{De[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Pe={};De.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new z(r(o," has been removed"+(t?" in "+t:"")),z.ERR_DEPRECATED);return t&&!Pe[o]&&(Pe[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};const Ne={assertOptions:function(e,t,n){if("object"!=typeof e)throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new z("option "+a+" must be "+n,z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new z("Unknown option "+a,z.ERR_BAD_OPTION)}},validators:De},Re=Ne.validators;class _e{constructor(e){this.defaults=e,this.interceptors={request:new X,response:new X}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ne.assertOptions(n,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),null!=r&&(L.isFunction(r)?t.paramsSerializer={serialize:r}:Ne.assertOptions(r,{encode:Re.function,serialize:Re.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&L.merge(o.common,o[t.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ce.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const u=[];let s;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let c,d=0;if(!l){const e=[Ce.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,u),c=e.length,s=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new me(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Ae((function(t){e=t})),cancel:e}}}const Me=Ae,Le={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Le).forEach((([e,t])=>{Le[t]=e}));const Be=Le,je=function e(n){const r=new Te(n),o=t(Te.prototype.request,r);return L.extend(o,Te.prototype,r,{allOwnKeys:!0}),L.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(Ie(n,t))},o}(re);je.Axios=Te,je.CanceledError=me,je.CancelToken=Me,je.isCancel=fe,je.VERSION="1.6.0",je.toFormData=V,je.AxiosError=z,je.Cancel=je.CanceledError,je.all=function(e){return Promise.all(e)},je.spread=function(e){return function(t){return e.apply(null,t)}},je.isAxiosError=function(e){return L.isObject(e)&&!0===e.isAxiosError},je.mergeConfig=Ie,je.AxiosHeaders=ce,je.formToJSON=e=>te(L.isHTMLForm(e)?new FormData(e):e),je.getAdapter=ke,je.HttpStatusCode=Be,je.default=je;const Fe=je;var ze=n(745),Ue=n(697),We=n.n(Ue);function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ge(e,t)}function He(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ge(e,t)}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var ft=n(679),pt=n.n(ft),mt=n(864),ht=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],gt=["reactReduxForwardedRef"],vt=[],bt=[null,null];function yt(e,t){var n=e[1];return[t.payload,n+1]}function wt(e,t,n){st((function(){return e.apply(void 0,t)}),n)}function Et(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function xt(e,t,n,r,o,a,i,l,u,s){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===a.current?i.current||u():(a.current=e,l.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var kt=function(){return[null,0]};function St(t,n){void 0===n&&(n={});var r=n,o=r.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,i=r.methodName,l=void 0===i?"connectAdvanced":i,u=r.renderCountProp,s=void 0===u?void 0:u,c=r.shouldHandleStateChanges,d=void 0===c||c,f=r.storeKey,p=void 0===f?"store":f,m=(r.withRef,r.forwardRef),h=void 0!==m&&m,g=r.context,v=void 0===g?ot:g,b=dt(r,ht),y=v;return function(n){var r=n.displayName||n.name||"Component",o=a(r),i=Ve({},b,{getDisplayName:a,methodName:l,renderCountProp:s,shouldHandleStateChanges:d,storeKey:p,displayName:o,wrappedComponentName:r,WrappedComponent:n}),u=b.pure,c=u?e.useMemo:function(e){return e()};function f(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=dt(r,gt);return[r.context,e,t]}),[r]),a=o[0],l=o[1],u=o[2],s=(0,e.useMemo)((function(){return a&&a.Consumer&&(0,mt.isContextConsumer)(e.createElement(a.Consumer,null))?a:y}),[a,y]),f=(0,e.useContext)(s),p=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(f)&&Boolean(f.store);var m=p?r.store:f.store,h=(0,e.useMemo)((function(){return function(e){return t(e.dispatch,i)}(m)}),[m]),g=(0,e.useMemo)((function(){if(!d)return bt;var e=ut(m,p?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,p,f]),v=g[0],b=g[1],w=(0,e.useMemo)((function(){return p?f:Ve({},f,{subscription:v})}),[p,f,v]),E=(0,e.useReducer)(yt,vt,kt),x=E[0][0],k=E[1];if(x&&x.error)throw x.error;var S=(0,e.useRef)(),C=(0,e.useRef)(u),O=(0,e.useRef)(),I=(0,e.useRef)(!1),D=c((function(){return O.current&&u===C.current?O.current:h(m.getState(),u)}),[m,x,u]);wt(Et,[C,S,I,u,D,O,b]),wt(xt,[d,m,v,h,C,S,I,O,b,k],[m,v,h]);var P=(0,e.useMemo)((function(){return e.createElement(n,Ve({},D,{ref:l}))}),[l,n,D]);return(0,e.useMemo)((function(){return d?e.createElement(s.Provider,{value:w},P):P}),[s,P,w])}var m=u?e.memo(f):f;if(m.WrappedComponent=n,m.displayName=f.displayName=o,h){var g=e.forwardRef((function(t,n){return e.createElement(m,Ve({},t,{reactReduxForwardedRef:n}))}));return g.displayName=o,g.WrappedComponent=n,pt()(g,n)}return pt()(m,n)}}function Ct(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ot(e,t){if(Ct(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=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 zt(e,t){return e===t}function Ut(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?St:n,o=t.mapStateToPropsFactories,a=void 0===o?Rt:o,i=t.mapDispatchToPropsFactories,l=void 0===i?Nt:i,u=t.mergePropsFactories,s=void 0===u?Tt:u,c=t.selectorFactory,d=void 0===c?Bt:c;return function(e,t,n,o){void 0===o&&(o={});var i=o,u=i.pure,c=void 0===u||u,f=i.areStatesEqual,p=void 0===f?zt:f,m=i.areOwnPropsEqual,h=void 0===m?Ot:m,g=i.areStatePropsEqual,v=void 0===g?Ot:g,b=i.areMergedPropsEqual,y=void 0===b?Ot:b,w=dt(i,jt),E=Ft(e,a,"mapStateToProps"),x=Ft(t,l,"mapDispatchToProps"),k=Ft(n,s,"mergeProps");return r(d,Ve({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:x,initMergeProps:k,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:v,areMergedPropsEqual:y},w))}}const Wt=Ut();var Gt,Ht=n(935);function Vt(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),a=(0,e.useRef)(r),i=o.current||Boolean(n&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}He(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=dn(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof mn))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(e.Component),vn=function(e){return e+1},bn=function(e,t){var n=e.droppableId===t.droppableId,r=vn(e.index),o=vn(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 "},yn=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 "},wn=function(e){return"\n The item has returned to its starting position\n of "+vn(e.index)+"\n"},En=function(e){return"\n You have lifted an item in position "+vn(e.source.index)+"\n"},xn=function(e){var t=e.destination;if(t)return bn(e.source,t);var n=e.combine;return n?yn(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},kn=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+wn(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+bn(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+yn(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+wn(e.source)+"\n "},Sn={x:0,y:0},Cn=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},On=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},In=function(e,t){return e.x===t.x&&e.y===t.y},Dn=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Pn=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Nn=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Rn=function(e,t){return Math.min.apply(Math,t.map((function(t){return Nn(e,t)})))},_n=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Tn=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},An=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}]},Mn=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Qt({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):Qt(e)},Ln=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Tn(e,t.scroll.diff.displacement):e}(t.marginBox,o),i=function(e,t,n){var r;return n&&n.increasedBy?Ve({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Mn(i,o)}},Bn=function(e,t){e.frame||hn(!1);var n=e.frame,r=On(t,n.scroll.initial),o=Dn(r),a=Ve({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return Ve({},e,{frame:a,subject:Ln({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a})})};function jn(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Fn(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,l=r.lefte.right;return!(!i||!l)||i&&a||l&&o}},nr=function(e){var t=er(e.top,e.bottom),n=er(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},rr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},or={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ar=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,i=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Sn;return Tn(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(i,n,a)&&function(e,t,n){return n(t)(e)}(i,r,a)},ir=function(e){return ar(Ve({},e,{isVisibleThroughFrameFn:tr}))},lr=function(e){return ar(Ve({},e,{isVisibleThroughFrameFn:nr}))},ur=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 a=o[e];return!a||a.shouldAnimate};function sr(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,a=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Qt(Kt(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!ir({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,shouldAnimate:ur(u,i,a)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function cr(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,a=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:Xn,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function dr(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,a=e.displacedBy,i=e.last,l=e.index,u=e.forceShouldAnimate,s=Jn(t,r);if(null==l)return cr({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var c=zn(n,(function(e){return e.descriptor.index===l}));if(!c)return cr({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var d=Kn(t,n),f=n.indexOf(c);return{displaced:sr({afterDragging:d.slice(f),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:u}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function fr(e,t){return Boolean(t.effected[e])}var pr=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},mr=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},hr=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Pn(t.line,n.marginBox[t.end]+pr(t,r),mr(t,n.marginBox,r))},gr=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Pn(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),mr(t,n.marginBox,r))},vr=function(e,t){var n=e.frame;return n?Cn(t,n.scroll.diff.displacement):t},br=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.afterCritical,i=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,a=e.afterCritical,i=qn(o.descriptor.id,r),l=n.page,u=o.axis;if(!i.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Pn(t.line,n.contentBox[t.start]+pr(t,r),mr(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var s=t.displaced,c=t.displacedBy,d=s.all[0];if(d){var f=r[d];if(fr(d,a))return gr({axis:u,moveRelativeTo:f.page,isMoving:l});var p=en(f.page,c.point);return gr({axis:u,moveRelativeTo:p,isMoving:l})}var m=i[i.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(fr(m.descriptor.id,a)){var h=en(m.page,Dn(a.displacedBy.point));return hr({axis:u,moveRelativeTo:h,isMoving:l})}return hr({axis:u,moveRelativeTo:m.page,isMoving:l})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Qn(n);o||hn(!1);var a=o.draggableId,i=r[a].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return fr(r,n)?a?Sn:Dn(o.point):a?o.point:Sn}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return Cn(i,l)}({impact:t,draggables:o,afterCritical:a}):i}(e),n=e.droppable;return n?vr(n,t):t},yr=function(e,t){var n=On(t,e.scroll.initial),r=Dn(n);return{frame:Qt({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 wr(e,t){return e.map((function(e){return t[e]}))}var Er=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Cn(e.scroll.diff.displacement,t)}(e.viewport,t),o=On(r,n.page.borderBox.center);return Cn(n.client.borderBox.center,o)},xr=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,i=e.onlyOnMainAxis,l=void 0!==i&&i,u=On(r,t.page.borderBox.center),s={target:Tn(t.page.borderBox,u),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return ar(Ve({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=er(e.top,e.bottom),r=er(e.left,e.right);return function(e){return t===rr?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(s):lr(s)},kr=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,i=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,s=e.afterCritical;if(!r.isEnabled)return null;var c=qn(r.descriptor.id,o),d=Jn(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!$n(a))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Ve({},a,{at:t})}var l=a.displaced.all,u=l.length?l[0]:null;if(t)return u?i(u):null;var s=Kn(n,o);if(!u)return s.length?i(s[s.length-1].descriptor.id):null;var c=Fn(s,(function(e){return e.descriptor.id===u}));-1===c&&hn(!1);var d=c-1;return d<0?null:i(s[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:a})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,a=e.destination,i=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,c=l.at;if(c||hn(!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 a=o.index,i=t?a+1:a-1,l=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return i(n?u:u+1)?null:i}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:i});return null==d?null:dr({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var a=r.draggableId,i=n[a].descriptor.index;return fr(a,o)?t?i:i-1:t?i+1:i}({isMovingForward:t,destination:a,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:s});return null==f?null:dr({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:f})}({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:a,viewport:i,afterCritical:s});if(!f)return null;var p=br({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:s});if(xr({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Er({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:f,scrollJumpRequest:null};var m=On(p,l),h=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,i=yr(n,Cn(n.scroll.current,a)),l=r.frame?Bn(r,Cn(r.frame.scroll.current,a)):r,u=t.displaced,s=sr({afterDragging:wr(u.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:u,forceShouldAnimate:!1}),c=sr({afterDragging:wr(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),d={},f={},p=[u,s,c];return u.all.forEach((function(e){var t=function(e,t){for(var n=0;n1?c.sort((function(e,t){return Sr(e)[l.start]-Sr(t)[l.start]}))[0]:s.sort((function(e,t){var r=Rn(n,An(Sr(e))),o=Rn(n,An(Sr(t)));return r!==o?r-o:Sr(e)[l.start]-Sr(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:l});if(!s)return null;var c=qn(s.descriptor.id,a),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,a=e.insideDestination.filter((function(e){return lr({target:Or(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var a=Nn(t,vr(r,Cr(e,o))),i=Nn(t,vr(r,Cr(n,o)));return ar.left&&n.topr.top))return!1;if(Tr(o)(t.center))return!0;var a=e.axis,i=o.center[a.crossAxisLine],l=t[a.crossAxisStart],u=t[a.crossAxisEnd],s=er(o[a.crossAxisStart],o[a.crossAxisEnd]),c=s(l),d=s(u);return!c&&!d||(c?li)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=Pn(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Nn(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:u,draggable:n,droppables:o});if(!s)return Zn;var c=o[s],d=qn(c.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Ar(t,n.scroll.diff.value):t}(c,u);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,a=e.insideDestination,i=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,u=Ir(o.axis,t.displaceBy),s=u.value,c=n[l.start],d=n[l.end],f=zn(Kn(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,a=fr(t,i),u=Mr({displaced:r.displaced,id:t});return a?u?d>n[l.start]+o&&dn[l.start]-s+o&&cn[l.start]+s+o&&dn[l.start]+o&&ct.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:zn(Kn(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=fr(t,l),o=Mr({displaced:a,id:t});return r?o?f<=n:d=1500)return.55;var r=bo+n/1500*.22000000000000003;return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:g,reason:a});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:b,completed:v}})}else n(io({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},wo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Eo=function(e){var t=function(e){var t=e.onWindowScroll,n=un((function(){t(wo())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=cn;function a(){return o!==cn}return{start:function(){a()&&hn(!1),o=dn(window,[r])},stop:function(){a()||hn(!1),n.cancel(),o(),o=cn},isActive:a}}({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.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},xo=function(e,t){t()},ko=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},So=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Co=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=Fn(n,(function(t){return t.timerId===e}));-1===t&&hn(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,a=function(n){o||hn(!1),o=null,xo(0,(function(){return So(e().onDragEnd,n,t,kn)}))};return{beforeCapture:function(t,n){o&&hn(!1),xo(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&hn(!1),xo(0,(function(){var r=e().onBeforeDragStart;r&&r(ko(t,n))}))},start:function(n,a){o&&hn(!1);var i=ko(n,a);o={mode:a,lastCritical:n,lastLocation:i.source,lastCombine:null},r.add((function(){xo(0,(function(){return So(e().onDragStart,i,t,En)}))}))},update:function(n,a){var i=$n(a),l=Qn(a);o||hn(!1);var u=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);u&&(o.lastCritical=n);var s,c,d=(c=i,!(null==(s=o.lastLocation)&&null==c||null!=s&&null!=c&&s.droppableId===c.droppableId&&s.index===c.index));d&&(o.lastLocation=i);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(f&&(o.lastCombine=l),u||d||f){var p=Ve({},ko(n,o.mode),{combine:l,destination:i});r.add((function(){xo(0,(function(){return So(e().onDragUpdate,p,t,xn)}))}))}},flush:function(){o||hn(!1),r.flush()},drop:a,abort:function(){if(o){var e=Ve({},ko(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Oo=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&hn(!1),e.dispatch(io({completed:r.completed}))}else t(n)}}},Io=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=dn(window,[a])}))}}}},Do=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(lo({reason:r.reason})))}}}},Po=rt,No=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,a=e.getResponders,i=e.announce,l=e.autoScroller;return et($r,Po(function(){for(var e=arguments.length,t=new Array(e),n=0;nt.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=Wo({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*Uo(1-n);return Math.ceil(r)}(t,n);return 0===a?0:o?Math.max(function(e,t){var n=t,r=Ho,o=Date.now()-n;if(o>=Ho)return e;if(ot.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:s});return c?In(c,Sn)?null:c:null},Ko=_n((function(e){return 0===e?0:e>0?1:-1})),Jo=(Mo=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Cn(t,r),a={x:Mo(o.x,n.x),y:Mo(o.y,n.y)};return In(a,Sn)?null:a}),Yo=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=Ko(r),i=Jo({max:o,current:n,change:a});return!i||0!==a.x&&0===i.x||0!==a.y&&0===i.y},Xo=function(e,t){return Yo({current:e.scroll.current,max:e.scroll.max,change:t})},Zo=function(e,t){var n=e.frame;return!!n&&Yo({current:n.scroll.current,max:n.scroll.max,change:t})},ea=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,a=e.scrollDroppable,i=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,a=Qo({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&Xo(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:i,shouldUseTimeDampening:r});if(u)return void o(u)}var s=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var a=function(e,t){var n=zn(zo(t),(function(t){return t.frame||hn(!1),Tr(t.frame.pageMarginBox)(e)}));return n}(t,r);return a}({center:i,destination:Nr(t.impact),droppables:t.dimensions.droppables});if(s){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var l=Qo({dragStartTime:o,container:i.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return l&&Zo(t,l)?l:null}({dragStartTime:n,droppable:s,subject:l,center:i,shouldUseTimeDampening:r});c&&a(s.descriptor.id,c)}},ta=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var a=Nr(e.impact);a||hn(!1);var i=function(e,t){if(!Zo(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Zo(e,t)?Jo({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=On(t,r);return n(e.descriptor.id,o),On(t,o)}(e.dimensions.droppables[a],o);if(i){var l=e.viewport,u=function(e,t,n){if(!e)return n;if(!Xo(t,n))return n;var o=function(e,t){if(!Xo(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Jo({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var a=On(n,o);return r(a),On(n,a)}(e.isWindowScrollAllowed,l,i);u&&function(e,n){var r=Cn(e.current.client.selection,n);t({client:r})}(e,u)}}}},na=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=un(e.scrollWindow),r=un(t),o=null,a=function(e){o||hn(!1);var t=o,a=t.shouldUseTimeDampening,i=t.dragStartTime;ea({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:i,shouldUseTimeDampening:a})};return{start:function(e){o&&hn(!1);var t=Date.now(),n=!1,r=function(){n=!0};ea({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),a=ta({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},ra="data-rbd",oa={base:Lo=ra+"-drag-handle",draggableId:Lo+"-draggable-id",contextId:Lo+"-context-id"},aa=function(){var e=ra+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ia=function(){var e=ra+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),la={contextId:ra+"-scroll-container-context-id"},ua=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},sa=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),a=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(oa.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),i=[(r="\n transition: "+mo.outOfTheWay+";\n ",{selector:o(aa.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),a,{selector:o(ia.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:ua(i,"always"),resting:ua(i,"resting"),dragging:ua(i,"dragging"),dropAnimating:ua(i,"dropAnimating"),userCancel:ua(i,"userCancel")}},ca="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,da=function(){var e=document.querySelector("head");return e||hn(!1),e},fa=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},pa=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function ma(e){return e instanceof pa(e).HTMLElement}function ha(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||hn(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return jn(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||hn(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return jn(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var ga=e.createContext(null),va=function(){var e=document.body;return e||hn(!1),e},ba={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ya=function(e){return"rbd-announcement-"+e},wa=0,Ea={separator:"::"};function xa(e,t){return void 0===t&&(t=Ea),qt((function(){return""+e+t.separator+wa++}),[t.separator,e])}var ka=e.createContext(null);function Sa(t){var n=(0,e.useRef)(t);return(0,e.useEffect)((function(){n.current=t})),n}var Ca,Oa,Ia=((Ca={})[13]=!0,Ca[9]=!0,Ca),Da=function(e){Ia[e.keyCode]&&e.preventDefault()},Pa=function(){var e="visibilitychange";return"undefined"==typeof document?e:zn([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Na={type:"IDLE"};function Ra(){}var _a=((Oa={})[34]=!0,Oa[33]=!0,Oa[36]=!0,Oa[35]=!0,Oa);var Ta={type:"IDLE"},Aa={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ma(e,t){if(null==t)return!1;if(Boolean(Aa[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Ma(e,t.parentElement)}function La(e,t){var n=t.target;return!!ma(n)&&Ma(e,n)}var Ba=function(e){return Qt(e.getBoundingClientRect()).center},ja=function(){var e="matches";return"undefined"==typeof document?e:zn([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Fa(e,t){return null==e?null:e[ja](t)?e:Fa(e.parentElement,t)}function za(e,t){return e.closest?e.closest(t):Fa(e,t)}function Ua(e){e.preventDefault()}function Wa(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function Ga(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(o);return!!a&&!!a.options.isEnabled&&!!jo(n.getState(),o)}var Ha=[function(t){var n=(0,e.useRef)(Na),r=(0,e.useRef)(cn),o=qt((function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,l,{sourceEvent:e});if(o){e.preventDefault();var a={x:e.clientX,y:e.clientY};r.current(),c(o,a)}}}}}}),[t]),a=qt((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}}}}}),[t]),i=$t((function(){r.current=dn(window,[a,o],{passive:!1,capture:!0})}),[a,o]),l=$t((function(){"IDLE"!==n.current.type&&(n.current=Na,r.current(),i())}),[i]),u=$t((function(){var e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=$t((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var i={x:n,y:a},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);if("PENDING"!==l.type&&hn(!1),u=l.point,s=i,Math.abs(s.x-u.x)>=5||Math.abs(s.y-u.y)>=5){var u,s;e.preventDefault();var c=l.actions.fluidLift(i);o({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Da(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&hn(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Pa,fn:t}]}({cancel:u,completed:l,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});r.current=dn(window,e,{capture:!0,passive:!1})}),[u,l]),c=$t((function(e,t){"IDLE"!==n.current.type&&hn(!1),n.current={type:"PENDING",point:t,actions:e},s()}),[s]);ca((function(){return i(),function(){r.current()}}),[i])},function(t){var n=(0,e.useRef)(Ra),r=qt((function(){return{eventName:"keydown",fn:function(e){if(!e.defaultPrevented&&32===e.keyCode){var r=t.findClosestDraggableId(e);if(r){var a=t.tryGetLock(r,u,{sourceEvent:e});if(a){e.preventDefault();var i=!0,l=a.snapLift();n.current(),n.current=dn(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(_a[r.keyCode]?r.preventDefault():Da(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Pa,fn:n}]}(l,u),{capture:!0,passive:!1})}}}function u(){i||hn(!1),i=!1,n.current(),o()}}}}),[t]),o=$t((function(){n.current=dn(window,[r],{passive:!1,capture:!0})}),[r]);ca((function(){return o(),function(){n.current()}}),[o])},function(t){var n=(0,e.useRef)(Ta),r=(0,e.useRef)(cn),o=$t((function(){return n.current}),[]),a=$t((function(e){n.current=e}),[]),i=qt((function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,u,{sourceEvent:e});if(o){var a=e.touches[0],i={x:a.clientX,y:a.clientY};r.current(),f(o,i)}}}}}}),[t]),l=$t((function(){r.current=dn(window,[i],{capture:!0,passive:!1})}),[i]),u=$t((function(){var e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Ta),r.current(),l())}),[l,a]),s=$t((function(){var e=n.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=$t((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:o},n=dn(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],a={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&hn(!1);var o=e.touches[0];if(o&&o.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Pa,fn:t}]}(t),e),a=dn(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Pa,fn:t}]}(t),e);r.current=function(){n(),a()}}),[s,o,u]),d=$t((function(){var e=o();"PENDING"!==e.type&&hn(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),f=$t((function(e,t){"IDLE"!==o().type&&hn(!1);var n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,a,d]);ca((function(){return l(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Ta))}}),[o,l,a]),ca((function(){return dn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Va(t){var n=t.contextId,r=t.store,o=t.registry,a=t.customSensors,i=t.enableDefaultSensors,l=[].concat(i?Ha:[],a||[]),u=(0,e.useState)((function(){return function(){var e=null;function t(){e||hn(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&hn(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=$t((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);ca((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();s(e,t),e=t}))}),[u,r,s]),ca((function(){return u.tryAbandon}),[u.tryAbandon]);for(var c=$t((function(e){return Ga({lockAPI:u,registry:o,store:r,draggableId:e})}),[u,o,r]),d=$t((function(e,t,a){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,i=e.forceSensorStop,l=e.sourceEvent;if(!Ga({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var u=o.draggable.getById(a),s=function(e,t){var n="["+aa.contextId+'="'+e+'"]',r=zn(Un(document.querySelectorAll(n)),(function(e){return e.getAttribute(aa.id)===t}));return r&&ma(r)?r:null}(n,u.descriptor.id);if(!s)return null;if(l&&!u.options.canDragInteractiveElements&&La(s,l))return null;var c=t.claim(i||cn),d="PRE_DRAG";function f(){return u.options.shouldRespectForcePress}function p(){return t.isActive(c)}var m=function(e,t){Wa({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var a=dn(window,[{eventName:"click",fn:Ua,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(lo({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&hn(!1)),r.dispatch(Qr(e.liftActionArgs)),d="DRAGGING",Ve({isActive:function(){return Wa({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var g={isActive:function(){return Wa({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=un((function(e){m((function(){return eo({client:e})}))}));return Ve({},h({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(to)},moveRight:function(){return m(ro)},moveDown:function(){return m(no)},moveLeft:function(){return m(oo)}};return h({liftActionArgs:{id:a,clientSelection:Ba(s),movementMode:"SNAP"},cleanup:cn,actions:e})},abort:function(){Wa({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return g}({lockAPI:u,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[n,u,o,r]),f=$t((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof pa(n).Element))return null;var o=function(e){return"["+oa.contextId+'="'+e+'"]'}(e),a=za(r,o);return a&&ma(a)?a:null}(e,t);return n?n.getAttribute(oa.draggableId):null}(n,e)}),[n]),p=$t((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=$t((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(ao()))}),[u,r]),h=$t(u.isClaimed,[u]),g=qt((function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}}),[c,d,f,p,m,h]),v=0;v{r.current=t})),e.useEffect((()=>{const e=e=>{const t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function Fi(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function zi(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}const Ui=2**31-1;function Wi(e,t,n){const r=n-Date.now();e.current=r<=Ui?setTimeout(t,r):setTimeout((()=>Wi(e,t,n)),Ui)}function Gi(){const t=zi(),n=(0,e.useRef)();return function(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=Ui?n.current=setTimeout(r,o):Wi(n,r,Date.now()+o))},clear:e}}),[])}var Hi=n(473),Vi=n.n(Hi);n(143);const qi=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,$i=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=qi(e),r=qi(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var Qi=n(184),Ki=n.n(Qi);function Ji(){return(0,e.useState)(null)}var Yi=Object.prototype.hasOwnProperty;function Xi(e,t,n){for(n of e.keys())if(Zi(n,t))return n}function Zi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=Xi(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=Xi(t,o)))return!1;if(!Zi(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Yi.call(e,n)&&++r&&!Yi.call(t,n))return!1;if(!(n in t)||!Zi(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function el(e){return e.split("-")[0]}function tl(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){return e instanceof tl(e).Element||e instanceof Element}function rl(e){return e instanceof tl(e).HTMLElement||e instanceof HTMLElement}function ol(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tl(e).ShadowRoot||e instanceof ShadowRoot)}var al=Math.max,il=Math.min,ll=Math.round;function ul(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function sl(){return!/^((?!chrome|android).)*safari/i.test(ul())}function cl(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&rl(e)&&(o=e.offsetWidth>0&&ll(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ll(r.height)/e.offsetHeight||1);var i=(nl(e)?tl(e):window).visualViewport,l=!sl()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/o,s=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,d=r.height/a;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u,x:u,y:s}}function dl(e){var t=cl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ol(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pl(e){return e?(e.nodeName||"").toLowerCase():null}function ml(e){return tl(e).getComputedStyle(e)}function hl(e){return["table","td","th"].indexOf(pl(e))>=0}function gl(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function vl(e){return"html"===pl(e)?e:e.assignedSlot||e.parentNode||(ol(e)?e.host:null)||gl(e)}function bl(e){return rl(e)&&"fixed"!==ml(e).position?e.offsetParent:null}function yl(e){for(var t=tl(e),n=bl(e);n&&hl(n)&&"static"===ml(n).position;)n=bl(n);return n&&("html"===pl(n)||"body"===pl(n)&&"static"===ml(n).position)?t:n||function(e){var t=/firefox/i.test(ul());if(/Trident/i.test(ul())&&rl(e)&&"fixed"===ml(e).position)return null;var n=vl(e);for(ol(n)&&(n=n.host);rl(n)&&["html","body"].indexOf(pl(n))<0;){var r=ml(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function wl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function El(e,t,n){return al(e,il(t,n))}function xl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function kl(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Sl="top",Cl="bottom",Ol="right",Il="left",Dl="auto",Pl=[Sl,Cl,Ol,Il],Nl="start",Rl="end",_l="viewport",Tl="popper",Al=Pl.reduce((function(e,t){return e.concat([t+"-"+Nl,t+"-"+Rl])}),[]),Ml=[].concat(Pl,[Dl]).reduce((function(e,t){return e.concat([t,t+"-"+Nl,t+"-"+Rl])}),[]),Ll=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Bl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=el(n.placement),u=wl(l),s=[Il,Ol].indexOf(l)>=0?"height":"width";if(a&&i){var c=function(e,t){return xl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:kl(e,Pl))}(o.padding,n),d=dl(a),f="y"===u?Sl:Il,p="y"===u?Cl:Ol,m=n.rects.reference[s]+n.rects.reference[u]-i[u]-n.rects.popper[s],h=i[u]-n.rects.reference[u],g=yl(a),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=c[f],w=v-d[s]-c[p],E=v/2-d[s]/2+b,x=El(y,E,w),k=u;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&fl(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jl(e){return e.split("-")[1]}var Fl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,u=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,h=void 0===m?0:m,g="function"==typeof c?c({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Il,w=Sl,E=window;if(s){var x=yl(n),k="clientHeight",S="clientWidth";x===tl(n)&&"static"!==ml(x=gl(n)).position&&"absolute"===l&&(k="scrollHeight",S="scrollWidth"),(o===Sl||(o===Il||o===Ol)&&a===Rl)&&(w=Cl,h-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[k])-r.height,h*=u?1:-1),o!==Il&&(o!==Sl&&o!==Cl||a!==Rl)||(y=Ol,p-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[S])-r.width,p*=u?1:-1)}var C,O=Object.assign({position:l},s&&Fl),I=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ll(n*o)/o||0,y:ll(r*o)/o||0}}({x:p,y:h},tl(n)):{x:p,y:h};return p=I.x,h=I.y,u?Object.assign({},O,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",C)):Object.assign({},O,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const Ul={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,u=void 0===l||l,s={placement:el(t.placement),variation:jl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zl(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zl(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Wl={passive:!0};const Gl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,u=tl(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach((function(e){e.addEventListener("scroll",n.update,Wl)})),l&&u.addEventListener("resize",n.update,Wl),function(){a&&s.forEach((function(e){e.removeEventListener("scroll",n.update,Wl)})),l&&u.removeEventListener("resize",n.update,Wl)}},data:{}};var Hl={left:"right",right:"left",bottom:"top",top:"bottom"};function Vl(e){return e.replace(/left|right|bottom|top/g,(function(e){return Hl[e]}))}var ql={start:"end",end:"start"};function $l(e){return e.replace(/start|end/g,(function(e){return ql[e]}))}function Ql(e){var t=tl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kl(e){return cl(gl(e)).left+Ql(e).scrollLeft}function Jl(e){var t=ml(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Yl(e){return["html","body","#document"].indexOf(pl(e))>=0?e.ownerDocument.body:rl(e)&&Jl(e)?e:Yl(vl(e))}function Xl(e,t){var n;void 0===t&&(t=[]);var r=Yl(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tl(r),i=o?[a].concat(a.visualViewport||[],Jl(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Xl(vl(i)))}function Zl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eu(e,t,n){return t===_l?Zl(function(e,t){var n=tl(e),r=gl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var s=sl();(s||!s&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+Kl(e),y:u}}(e,n)):nl(t)?function(e,t){var n=cl(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Zl(function(e){var t,n=gl(e),r=Ql(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=al(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=al(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Kl(e),u=-r.scrollTop;return"rtl"===ml(o||n).direction&&(l+=al(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}(gl(e)))}function tu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?el(o):null,i=o?jl(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(a){case Sl:t={x:l,y:n.y-r.height};break;case Cl:t={x:l,y:n.y+n.height};break;case Ol:t={x:n.x+n.width,y:u};break;case Il:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=a?wl(a):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case Nl:t[s]=t[s]-(n[c]/2-r[c]/2);break;case Rl:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function nu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,u=void 0===l?"clippingParents":l,s=n.rootBoundary,c=void 0===s?_l:s,d=n.elementContext,f=void 0===d?Tl:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=xl("number"!=typeof g?g:kl(g,Pl)),b=f===Tl?"reference":Tl,y=e.rects.popper,w=e.elements[m?b:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Xl(vl(e)),n=["absolute","fixed"].indexOf(ml(e).position)>=0&&rl(e)?yl(e):e;return nl(n)?t.filter((function(e){return nl(e)&&fl(e,n)&&"body"!==pl(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=eu(e,n,r);return t.top=al(o.top,t.top),t.right=il(o.right,t.right),t.bottom=il(o.bottom,t.bottom),t.left=al(o.left,t.left),t}),eu(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(nl(w)?w:w.contextElement||gl(e.elements.popper),u,c,i),x=cl(e.elements.reference),k=tu({reference:x,element:y,strategy:"absolute",placement:o}),S=Zl(Object.assign({},y,k)),C=f===Tl?S:x,O={top:E.top-C.top+v.top,bottom:C.bottom-E.bottom+v.bottom,left:E.left-C.left+v.left,right:C.right-E.right+v.right},I=e.modifiersData.offset;if(f===Tl&&I){var D=I[o];Object.keys(O).forEach((function(e){var t=[Ol,Cl].indexOf(e)>=0?1:-1,n=[Sl,Cl].indexOf(e)>=0?"y":"x";O[e]+=D[n]*t}))}return O}const ru={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,u=n.fallbackPlacements,s=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=el(g),b=u||(v!==g&&m?function(e){if(el(e)===Dl)return[];var t=Vl(e);return[$l(e),t,$l(t)]}(g):[Vl(g)]),y=[g].concat(b).reduce((function(e,n){return e.concat(el(n)===Dl?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?Ml:u,c=jl(r),d=c?l?Al:Al.filter((function(e){return jl(e)===c})):Pl,f=d.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=nu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[el(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:s,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,k=!0,S=y[0],C=0;C=0,N=P?"width":"height",R=nu(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:s}),_=P?D?Ol:Il:D?Cl:Sl;w[N]>E[N]&&(_=Vl(_));var T=Vl(_),A=[];if(a&&A.push(R[I]<=0),l&&A.push(R[_]<=0,R[T]<=0),A.every((function(e){return e}))){S=O,k=!1;break}x.set(O,A)}if(k)for(var M=function(e){var t=y.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ou(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function au(e){return[Sl,Ol,Cl,Il].some((function(t){return e[t]>=0}))}const iu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Ml.reduce((function(e,n){return e[n]=function(e,t,n){var r=el(e),o=[Il,Sl].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Il,Ol].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}},lu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=nu(t,{boundary:u,rootBoundary:s,padding:d,altBoundary:c}),v=el(t.placement),b=jl(t.placement),y=!b,w=wl(v),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(a){var P,N="y"===w?Sl:Il,R="y"===w?Cl:Ol,_="y"===w?"height":"width",T=x[w],A=T+g[N],M=T-g[R],L=p?-S[_]/2:0,B=b===Nl?k[_]:S[_],j=b===Nl?-S[_]:-k[_],F=t.elements.arrow,z=p&&F?dl(F):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[N],G=U[R],H=El(0,k[_],z[_]),V=y?k[_]/2-L-H-W-O.mainAxis:B-H-W-O.mainAxis,q=y?-k[_]/2+L+H+G+O.mainAxis:j+H+G+O.mainAxis,$=t.elements.arrow&&yl(t.elements.arrow),Q=$?"y"===w?$.clientTop||0:$.clientLeft||0:0,K=null!=(P=null==I?void 0:I[w])?P:0,J=T+q-K,Y=El(p?il(A,T+V-K-Q):A,T,p?al(M,J):M);x[w]=Y,D[w]=Y-T}if(l){var X,Z="x"===w?Sl:Il,ee="x"===w?Cl:Ol,te=x[E],ne="y"===E?"height":"width",re=te+g[Z],oe=te-g[ee],ae=-1!==[Sl,Il].indexOf(v),ie=null!=(X=null==I?void 0:I[E])?X:0,le=ae?re:te-k[ne]-S[ne]-ie+O.altAxis,ue=ae?te+k[ne]+S[ne]-ie-O.altAxis:oe,se=p&&ae?function(e,t,n){var r=El(e,t,n);return r>n?n:r}(le,te,ue):El(p?le:re,te,p?ue:oe);x[E]=se,D[E]=se-te}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function uu(e,t,n){void 0===n&&(n=!1);var r,o,a=rl(t),i=rl(t)&&function(e){var t=e.getBoundingClientRect(),n=ll(t.width)/e.offsetWidth||1,r=ll(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=gl(t),u=cl(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==pl(t)||Jl(l))&&(s=(r=t)!==tl(r)&&rl(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Ql(r)),rl(t)?((c=cl(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=Kl(l))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function su(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var cu={placement:"bottom",modifiers:[],strategy:"absolute"};function du(){for(var e=arguments.length,t=new Array(e),n=0;n{}},hu={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},gu=[],vu=function(t,n,r={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=gu}=r,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,pu);const s=(0,e.useRef)(l),c=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=c.current)||e.update()}),[]),f=(0,e.useCallback)((()=>{var e;null==(e=c.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=zi();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),h=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),g=(0,e.useMemo)((()=>(Zi(s.current,l)||(s.current=l),s.current)),[l]);return(0,e.useEffect)((()=>{c.current&&o&&c.current.setOptions({placement:a,strategy:i,modifiers:[...g,h,mu]})}),[i,a,h,o,g]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return c.current=fu(t,n,Object.assign({},u,{placement:a,strategy:i,modifiers:[...g,hu,h]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},bu=!("undefined"==typeof window||!window.document||!window.document.createElement);var yu=!1,wu=!1;try{var Eu={get passive(){return yu=!0},get once(){return wu=yu=!0}};bu&&(window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,!0))}catch(e){}const xu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!wu){var o=r.once,a=r.capture,i=n;!wu&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,yu?r:a)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}};function ku(e){return e&&e.ownerDocument||document}const Su=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Cu(t){const n=Su(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Ou=()=>{},Iu=e=>e&&("current"in e?e.current:e),Du={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},Pu=()=>{},Nu=function(t,n,{disabled:r,clickTrigger:o}={}){const a=n||Pu;!function(t,n=Ou,{disabled:r,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=Iu(t);var r;Vi()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!Fi(n,e.target)||i.current,i.current=!1}),[t]),u=Cu((e=>{const n=Iu(t);n&&Fi(n,e.target)&&(i.current=!0)})),s=Cu((e=>{a.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const a=ku(Iu(t)),i=a.defaultView||window;let c=null!=(e=i.event)?e:null==(n=i.parent)?void 0:n.event,d=null;Du[o]&&(d=xu(a,Du[o],u,!0));const f=xu(a,o,l,!0),p=xu(a,o,(e=>{e!==c?s(e):c=void 0}));let m=[];return"ontouchstart"in a.documentElement&&(m=[].slice.call(a.body.children).map((e=>xu(e,"mousemove",Ou)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,l,u,s])}(t,a,{disabled:r,clickTrigger:o});const i=Cu((e=>{(function(e){return"Escape"===e.code||27===e.keyCode})(e)&&a(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=ku(Iu(t));let n=(e.defaultView||window).event;const o=xu(e,"keyup",(e=>{e!==n?i(e):n=void 0}));return()=>{o()}}),[t,r,i])},Ru=(0,e.createContext)(bu?window:void 0);Ru.Provider;const _u=(e,t)=>bu?null==e?(t||ku()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Tu(t,n){const r=(0,e.useContext)(Ru),[o,a]=(0,e.useState)((()=>_u(t,null==r?void 0:r.document)));if(!o){const e=_u(t);e&&a(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=_u(t);e!==o&&a(e)}),[t,o]),o}function Au(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const Mu=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,Lu="undefined"!=typeof document||Mu?e.useLayoutEffect:e.useEffect,Bu=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:a}){const i=(0,e.useRef)(null),l=(0,e.useRef)(n),u=Cu(r);(0,e.useEffect)((()=>{n?l.current=!0:u(i.current)}),[n,u]);const s=$i(i,t.ref),c=(0,e.cloneElement)(t,{ref:s});return n?c:a||!l.current&&o?null:c};var ju=n(893);function Fu({children:t,in:n,onExited:r,onEntered:o,transition:a}){const[i,l]=(0,e.useState)(!n);n&&i&&l(!1);const u=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),a=Cu(n);return Lu((()=>{if(!r.current)return;let e=!1;return a({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),Lu((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),s=$i(u,t.ref);return i&&!n?null:(0,e.cloneElement)(t,{ref:s})}const zu=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:a,containerPadding:i,popperConfig:l={},transition:u,runTransition:s}=t,[c,d]=Ji(),[f,p]=Ji(),m=$i(d,n),h=Tu(t.container),g=Tu(t.target),[v,b]=(0,e.useState)(!t.show),y=vu(g,c,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:u={}}){var s,c,d,f,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:a?"fixed":u.strategy,modifiers:Au(Object.assign({},m,{eventListeners:{enabled:t,options:null==(s=m.eventListeners)?void 0:s.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(c=m.preventOverflow)?void 0:c.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(f=m.offset)?void 0:f.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:a,enableEvents:!!t.show,containerPadding:i||5,flip:r,offset:o,arrowElement:f,popperConfig:l}));t.show&&v&&b(!1);const w=t.show||!v;if(Nu(c,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!w)return null;const{onExit:E,onExiting:x,onEnter:k,onEntering:S,onEntered:C}=t;let O=t.children(Object.assign({},y.attributes.popper,{style:y.styles.popper,ref:m}),{popper:y,placement:a,show:!!t.show,arrowProps:Object.assign({},y.attributes.arrow,{style:y.styles.arrow,ref:p})});return O=function(e,t,n){return e?(0,ju.jsx)(e,Object.assign({},n)):t?(0,ju.jsx)(Fu,Object.assign({},n,{transition:t})):(0,ju.jsx)(Bu,Object.assign({},n))}(u,s,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O,onExit:E,onExiting:x,onExited:(...e)=>{b(!0),t.onExited&&t.onExited(...e)},onEnter:k,onEntering:S,onEntered:C}),h?Ht.createPortal(O,h):null}));zu.displayName="Overlay";const Uu=zu;function Wu(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const Gu=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:Hu,Provider:Vu}=Gu;function qu(t,n){const{prefixes:r}=(0,e.useContext)(Gu);return t||r[n]||n}function $u(){const{dir:t}=(0,e.useContext)(Gu);return"rtl"===t}const Qu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=qu(t,"popover-header"),(0,ju.jsx)(n,{ref:o,className:Ki()(e,t),...r}))));Qu.displayName="PopoverHeader";const Ku=Qu,Ju=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=qu(t,"popover-body"),(0,ju.jsx)(n,{ref:o,className:Ki()(e,t),...r}))));Ju.displayName="PopoverBody";const Yu=Ju;function Xu(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Zu(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const es=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:l,popper:u,show:s,...c},d)=>{const f=qu(e,"popover"),p=$u(),[m]=(null==t?void 0:t.split("-"))||[],h=Xu(m,p);let g=r;return s&&!l&&(g={...r,...Zu(null==u?void 0:u.strategy)}),(0,ju.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":m,className:Ki()(n,f,m&&`bs-popover-${h}`),...c,children:[(0,ju.jsx)("div",{className:"popover-arrow",...i}),a?(0,ju.jsx)(Yu,{children:o}):o]})})),ts=Object.assign(es,{Header:Ku,Body:Yu,POPPER_OFFSET:[0,8]}),ns=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:l,show:u,...s},c)=>{e=qu(e,"tooltip");const d=$u(),[f]=(null==t?void 0:t.split("-"))||[],p=Xu(f,d);let m=r;return u&&!i&&(m={...r,...Zu(null==l?void 0:l.strategy)}),(0,ju.jsxs)("div",{ref:c,style:m,role:"tooltip","x-placement":f,className:Ki()(n,e,`bs-tooltip-${p}`),...s,children:[(0,ju.jsx)("div",{className:"tooltip-arrow",...a}),(0,ju.jsx)("div",{className:`${e}-inner`,children:o})]})}));ns.displayName="Tooltip";const rs=Object.assign(ns,{TOOLTIP_OFFSET:[0,6]}),os=e.createContext(null);var as="unmounted",is="exited",ls="entering",us="entered",ss="exiting",cs=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=is,r.appearStatus=ls):o=us:o=e.unmountOnExit||e.mountOnEnter?as:is,r.state={status:o},r.nextCallback=null,r}He(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===as?{status:is}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ls&&n!==us&&(t=ls):n!==ls&&n!==us||(t=ss)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ls){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ht.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===is&&this.setState({status:as})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ht.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:ls},(function(){t.props.onEntering(a,i),t.onTransitionEnd(u,(function(){t.safeSetState({status:us},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:us},(function(){t.props.onEntered(a)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ht.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:ss},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:is},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:is},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ht.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===as)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,dt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(os.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function ds(){}cs.contextType=os,cs.propTypes={},cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ds,onEntering:ds,onEntered:ds,onExit:ds,onExiting:ds,onExited:ds},cs.UNMOUNTED=as,cs.EXITED=is,cs.ENTERING=ls,cs.ENTERED=us,cs.EXITING=ss;const fs=cs;var ps=/([A-Z])/g,ms=/^ms-/;function hs(e){return function(e){return e.replace(ps,"-$1").toLowerCase()}(e).replace(ms,"-ms-")}var gs=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const vs=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(hs(t))||function(e,t){return function(e){var t=ku(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(hs(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!gs.test(e))}(o)?r+=o+"("+a+") ":n+=hs(o)+": "+a+";":e.style.removeProperty(hs(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function bs(e,t,n,r){var o,a;null==n&&(a=-1===(o=vs(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var i=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=xu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),l=xu(e,"transitionend",t);return function(){i(),l()}}function ys(e,t){const n=vs(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function ws(e,t){const n=ys(e,"transitionDuration"),r=ys(e,"transitionDelay"),o=bs(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Es(e){return e&&"setState"in e?Ht.findDOMNode(e):null!=e?e:null}const xs=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,onExited:i,addEndListener:l,children:u,childRef:s,...c},d)=>{const f=(0,e.useRef)(null),p=$i(f,s),m=e=>{p(Es(e))},h=e=>t=>{e&&f.current&&e(f.current,t)},g=(0,e.useCallback)(h(t),[t]),v=(0,e.useCallback)(h(n),[n]),b=(0,e.useCallback)(h(r),[r]),y=(0,e.useCallback)(h(o),[o]),w=(0,e.useCallback)(h(a),[a]),E=(0,e.useCallback)(h(i),[i]),x=(0,e.useCallback)(h(l),[l]);return(0,ju.jsx)(fs,{ref:d,...c,onEnter:g,onEntered:b,onEntering:v,onExit:y,onExited:E,onExiting:w,addEndListener:x,nodeRef:f,children:"function"==typeof u?(e,t)=>u(e,{...t,ref:m}):e.cloneElement(u,{ref:m})})})),ks={[ls]:"show",[us]:"show"},Ss=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},u=(0,e.useCallback)(((e,t)=>{!function(e){e.offsetHeight}(e),null==o||o(e,t)}),[o]);return(0,ju.jsx)(xs,{ref:i,addEndListener:ws,...l,onEnter:u,childRef:n.ref,children:(o,a)=>e.cloneElement(n,{...a,className:Ki()("fade",t,n.props.className,ks[o],r[o])})})}));Ss.displayName="Fade";const Cs=Ss,Os=e.forwardRef((({children:t,transition:n=Cs,popperConfig:r={},rootClose:o=!1,placement:a="top",show:i=!1,...l},u)=>{const s=(0,e.useRef)({}),[c,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=qu(void 0,"popover"),o=qu(void 0,"tooltip"),a=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(Wu(n.current,r))return ts.POPPER_OFFSET;if(Wu(n.current,o))return rs.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[a]]}(l.offset),m=$i(u,f),h=!0===n?Cs:n||void 0,g=Cu((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return Lu((()=>{c&&l.target&&(null==s.current.scheduleUpdate||s.current.scheduleUpdate())}),[c,l.target]),(0,e.useEffect)((()=>{i||d(null)}),[i]),(0,ju.jsx)(Uu,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:g},transition:h,rootClose:o,placement:a,show:i,children:(o,{arrowProps:a,popper:i,show:l})=>{var u,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Es(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Es(e)))}(o,a);const f=null==i?void 0:i.placement,p=Object.assign(s.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:f,outOfBoundaries:(null==i||null==(u=i.state)||null==(d=u.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!c;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:a,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:a,popper:p,hasDoneInitialMeasure:m,className:Ki()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));Os.displayName="Overlay";const Is=Os;function Ds(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||Fi(o,a)||e(...t)}We().oneOf(["click","hover","focus"]);const Ps=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:i=!1,onToggle:l,delay:u,placement:s,flip:c=s&&-1!==s.indexOf("auto"),...d})=>{const f=(0,e.useRef)(null),p=$i(f,r.ref),m=Gi(),h=(0,e.useRef)(""),[g,v]=(R=a,_=i,T=l,A=(0,e.useRef)(void 0!==R),M=(0,e.useState)(_),L=M[0],B=M[1],j=void 0!==R,F=A.current,A.current=j,!j&&F&&L!==_&&B(_),[j?R:L,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{m.clear(),h.current="show",b.show?m.set((()=>{"show"===h.current&&v(!0)}),b.show):v(!0)}),[b.show,v,m]),k=(0,e.useCallback)((()=>{m.clear(),h.current="hide",b.hide?m.set((()=>{"hide"===h.current&&v(!1)}),b.hide):v(!1)}),[b.hide,v,m]),S=(0,e.useCallback)(((...e)=>{x(),null==y||y(...e)}),[x,y]),C=(0,e.useCallback)(((...e)=>{k(),null==w||w(...e)}),[k,w]),O=(0,e.useCallback)(((...e)=>{v(!g),null==E||E(...e)}),[E,v,g]),I=(0,e.useCallback)(((...e)=>{Ds(x,e,"fromElement")}),[x]),D=(0,e.useCallback)(((...e)=>{Ds(k,e,"toElement")}),[k]),P=null==t?[]:[].concat(t),N={ref:e=>{p(Es(e))}};var R,_,T,A,M,L,B,j,F;return-1!==P.indexOf("click")&&(N.onClick=O),-1!==P.indexOf("focus")&&(N.onFocus=S,N.onBlur=C),-1!==P.indexOf("hover")&&(N.onMouseOver=I,N.onMouseOut=D),(0,ju.jsxs)(ju.Fragment,{children:["function"==typeof r?r(N):(0,e.cloneElement)(r,N),(0,ju.jsx)(Is,{...d,show:g,onHide:k,flip:c,placement:s,popperConfig:o,target:f.current,children:n})]})};function Ns(e){return Ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(e)}function Rs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nwindow.innerWidth?c({x:r-f.w-20,y:o-f.h/2}):c({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",b,!0)},b=function(e){e.target!==document.getElementById(n)&&h()};return(0,e.useEffect)((function(){if(i){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),v()}}),[i]),(0,e.useEffect)((function(){i&&v()}),[i,f]),e.createElement("div",{ref:g},e.createElement("img",{className:"alert-info",src:i?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",style:{marginLeft:"10px"},id:n+"img",onClick:function(e){l(!i),i||document.addEventListener("scroll",b,!0)}}),e.createElement("div",{style:{display:i?"flex":"none",top:s.y,left:s.x},className:"overlayVariant card border rounded",id:n},e.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Rs(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Rs(t,2),a=o[0],i=o[1];return e.createElement("p",{className:"card-text",key:n+a},e.createElement("i",null,a),": ",function(e){var t=Hs(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)}(i))}))))))}var tc=["arrowProps","hasDoneInitialMeasure","show"],nc=["arrowProps","hasDoneInitialMeasure","show"];function rc(e){return rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rc(e)}function oc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n5&&void 0!==arguments[5]&&arguments[5],i={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!a&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(i.transitionDuration="0.001s"),vc(vc({},e),i)):vc(vc({},e),i)},kc=function(e,t){var n=t.isDraggingOver;return vc(vc({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})},Sc=function(e){if(!e||!e.nbrCurrentSlot)return{};var t=100*e.nbrCurrentSlot/e.nbrSlotMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Cc=function(e){if(!e||!e.nbrCurrentClock)return{};var t=100*e.nbrCurrentClock/e.nbrClockMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Oc=function(e,t,n,r,o){var a,i=Array.from(n.items);return i.splice.apply(i,[o.index,0].concat(function(e){if(Array.isArray(e))return hc(e)}(a=r.map((function(t,n){return vc(vc({},e[t]),{},{id:Mi()})})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||mc(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i},Ic=function(e,t,n){var r,o,a=Array.from(e),i=(r=a.splice(t,1),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(r,o)||mc(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return a.splice(n,0,i),a},Dc=function(e,t){var n=Array.from(e);return n.splice(t,1),n},Pc=function(e){return e.reduce((function(e,t){return e+(8===t.hp?2:1)}),0)};function Nc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;var o=e<0?"-":"",a=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),i=a.length>3?a.length%3:0;return o+(i?a.substr(0,i)+r:"")+a.substr(i).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-a).toFixed(t).slice(2):"")}catch(t){return e}}var Rc=function(t){sc(r,t);var n=dc(r);function r(e){var t;ic(this,r),(t=n.call(this,e)).state={customconf:"",error:null},t.handleCustomConfig=t.handleCustomConfig.bind(fc(t)),t.handleClickLoad=t.handleClickLoad.bind(fc(t)),t.checkValidation=t.checkValidation.bind(fc(t));var o=Object.keys(e.items);return t.list_pn=o.map((function(t){return e.items[t].name_number})),t}return uc(r,[{key:"handleCustomConfig",value:function(e){var t=e.target.value;this.checkValidation(t)}},{key:"checkValidation",value:function(e){var t;try{t=JSON.parse(e)}catch(t){return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}))}if(!t)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(!(t.items&&t.type||"[object Array]"===Object.prototype.toString.call(t.items)&&"[object String]"===Object.prototype.toString.call(t.type)))return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if("desktop"!==t.type&&"rack"!==t.type)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(t.items.map((function(e){try{return JSON.parse(e)}catch(e){return null}})),t.items=t.items.filter((function(e){return e})),t.items.filter((function(e){return"[object Object]"!==Object.prototype.toString.call(e)||!e.pn||"[object String]"!==Object.prototype.toString.call(e.pn)})).length>0)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));t.items=t.items.map((function(e){return{pn:e.pn,options:e.options?e.options:null}}));var n=this,r=t.items.filter((function(e){return!1===n.list_pn.includes(e.pn)})).map((function(e){return e.pn}));if(r.length>0)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"".concat(r.join(", ")," unknown").concat(r.length>1?"s":""," pn number")}));this.setState(vc(vc({},this.state),{},{customconf:e,error:null,customconf_ready:t}))}},{key:"handleClickLoad",value:function(){this.checkValidation(this.state.customconf),this.props.onClickLoadCustomConf&&this.props.onClickLoadCustomConf(this.state.customconf_ready)}},{key:"render",value:function(){var t=this.props,n=t.aside,r=t.main,o=t.mobileSideMenuShouldOpen,a=t.isMobile,i=t.newCardJustAdded,l=t.onClickToggleMobileSideMenu,u=t.onClickCloseRFQFeedback,s=t.showRFQFeedback,c=t.RFQBodyType,d=t.RFQBodyOrder;return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.createElement("section",{className:"main",onClick:l},r):e.createElement("section",{className:"main"},r),a&&i?e.createElement("div",{className:"feedback-add-success"},"✓ added"):null,e.createElement("div",{className:"modal fade ".concat(s?"show":""),style:{display:s?"block":"none"},id:"exampleModal",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},e.createElement("div",{className:"modal-dialog",role:"document"},e.createElement("div",{className:"modal-content"},e.createElement("div",{className:"modal-body rfqFeedback"},e.createElement("div",{className:"d-flex w-100"},"email"===c?e.createElement("div",{className:"d-flex"},e.createElement("div",null,e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},"We've received your request and will be in contact soon.")):null,"show"===c?e.createElement("p",null,d):null,"import"===c?e.createElement("div",{className:"w-100"},e.createElement("form",{className:"w-100"},e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),JSON.stringify({items:[{pn:"1124"},{pn:"2118"},{pn:"2118"},{pn:"2128"}],type:"desktop"}))),e.createElement("div",{className:"mb-3 w-100"},e.createElement("textarea",{onChange:this.handleCustomConfig,value:this.state.customconf,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),this.state.error?e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"text-danger"},this.state.error)):null),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:u,className:"btn btn-sm btn-outline-primary m-0 mb-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:this.handleClickLoad,className:"btn btn-sm btn-primary m-0 ms-sm-2 ".concat(this.state.error?"disabled":"")},"Load configuration"))):null,e.createElement("div",null,e.createElement("button",{onClick:u},e.createElement("img",{src:"/images/shop/icon-close.svg",alt:"close"})))))))),e.createElement("div",{onClick:u,className:"modal-backdrop fade ".concat(s?"show":""),style:{display:s?"initial":"none"}}))}}],[{key:"propTypes",get:function(){return{aside:We().any,main:We().any,mobileSideMenuShouldOpen:We().bool,isMobile:We().bool,newCardJustAdded:We().bool,onClickToggleMobileSideMenu:We().func,onClickCloseRFQFeedback:We().func,RFQBodyType:We().string,RFQBodyOrder:We().string,onClickLoadCustomConf:We().func,items:We().object}}},{key:"defaultProps",get:function(){return{mobileSideMenuShouldOpen:!1}}}]),r}(e.PureComponent),_c=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnClickAddItem=t.handleOnClickAddItem.bind(fc(t)),t}return uc(r,[{key:"handleOnClickAddItem",value:function(e,t,n){this.props.onClickAddItem&&this.props.onClickAddItem(e,t),n.preventDefault()}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.index,o=t.name,a=t.name_codename,i=t.price,l=t.currency,u=t.image,s=t.specs,c=t.datasheet_file,d=t.datasheet_name,f=s&&s.length>0&&e.createElement("ul",null,s.map((function(t,n){return e.createElement("li",{key:n},t)}))),p=c&&d&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},d));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:a?"5px":"20px"}},o),a?e.createElement("p",null,a):null,e.createElement("div",{className:"price"},"".concat(l," ").concat(Nc(i))),f,p),e.createElement("div",{className:"content"},e.createElement("button",{onClick:this.handleOnClickAddItem.bind(this,r,!0)},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(Ci,{draggableId:n,index:r},(function(t,n){return e.createElement(e.Fragment,null,e.createElement("img",ac({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:xc(t.draggableProps.style,n,!0),src:u})),n.isDragging&&e.createElement("img",{className:"simclone",src:u}))}))))}}],[{key:"propTypes",get:function(){return{id:We().string.isRequired,index:We().number.isRequired,name:We().string.isRequired,name_codename:We().string,price:We().number.isRequired,currency:We().string.isRequired,image:We().string.isRequired,specs:We().array,datasheet_file:We().string,datasheet_name:We().string,onClickAddItem:We().func}}}]),r}(e.PureComponent),Tc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnMouseEnterRemoveItem=t.handleOnMouseEnterRemoveItem.bind(fc(t)),t.handleOnMouseLeaveRemoveItem=t.handleOnMouseLeaveRemoveItem.bind(fc(t)),t.handleOnClickRemoveItem=t.handleOnClickRemoveItem.bind(fc(t)),t.handleOnClickItem=t.handleOnClickItem.bind(fc(t)),t}return uc(r,[{key:"handleOnMouseEnterRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!0),t.preventDefault()}},{key:"handleOnMouseLeaveRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!1),t.preventDefault()}},{key:"handleOnClickItem",value:function(e,t){this.props.onClickItem&&this.props.isTouch&&this.props.onClickItem(e),t.preventDefault()}},{key:"handleOnClickRemoveItem",value:function(e,t){this.props.onClickRemoveItem&&this.props.onClickRemoveItem(e)}},{key:"render",value:function(){var t,n,r,o,a=this,i=this.props,l=i.hovered,u=i.model,s=i.data,c=i.index,d=i.ext_data,f=i.onCardUpdate;if(s&&s.warnings){var p=Object.keys(s.warnings);p&&p.length>0&&(t=s.warnings[p[0]])}if(s&&s.options&&(n=s.options,s.options_data||(s.options_data={}),(r=s.options_data).ext_data=d),s)switch(u.type){case"kasli":o=[e.createElement("p",{key:u.type+u.id+"EEM"},"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used")),e.createElement("p",{key:u.type+u.id+"CLK"},"".concat(s.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))];break;case"vhdcicarrier":o=e.createElement("p",null,"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used"));break;case"zotino":case"hd68":o=e.createElement("p",null,"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," connectors used"));break;case"clocker":o=e.createElement("p",null,"".concat(s.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))}return e.createElement(Ci,{draggableId:u.id,index:c},(function(i,d){return e.createElement("div",ac({ref:i.innerRef},i.draggableProps,i.dragHandleProps,{style:vc({},xc(i.draggableProps.style,d,!0,!!l,!!u.selected,!0)),onMouseEnter:a.handleOnMouseEnterRemoveItem.bind(a,c),onMouseLeave:a.handleOnMouseLeaveRemoveItem.bind(a,c)}),e.createElement(Ps,{placement:"bottom",trigger:t?["click","hover","focus"]:[],overlay:function(n){n.arrowProps,n.hasDoneInitialMeasure,n.show;var r=oc(n,tc);return e.createElement("div",ac({className:"k-popup-warning"},r),e.createElement("p",{className:"rule warning"},e.createElement("i",null,t.message)))},rootClose:!0},e.createElement("div",{className:"progress-container warning"},t?e.createElement("img",{className:"alert-warning",src:t?"/images".concat(t.icon):null}):n&&e.createElement(Zs,{options:n,data:r,options_class:u.options_class,key:"popover"+c,id:"popover"+c,big:"big"===u.size,target:{construct:function(e,t){r[e]=t},update:function(e,t){e in r&&(r[e]=t),f()}}}))),e.createElement("h6",null,u.name_number),e.createElement("div",{onMouseEnter:a.handleOnMouseEnterRemoveItem.bind(a,c),onClick:a.handleOnClickItem.bind(a,c)},e.createElement("img",{className:"item-cart",src:"/images".concat(u.image)})),e.createElement("div",{style:{display:u.showOverlayRemove?"flex":"none"},className:"overlayRemove",onClick:a.handleOnClickRemoveItem.bind(a,c)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),o&&e.createElement(Ps,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=oc(t,nc);return e.createElement("div",ac({className:"k-popup-connectors"},n),o)},rootClose:!0},e.createElement("div",{className:"progress-container"},u.nbrSlotMax>0&&e.createElement("div",{className:"nbr-connectors"},e.createElement("div",{style:vc({},Sc(s))})),u.nbrClockMax>0&&e.createElement("div",{className:"nbr-clocks"},e.createElement("div",{style:vc({},Cc(s))})))))}))}}],[{key:"propTypes",get:function(){return{isMobile:We().bool,isTouch:We().bool,hovered:We().bool,index:We().number.isRequired,model:We().object.isRequired,data:We().object,ext_data:We().object,onToggleOverlayRemove:We().func,onClickRemoveItem:We().func,onClickItem:We().func,onCardUpdate:We().func}}},{key:"defaultProps",get:function(){return{hovered:!1}}}]),r}(e.PureComponent),Ac=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){for(var t=this.props,n=t.isDraggingOver,r=t.nbrSlots,o=t.items,a=[],i=r-Pc(o);i>0;i--)a.push(e.createElement("div",{key:i,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,a)}}],[{key:"propTypes",get:function(){return{isDraggingOver:We().bool,nbrSlots:We().number.isRequired,items:We().array.isRequired}}}]),r}(e.PureComponent),Mc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.isMobile,r=t.isTouch,o=t.nbrSlots,a=t.itemHovered,i=t.data,l=t.onToggleOverlayRemove,u=t.onClickRemoveItem,s=t.onClickItem,c=t.onCardUpdate,d=i.items.map((function(t,o){var d,f=function(e,t){return{has_previous_carrier:e.filter((function(e,n){return t>n&&"Carrier"===e.name})).length>0,has_other_dio:e.filter((function(e,n){return t!==n&&e.name&&e.name.endsWith("-TTL")})).length>0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}(i.itemsData,o);return i.itemsData&&o in i.itemsData&&(d=i.itemsData[o]),e.createElement(Tc,{isMobile:n,isTouch:r,hovered:t.id===a,key:t.id,id:t.id,index:o,data:d,ext_data:f,onToggleOverlayRemove:l,onClickRemoveItem:u,onCardUpdate:c,onClickItem:s,model:t})}));return e.createElement(Pi,{droppableId:i.id,direction:"horizontal"},(function(t,n){return e.createElement("div",ac({ref:t.innerRef},t.droppableProps,{style:kc(t.droppableProps.style,n),className:"items-cart-list"}),d,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(Ac,{nbrSlots:o,items:i.items,isDraggingOver:n.isDraggingOver}))}))}}],[{key:"propTypes",get:function(){return{isMobile:We().bool,isTouch:We().bool,nbrSlots:We().number,itemHovered:We().string,data:We().object.isRequired,onToggleOverlayRemove:We().func,onClickRemoveItem:We().func,onCardUpdate:We().func,onClickItem:We().func}}}]),r}(e.PureComponent),Lc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnClickMode=t.handleOnClickMode.bind(fc(t)),t}return uc(r,[{key:"handleOnClickMode",value:function(e,t){this.props.onClickMode&&this.props.onClickMode(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.mode,o=n.items;return e.createElement("div",{className:"crate-mode"},o.map((function(n){return e.createElement("a",{key:n.id,className:r==n.id?"active":"",onClick:t.handleOnClickMode.bind(t,n.id),href:"#",role:"button"},n.name)})))}}],[{key:"propTypes",get:function(){return{items:We().array.isRequired,mode:We().string.isRequired,onClickMode:We().func}}}]),r}(e.PureComponent),Bc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.rules,r=t.cart;return e.createElement("div",{className:"crate"},e.createElement("div",{className:"crate-products"},r,n&&n.length>0&&e.createElement("div",{className:"crate-info"},n.map((function(t,n){return e.createElement("p",{key:n,className:"rule",style:{color:t.color?t.color:"inherit"}},e.createElement("img",{src:"/images".concat(t.icon)})," ",e.createElement("i",null,e.createElement("strong",null,t.name,":")," ",t.message))})))))}}],[{key:"propTypes",get:function(){return{rules:We().array,cart:We().element}}}]),r}(e.PureComponent),jc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.description,o=t.crateMode,a=t.crate,i=t.summaryPrice,l=t.form,u=t.isMobile,s=t.onClickToggleMobileSideMenu,c=t.onClickOpenImport;return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control"},e.createElement("p",{className:"description"},r),o),e.createElement("div",null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:c},"Import JSON")),u?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:s},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,a,e.createElement("section",{className:"summary"},i,l))}}],[{key:"propTypes",get:function(){return{title:We().string,description:We().string,crateMode:We().element,crate:We().element,summaryPrice:We().element,form:We().element,isMobile:We().bool,onClickToggleMobileSideMenu:We().func,onClickOpenImport:We().func}}}]),r}(e.PureComponent),Fc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).state={note:"",email:"",error:{note:null,email:null},empty:{note:null,email:null}},t.handleEmail=t.handleEmail.bind(fc(t)),t.handleNote=t.handleNote.bind(fc(t)),t.handleSubmit=t.handleSubmit.bind(fc(t)),t.resetEmptyError=t.resetEmptyError.bind(fc(t)),t.checkValidation=t.checkValidation.bind(fc(t)),t}return uc(r,[{key:"checkValidation",value:function(){var e=vc({},this.state),t=this.validateEmail(this.state.email),n=t.isEmpty,r=t.isError;return e=vc(vc({},e),{},{error:vc(vc({},this.state.error),{},{email:r}),empty:vc(vc({},this.state.empty),{},{email:n})}),this.setState(e),!n&&!r}},{key:"validateEmail",value:function(e){var t=null,n=null;return this.props.t,e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)&&(n={message:"Your email is incomplete"}):t=!0,{isEmpty:t,isError:n}}},{key:"validateNote",value:function(e){var t=null;return e&&""!==e.trim()||(t=!0),{isEmpty:t}}},{key:"resetEmptyError",value:function(e){this.setState(vc(vc({},this.state),{},{error:vc(vc({},this.state.error),{},bc({},e,null)),empty:vc(vc({},this.state.empty),{},bc({},e,null))}))}},{key:"handleEmail",value:function(e){var t=e.target.value,n=this.validateEmail(t),r=n.isEmpty,o=n.isError;this.setState(vc(vc({},this.state),{},{email:t,error:vc(vc({},this.state.error),{},{email:o}),empty:vc(vc({},this.state.empty),{},{email:r})}))}},{key:"handleNote",value:function(e){var t=e.target.value;this.setState(vc(vc({},this.state),{},{note:t}))}},{key:"handleSubmit",value:function(e){if(e.preventDefault(),this.props.onClickSubmit){if(!this.checkValidation())return!1;this.props.onClickSubmit(this.state.note,this.state.email)}}},{key:"render",value:function(){var t=this.handleEmail,n=this.handleNote,r=this.resetEmptyError,o=this.handleSubmit,a=this.props.onClickShow,i=this.state,l=i.email,u=i.note,s=i.error,c=i.empty,d=this.props,f=d.isProcessing;return d.isProcessingComplete,e.createElement("div",{className:"summary-form"},e.createElement("form",{onSubmit:o,noValidate:!0},e.createElement("input",{className:"".concat(s&&s.email?"errorField":""),type:"email",placeholder:"Email",onFocus:function(){return r("email")},onChange:t,onBlur:t,value:l}),c&&c.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,s&&s.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:n,defaultValue:u,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:a,readOnly:!0}),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2",type:"submit",value:"".concat(f?"Processing ...":"Request quote")}))))}}],[{key:"propTypes",get:function(){return{isProcessing:We().bool,isProcessingComplete:We().bool,onClickSubmit:We().func}}}]),r}(e.PureComponent),zc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnDeleteItem=t.handleOnDeleteItem.bind(fc(t)),t.handleOnDeleteAllItems=t.handleOnDeleteAllItems.bind(fc(t)),t.handleOnMouseEnterItem=t.handleOnMouseEnterItem.bind(fc(t)),t.handleOnMouseLeaveItem=t.handleOnMouseLeaveItem.bind(fc(t)),t.handleOnClickSelectItem=t.handleOnClickSelectItem.bind(fc(t)),t}return uc(r,[{key:"handleOnDeleteItem",value:function(e,t){this.props.onDeleteItem&&this.props.onDeleteItem(e),t.preventDefault()}},{key:"handleOnDeleteAllItems",value:function(e){this.props.onDeleteAllItems&&this.props.onDeleteAllItems(),e.preventDefault()}},{key:"handleOnMouseEnterItem",value:function(e,t){this.props.onMouseEnterItem&&this.props.onMouseEnterItem(e),t.preventDefault()}},{key:"handleOnMouseLeaveItem",value:function(e){this.props.onMouseLeaveItem&&this.props.onMouseLeaveItem(),e.preventDefault()}},{key:"handleOnClickSelectItem",value:function(e,t){return"IMG"!==t.target.tagName&&this.props.onClickSelectItem&&this.props.onClickSelectItem(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.currency,o=n.modes,a=n.currentMode,i=n.summary,l=n.itemsData,u=o.find((function(e){return e.id===a}));return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.createElement("span",{className:"item-card-name"},"Remove all cards"),e.createElement("button",{onClick:this.handleOnDeleteAllItems},e.createElement("img",{src:"/images/shop/icon-remove.svg"})))),u&&e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},u.name),e.createElement("td",{className:"price"},e.createElement("div",null,"".concat(r," ").concat(Nc(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," ")))),e.createElement("tbody",null,i.map((function(n,o){var a,i,u,s;if(l[o]&&l[o].warnings){a=l[o];var c=Object.keys(a.warnings);c&&c.length>0&&(i=a.warnings[c[0]])}return u=l[o]&&l[o].options,s=l[o]&&l[o].options_data,e.createElement("tr",{key:n.id,className:"hoverable ".concat(n.selected?"selected":""),onClick:t.handleOnClickSelectItem.bind(t,o),onMouseEnter:t.handleOnMouseEnterItem.bind(t,n.id),onMouseLeave:t.handleOnMouseLeaveItem},e.createElement("td",{className:"item-card-name"},e.createElement("div",null,"".concat(n.name_number," ").concat(n.name," ").concat(n.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",null,"".concat(r," ").concat(Nc(n.price)),e.createElement("button",{onClick:t.handleOnDeleteItem.bind(t,o)},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))),i?e.createElement("img",{style:{marginLeft:"10px"},className:"alert-warning",src:"/images/".concat(i.icon)}):u&&s?e.createElement(ec,{id:n.id+"options",options:u,data:s}):null,!i&&!u&&e.createElement("span",{style:{display:"inline-block",width:"30px"}}," ")))}))),e.createElement("tfoot",null,e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},"Price estimate"),e.createElement("td",{className:"price"},e.createElement("div",null,i.length?"".concat(r," ").concat(Nc(i.reduce((function(e,t){return e+t.price}),0)+u.price)):"".concat(r," ").concat(Nc(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}}],[{key:"propTypes",get:function(){return{currency:We().string,modes:We().array,currentMode:We().string,summary:We().array,itemsData:We().array,onDeleteItem:We().func,onDeleteAllItems:We().func,onMouseEnterItem:We().func,onMouseLeaveItem:We().func,onClickSelectItem:We().func}}}]),r}(e.PureComponent),Uc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.currency,r=t.data,o=t.items,a=t.onClickAddItem,i=t.onClickToggleMobileSideMenu,l=t.isMobile,u=r.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return o[e]}))}})),s=-1,c=u.map((function(t,r){return e.createElement("div",{className:"accordion-item",key:"".concat(t.name)},e.createElement("h2",{className:"accordion-header"},e.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse".concat(r),"aria-expanded":"true","aria-controls":"collapse".concat(r)},t.name)),e.createElement("div",{id:"collapse".concat(r),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((function(t){return s++,e.createElement(_c,{key:t.id,id:Mi(),index:s,name:"".concat(t.name_number," ").concat(t.name),name_codename:t.name_codename,price:t.price,currency:n,image:"/images/".concat(t.image),specs:t.specs,datasheet_file:t.datasheet_file,datasheet_name:t.datasheet_name,onClickAddItem:a})})))))}));return e.createElement(Pi,{droppableId:r.id,isDropDisabled:!0},(function(t){return e.createElement("div",ac({className:"backlog-container",ref:t.innerRef},t.droppableProps),l?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:i},e.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null,e.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},c),t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder))}))}}],[{key:"propTypes",get:function(){return{currency:We().string,data:We().object.isRequired,items:We().object,isMobile:We().bool,onClickAddItem:We().func,onClickToggleMobileSideMenu:We().func}}},{key:"defaultProps",get:function(){return{items:{}}}}]),r}(e.PureComponent),Wc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).state=t.props.data,t.handleCrateModeChange=t.handleCrateModeChange.bind(fc(t)),t.handleOnDragEnd=t.handleOnDragEnd.bind(fc(t)),t.handleDeleteItem=t.handleDeleteItem.bind(fc(t)),t.handleDeleteAllItems=t.handleDeleteAllItems.bind(fc(t)),t.handleMouseEnterItem=t.handleMouseEnterItem.bind(fc(t)),t.handleMouseLeaveItem=t.handleMouseLeaveItem.bind(fc(t)),t.handleClickAddItem=t.handleClickAddItem.bind(fc(t)),t.checkAlerts=t.checkAlerts.bind(fc(t)),t.handleClickSelectItem=t.handleClickSelectItem.bind(fc(t)),t.handleClickSubmit=t.handleClickSubmit.bind(fc(t)),t.handleToggleOverlayRemove=t.handleToggleOverlayRemove.bind(fc(t)),t.handleShowOverlayRemove=t.handleShowOverlayRemove.bind(fc(t)),t.handleClickToggleMobileSideMenu=t.handleClickToggleMobileSideMenu.bind(fc(t)),t.handleClickCloseRFQFeedback=t.handleClickCloseRFQFeedback.bind(fc(t)),t.handleClickShowOrder=t.handleClickShowOrder.bind(fc(t)),t.handleClickOpenImport=t.handleClickOpenImport.bind(fc(t)),t.handleLoadCustomConf=t.handleLoadCustomConf.bind(fc(t)),t.handleCardsUpdated=t.handleCardsUpdated.bind(fc(t)),t.timer=null,t.timer_remove=null,t}return uc(r,[{key:"componentDidMount",value:function(){var e={droppableId:"backlog",indexes:[Ec.findIndex((function(e){return"eem_pwr_mod"===e})),Ec.findIndex((function(e){return"kasli"===e}))]};this.handleOnDragEnd({source:e,destination:{droppableId:"cart",index:0}})}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.columns.cart.items===this.state.columns.cart.items&&t.currentMode===this.state.currentMode||this.checkAlerts(this.state.columns.cart.items),this.state.newCardJustAdded&&(this.timer=setTimeout((function(){n.setState({newCardJustAdded:!1})}),2e3))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"handleCardsUpdated",value:function(){this.checkAlerts(this.state.columns.cart.items)}},{key:"handleCrateModeChange",value:function(e){this.setState({currentMode:e})}},{key:"handleDeleteItem",value:function(e){var t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);t.splice(e,1),n.splice(e,1),this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:t,itemsData:n})})}))}},{key:"handleDeleteAllItems",value:function(){this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:[],itemsData:[]})})}))}},{key:"handleMouseEnterItem",value:function(e){this.setState(vc(vc({},this.state),{},{currentItemHovered:e}))}},{key:"handleMouseLeaveItem",value:function(){this.setState(vc(vc({},this.state),{},{currentItemHovered:null}))}},{key:"handleClickAddItem",value:function(e,t){var n={droppableId:"backlog",index:e},r={droppableId:"cart",index:this.state.columns.cart.items.length};this.handleOnDragEnd({source:n,destination:r},t)}},{key:"handleClickSelectItem",value:function(e){var t=Array.from(this.state.columns.cart.items);this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:t.map((function(t,n){return vc(vc({},t),{},{selected:n===e})}))})})}))}},{key:"handleToggleOverlayRemove",value:function(e,t){var n=Array.from(this.state.columns.cart.items);this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:n.map((function(n,r){return vc(vc({},n),{},{showOverlayRemove:r===e&&t})}))})})}))}},{key:"handleShowOverlayRemove",value:function(e){var t=this;this.timer_remove&&clearTimeout(this.timer_remove),this.handleToggleOverlayRemove(e,!0),this.timer_remove=setTimeout((function(){t.handleToggleOverlayRemove(e,!1)}),2e3)}},{key:"handleClickShowOrder",value:function(){var e={items:[],type:this.state.currentMode},t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);for(var r in t){var o=t[r],a=n[r];e.items.push({pn:o.name_number,options:a.options_data&&a.options?Xs(a.options,a.options_data):null})}this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"show",RFQBodyOrder:JSON.stringify(e,null,2)})}},{key:"handleClickOpenImport",value:function(){this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"import"})}},{key:"handleLoadCustomConf",value:function(e){if(e){var t=this.props.data.items,n=[],r=[];this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:[]})})}),(function(){e.items.map((function(e){return Object.keys(t).map((function(o){e.pn&&e.pn===t[o].name_number&&(n.push(Object.assign(vc({},t[o]),{id:Mi(),options_data:e.options?e.options:null})),r.push({options_data:e.options?e.options:null}))})),e})),this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:n,itemsData:r})}),currentMode:e.type}))}))}}},{key:"handleClickSubmit",value:function(e,t){var n=this,r={items:[],type:this.state.currentMode},o=Array.from(this.state.columns.cart.items),a=Array.from(this.state.columns.cart.itemsData);for(var i in o){var l=o[i],u=a[i];r.items.push({pn:l.name_number,options:u.options_data&&u.options?Xs(u.options,u.options_data):null})}var s=this.props.data;this.setState({isProcessing:!0}),Fe.post(s.API_RFQ,{email:t,note:e,configuration:JSON.stringify(r)}).then((function(e){n.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"email",isProcessingComplete:!0})})).catch((function(e){n.setState({isProcessing:!1},(function(){alert("We cannot receive your request. Try using the export by coping the configuration and send it to us at sales[at]m-labs.hk")}))}))}},{key:"handleOnDragEnd",value:function(e,t){var n=e.source,r=e.destination,o=[];if(n.indexes?n.indexes.forEach((function(e,t){o.push(Ec[e])})):n.index>=0&&o.push(Ec[n.index]),r)switch(n.droppableId){case"backlog":n.droppableId!==r.droppableId&&this.setState(vc(vc({},this.state),{},{newCardJustAdded:!!t,columns:vc(vc({},this.state.columns),{},bc({},r.droppableId,vc(vc({},this.state.columns[r.droppableId]),{},{items:Oc(this.state.items,this.state.columns[n.droppableId],this.state.columns[r.droppableId],o,r)})))}));break;case r.droppableId:this.setState(vc(vc({},this.state),{},{newCardJustAdded:!1,columns:vc(vc({},this.state.columns),{},bc({},r.droppableId,vc(vc({},this.state.columns[r.droppableId]),{},{items:Ic(this.state.columns[r.droppableId].items,n.index,r.index),itemsData:Ic(this.state.columns[r.droppableId].itemsData,n.index,r.index)})))}))}else"cart"===n.droppableId&&this.setState(vc(vc({},this.state),{},{newCardJustAdded:!1,columns:vc(vc({},this.state.columns),{},bc({},n.droppableId,vc(vc({},this.state.columns[n.droppableId]),{},{items:Dc(this.state.columns[n.droppableId].items,n.index),itemsData:Dc(this.state.columns[n.droppableId].itemsData,n.index)})))}))}},{key:"handleClickToggleMobileSideMenu",value:function(){this.setState(vc(vc({},this.state),{},{mobileSideMenuShouldOpen:!this.state.mobileSideMenuShouldOpen}))}},{key:"handleClickCloseRFQFeedback",value:function(){this.setState({shouldShowRFQFeedback:!1})}},{key:"checkAlerts",value:function(e){var t=this;console.log("--- START CHECKING CRATE WARNING ---");var n=this.state,r=n.currentMode,o=n.crateModeSlots,a=n.crateRules,i=Array.from(e),l=[],u={};i.forEach((function(e,n){n in l||(l[n]=e),n in t.state.columns.cart.itemsData&&t.state.columns.cart.itemsData[n].options_data&&(i[n].options_data=t.state.columns.cart.itemsData[n].options_data),l[n].warnings={}}));var s=Pc(e);s>o[r]?u[a.maxSlot.type]=vc({},a.maxSlot):21===o[r]&&s<=10&&(u[a.compactSlot.type]=vc({},a.compactSlot));for(var c=i.reduce((function(e,t,n){return"kasli"!==t.type&&"vhdcicarrier"!==t.type||e.push(n),e}),[]),d=function(){var e,t,n,r=c[f];if(e=f!==c.length-1?i.slice(r+1,c[f+1]):i.slice(r+1),0==f){var o=i.slice(0,r).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=o&&(o in l?("warnings"in l[o]||(l[o].warnings={}),l[o].warnings.resources=vc({},i[o].rules.resources)):(l[o]=vc({},i[o]),l[o].warnings={},l[o].warnings.resources=vc({},i[o].rules.resources)))}if(t=e.filter((function(e){return"idc-bnc"!==e.type})).reduce((function(e,t){return e+((n=t).options_data&&!1!==n.options_data.ext_pwr&&!1!==n.options_data.mono_eem?!0===n.options_data.ext_pwr?0:!0===n.options_data.mono_eem||"1 EEM"===n.options_data.n_eem?1:"3 EEM"===n.options_data.n_eem?3:n.slotOccupied:n.slotOccupied);var n}),0),n=e.reduce((function(e,t){return"clocker"===t.type?e+(t.options_data&&!0===t.options_data.ext_clk?0:t.clockOccupied):e}),0),r in l?(l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,"warnings"in l[r]||(l[r].warnings={})):(l[r]=vc({},i[r]),l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,l[r].warnings={}),t>i[r].nbrSlotMax&&(i[r].rules.maxSlot.message&&(u[i[r].rules.maxSlot.type]=vc({},i[r].rules.maxSlot)),l[r].warnings.maxSlotWarning=vc({},i[r].rules.maxSlotWarning)),n>i[r].nbrClockMax&&(u[i[r].rules.maxClock.type]=vc({},i[r].rules.maxClock),l[r].warnings.maxClockWarning=vc({},i[r].rules.maxClockWarning)),i.length>r+1){var a=i[r+1];"kasli"!==a.type&&"vhdcicarrier"!==a.type||(u[a.rules.follow.type]=vc({},a.rules.follow))}},f=0;f<=c.length-1;f++)d();if(0===c.length){var p=i.slice(0).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=p&&(p in l?("warnings"in l[p]||(l[p].warnings={}),l[p].warnings.resources=vc({},i[p].rules.resources)):(l[p]=vc({},i[p]),l[p].warnings={},l[p].warnings.resources=vc({},i[p].rules.resources)))}for(var m=i.reduce((function(e,t,n){return"kasli"!==t.type&&"clocker"!==t.type||e.push(n),e}),[]),h=0;h<=m.length-1;h++){var g,v=m[h];g=(h!==m.length-1?i.slice(v+1,m[h+1]):i.slice(v+1)).reduce((function(e,t){return e+(t.options_data&&t.options_data.ext_clk&&t.options_data.ext_clk.checked?0:t.clockOccupied)}),0),v in l?l[v].nbrCurrentClock&&"clocker"!==l[v].type?l[v].nbrCurrentClock+=g:l[v].nbrCurrentClock=g:(l[v]=vc({},i[v]),l[v].nbrCurrentClock=g,l[v].warnings={}),g>i[v].nbrClockMax&&(u[i[v].rules.maxClock.type]=vc({},i[v].rules.maxClock),l[v].warnings.maxClockWarning=vc({},i[v].rules.maxClockWarning))}i.find((function(e){return"urukul"===e.type}))&&this.state.items.urukul.rules.info&&(u[this.state.items.urukul.rules.info.type]=vc({},this.state.items.urukul.rules.info));for(var b=i.reduce((function(e,t,n){return"idc-bnc"===t.type&&e.push(n),e}),[]),y=b.length-1;y>=0;y--){var w=b[y],E=!1;if(0==w)E=!0;else if(w>=1){var x=b[y]-1;"zotino"!==i[x].type&&"hd68"!==i[x].type&&"idc-bnc"!==i[x].type&&(E=!0)}E&&(l[w]=vc({},i[w]),l[w].warnings={},l[w].warnings.wrong=vc({},i[w].rules.wrong))}for(var k=i.reduce((function(e,t,n){return"zotino"!==t.type&&"hd68"!==t.type||e.push(n),e}),[]),S=function(){var e,t,n=k[C];e=C!==k.length-1?i.slice(n+1,k[C+1]):i.slice(n+1);var r=!1;if(t=e.reduce((function(e,t,n,o){return 0===n&&"idc-bnc"===t.type?e+1:"idc-bnc"===o[0].type&&n>0&&"idc-bnc"===o[n-1].type?("idc-bnc"!==t.type&&(r=!0),e+("idc-bnc"!==t.type||r?0:1)):e}),0),n in l?(l[n].nbrCurrentSlot=t,"warnings"in l[n]||(l[n].warnings={})):(l[n]=vc({},i[n]),l[n].nbrCurrentSlot=t,l[n].warnings={}),t>0&&i[n].rules.maxSlot.message&&(u[i[n].rules.maxSlot.type]=vc({},i[n].rules.maxSlot)),t>i[n].nbrSlotMax&&(l[n].warnings.maxSlotWarning=vc({},i[n].rules.maxSlotWarning)),"hd68"===i[n].type){var o=!1;n{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=u(t),h=u(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case g:case h:case u:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||E(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===s},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},296:(e,t,n)=>{"use strict";e.exports=n(103)},143:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,l],c=0;(u=new Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},962:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,a,i,l,u,s=e.get_operator(n),c=n[s];if(Array.isArray(c)||(c=[c]),"if"===s||"?:"==s){for(o=0;o0){var d=String(s).split("."),f=t;for(o=0;o{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),I=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var L,B=Object.assign;function j(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=i&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function U(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case x:return"Portal";case C:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,ke=null,Se=null;function Ce(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,st=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!=(a&=i)&&(r=dt(a))}else 0!=(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<=Mn),jn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Vn(e,t,n,r){Oe(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Qn(e){jr(e,0)}function Kn(e){if($(Eo(e)))return e}function Jn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Yn=Xn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,gr=null,vr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Or=Cr("animationend"),Ir=Cr("animationiteration"),Dr=Cr("animationstart"),Pr=Cr("transitionend"),Nr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _r(e,t){Nr.set(e,t),u(t,[e])}for(var Tr=0;TrSo||(e.current=ko[So],ko[So]=null,So--)}function Io(e,t){So++,ko[So]=e.current,e.current=t}var Do={},Po=Co(Do),No=Co(!1),Ro=Do;function _o(e,t){var n=e.type.contextTypes;if(!n)return Do;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function To(e){return null!=e.childContextTypes}function Ao(){Oo(No),Oo(Po)}function Mo(e,t,n){if(Po.current!==Do)throw Error(a(168));Io(Po,t),Io(No,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,G(e)||"Unknown",o));return B({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Do,Ro=Po.current,Io(Po,e),Io(No,No.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Lo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Oo(No),Oo(Po),Io(Po,e)):Oo(No),Io(No,n)}var Fo=null,zo=!1,Uo=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function Go(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=yt;try{var n=Fo;for(yt=1;e>=i,o-=i,Yo=1<<32-it(t)+o|n<h?(g=d,d=null):g=d.sibling;var v=p(o,d,l[h],u);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,h),null===c?s=v:c.sibling=v,c=v,d=g}if(h===l.length)return n(o,d),aa&&Zo(o,h),s;if(null===d){for(;hg?(v=h,h=null):v=h.sibling;var y=p(o,h,b.value,s);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),l=i(y,l,g),null===d?c=y:d.sibling=y,d=y,h=v}if(b.done)return n(o,h),aa&&Zo(o,g),c;if(null===h){for(;!b.done;g++,b=u.next())null!==(b=f(o,b.value,s))&&(l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return aa&&Zo(o,g),c}for(h=r(o,h);!b.done;g++,b=u.next())null!==(b=m(h,o,g,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(o,e)})),aa&&Zo(o,g),c}return function e(r,a,i,u){if("object"==typeof i&&null!==i&&i.type===k&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var s=i.key,c=a;null!==c;){if(c.key===s){if((s=i.type)===k){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===_&&Ka(s)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=$a(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===k?((a=Ls(i.props.children,r.mode,u,i.key)).return=r,r=a):((u=Ms(i.type,i.key,i.props,null,r.mode,u)).ref=$a(r,a,i),u.return=r,r=u)}return l(r);case x:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fs(i,r.mode,u)).return=r,r=a}return l(r);case _:return e(r,a,(c=i._init)(i._payload),u)}if(te(i))return h(r,a,i,u);if(M(i))return g(r,a,i,u);Qa(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=js(i,r.mode,u)).return=r,r=a),l(r)):n(r,a)}}var Ya=Ja(!0),Xa=Ja(!1),Za={},ei=Co(Za),ti=Co(Za),ni=Co(Za);function ri(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(Io(ni,t),Io(ti,e),Io(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ei),Io(ei,t)}function ai(){Oo(ei),Oo(ti),Oo(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ue(t,e.type);t!==n&&(Io(ti,e),Io(ei,n))}function li(e){ti.current===e&&(Oo(ei),Oo(ti))}var ui=Co(0);function si(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function di(){for(var e=0;en?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{yt=n,pi.transition=r}}function el(){return Ii().memoizedState}function tl(e,t,n){var r=ns(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?ol(t,n):null!==(n=Pa(e,t,n,r))&&(rs(n,e,r,ts()),al(n,t,r))}function nl(e,t,n){var r=ns(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var u=t.interleaved;return null===u?(o.next=o,Da(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pa(e,t,o,r))&&(rs(n,e,r,o=ts()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function ol(e,t){yi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var il={readContext:Oa,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ll={readContext:Oa,useCallback:function(e,t){return Oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Gi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4194308,4,$i.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Oi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oi().memoizedState=e},useState:ji,useDebugValue:Ki,useDeferredValue:function(e){return Oi().memoizedState=e},useTransition:function(){var e=ji(!1),t=e[0];return e=Zi.bind(null,e[1]),Oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hi,o=Oi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Nu)throw Error(a(349));0!=(30&mi)||Ti(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Gi(Mi.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Oi(),t=Nu.identifierPrefix;if(aa){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-it(Yo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ei++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Oa,useCallback:Ji,useContext:Oa,useEffect:Hi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:qi,useMemo:Yi,useReducer:Pi,useRef:zi,useState:function(){return Pi(Di)},useDebugValue:Ki,useDeferredValue:function(e){return Xi(Ii(),gi.memoizedState,e)},useTransition:function(){return[Pi(Di)[0],Ii().memoizedState]},useMutableSource:Ri,useSyncExternalStore:_i,useId:el,unstable_isNewReconciler:!1},sl={readContext:Oa,useCallback:Ji,useContext:Oa,useEffect:Hi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:qi,useMemo:Yi,useReducer:Ni,useRef:zi,useState:function(){return Ni(Di)},useDebugValue:Ki,useDeferredValue:function(e){var t=Ii();return null===gi?t.memoizedState=e:Xi(t,gi.memoizedState,e)},useTransition:function(){return[Ni(Di)[0],Ii().memoizedState]},useMutableSource:Ri,useSyncExternalStore:_i,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function ml(e,t,n){(n=Aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,qu=r),fl(0,t)},n}function hl(e,t,n){(n=Aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===$u?$u=new Set([this]):$u.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Os.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Aa(-1,1)).tag=2,Ma(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=w.ReactCurrentOwner,wl=!1;function El(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ya(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=Si(e,t,n,r,a,o),n=Ci(),null===e||wl?(aa&&n&&ta(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ts(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ms(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Sl(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=As(a,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Il(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Io(Au,Tu),Tu|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Io(Au,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Io(Au,Tu),Tu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Io(Au,Tu),Tu|=r;return El(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,n,r,o){var a=To(n)?Ro:Po.current;return a=_o(t,a),Ca(t,o),n=Si(e,t,n,r,a,o),r=Ci(),null===e||wl?(aa&&r&&ta(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Dl(e,t,n,r,o){if(To(n)){var a=!0;Bo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Hl(e,t),Ha(t,n,r),qa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;s="object"==typeof s&&null!==s?Oa(s):_o(t,s=To(n)?Ro:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Va(t,i,r,s),Ra=!1;var f=t.memoizedState;i.state=f,ja(t,r,i,o),u=t.memoizedState,l!==r||f!==u||No.current||Ra?("function"==typeof c&&(Ua(t,n,c,r),u=t.memoizedState),(l=Ra||Ga(t,n,l,r,f,u,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ta(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:va(t.type,l),i.props=s,d=t.pendingProps,f=i.context,u="object"==typeof(u=n.contextType)&&null!==u?Oa(u):_o(t,u=To(n)?Ro:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==u)&&Va(t,i,r,u),Ra=!1,f=t.memoizedState,i.state=f,ja(t,r,i,o);var m=t.memoizedState;l!==d||f!==m||No.current||Ra?("function"==typeof p&&(Ua(t,n,p,r),m=t.memoizedState),(s=Ra||Ga(t,n,s,r,f,m,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,a,o)}function Pl(e,t,n,r,o,a){Ol(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&jo(t,n,!1),Vl(e,t,a);r=t.stateNode,yl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,l,a)):El(e,t,l,a),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),oi(e,t.containerInfo)}function Rl(e,t,n,r,o){return ma(),ha(o),t.flags|=256,El(e,t,n,r),t.child}var _l,Tl,Al,Ml,Ll={dehydrated:null,treeContext:null,retryLane:0};function Bl(e){return{baseLanes:e,cachePool:null,transitions:null}}function jl(e,t,n){var r,o=t.pendingProps,i=ui.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Io(ui,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Bs(u,o,0,null),e=Ls(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Bl(n),t.memoizedState=Ll,e):Fl(t,u));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bs({mode:"visible",children:r.children},o,0,null),(i=Ls(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ya(t,e.child,null,l),t.child.memoizedState=Bl(l),t.memoizedState=Ll,i);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,zl(e,t,l,r=dl(i=Error(a(419)),r,void 0))}if(u=0!=(l&e.childLanes),wl||u){if(null!==(r=Nu)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Na(e,o),rs(r,e,o,-1))}return gs(),zl(e,t,l,r=dl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ds.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=so(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Ko++]=Yo,Qo[Ko++]=Xo,Qo[Ko++]=Jo,Yo=e.id,Xo=e.overflow,Jo=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,u,o,r,i,n);if(l){l=o.fallback,u=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=As(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=As(r,l):(l=Ls(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Bl(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=As(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fl(e,t){return(t=Bs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&ha(r),Ya(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sa(e.return,t,n)}function Wl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Gl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(El(e,t,r.children,n),0!=(2&(r=ui.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Io(ui,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===si(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Wl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===si(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Wl(t,!0,n,null,a);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $l(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $l(t),null;case 1:case 17:return To(t.type)&&Ao(),$l(t),null;case 3:return r=t.stateNode,ai(),Oo(No),Oo(Po),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(ls(ia),ia=null))),Tl(e,t),$l(t),null;case 5:li(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return $l(t),null}if(e=ri(ei.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[mo]=i,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[mo]=r,_l(e,t,!1,!1),t.stateNode=e;e:{switch(u=ye(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;oGu&&(t.flags|=128,r=!0,ql(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=si(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(i,!0),null===i.tail&&"hidden"===i.tailMode&&!u.alternate&&!aa)return $l(t),null}else 2*Ye()-i.renderingStartTime>Gu&&1073741824!==n&&(t.flags|=128,r=!0,ql(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=i.last)?n.sibling=u:t.child=u,i.last=u)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,n=ui.current,Io(ui,r?1&n|2:1&n),t):($l(t),null);case 22:case 23:return fs(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Tu)&&($l(t),6&t.subtreeFlags&&(t.flags|=8192)):$l(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Kl(e,t){switch(na(t),t.tag){case 1:return To(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Oo(No),Oo(Po),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Oo(ui),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ui),null;case 4:return ai(),null;case 10:return ka(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}_l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tl=function(){},Al=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=K(e,o),r=K(e,r),i=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&u[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Fr("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ml=function(e,t,n,r){n!==r&&(t.flags|=4)};var Jl=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cs(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Cs(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tu(t,n,a)}o=o.next}while(o!==r)}}function ou(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function au(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[go],delete t[vo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var du=null,fu=!1;function pu(e,t,n){for(n=n.child;null!==n;)mu(e,t,n),n=n.sibling}function mu(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Yl||eu(n,t);case 6:var r=du,o=fu;du=null,pu(e,t,n),fu=o,null!==(du=r)&&(fu?(e=du,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):du.removeChild(n.stateNode));break;case 18:null!==du&&(fu?(e=du,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Wt(e)):uo(du,n.stateNode));break;case 4:r=du,o=fu,du=n.stateNode.containerInfo,fu=!0,pu(e,t,n),du=r,fu=o;break;case 0:case 11:case 14:case 15:if(!Yl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&tu(n,t,i),o=o.next}while(o!==r)}pu(e,t,n);break;case 1:if(!Yl&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cs(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,pu(e,t,n),Yl=r):pu(e,t,n);break;default:pu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Ps.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,Uu,Hu),r);break}xs(e,Uu,Hu);break;default:throw Error(a(329))}}}return os(e,Ye()),e.callbackNode===n?as.bind(null,e):null}function is(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Uu,Uu=n,null!==t&&ls(t)),e}function ls(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function us(e,t){for(t&=~Fu,t&=~ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Ku)var r=!1;else{if(e=Ku,Ku=null,Ju=0,0!=(6&Pu))throw Error(a(331));var o=Pu;for(Pu|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!=(16&Zl.flags)){var u=i.deletions;if(null!==u){for(var s=0;sYe()-Wu?ps(e,0):Fu|=n),os(e,t)}function Is(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=ts();null!==(e=Na(e,t))&&(vt(e,t,n),os(e,n))}function Ds(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Is(e,n)}function Ps(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Is(e,n)}function Ns(e,t){return $e(e,t)}function Rs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _s(e,t,n,r){return new Rs(e,t,n,r)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=_s(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ms(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ts(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case k:return Ls(n.children,o,i,t);case S:l=8,o|=8;break;case C:return(e=_s(12,n,t,2|o)).elementType=C,e.lanes=i,e;case P:return(e=_s(13,n,t,o)).elementType=P,e.lanes=i,e;case N:return(e=_s(19,n,t,o)).elementType=N,e.lanes=i,e;case T:return Bs(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case I:l=9;break e;case D:l=11;break e;case R:l=14;break e;case _:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=_s(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ls(e,t,n,r){return(e=_s(7,e,r,t)).lanes=n,e}function Bs(e,t,n,r){return(e=_s(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function js(e,t,n){return(e=_s(6,e,null,t)).lanes=n,e}function Fs(e,t,n){return(t=_s(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Us(e,t,n,r,o,a,i,l,u){return e=new zs(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=_s(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(a),e}function Ws(e){if(!e)return Do;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(To(n))return Lo(e,n,t)}return t}function Gs(e,t,n,r,o,a,i,l,u){return(e=Us(n,r,!0,e,0,a,0,l,u)).context=Ws(null),n=e.current,(a=Aa(r=ts(),o=ns(n))).callback=null!=t?t:null,Ma(n,a,o),e.current.lanes=o,vt(e,o,r),os(e,r),e}function Hs(e,t,n,r){var o=t.current,a=ts(),i=ns(o);return n=Ws(n),null===t.context?t.context=n:t.pendingContext=n,(t=Aa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ma(o,t,i))&&(rs(e,o,i,a),La(e,o,i)),i}function Vs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n{"use strict";var r=n(935);t.s=r.createRoot,r.hydrateRoot},935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(448)},921:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,a=60108,i=60114,l=60109,u=60110,s=60112,c=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;n=m("react.element"),r=m("react.portal"),o=m("react.fragment"),a=m("react.strict_mode"),i=m("react.profiler"),l=m("react.provider"),u=m("react.context"),s=m("react.forward_ref"),c=m("react.suspense"),d=m("react.suspense_list"),f=m("react.memo"),p=m("react.lazy"),m("react.block"),m("react.server.block"),m("react.fundamental"),m("react.debug_trace_mode"),m("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case f:case l:return e;default:return t}}case r:return t}}}(e)===u}},864:(e,t,n)=>{"use strict";e.exports=n(921)},251:(e,t,n)=>{"use strict";var r=n(294),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=s,t.jsxs=s},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=y.prototype=new b;w.constructor=y,h(w,v.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=r;else if(1{"use strict";e.exports=n(408)},893:(e,t,n)=>{"use strict";e.exports=n(251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(sa(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],d=1,f=null,p=3,m=!1,h=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function E(e){if(g=!1,w(e),!h)if(null!==r(s))h=!0,T(x);else{var t=r(c);null!==t&&A(E,t.startTime-e)}}function x(e,n){h=!1,g&&(g=!1,b(O),O=-1),m=!0;var a=p;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!P());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var l=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(s)&&o(s),w(n)}else o(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&A(E,d.startTime-n),u=!1}return u}finally{f=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,C=null,O=-1,I=5,D=-1;function P(){return!(t.unstable_now()-De||125i?(e.sortIndex=a,n(c,e),null===r(s)&&e===r(c)&&(g?(b(O),O=-1):g=!0,A(E,a-i))):(e.sortIndex=l,n(s,e),h||m||(h=!0,T(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(294);function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:r}=Object.prototype,{getPrototypeOf:o}=Object,a=(i=Object.create(null),e=>{const t=r.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:s}=Array,c=u("undefined"),d=l("ArrayBuffer"),f=u("string"),p=u("function"),m=u("number"),h=e=>null!==e&&"object"==typeof e,g=e=>{if("object"!==a(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},v=l("Date"),b=l("File"),y=l("Blob"),w=l("FileList"),E=l("URLSearchParams");function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),s(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!c(e)&&e!==S,O=(I="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>I&&e instanceof I);var I;const D=l("HTMLFormElement"),P=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),N=l("RegExp"),R=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)},_="abcdefghijklmnopqrstuvwxyz",T="0123456789",A={DIGIT:T,ALPHA:_,ALPHA_DIGIT:_+_.toUpperCase()+T},M=l("AsyncFunction"),L={isArray:s,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=a(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:g,isUndefined:c,isDate:v,isFile:b,isBlob:y,isRegExp:N,isFunction:p,isStream:e=>h(e)&&p(e.pipe),isURLSearchParams:E,isTypedArray:O,isFileList:w,forEach:x,merge:function e(){const{caseless:t}=C(this)&&this||{},n={},r=(r,o)=>{const a=t&&k(n,o)||o;g(n[a])&&g(r)?n[a]=e(n[a],r):g(r)?n[a]=e({},r):s(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e(x(n,((n,o)=>{r&&p(n)?e[o]=t(n,r):e[o]=n}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,i,l;const u={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],r&&!r(l,e,t)||u[l]||(t[l]=e[l],u[l]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(s(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:D,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:R,freezeMethods:e=>{R(e,((t,n)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];p(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return s(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:k,global:S,isContextDefined:C,ALPHABET:A,generateString:(e=16,t=A.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=s(e)?[]:{};return x(e,((e,t)=>{const a=n(e,r+1);!c(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:M,isThenable:e=>e&&(h(e)||p(e))&&p(e.then)&&p(e.catch)};function B(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}L.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j=B.prototype,F={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{F[e]={value:e}})),Object.defineProperties(B,F),Object.defineProperty(j,"isAxiosError",{value:!0}),B.from=(e,t,n,r,o,a)=>{const i=Object.create(j);return L.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),B.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const z=B;function U(e){return L.isPlainObject(e)||L.isArray(e)}function W(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map((function(e,t){return e=W(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const H=L.toFlatObject(L,{},null,(function(e){return/^is[A-Z]/.test(e)})),V=function(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!L.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,a=n.dots,i=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(L.isDate(e))return e.toISOString();if(!l&&L.isBlob(e))throw new z("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(e)||L.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(L.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(L.isArray(e)&&function(e){return L.isArray(e)&&!e.some(U)}(e)||(L.isFileList(e)||L.endsWith(n,"[]"))&&(l=L.toArray(e)))return n=W(n),l.forEach((function(e,r){!L.isUndefined(e)&&null!==e&&t.append(!0===i?G([n],r,a):null===i?n:n+"[]",u(e))})),!1;return!!U(e)||(t.append(G(o,n,a),u(e)),!1)}const c=[],d=Object.assign(H,{defaultVisitor:s,convertValue:u,isVisitable:U});if(!L.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!L.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),L.forEach(n,(function(n,a){!0===(!(L.isUndefined(n)||null===n)&&o.call(t,n,L.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t};function q(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function $(e,t){this._pairs=[],e&&V(e,this,t)}const Q=$.prototype;Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){const t=e?function(t){return e.call(this,t,q)}:q;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const K=$;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;const r=n&&n.encode||J,o=n&&n.serialize;let a;if(a=o?o(t,n):L.isURLSearchParams(t)?t.toString():new K(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const X=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Z={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:K,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},te=function(e){function t(e,n,r,o){let a=e[o++];const i=Number.isFinite(+a),l=o>=e.length;return a=!a&&L.isArray(r)?r.length:a,l?(L.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&L.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&L.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r{t(function(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ne={transitional:Z,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=L.isObject(e);if(o&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return r&&r?JSON.stringify(te(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new ee.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ee.isNode&&L.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=L.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(L.isString(e))try{return(0,JSON.parse)(e),L.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ne.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&L.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw z.from(e,z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ee.classes.FormData,Blob:ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],(e=>{ne.headers[e]={}}));const re=ne,oe=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ae=Symbol("internals");function ie(e){return e&&String(e).trim().toLowerCase()}function le(e){return!1===e||null==e?e:L.isArray(e)?e.map(le):String(e)}function ue(e,t,n,r,o){return L.isFunction(r)?r.call(this,t,n):(o&&(t=n),L.isString(t)?L.isString(r)?-1!==t.indexOf(r):L.isRegExp(r)?r.test(t):void 0:void 0)}class se{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ie(t);if(!o)throw new Error("header name must be a non-empty string");const a=L.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=le(e))}const a=(e,t)=>L.forEach(e,((e,n)=>o(e,n,t)));return L.isPlainObject(e)||e instanceof this.constructor?a(e,t):L.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&oe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ie(e)){const n=L.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(L.isFunction(t))return t.call(this,e,n);if(L.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ie(e)){const n=L.findKey(this,e);return!(!n||void 0===this[n]||t&&!ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ie(e)){const o=L.findKey(n,e);!o||t&&!ue(0,n[o],o,t)||(delete n[o],r=!0)}}return L.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ue(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return L.forEach(this,((r,o)=>{const a=L.findKey(n,o);if(a)return t[a]=le(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=le(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return L.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&L.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ie(e);t[r]||(function(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return L.isArray(e)?e.forEach(r):r(e),this}}se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.reduceDescriptors(se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),L.freezeMethods(se);const ce=se;function de(e,t){const n=this||re,r=t||n,o=ce.from(r.headers);let a=r.data;return L.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function fe(e){return!(!e||!e.__CANCEL__)}function pe(e,t,n){z.call(this,null==e?"canceled":e,z.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(pe,z,{__CANCEL__:!0});const me=pe,he=ee.isStandardBrowserEnv?{write:function(e,t,n,r,o,a){const i=[];i.push(e+"="+encodeURIComponent(t)),L.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),L.isString(r)&&i.push("path="+r),L.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ge(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ve=ee.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=L.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function be(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(l){const u=Date.now(),s=r[i];o||(o=u),n[a]=l,r[a]=u;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const a=o.loaded,i=o.lengthComputable?o.total:void 0,l=a-n,u=r(l);n=a;const s={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:u||void 0,estimated:u&&i&&a<=i?(i-a)/u:void 0,event:o};s[t?"download":"upload"]=!0,e(s)}}const ye="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ce.from(e.headers).normalize(),a=e.responseType;let i,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}L.isFormData(r)&&(ee.isStandardBrowserEnv||ee.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?L.isString(l=o.getContentType())&&o.setContentType(l.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let s=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const c=ge(e.baseURL,e.url);function d(){if(!s)return;const r=ce.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s}),s=null}if(s.open(e.method.toUpperCase(),Y(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=d:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(d)},s.onabort=function(){s&&(n(new z("Request aborted",z.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new z("Network Error",z.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Z;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new z(t,r.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,s)),s=null},ee.isStandardBrowserEnv){const t=ve(c)&&e.xsrfCookieName&&he.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in s&&L.forEach(o.toJSON(),(function(e,t){s.setRequestHeader(t,e)})),L.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",be(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",be(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{s&&(n(!t||t.type?new me(null,e,s):t),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);f&&-1===ee.protocols.indexOf(f)?n(new z("Unsupported protocol "+f+":",z.ERR_BAD_REQUEST,e)):s.send(r||null)}))},we={http:null,xhr:ye};L.forEach(we,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ee=e=>`- ${e}`,xe=e=>L.isFunction(e)||null===e||!1===e,ke=e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Ee).join("\n"):" "+Ee(e[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new me(null,e)}function Ce(e){return Se(e),e.headers=ce.from(e.headers),e.data=de.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ke(e.adapter||re.adapter)(e).then((function(t){return Se(e),t.data=de.call(e,e.transformResponse,t),t.headers=ce.from(t.headers),t}),(function(t){return fe(t)||(Se(e),t&&t.response&&(t.response.data=de.call(e,e.transformResponse,t.response),t.response.headers=ce.from(t.response.headers))),Promise.reject(t)}))}const Oe=e=>e instanceof ce?e.toJSON():e;function Ie(e,t){t=t||{};const n={};function r(e,t,n){return L.isPlainObject(e)&&L.isPlainObject(t)?L.merge.call({caseless:n},e,t):L.isPlainObject(t)?L.merge({},t):L.isArray(t)?t.slice():t}function o(e,t,n){return L.isUndefined(t)?L.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!L.isUndefined(t))return r(void 0,t)}function i(e,t){return L.isUndefined(t)?L.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t)=>o(Oe(e),Oe(t),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=u[r]||o,i=a(e[r],t[r],r);L.isUndefined(i)&&a!==l||(n[r]=i)})),n}const De={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{De[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Pe={};De.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new z(r(o," has been removed"+(t?" in "+t:"")),z.ERR_DEPRECATED);return t&&!Pe[o]&&(Pe[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};const Ne={assertOptions:function(e,t,n){if("object"!=typeof e)throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new z("option "+a+" must be "+n,z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new z("Unknown option "+a,z.ERR_BAD_OPTION)}},validators:De},Re=Ne.validators;class _e{constructor(e){this.defaults=e,this.interceptors={request:new X,response:new X}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ne.assertOptions(n,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),null!=r&&(L.isFunction(r)?t.paramsSerializer={serialize:r}:Ne.assertOptions(r,{encode:Re.function,serialize:Re.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&L.merge(o.common,o[t.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ce.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const u=[];let s;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let c,d=0;if(!l){const e=[Ce.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,u),c=e.length,s=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new me(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Ae((function(t){e=t})),cancel:e}}}const Me=Ae,Le={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Le).forEach((([e,t])=>{Le[t]=e}));const Be=Le,je=function e(n){const r=new Te(n),o=t(Te.prototype.request,r);return L.extend(o,Te.prototype,r,{allOwnKeys:!0}),L.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(Ie(n,t))},o}(re);je.Axios=Te,je.CanceledError=me,je.CancelToken=Me,je.isCancel=fe,je.VERSION="1.6.0",je.toFormData=V,je.AxiosError=z,je.Cancel=je.CanceledError,je.all=function(e){return Promise.all(e)},je.spread=function(e){return function(t){return e.apply(null,t)}},je.isAxiosError=function(e){return L.isObject(e)&&!0===e.isAxiosError},je.mergeConfig=Ie,je.AxiosHeaders=ce,je.formToJSON=e=>te(L.isHTMLForm(e)?new FormData(e):e),je.getAdapter=ke,je.HttpStatusCode=Be,je.default=je;const Fe=je;var ze=n(745),Ue=n(697),We=n.n(Ue);function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ge(e,t)}function He(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ge(e,t)}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var ft=n(679),pt=n.n(ft),mt=n(864),ht=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],gt=["reactReduxForwardedRef"],vt=[],bt=[null,null];function yt(e,t){var n=e[1];return[t.payload,n+1]}function wt(e,t,n){st((function(){return e.apply(void 0,t)}),n)}function Et(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function xt(e,t,n,r,o,a,i,l,u,s){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===a.current?i.current||u():(a.current=e,l.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var kt=function(){return[null,0]};function St(t,n){void 0===n&&(n={});var r=n,o=r.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,i=r.methodName,l=void 0===i?"connectAdvanced":i,u=r.renderCountProp,s=void 0===u?void 0:u,c=r.shouldHandleStateChanges,d=void 0===c||c,f=r.storeKey,p=void 0===f?"store":f,m=(r.withRef,r.forwardRef),h=void 0!==m&&m,g=r.context,v=void 0===g?ot:g,b=dt(r,ht),y=v;return function(n){var r=n.displayName||n.name||"Component",o=a(r),i=Ve({},b,{getDisplayName:a,methodName:l,renderCountProp:s,shouldHandleStateChanges:d,storeKey:p,displayName:o,wrappedComponentName:r,WrappedComponent:n}),u=b.pure,c=u?e.useMemo:function(e){return e()};function f(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=dt(r,gt);return[r.context,e,t]}),[r]),a=o[0],l=o[1],u=o[2],s=(0,e.useMemo)((function(){return a&&a.Consumer&&(0,mt.isContextConsumer)(e.createElement(a.Consumer,null))?a:y}),[a,y]),f=(0,e.useContext)(s),p=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(f)&&Boolean(f.store);var m=p?r.store:f.store,h=(0,e.useMemo)((function(){return function(e){return t(e.dispatch,i)}(m)}),[m]),g=(0,e.useMemo)((function(){if(!d)return bt;var e=ut(m,p?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,p,f]),v=g[0],b=g[1],w=(0,e.useMemo)((function(){return p?f:Ve({},f,{subscription:v})}),[p,f,v]),E=(0,e.useReducer)(yt,vt,kt),x=E[0][0],k=E[1];if(x&&x.error)throw x.error;var S=(0,e.useRef)(),C=(0,e.useRef)(u),O=(0,e.useRef)(),I=(0,e.useRef)(!1),D=c((function(){return O.current&&u===C.current?O.current:h(m.getState(),u)}),[m,x,u]);wt(Et,[C,S,I,u,D,O,b]),wt(xt,[d,m,v,h,C,S,I,O,b,k],[m,v,h]);var P=(0,e.useMemo)((function(){return e.createElement(n,Ve({},D,{ref:l}))}),[l,n,D]);return(0,e.useMemo)((function(){return d?e.createElement(s.Provider,{value:w},P):P}),[s,P,w])}var m=u?e.memo(f):f;if(m.WrappedComponent=n,m.displayName=f.displayName=o,h){var g=e.forwardRef((function(t,n){return e.createElement(m,Ve({},t,{reactReduxForwardedRef:n}))}));return g.displayName=o,g.WrappedComponent=n,pt()(g,n)}return pt()(m,n)}}function Ct(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ot(e,t){if(Ct(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=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 zt(e,t){return e===t}function Ut(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?St:n,o=t.mapStateToPropsFactories,a=void 0===o?Rt:o,i=t.mapDispatchToPropsFactories,l=void 0===i?Nt:i,u=t.mergePropsFactories,s=void 0===u?Tt:u,c=t.selectorFactory,d=void 0===c?Bt:c;return function(e,t,n,o){void 0===o&&(o={});var i=o,u=i.pure,c=void 0===u||u,f=i.areStatesEqual,p=void 0===f?zt:f,m=i.areOwnPropsEqual,h=void 0===m?Ot:m,g=i.areStatePropsEqual,v=void 0===g?Ot:g,b=i.areMergedPropsEqual,y=void 0===b?Ot:b,w=dt(i,jt),E=Ft(e,a,"mapStateToProps"),x=Ft(t,l,"mapDispatchToProps"),k=Ft(n,s,"mergeProps");return r(d,Ve({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:x,initMergeProps:k,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:v,areMergedPropsEqual:y},w))}}const Wt=Ut();var Gt,Ht=n(935);function Vt(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),a=(0,e.useRef)(r),i=o.current||Boolean(n&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}He(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=dn(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof mn))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(e.Component),vn=function(e){return e+1},bn=function(e,t){var n=e.droppableId===t.droppableId,r=vn(e.index),o=vn(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 "},yn=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 "},wn=function(e){return"\n The item has returned to its starting position\n of "+vn(e.index)+"\n"},En=function(e){return"\n You have lifted an item in position "+vn(e.source.index)+"\n"},xn=function(e){var t=e.destination;if(t)return bn(e.source,t);var n=e.combine;return n?yn(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},kn=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+wn(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+bn(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+yn(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+wn(e.source)+"\n "},Sn={x:0,y:0},Cn=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},On=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},In=function(e,t){return e.x===t.x&&e.y===t.y},Dn=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Pn=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Nn=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Rn=function(e,t){return Math.min.apply(Math,t.map((function(t){return Nn(e,t)})))},_n=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Tn=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},An=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}]},Mn=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Qt({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):Qt(e)},Ln=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Tn(e,t.scroll.diff.displacement):e}(t.marginBox,o),i=function(e,t,n){var r;return n&&n.increasedBy?Ve({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Mn(i,o)}},Bn=function(e,t){e.frame||hn(!1);var n=e.frame,r=On(t,n.scroll.initial),o=Dn(r),a=Ve({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return Ve({},e,{frame:a,subject:Ln({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a})})};function jn(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Fn(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,l=r.lefte.right;return!(!i||!l)||i&&a||l&&o}},nr=function(e){var t=er(e.top,e.bottom),n=er(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},rr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},or={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ar=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,i=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Sn;return Tn(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(i,n,a)&&function(e,t,n){return n(t)(e)}(i,r,a)},ir=function(e){return ar(Ve({},e,{isVisibleThroughFrameFn:tr}))},lr=function(e){return ar(Ve({},e,{isVisibleThroughFrameFn:nr}))},ur=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 a=o[e];return!a||a.shouldAnimate};function sr(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,a=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Qt(Kt(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!ir({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,shouldAnimate:ur(u,i,a)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function cr(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,a=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:Xn,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function dr(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,a=e.displacedBy,i=e.last,l=e.index,u=e.forceShouldAnimate,s=Jn(t,r);if(null==l)return cr({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var c=zn(n,(function(e){return e.descriptor.index===l}));if(!c)return cr({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var d=Kn(t,n),f=n.indexOf(c);return{displaced:sr({afterDragging:d.slice(f),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:u}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function fr(e,t){return Boolean(t.effected[e])}var pr=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},mr=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},hr=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Pn(t.line,n.marginBox[t.end]+pr(t,r),mr(t,n.marginBox,r))},gr=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Pn(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),mr(t,n.marginBox,r))},vr=function(e,t){var n=e.frame;return n?Cn(t,n.scroll.diff.displacement):t},br=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.afterCritical,i=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,a=e.afterCritical,i=qn(o.descriptor.id,r),l=n.page,u=o.axis;if(!i.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Pn(t.line,n.contentBox[t.start]+pr(t,r),mr(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var s=t.displaced,c=t.displacedBy,d=s.all[0];if(d){var f=r[d];if(fr(d,a))return gr({axis:u,moveRelativeTo:f.page,isMoving:l});var p=en(f.page,c.point);return gr({axis:u,moveRelativeTo:p,isMoving:l})}var m=i[i.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(fr(m.descriptor.id,a)){var h=en(m.page,Dn(a.displacedBy.point));return hr({axis:u,moveRelativeTo:h,isMoving:l})}return hr({axis:u,moveRelativeTo:m.page,isMoving:l})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Qn(n);o||hn(!1);var a=o.draggableId,i=r[a].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return fr(r,n)?a?Sn:Dn(o.point):a?o.point:Sn}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return Cn(i,l)}({impact:t,draggables:o,afterCritical:a}):i}(e),n=e.droppable;return n?vr(n,t):t},yr=function(e,t){var n=On(t,e.scroll.initial),r=Dn(n);return{frame:Qt({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 wr(e,t){return e.map((function(e){return t[e]}))}var Er=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Cn(e.scroll.diff.displacement,t)}(e.viewport,t),o=On(r,n.page.borderBox.center);return Cn(n.client.borderBox.center,o)},xr=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,i=e.onlyOnMainAxis,l=void 0!==i&&i,u=On(r,t.page.borderBox.center),s={target:Tn(t.page.borderBox,u),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return ar(Ve({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=er(e.top,e.bottom),r=er(e.left,e.right);return function(e){return t===rr?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(s):lr(s)},kr=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,i=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,s=e.afterCritical;if(!r.isEnabled)return null;var c=qn(r.descriptor.id,o),d=Jn(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!$n(a))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Ve({},a,{at:t})}var l=a.displaced.all,u=l.length?l[0]:null;if(t)return u?i(u):null;var s=Kn(n,o);if(!u)return s.length?i(s[s.length-1].descriptor.id):null;var c=Fn(s,(function(e){return e.descriptor.id===u}));-1===c&&hn(!1);var d=c-1;return d<0?null:i(s[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:a})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,a=e.destination,i=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,c=l.at;if(c||hn(!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 a=o.index,i=t?a+1:a-1,l=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return i(n?u:u+1)?null:i}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:i});return null==d?null:dr({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var a=r.draggableId,i=n[a].descriptor.index;return fr(a,o)?t?i:i-1:t?i+1:i}({isMovingForward:t,destination:a,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:s});return null==f?null:dr({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:f})}({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:a,viewport:i,afterCritical:s});if(!f)return null;var p=br({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:s});if(xr({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Er({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:f,scrollJumpRequest:null};var m=On(p,l),h=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,i=yr(n,Cn(n.scroll.current,a)),l=r.frame?Bn(r,Cn(r.frame.scroll.current,a)):r,u=t.displaced,s=sr({afterDragging:wr(u.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:u,forceShouldAnimate:!1}),c=sr({afterDragging:wr(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),d={},f={},p=[u,s,c];return u.all.forEach((function(e){var t=function(e,t){for(var n=0;n1?c.sort((function(e,t){return Sr(e)[l.start]-Sr(t)[l.start]}))[0]:s.sort((function(e,t){var r=Rn(n,An(Sr(e))),o=Rn(n,An(Sr(t)));return r!==o?r-o:Sr(e)[l.start]-Sr(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:l});if(!s)return null;var c=qn(s.descriptor.id,a),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,a=e.insideDestination.filter((function(e){return lr({target:Or(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var a=Nn(t,vr(r,Cr(e,o))),i=Nn(t,vr(r,Cr(n,o)));return ar.left&&n.topr.top))return!1;if(Tr(o)(t.center))return!0;var a=e.axis,i=o.center[a.crossAxisLine],l=t[a.crossAxisStart],u=t[a.crossAxisEnd],s=er(o[a.crossAxisStart],o[a.crossAxisEnd]),c=s(l),d=s(u);return!c&&!d||(c?li)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=Pn(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Nn(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:u,draggable:n,droppables:o});if(!s)return Zn;var c=o[s],d=qn(c.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Ar(t,n.scroll.diff.value):t}(c,u);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,a=e.insideDestination,i=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,u=Ir(o.axis,t.displaceBy),s=u.value,c=n[l.start],d=n[l.end],f=zn(Kn(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,a=fr(t,i),u=Mr({displaced:r.displaced,id:t});return a?u?d>n[l.start]+o&&dn[l.start]-s+o&&cn[l.start]+s+o&&dn[l.start]+o&&ct.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:zn(Kn(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=fr(t,l),o=Mr({displaced:a,id:t});return r?o?f<=n:d=1500)return.55;var r=bo+n/1500*.22000000000000003;return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:g,reason:a});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:b,completed:v}})}else n(io({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},wo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Eo=function(e){var t=function(e){var t=e.onWindowScroll,n=un((function(){t(wo())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=cn;function a(){return o!==cn}return{start:function(){a()&&hn(!1),o=dn(window,[r])},stop:function(){a()||hn(!1),n.cancel(),o(),o=cn},isActive:a}}({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.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},xo=function(e,t){t()},ko=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},So=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Co=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=Fn(n,(function(t){return t.timerId===e}));-1===t&&hn(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,a=function(n){o||hn(!1),o=null,xo(0,(function(){return So(e().onDragEnd,n,t,kn)}))};return{beforeCapture:function(t,n){o&&hn(!1),xo(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&hn(!1),xo(0,(function(){var r=e().onBeforeDragStart;r&&r(ko(t,n))}))},start:function(n,a){o&&hn(!1);var i=ko(n,a);o={mode:a,lastCritical:n,lastLocation:i.source,lastCombine:null},r.add((function(){xo(0,(function(){return So(e().onDragStart,i,t,En)}))}))},update:function(n,a){var i=$n(a),l=Qn(a);o||hn(!1);var u=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);u&&(o.lastCritical=n);var s,c,d=(c=i,!(null==(s=o.lastLocation)&&null==c||null!=s&&null!=c&&s.droppableId===c.droppableId&&s.index===c.index));d&&(o.lastLocation=i);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(f&&(o.lastCombine=l),u||d||f){var p=Ve({},ko(n,o.mode),{combine:l,destination:i});r.add((function(){xo(0,(function(){return So(e().onDragUpdate,p,t,xn)}))}))}},flush:function(){o||hn(!1),r.flush()},drop:a,abort:function(){if(o){var e=Ve({},ko(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Oo=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&hn(!1),e.dispatch(io({completed:r.completed}))}else t(n)}}},Io=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=dn(window,[a])}))}}}},Do=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(lo({reason:r.reason})))}}}},Po=rt,No=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,a=e.getResponders,i=e.announce,l=e.autoScroller;return et($r,Po(function(){for(var e=arguments.length,t=new Array(e),n=0;nt.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=Wo({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*Uo(1-n);return Math.ceil(r)}(t,n);return 0===a?0:o?Math.max(function(e,t){var n=t,r=Ho,o=Date.now()-n;if(o>=Ho)return e;if(ot.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:s});return c?In(c,Sn)?null:c:null},Ko=_n((function(e){return 0===e?0:e>0?1:-1})),Jo=(Mo=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Cn(t,r),a={x:Mo(o.x,n.x),y:Mo(o.y,n.y)};return In(a,Sn)?null:a}),Yo=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=Ko(r),i=Jo({max:o,current:n,change:a});return!i||0!==a.x&&0===i.x||0!==a.y&&0===i.y},Xo=function(e,t){return Yo({current:e.scroll.current,max:e.scroll.max,change:t})},Zo=function(e,t){var n=e.frame;return!!n&&Yo({current:n.scroll.current,max:n.scroll.max,change:t})},ea=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,a=e.scrollDroppable,i=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,a=Qo({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&Xo(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:i,shouldUseTimeDampening:r});if(u)return void o(u)}var s=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var a=function(e,t){var n=zn(zo(t),(function(t){return t.frame||hn(!1),Tr(t.frame.pageMarginBox)(e)}));return n}(t,r);return a}({center:i,destination:Nr(t.impact),droppables:t.dimensions.droppables});if(s){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var l=Qo({dragStartTime:o,container:i.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return l&&Zo(t,l)?l:null}({dragStartTime:n,droppable:s,subject:l,center:i,shouldUseTimeDampening:r});c&&a(s.descriptor.id,c)}},ta=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var a=Nr(e.impact);a||hn(!1);var i=function(e,t){if(!Zo(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Zo(e,t)?Jo({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=On(t,r);return n(e.descriptor.id,o),On(t,o)}(e.dimensions.droppables[a],o);if(i){var l=e.viewport,u=function(e,t,n){if(!e)return n;if(!Xo(t,n))return n;var o=function(e,t){if(!Xo(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Jo({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var a=On(n,o);return r(a),On(n,a)}(e.isWindowScrollAllowed,l,i);u&&function(e,n){var r=Cn(e.current.client.selection,n);t({client:r})}(e,u)}}}},na=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=un(e.scrollWindow),r=un(t),o=null,a=function(e){o||hn(!1);var t=o,a=t.shouldUseTimeDampening,i=t.dragStartTime;ea({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:i,shouldUseTimeDampening:a})};return{start:function(e){o&&hn(!1);var t=Date.now(),n=!1,r=function(){n=!0};ea({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),a=ta({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},ra="data-rbd",oa={base:Lo=ra+"-drag-handle",draggableId:Lo+"-draggable-id",contextId:Lo+"-context-id"},aa=function(){var e=ra+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ia=function(){var e=ra+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),la={contextId:ra+"-scroll-container-context-id"},ua=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},sa=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),a=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(oa.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),i=[(r="\n transition: "+mo.outOfTheWay+";\n ",{selector:o(aa.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),a,{selector:o(ia.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:ua(i,"always"),resting:ua(i,"resting"),dragging:ua(i,"dragging"),dropAnimating:ua(i,"dropAnimating"),userCancel:ua(i,"userCancel")}},ca="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,da=function(){var e=document.querySelector("head");return e||hn(!1),e},fa=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},pa=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function ma(e){return e instanceof pa(e).HTMLElement}function ha(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||hn(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return jn(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||hn(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return jn(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var ga=e.createContext(null),va=function(){var e=document.body;return e||hn(!1),e},ba={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ya=function(e){return"rbd-announcement-"+e},wa=0,Ea={separator:"::"};function xa(e,t){return void 0===t&&(t=Ea),qt((function(){return""+e+t.separator+wa++}),[t.separator,e])}var ka=e.createContext(null);function Sa(t){var n=(0,e.useRef)(t);return(0,e.useEffect)((function(){n.current=t})),n}var Ca,Oa,Ia=((Ca={})[13]=!0,Ca[9]=!0,Ca),Da=function(e){Ia[e.keyCode]&&e.preventDefault()},Pa=function(){var e="visibilitychange";return"undefined"==typeof document?e:zn([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Na={type:"IDLE"};function Ra(){}var _a=((Oa={})[34]=!0,Oa[33]=!0,Oa[36]=!0,Oa[35]=!0,Oa);var Ta={type:"IDLE"},Aa={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ma(e,t){if(null==t)return!1;if(Boolean(Aa[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Ma(e,t.parentElement)}function La(e,t){var n=t.target;return!!ma(n)&&Ma(e,n)}var Ba=function(e){return Qt(e.getBoundingClientRect()).center},ja=function(){var e="matches";return"undefined"==typeof document?e:zn([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Fa(e,t){return null==e?null:e[ja](t)?e:Fa(e.parentElement,t)}function za(e,t){return e.closest?e.closest(t):Fa(e,t)}function Ua(e){e.preventDefault()}function Wa(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function Ga(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(o);return!!a&&!!a.options.isEnabled&&!!jo(n.getState(),o)}var Ha=[function(t){var n=(0,e.useRef)(Na),r=(0,e.useRef)(cn),o=qt((function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,l,{sourceEvent:e});if(o){e.preventDefault();var a={x:e.clientX,y:e.clientY};r.current(),c(o,a)}}}}}}),[t]),a=qt((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}}}}}),[t]),i=$t((function(){r.current=dn(window,[a,o],{passive:!1,capture:!0})}),[a,o]),l=$t((function(){"IDLE"!==n.current.type&&(n.current=Na,r.current(),i())}),[i]),u=$t((function(){var e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=$t((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var i={x:n,y:a},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);if("PENDING"!==l.type&&hn(!1),u=l.point,s=i,Math.abs(s.x-u.x)>=5||Math.abs(s.y-u.y)>=5){var u,s;e.preventDefault();var c=l.actions.fluidLift(i);o({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Da(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&hn(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Pa,fn:t}]}({cancel:u,completed:l,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});r.current=dn(window,e,{capture:!0,passive:!1})}),[u,l]),c=$t((function(e,t){"IDLE"!==n.current.type&&hn(!1),n.current={type:"PENDING",point:t,actions:e},s()}),[s]);ca((function(){return i(),function(){r.current()}}),[i])},function(t){var n=(0,e.useRef)(Ra),r=qt((function(){return{eventName:"keydown",fn:function(e){if(!e.defaultPrevented&&32===e.keyCode){var r=t.findClosestDraggableId(e);if(r){var a=t.tryGetLock(r,u,{sourceEvent:e});if(a){e.preventDefault();var i=!0,l=a.snapLift();n.current(),n.current=dn(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(_a[r.keyCode]?r.preventDefault():Da(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Pa,fn:n}]}(l,u),{capture:!0,passive:!1})}}}function u(){i||hn(!1),i=!1,n.current(),o()}}}}),[t]),o=$t((function(){n.current=dn(window,[r],{passive:!1,capture:!0})}),[r]);ca((function(){return o(),function(){n.current()}}),[o])},function(t){var n=(0,e.useRef)(Ta),r=(0,e.useRef)(cn),o=$t((function(){return n.current}),[]),a=$t((function(e){n.current=e}),[]),i=qt((function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,u,{sourceEvent:e});if(o){var a=e.touches[0],i={x:a.clientX,y:a.clientY};r.current(),f(o,i)}}}}}}),[t]),l=$t((function(){r.current=dn(window,[i],{capture:!0,passive:!1})}),[i]),u=$t((function(){var e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Ta),r.current(),l())}),[l,a]),s=$t((function(){var e=n.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=$t((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:o},n=dn(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],a={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&hn(!1);var o=e.touches[0];if(o&&o.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Pa,fn:t}]}(t),e),a=dn(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Pa,fn:t}]}(t),e);r.current=function(){n(),a()}}),[s,o,u]),d=$t((function(){var e=o();"PENDING"!==e.type&&hn(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),f=$t((function(e,t){"IDLE"!==o().type&&hn(!1);var n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,a,d]);ca((function(){return l(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Ta))}}),[o,l,a]),ca((function(){return dn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Va(t){var n=t.contextId,r=t.store,o=t.registry,a=t.customSensors,i=t.enableDefaultSensors,l=[].concat(i?Ha:[],a||[]),u=(0,e.useState)((function(){return function(){var e=null;function t(){e||hn(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&hn(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=$t((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);ca((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();s(e,t),e=t}))}),[u,r,s]),ca((function(){return u.tryAbandon}),[u.tryAbandon]);for(var c=$t((function(e){return Ga({lockAPI:u,registry:o,store:r,draggableId:e})}),[u,o,r]),d=$t((function(e,t,a){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,i=e.forceSensorStop,l=e.sourceEvent;if(!Ga({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var u=o.draggable.getById(a),s=function(e,t){var n="["+aa.contextId+'="'+e+'"]',r=zn(Un(document.querySelectorAll(n)),(function(e){return e.getAttribute(aa.id)===t}));return r&&ma(r)?r:null}(n,u.descriptor.id);if(!s)return null;if(l&&!u.options.canDragInteractiveElements&&La(s,l))return null;var c=t.claim(i||cn),d="PRE_DRAG";function f(){return u.options.shouldRespectForcePress}function p(){return t.isActive(c)}var m=function(e,t){Wa({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var a=dn(window,[{eventName:"click",fn:Ua,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(lo({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&hn(!1)),r.dispatch(Qr(e.liftActionArgs)),d="DRAGGING",Ve({isActive:function(){return Wa({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var g={isActive:function(){return Wa({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=un((function(e){m((function(){return eo({client:e})}))}));return Ve({},h({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(to)},moveRight:function(){return m(ro)},moveDown:function(){return m(no)},moveLeft:function(){return m(oo)}};return h({liftActionArgs:{id:a,clientSelection:Ba(s),movementMode:"SNAP"},cleanup:cn,actions:e})},abort:function(){Wa({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return g}({lockAPI:u,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[n,u,o,r]),f=$t((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof pa(n).Element))return null;var o=function(e){return"["+oa.contextId+'="'+e+'"]'}(e),a=za(r,o);return a&&ma(a)?a:null}(e,t);return n?n.getAttribute(oa.draggableId):null}(n,e)}),[n]),p=$t((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=$t((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(ao()))}),[u,r]),h=$t(u.isClaimed,[u]),g=qt((function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}}),[c,d,f,p,m,h]),v=0;v{r.current=t})),e.useEffect((()=>{const e=e=>{const t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function Fi(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function zi(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}const Ui=2**31-1;function Wi(e,t,n){const r=n-Date.now();e.current=r<=Ui?setTimeout(t,r):setTimeout((()=>Wi(e,t,n)),Ui)}function Gi(){const t=zi(),n=(0,e.useRef)();return function(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=Ui?n.current=setTimeout(r,o):Wi(n,r,Date.now()+o))},clear:e}}),[])}var Hi=n(473),Vi=n.n(Hi);n(143);const qi=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,$i=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=qi(e),r=qi(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var Qi=n(184),Ki=n.n(Qi);function Ji(){return(0,e.useState)(null)}var Yi=Object.prototype.hasOwnProperty;function Xi(e,t,n){for(n of e.keys())if(Zi(n,t))return n}function Zi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=Xi(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=Xi(t,o)))return!1;if(!Zi(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Yi.call(e,n)&&++r&&!Yi.call(t,n))return!1;if(!(n in t)||!Zi(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function el(e){return e.split("-")[0]}function tl(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){return e instanceof tl(e).Element||e instanceof Element}function rl(e){return e instanceof tl(e).HTMLElement||e instanceof HTMLElement}function ol(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tl(e).ShadowRoot||e instanceof ShadowRoot)}var al=Math.max,il=Math.min,ll=Math.round;function ul(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function sl(){return!/^((?!chrome|android).)*safari/i.test(ul())}function cl(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&rl(e)&&(o=e.offsetWidth>0&&ll(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ll(r.height)/e.offsetHeight||1);var i=(nl(e)?tl(e):window).visualViewport,l=!sl()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/o,s=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,d=r.height/a;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u,x:u,y:s}}function dl(e){var t=cl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ol(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pl(e){return e?(e.nodeName||"").toLowerCase():null}function ml(e){return tl(e).getComputedStyle(e)}function hl(e){return["table","td","th"].indexOf(pl(e))>=0}function gl(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function vl(e){return"html"===pl(e)?e:e.assignedSlot||e.parentNode||(ol(e)?e.host:null)||gl(e)}function bl(e){return rl(e)&&"fixed"!==ml(e).position?e.offsetParent:null}function yl(e){for(var t=tl(e),n=bl(e);n&&hl(n)&&"static"===ml(n).position;)n=bl(n);return n&&("html"===pl(n)||"body"===pl(n)&&"static"===ml(n).position)?t:n||function(e){var t=/firefox/i.test(ul());if(/Trident/i.test(ul())&&rl(e)&&"fixed"===ml(e).position)return null;var n=vl(e);for(ol(n)&&(n=n.host);rl(n)&&["html","body"].indexOf(pl(n))<0;){var r=ml(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function wl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function El(e,t,n){return al(e,il(t,n))}function xl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function kl(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Sl="top",Cl="bottom",Ol="right",Il="left",Dl="auto",Pl=[Sl,Cl,Ol,Il],Nl="start",Rl="end",_l="viewport",Tl="popper",Al=Pl.reduce((function(e,t){return e.concat([t+"-"+Nl,t+"-"+Rl])}),[]),Ml=[].concat(Pl,[Dl]).reduce((function(e,t){return e.concat([t,t+"-"+Nl,t+"-"+Rl])}),[]),Ll=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Bl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=el(n.placement),u=wl(l),s=[Il,Ol].indexOf(l)>=0?"height":"width";if(a&&i){var c=function(e,t){return xl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:kl(e,Pl))}(o.padding,n),d=dl(a),f="y"===u?Sl:Il,p="y"===u?Cl:Ol,m=n.rects.reference[s]+n.rects.reference[u]-i[u]-n.rects.popper[s],h=i[u]-n.rects.reference[u],g=yl(a),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=c[f],w=v-d[s]-c[p],E=v/2-d[s]/2+b,x=El(y,E,w),k=u;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&fl(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jl(e){return e.split("-")[1]}var Fl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,u=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,h=void 0===m?0:m,g="function"==typeof c?c({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Il,w=Sl,E=window;if(s){var x=yl(n),k="clientHeight",S="clientWidth";x===tl(n)&&"static"!==ml(x=gl(n)).position&&"absolute"===l&&(k="scrollHeight",S="scrollWidth"),(o===Sl||(o===Il||o===Ol)&&a===Rl)&&(w=Cl,h-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[k])-r.height,h*=u?1:-1),o!==Il&&(o!==Sl&&o!==Cl||a!==Rl)||(y=Ol,p-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[S])-r.width,p*=u?1:-1)}var C,O=Object.assign({position:l},s&&Fl),I=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ll(n*o)/o||0,y:ll(r*o)/o||0}}({x:p,y:h},tl(n)):{x:p,y:h};return p=I.x,h=I.y,u?Object.assign({},O,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",C)):Object.assign({},O,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const Ul={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,u=void 0===l||l,s={placement:el(t.placement),variation:jl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zl(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zl(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Wl={passive:!0};const Gl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,u=tl(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach((function(e){e.addEventListener("scroll",n.update,Wl)})),l&&u.addEventListener("resize",n.update,Wl),function(){a&&s.forEach((function(e){e.removeEventListener("scroll",n.update,Wl)})),l&&u.removeEventListener("resize",n.update,Wl)}},data:{}};var Hl={left:"right",right:"left",bottom:"top",top:"bottom"};function Vl(e){return e.replace(/left|right|bottom|top/g,(function(e){return Hl[e]}))}var ql={start:"end",end:"start"};function $l(e){return e.replace(/start|end/g,(function(e){return ql[e]}))}function Ql(e){var t=tl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kl(e){return cl(gl(e)).left+Ql(e).scrollLeft}function Jl(e){var t=ml(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Yl(e){return["html","body","#document"].indexOf(pl(e))>=0?e.ownerDocument.body:rl(e)&&Jl(e)?e:Yl(vl(e))}function Xl(e,t){var n;void 0===t&&(t=[]);var r=Yl(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tl(r),i=o?[a].concat(a.visualViewport||[],Jl(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Xl(vl(i)))}function Zl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eu(e,t,n){return t===_l?Zl(function(e,t){var n=tl(e),r=gl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var s=sl();(s||!s&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+Kl(e),y:u}}(e,n)):nl(t)?function(e,t){var n=cl(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Zl(function(e){var t,n=gl(e),r=Ql(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=al(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=al(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Kl(e),u=-r.scrollTop;return"rtl"===ml(o||n).direction&&(l+=al(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}(gl(e)))}function tu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?el(o):null,i=o?jl(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(a){case Sl:t={x:l,y:n.y-r.height};break;case Cl:t={x:l,y:n.y+n.height};break;case Ol:t={x:n.x+n.width,y:u};break;case Il:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=a?wl(a):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case Nl:t[s]=t[s]-(n[c]/2-r[c]/2);break;case Rl:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function nu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,u=void 0===l?"clippingParents":l,s=n.rootBoundary,c=void 0===s?_l:s,d=n.elementContext,f=void 0===d?Tl:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=xl("number"!=typeof g?g:kl(g,Pl)),b=f===Tl?"reference":Tl,y=e.rects.popper,w=e.elements[m?b:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Xl(vl(e)),n=["absolute","fixed"].indexOf(ml(e).position)>=0&&rl(e)?yl(e):e;return nl(n)?t.filter((function(e){return nl(e)&&fl(e,n)&&"body"!==pl(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=eu(e,n,r);return t.top=al(o.top,t.top),t.right=il(o.right,t.right),t.bottom=il(o.bottom,t.bottom),t.left=al(o.left,t.left),t}),eu(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(nl(w)?w:w.contextElement||gl(e.elements.popper),u,c,i),x=cl(e.elements.reference),k=tu({reference:x,element:y,strategy:"absolute",placement:o}),S=Zl(Object.assign({},y,k)),C=f===Tl?S:x,O={top:E.top-C.top+v.top,bottom:C.bottom-E.bottom+v.bottom,left:E.left-C.left+v.left,right:C.right-E.right+v.right},I=e.modifiersData.offset;if(f===Tl&&I){var D=I[o];Object.keys(O).forEach((function(e){var t=[Ol,Cl].indexOf(e)>=0?1:-1,n=[Sl,Cl].indexOf(e)>=0?"y":"x";O[e]+=D[n]*t}))}return O}const ru={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,u=n.fallbackPlacements,s=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=el(g),b=u||(v!==g&&m?function(e){if(el(e)===Dl)return[];var t=Vl(e);return[$l(e),t,$l(t)]}(g):[Vl(g)]),y=[g].concat(b).reduce((function(e,n){return e.concat(el(n)===Dl?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?Ml:u,c=jl(r),d=c?l?Al:Al.filter((function(e){return jl(e)===c})):Pl,f=d.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=nu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[el(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:s,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,k=!0,S=y[0],C=0;C=0,N=P?"width":"height",R=nu(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:s}),_=P?D?Ol:Il:D?Cl:Sl;w[N]>E[N]&&(_=Vl(_));var T=Vl(_),A=[];if(a&&A.push(R[I]<=0),l&&A.push(R[_]<=0,R[T]<=0),A.every((function(e){return e}))){S=O,k=!1;break}x.set(O,A)}if(k)for(var M=function(e){var t=y.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ou(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function au(e){return[Sl,Ol,Cl,Il].some((function(t){return e[t]>=0}))}const iu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Ml.reduce((function(e,n){return e[n]=function(e,t,n){var r=el(e),o=[Il,Sl].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Il,Ol].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}},lu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=nu(t,{boundary:u,rootBoundary:s,padding:d,altBoundary:c}),v=el(t.placement),b=jl(t.placement),y=!b,w=wl(v),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(a){var P,N="y"===w?Sl:Il,R="y"===w?Cl:Ol,_="y"===w?"height":"width",T=x[w],A=T+g[N],M=T-g[R],L=p?-S[_]/2:0,B=b===Nl?k[_]:S[_],j=b===Nl?-S[_]:-k[_],F=t.elements.arrow,z=p&&F?dl(F):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[N],G=U[R],H=El(0,k[_],z[_]),V=y?k[_]/2-L-H-W-O.mainAxis:B-H-W-O.mainAxis,q=y?-k[_]/2+L+H+G+O.mainAxis:j+H+G+O.mainAxis,$=t.elements.arrow&&yl(t.elements.arrow),Q=$?"y"===w?$.clientTop||0:$.clientLeft||0:0,K=null!=(P=null==I?void 0:I[w])?P:0,J=T+q-K,Y=El(p?il(A,T+V-K-Q):A,T,p?al(M,J):M);x[w]=Y,D[w]=Y-T}if(l){var X,Z="x"===w?Sl:Il,ee="x"===w?Cl:Ol,te=x[E],ne="y"===E?"height":"width",re=te+g[Z],oe=te-g[ee],ae=-1!==[Sl,Il].indexOf(v),ie=null!=(X=null==I?void 0:I[E])?X:0,le=ae?re:te-k[ne]-S[ne]-ie+O.altAxis,ue=ae?te+k[ne]+S[ne]-ie-O.altAxis:oe,se=p&&ae?function(e,t,n){var r=El(e,t,n);return r>n?n:r}(le,te,ue):El(p?le:re,te,p?ue:oe);x[E]=se,D[E]=se-te}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function uu(e,t,n){void 0===n&&(n=!1);var r,o,a=rl(t),i=rl(t)&&function(e){var t=e.getBoundingClientRect(),n=ll(t.width)/e.offsetWidth||1,r=ll(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=gl(t),u=cl(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==pl(t)||Jl(l))&&(s=(r=t)!==tl(r)&&rl(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Ql(r)),rl(t)?((c=cl(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=Kl(l))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function su(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var cu={placement:"bottom",modifiers:[],strategy:"absolute"};function du(){for(var e=arguments.length,t=new Array(e),n=0;n{}},hu={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},gu=[],vu=function(t,n,r={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=gu}=r,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,pu);const s=(0,e.useRef)(l),c=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=c.current)||e.update()}),[]),f=(0,e.useCallback)((()=>{var e;null==(e=c.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=zi();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),h=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),g=(0,e.useMemo)((()=>(Zi(s.current,l)||(s.current=l),s.current)),[l]);return(0,e.useEffect)((()=>{c.current&&o&&c.current.setOptions({placement:a,strategy:i,modifiers:[...g,h,mu]})}),[i,a,h,o,g]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return c.current=fu(t,n,Object.assign({},u,{placement:a,strategy:i,modifiers:[...g,hu,h]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},bu=!("undefined"==typeof window||!window.document||!window.document.createElement);var yu=!1,wu=!1;try{var Eu={get passive(){return yu=!0},get once(){return wu=yu=!0}};bu&&(window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,!0))}catch(e){}const xu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!wu){var o=r.once,a=r.capture,i=n;!wu&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,yu?r:a)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}};function ku(e){return e&&e.ownerDocument||document}const Su=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Cu(t){const n=Su(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Ou=()=>{},Iu=e=>e&&("current"in e?e.current:e),Du={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},Pu=()=>{},Nu=function(t,n,{disabled:r,clickTrigger:o}={}){const a=n||Pu;!function(t,n=Ou,{disabled:r,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=Iu(t);var r;Vi()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!Fi(n,e.target)||i.current,i.current=!1}),[t]),u=Cu((e=>{const n=Iu(t);n&&Fi(n,e.target)&&(i.current=!0)})),s=Cu((e=>{a.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const a=ku(Iu(t)),i=a.defaultView||window;let c=null!=(e=i.event)?e:null==(n=i.parent)?void 0:n.event,d=null;Du[o]&&(d=xu(a,Du[o],u,!0));const f=xu(a,o,l,!0),p=xu(a,o,(e=>{e!==c?s(e):c=void 0}));let m=[];return"ontouchstart"in a.documentElement&&(m=[].slice.call(a.body.children).map((e=>xu(e,"mousemove",Ou)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,l,u,s])}(t,a,{disabled:r,clickTrigger:o});const i=Cu((e=>{(function(e){return"Escape"===e.code||27===e.keyCode})(e)&&a(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=ku(Iu(t));let n=(e.defaultView||window).event;const o=xu(e,"keyup",(e=>{e!==n?i(e):n=void 0}));return()=>{o()}}),[t,r,i])},Ru=(0,e.createContext)(bu?window:void 0);Ru.Provider;const _u=(e,t)=>bu?null==e?(t||ku()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Tu(t,n){const r=(0,e.useContext)(Ru),[o,a]=(0,e.useState)((()=>_u(t,null==r?void 0:r.document)));if(!o){const e=_u(t);e&&a(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=_u(t);e!==o&&a(e)}),[t,o]),o}function Au(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const Mu=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,Lu="undefined"!=typeof document||Mu?e.useLayoutEffect:e.useEffect,Bu=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:a}){const i=(0,e.useRef)(null),l=(0,e.useRef)(n),u=Cu(r);(0,e.useEffect)((()=>{n?l.current=!0:u(i.current)}),[n,u]);const s=$i(i,t.ref),c=(0,e.cloneElement)(t,{ref:s});return n?c:a||!l.current&&o?null:c};var ju=n(893);function Fu({children:t,in:n,onExited:r,onEntered:o,transition:a}){const[i,l]=(0,e.useState)(!n);n&&i&&l(!1);const u=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),a=Cu(n);return Lu((()=>{if(!r.current)return;let e=!1;return a({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),Lu((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),s=$i(u,t.ref);return i&&!n?null:(0,e.cloneElement)(t,{ref:s})}const zu=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:a,containerPadding:i,popperConfig:l={},transition:u,runTransition:s}=t,[c,d]=Ji(),[f,p]=Ji(),m=$i(d,n),h=Tu(t.container),g=Tu(t.target),[v,b]=(0,e.useState)(!t.show),y=vu(g,c,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:u={}}){var s,c,d,f,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:a?"fixed":u.strategy,modifiers:Au(Object.assign({},m,{eventListeners:{enabled:t,options:null==(s=m.eventListeners)?void 0:s.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(c=m.preventOverflow)?void 0:c.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(f=m.offset)?void 0:f.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:a,enableEvents:!!t.show,containerPadding:i||5,flip:r,offset:o,arrowElement:f,popperConfig:l}));t.show&&v&&b(!1);const w=t.show||!v;if(Nu(c,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!w)return null;const{onExit:E,onExiting:x,onEnter:k,onEntering:S,onEntered:C}=t;let O=t.children(Object.assign({},y.attributes.popper,{style:y.styles.popper,ref:m}),{popper:y,placement:a,show:!!t.show,arrowProps:Object.assign({},y.attributes.arrow,{style:y.styles.arrow,ref:p})});return O=function(e,t,n){return e?(0,ju.jsx)(e,Object.assign({},n)):t?(0,ju.jsx)(Fu,Object.assign({},n,{transition:t})):(0,ju.jsx)(Bu,Object.assign({},n))}(u,s,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O,onExit:E,onExiting:x,onExited:(...e)=>{b(!0),t.onExited&&t.onExited(...e)},onEnter:k,onEntering:S,onEntered:C}),h?Ht.createPortal(O,h):null}));zu.displayName="Overlay";const Uu=zu;function Wu(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const Gu=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:Hu,Provider:Vu}=Gu;function qu(t,n){const{prefixes:r}=(0,e.useContext)(Gu);return t||r[n]||n}function $u(){const{dir:t}=(0,e.useContext)(Gu);return"rtl"===t}const Qu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=qu(t,"popover-header"),(0,ju.jsx)(n,{ref:o,className:Ki()(e,t),...r}))));Qu.displayName="PopoverHeader";const Ku=Qu,Ju=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=qu(t,"popover-body"),(0,ju.jsx)(n,{ref:o,className:Ki()(e,t),...r}))));Ju.displayName="PopoverBody";const Yu=Ju;function Xu(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Zu(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const es=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:l,popper:u,show:s,...c},d)=>{const f=qu(e,"popover"),p=$u(),[m]=(null==t?void 0:t.split("-"))||[],h=Xu(m,p);let g=r;return s&&!l&&(g={...r,...Zu(null==u?void 0:u.strategy)}),(0,ju.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":m,className:Ki()(n,f,m&&`bs-popover-${h}`),...c,children:[(0,ju.jsx)("div",{className:"popover-arrow",...i}),a?(0,ju.jsx)(Yu,{children:o}):o]})})),ts=Object.assign(es,{Header:Ku,Body:Yu,POPPER_OFFSET:[0,8]}),ns=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:l,show:u,...s},c)=>{e=qu(e,"tooltip");const d=$u(),[f]=(null==t?void 0:t.split("-"))||[],p=Xu(f,d);let m=r;return u&&!i&&(m={...r,...Zu(null==l?void 0:l.strategy)}),(0,ju.jsxs)("div",{ref:c,style:m,role:"tooltip","x-placement":f,className:Ki()(n,e,`bs-tooltip-${p}`),...s,children:[(0,ju.jsx)("div",{className:"tooltip-arrow",...a}),(0,ju.jsx)("div",{className:`${e}-inner`,children:o})]})}));ns.displayName="Tooltip";const rs=Object.assign(ns,{TOOLTIP_OFFSET:[0,6]}),os=e.createContext(null);var as="unmounted",is="exited",ls="entering",us="entered",ss="exiting",cs=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=is,r.appearStatus=ls):o=us:o=e.unmountOnExit||e.mountOnEnter?as:is,r.state={status:o},r.nextCallback=null,r}He(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===as?{status:is}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ls&&n!==us&&(t=ls):n!==ls&&n!==us||(t=ss)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ls){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ht.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===is&&this.setState({status:as})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ht.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:ls},(function(){t.props.onEntering(a,i),t.onTransitionEnd(u,(function(){t.safeSetState({status:us},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:us},(function(){t.props.onEntered(a)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ht.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:ss},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:is},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:is},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ht.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===as)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,dt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(os.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function ds(){}cs.contextType=os,cs.propTypes={},cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ds,onEntering:ds,onEntered:ds,onExit:ds,onExiting:ds,onExited:ds},cs.UNMOUNTED=as,cs.EXITED=is,cs.ENTERING=ls,cs.ENTERED=us,cs.EXITING=ss;const fs=cs;var ps=/([A-Z])/g,ms=/^ms-/;function hs(e){return function(e){return e.replace(ps,"-$1").toLowerCase()}(e).replace(ms,"-ms-")}var gs=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const vs=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(hs(t))||function(e,t){return function(e){var t=ku(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(hs(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!gs.test(e))}(o)?r+=o+"("+a+") ":n+=hs(o)+": "+a+";":e.style.removeProperty(hs(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function bs(e,t,n,r){var o,a;null==n&&(a=-1===(o=vs(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var i=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=xu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),l=xu(e,"transitionend",t);return function(){i(),l()}}function ys(e,t){const n=vs(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function ws(e,t){const n=ys(e,"transitionDuration"),r=ys(e,"transitionDelay"),o=bs(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Es(e){return e&&"setState"in e?Ht.findDOMNode(e):null!=e?e:null}const xs=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,onExited:i,addEndListener:l,children:u,childRef:s,...c},d)=>{const f=(0,e.useRef)(null),p=$i(f,s),m=e=>{p(Es(e))},h=e=>t=>{e&&f.current&&e(f.current,t)},g=(0,e.useCallback)(h(t),[t]),v=(0,e.useCallback)(h(n),[n]),b=(0,e.useCallback)(h(r),[r]),y=(0,e.useCallback)(h(o),[o]),w=(0,e.useCallback)(h(a),[a]),E=(0,e.useCallback)(h(i),[i]),x=(0,e.useCallback)(h(l),[l]);return(0,ju.jsx)(fs,{ref:d,...c,onEnter:g,onEntered:b,onEntering:v,onExit:y,onExited:E,onExiting:w,addEndListener:x,nodeRef:f,children:"function"==typeof u?(e,t)=>u(e,{...t,ref:m}):e.cloneElement(u,{ref:m})})})),ks={[ls]:"show",[us]:"show"},Ss=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},u=(0,e.useCallback)(((e,t)=>{!function(e){e.offsetHeight}(e),null==o||o(e,t)}),[o]);return(0,ju.jsx)(xs,{ref:i,addEndListener:ws,...l,onEnter:u,childRef:n.ref,children:(o,a)=>e.cloneElement(n,{...a,className:Ki()("fade",t,n.props.className,ks[o],r[o])})})}));Ss.displayName="Fade";const Cs=Ss,Os=e.forwardRef((({children:t,transition:n=Cs,popperConfig:r={},rootClose:o=!1,placement:a="top",show:i=!1,...l},u)=>{const s=(0,e.useRef)({}),[c,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=qu(void 0,"popover"),o=qu(void 0,"tooltip"),a=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(Wu(n.current,r))return ts.POPPER_OFFSET;if(Wu(n.current,o))return rs.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[a]]}(l.offset),m=$i(u,f),h=!0===n?Cs:n||void 0,g=Cu((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return Lu((()=>{c&&l.target&&(null==s.current.scheduleUpdate||s.current.scheduleUpdate())}),[c,l.target]),(0,e.useEffect)((()=>{i||d(null)}),[i]),(0,ju.jsx)(Uu,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:g},transition:h,rootClose:o,placement:a,show:i,children:(o,{arrowProps:a,popper:i,show:l})=>{var u,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Es(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Es(e)))}(o,a);const f=null==i?void 0:i.placement,p=Object.assign(s.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:f,outOfBoundaries:(null==i||null==(u=i.state)||null==(d=u.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!c;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:a,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:a,popper:p,hasDoneInitialMeasure:m,className:Ki()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));Os.displayName="Overlay";const Is=Os;function Ds(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||Fi(o,a)||e(...t)}We().oneOf(["click","hover","focus"]);const Ps=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:i=!1,onToggle:l,delay:u,placement:s,flip:c=s&&-1!==s.indexOf("auto"),...d})=>{const f=(0,e.useRef)(null),p=$i(f,r.ref),m=Gi(),h=(0,e.useRef)(""),[g,v]=(R=a,_=i,T=l,A=(0,e.useRef)(void 0!==R),M=(0,e.useState)(_),L=M[0],B=M[1],j=void 0!==R,F=A.current,A.current=j,!j&&F&&L!==_&&B(_),[j?R:L,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{m.clear(),h.current="show",b.show?m.set((()=>{"show"===h.current&&v(!0)}),b.show):v(!0)}),[b.show,v,m]),k=(0,e.useCallback)((()=>{m.clear(),h.current="hide",b.hide?m.set((()=>{"hide"===h.current&&v(!1)}),b.hide):v(!1)}),[b.hide,v,m]),S=(0,e.useCallback)(((...e)=>{x(),null==y||y(...e)}),[x,y]),C=(0,e.useCallback)(((...e)=>{k(),null==w||w(...e)}),[k,w]),O=(0,e.useCallback)(((...e)=>{v(!g),null==E||E(...e)}),[E,v,g]),I=(0,e.useCallback)(((...e)=>{Ds(x,e,"fromElement")}),[x]),D=(0,e.useCallback)(((...e)=>{Ds(k,e,"toElement")}),[k]),P=null==t?[]:[].concat(t),N={ref:e=>{p(Es(e))}};var R,_,T,A,M,L,B,j,F;return-1!==P.indexOf("click")&&(N.onClick=O),-1!==P.indexOf("focus")&&(N.onFocus=S,N.onBlur=C),-1!==P.indexOf("hover")&&(N.onMouseOver=I,N.onMouseOut=D),(0,ju.jsxs)(ju.Fragment,{children:["function"==typeof r?r(N):(0,e.cloneElement)(r,N),(0,ju.jsx)(Is,{...d,show:g,onHide:k,flip:c,placement:s,popperConfig:o,target:f.current,children:n})]})};function Ns(e){return Ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(e)}function Rs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nwindow.innerWidth?c({x:r-f.w-20,y:o-f.h/2}):c({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",b,!0)},b=function(e){e.target!==document.getElementById(n)&&h()};return(0,e.useEffect)((function(){if(i){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),v()}}),[i]),(0,e.useEffect)((function(){i&&v()}),[i,f]),e.createElement("div",{ref:g},e.createElement("img",{className:"alert-info",src:i?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",style:{marginLeft:"10px"},id:n+"img",onClick:function(e){l(!i),i||document.addEventListener("scroll",b,!0)}}),e.createElement("div",{style:{display:i?"flex":"none",top:s.y,left:s.x},className:"overlayVariant card border rounded",id:n},e.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Rs(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Rs(t,2),a=o[0],i=o[1];return e.createElement("p",{className:"card-text",key:n+a},e.createElement("i",null,a),": ",function(e){var t=Hs(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)}(i))}))))))}var tc=["arrowProps","hasDoneInitialMeasure","show"],nc=["arrowProps","hasDoneInitialMeasure","show"];function rc(e){return rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rc(e)}function oc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n5&&void 0!==arguments[5]&&arguments[5],i={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!a&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(i.transitionDuration="0.001s"),vc(vc({},e),i)):vc(vc({},e),i)},kc=function(e,t){var n=t.isDraggingOver;return vc(vc({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})},Sc=function(e){if(!e||!e.nbrCurrentSlot)return{};var t=100*e.nbrCurrentSlot/e.nbrSlotMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Cc=function(e){if(!e||!e.nbrCurrentClock)return{};var t=100*e.nbrCurrentClock/e.nbrClockMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Oc=function(e,t,n,r,o){var a,i=Array.from(n.items);return i.splice.apply(i,[o.index,0].concat(function(e){if(Array.isArray(e))return hc(e)}(a=r.map((function(t,n){return vc(vc({},e[t]),{},{id:Mi()})})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||mc(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i},Ic=function(e,t,n){var r,o,a=Array.from(e),i=(r=a.splice(t,1),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(r,o)||mc(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return a.splice(n,0,i),a},Dc=function(e,t){var n=Array.from(e);return n.splice(t,1),n},Pc=function(e){return e.reduce((function(e,t){return e+(8===t.hp?2:1)}),0)};function Nc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;var o=e<0?"-":"",a=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),i=a.length>3?a.length%3:0;return o+(i?a.substr(0,i)+r:"")+a.substr(i).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-a).toFixed(t).slice(2):"")}catch(t){return e}}var Rc=function(t){sc(r,t);var n=dc(r);function r(e){var t;ic(this,r),(t=n.call(this,e)).state={customconf:"",error:null},t.handleCustomConfig=t.handleCustomConfig.bind(fc(t)),t.handleClickLoad=t.handleClickLoad.bind(fc(t)),t.checkValidation=t.checkValidation.bind(fc(t));var o=Object.keys(e.items);return t.list_pn=o.map((function(t){return e.items[t].name_number})),t}return uc(r,[{key:"handleCustomConfig",value:function(e){var t=e.target.value;this.checkValidation(t)}},{key:"checkValidation",value:function(e){var t;try{t=JSON.parse(e)}catch(t){return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}))}if(!t)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(!(t.items&&t.type||"[object Array]"===Object.prototype.toString.call(t.items)&&"[object String]"===Object.prototype.toString.call(t.type)))return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if("desktop"!==t.type&&"rack"!==t.type)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(t.items.map((function(e){try{return JSON.parse(e)}catch(e){return null}})),t.items=t.items.filter((function(e){return e})),t.items.filter((function(e){return"[object Object]"!==Object.prototype.toString.call(e)||!e.pn||"[object String]"!==Object.prototype.toString.call(e.pn)})).length>0)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));t.items=t.items.map((function(e){return{pn:e.pn,options:e.options?e.options:null}}));var n=this,r=t.items.filter((function(e){return!1===n.list_pn.includes(e.pn)})).map((function(e){return e.pn}));if(r.length>0)return this.setState(vc(vc({},this.state),{},{customconf:e,customconf_ready:null,error:"".concat(r.join(", ")," unknown").concat(r.length>1?"s":""," pn number")}));this.setState(vc(vc({},this.state),{},{customconf:e,error:null,customconf_ready:t}))}},{key:"handleClickLoad",value:function(){this.checkValidation(this.state.customconf),this.props.onClickLoadCustomConf&&this.props.onClickLoadCustomConf(this.state.customconf_ready)}},{key:"render",value:function(){var t=this.props,n=t.aside,r=t.main,o=t.mobileSideMenuShouldOpen,a=t.isMobile,i=t.newCardJustAdded,l=t.onClickToggleMobileSideMenu,u=t.onClickCloseRFQFeedback,s=t.showRFQFeedback,c=t.RFQBodyType,d=t.RFQBodyOrder;return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.createElement("section",{className:"main",onClick:l},r):e.createElement("section",{className:"main"},r),a&&i?e.createElement("div",{className:"feedback-add-success"},"✓ added"):null,e.createElement("div",{className:"modal fade ".concat(s?"show":""),style:{display:s?"block":"none"},id:"exampleModal",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},e.createElement("div",{className:"modal-dialog",role:"document"},e.createElement("div",{className:"modal-content"},e.createElement("div",{className:"modal-body rfqFeedback"},e.createElement("div",{className:"d-flex w-100"},"email"===c?e.createElement("div",{className:"d-flex"},e.createElement("div",null,e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},"We've received your request and will be in contact soon.")):null,"show"===c?e.createElement("p",null,d):null,"import"===c?e.createElement("div",{className:"w-100"},e.createElement("form",{className:"w-100"},e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),JSON.stringify({items:[{pn:"1124"},{pn:"2118"},{pn:"2118"},{pn:"2128"}],type:"desktop"}))),e.createElement("div",{className:"mb-3 w-100"},e.createElement("textarea",{onChange:this.handleCustomConfig,value:this.state.customconf,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),this.state.error?e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"text-danger"},this.state.error)):null),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:u,className:"btn btn-sm btn-outline-primary m-0 mb-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:this.handleClickLoad,className:"btn btn-sm btn-primary m-0 ms-sm-2 ".concat(this.state.error?"disabled":"")},"Load configuration"))):null,e.createElement("div",null,e.createElement("button",{onClick:u},e.createElement("img",{src:"/images/shop/icon-close.svg",alt:"close"})))))))),e.createElement("div",{onClick:u,className:"modal-backdrop fade ".concat(s?"show":""),style:{display:s?"initial":"none"}}))}}],[{key:"propTypes",get:function(){return{aside:We().any,main:We().any,mobileSideMenuShouldOpen:We().bool,isMobile:We().bool,newCardJustAdded:We().bool,onClickToggleMobileSideMenu:We().func,onClickCloseRFQFeedback:We().func,RFQBodyType:We().string,RFQBodyOrder:We().string,onClickLoadCustomConf:We().func,items:We().object}}},{key:"defaultProps",get:function(){return{mobileSideMenuShouldOpen:!1}}}]),r}(e.PureComponent),_c=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnClickAddItem=t.handleOnClickAddItem.bind(fc(t)),t}return uc(r,[{key:"handleOnClickAddItem",value:function(e,t,n){this.props.onClickAddItem&&this.props.onClickAddItem(e,t),n.preventDefault()}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.index,o=t.name,a=t.name_codename,i=t.price,l=t.currency,u=t.image,s=t.specs,c=t.datasheet_file,d=t.datasheet_name,f=s&&s.length>0&&e.createElement("ul",null,s.map((function(t,n){return e.createElement("li",{key:n},t)}))),p=c&&d&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},d));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:a?"5px":"20px"}},o),a?e.createElement("p",null,a):null,e.createElement("div",{className:"price"},"".concat(l," ").concat(Nc(i))),f,p),e.createElement("div",{className:"content"},e.createElement("button",{onClick:this.handleOnClickAddItem.bind(this,r,!0)},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(Ci,{draggableId:n,index:r},(function(t,n){return e.createElement(e.Fragment,null,e.createElement("img",ac({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:xc(t.draggableProps.style,n,!0),src:u})),n.isDragging&&e.createElement("img",{className:"simclone",src:u}))}))))}}],[{key:"propTypes",get:function(){return{id:We().string.isRequired,index:We().number.isRequired,name:We().string.isRequired,name_codename:We().string,price:We().number.isRequired,currency:We().string.isRequired,image:We().string.isRequired,specs:We().array,datasheet_file:We().string,datasheet_name:We().string,onClickAddItem:We().func}}}]),r}(e.PureComponent),Tc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnMouseEnterRemoveItem=t.handleOnMouseEnterRemoveItem.bind(fc(t)),t.handleOnMouseLeaveRemoveItem=t.handleOnMouseLeaveRemoveItem.bind(fc(t)),t.handleOnClickRemoveItem=t.handleOnClickRemoveItem.bind(fc(t)),t.handleOnClickItem=t.handleOnClickItem.bind(fc(t)),t}return uc(r,[{key:"handleOnMouseEnterRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!0),t.preventDefault()}},{key:"handleOnMouseLeaveRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!1),t.preventDefault()}},{key:"handleOnClickItem",value:function(e,t){this.props.onClickItem&&this.props.isTouch&&this.props.onClickItem(e),t.preventDefault()}},{key:"handleOnClickRemoveItem",value:function(e,t){this.props.onClickRemoveItem&&this.props.onClickRemoveItem(e)}},{key:"render",value:function(){var t,n,r,o,a=this,i=this.props,l=i.hovered,u=i.model,s=i.data,c=i.index,d=i.ext_data,f=i.onCardUpdate;if(s&&s.warnings){var p=Object.keys(s.warnings);p&&p.length>0&&(t=s.warnings[p[0]])}if(s&&s.options&&(n=s.options,s.options_data||(s.options_data={}),(r=s.options_data).ext_data=d),s)switch(u.type){case"kasli":o=[e.createElement("p",{key:u.type+u.id+"EEM"},"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used")),e.createElement("p",{key:u.type+u.id+"CLK"},"".concat(s.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))];break;case"vhdcicarrier":o=e.createElement("p",null,"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used"));break;case"zotino":case"hd68":o=e.createElement("p",null,"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," connectors used"));break;case"clocker":o=e.createElement("p",null,"".concat(s.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))}return e.createElement(Ci,{draggableId:u.id,index:c},(function(i,d){return e.createElement("div",ac({ref:i.innerRef},i.draggableProps,i.dragHandleProps,{style:vc({},xc(i.draggableProps.style,d,!0,!!l,!!u.selected,!0)),onMouseEnter:a.handleOnMouseEnterRemoveItem.bind(a,c),onMouseLeave:a.handleOnMouseLeaveRemoveItem.bind(a,c)}),e.createElement(Ps,{placement:"bottom",trigger:t?["click","hover","focus"]:[],overlay:function(n){n.arrowProps,n.hasDoneInitialMeasure,n.show;var r=oc(n,tc);return e.createElement("div",ac({className:"k-popup-warning"},r),e.createElement("p",{className:"rule warning"},e.createElement("i",null,t.message)))},rootClose:!0},e.createElement("div",{className:"progress-container warning"},t?e.createElement("img",{className:"alert-warning",src:t?"/images".concat(t.icon):null}):n&&e.createElement(Zs,{options:n,data:r,options_class:u.options_class,key:"popover"+c,id:"popover"+c,big:"big"===u.size,target:{construct:function(e,t){r[e]=t},update:function(e,t){e in r&&(r[e]=t),f()}}}))),e.createElement("h6",null,u.name_number),e.createElement("div",{onMouseEnter:a.handleOnMouseEnterRemoveItem.bind(a,c),onClick:a.handleOnClickItem.bind(a,c)},e.createElement("img",{className:"item-cart",src:"/images".concat(u.image)})),e.createElement("div",{style:{display:u.showOverlayRemove?"flex":"none"},className:"overlayRemove",onClick:a.handleOnClickRemoveItem.bind(a,c)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),o&&e.createElement(Ps,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=oc(t,nc);return e.createElement("div",ac({className:"k-popup-connectors"},n),o)},rootClose:!0},e.createElement("div",{className:"progress-container"},u.nbrSlotMax>0&&e.createElement("div",{className:"nbr-connectors"},e.createElement("div",{style:vc({},Sc(s))})),u.nbrClockMax>0&&e.createElement("div",{className:"nbr-clocks"},e.createElement("div",{style:vc({},Cc(s))})))))}))}}],[{key:"propTypes",get:function(){return{isMobile:We().bool,isTouch:We().bool,hovered:We().bool,index:We().number.isRequired,model:We().object.isRequired,data:We().object,ext_data:We().object,onToggleOverlayRemove:We().func,onClickRemoveItem:We().func,onClickItem:We().func,onCardUpdate:We().func}}},{key:"defaultProps",get:function(){return{hovered:!1}}}]),r}(e.PureComponent),Ac=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){for(var t=this.props,n=t.isDraggingOver,r=t.nbrSlots,o=t.items,a=[],i=r-Pc(o);i>0;i--)a.push(e.createElement("div",{key:i,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,a)}}],[{key:"propTypes",get:function(){return{isDraggingOver:We().bool,nbrSlots:We().number.isRequired,items:We().array.isRequired}}}]),r}(e.PureComponent),Mc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.isMobile,r=t.isTouch,o=t.nbrSlots,a=t.itemHovered,i=t.data,l=t.onToggleOverlayRemove,u=t.onClickRemoveItem,s=t.onClickItem,c=t.onCardUpdate,d=i.items.map((function(t,o){var d,f=function(e,t){return{has_other_dio:e.filter((function(e,n){return t!==n&&e.name&&e.name.endsWith("-TTL")})).length>0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}(i.itemsData,o);return i.itemsData&&o in i.itemsData&&(d=i.itemsData[o]),e.createElement(Tc,{isMobile:n,isTouch:r,hovered:t.id===a,key:t.id,id:t.id,index:o,data:d,ext_data:f,onToggleOverlayRemove:l,onClickRemoveItem:u,onCardUpdate:c,onClickItem:s,model:t})}));return e.createElement(Pi,{droppableId:i.id,direction:"horizontal"},(function(t,n){return e.createElement("div",ac({ref:t.innerRef},t.droppableProps,{style:kc(t.droppableProps.style,n),className:"items-cart-list"}),d,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(Ac,{nbrSlots:o,items:i.items,isDraggingOver:n.isDraggingOver}))}))}}],[{key:"propTypes",get:function(){return{isMobile:We().bool,isTouch:We().bool,nbrSlots:We().number,itemHovered:We().string,data:We().object.isRequired,onToggleOverlayRemove:We().func,onClickRemoveItem:We().func,onCardUpdate:We().func,onClickItem:We().func}}}]),r}(e.PureComponent),Lc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnClickMode=t.handleOnClickMode.bind(fc(t)),t}return uc(r,[{key:"handleOnClickMode",value:function(e,t){this.props.onClickMode&&this.props.onClickMode(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.mode,o=n.items;return e.createElement("div",{className:"crate-mode"},o.map((function(n){return e.createElement("a",{key:n.id,className:r==n.id?"active":"",onClick:t.handleOnClickMode.bind(t,n.id),href:"#",role:"button"},n.name)})))}}],[{key:"propTypes",get:function(){return{items:We().array.isRequired,mode:We().string.isRequired,onClickMode:We().func}}}]),r}(e.PureComponent),Bc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.rules,r=t.cart;return e.createElement("div",{className:"crate"},e.createElement("div",{className:"crate-products"},r,n&&n.length>0&&e.createElement("div",{className:"crate-info"},n.map((function(t,n){return e.createElement("p",{key:n,className:"rule",style:{color:t.color?t.color:"inherit"}},e.createElement("img",{src:"/images".concat(t.icon)})," ",e.createElement("i",null,e.createElement("strong",null,t.name,":")," ",t.message))})))))}}],[{key:"propTypes",get:function(){return{rules:We().array,cart:We().element}}}]),r}(e.PureComponent),jc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.description,o=t.crateMode,a=t.crate,i=t.summaryPrice,l=t.form,u=t.isMobile,s=t.onClickToggleMobileSideMenu,c=t.onClickOpenImport;return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control"},e.createElement("p",{className:"description"},r),o),e.createElement("div",null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:c},"Import JSON")),u?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:s},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,a,e.createElement("section",{className:"summary"},i,l))}}],[{key:"propTypes",get:function(){return{title:We().string,description:We().string,crateMode:We().element,crate:We().element,summaryPrice:We().element,form:We().element,isMobile:We().bool,onClickToggleMobileSideMenu:We().func,onClickOpenImport:We().func}}}]),r}(e.PureComponent),Fc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).state={note:"",email:"",error:{note:null,email:null},empty:{note:null,email:null}},t.handleEmail=t.handleEmail.bind(fc(t)),t.handleNote=t.handleNote.bind(fc(t)),t.handleSubmit=t.handleSubmit.bind(fc(t)),t.resetEmptyError=t.resetEmptyError.bind(fc(t)),t.checkValidation=t.checkValidation.bind(fc(t)),t}return uc(r,[{key:"checkValidation",value:function(){var e=vc({},this.state),t=this.validateEmail(this.state.email),n=t.isEmpty,r=t.isError;return e=vc(vc({},e),{},{error:vc(vc({},this.state.error),{},{email:r}),empty:vc(vc({},this.state.empty),{},{email:n})}),this.setState(e),!n&&!r}},{key:"validateEmail",value:function(e){var t=null,n=null;return this.props.t,e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)&&(n={message:"Your email is incomplete"}):t=!0,{isEmpty:t,isError:n}}},{key:"validateNote",value:function(e){var t=null;return e&&""!==e.trim()||(t=!0),{isEmpty:t}}},{key:"resetEmptyError",value:function(e){this.setState(vc(vc({},this.state),{},{error:vc(vc({},this.state.error),{},bc({},e,null)),empty:vc(vc({},this.state.empty),{},bc({},e,null))}))}},{key:"handleEmail",value:function(e){var t=e.target.value,n=this.validateEmail(t),r=n.isEmpty,o=n.isError;this.setState(vc(vc({},this.state),{},{email:t,error:vc(vc({},this.state.error),{},{email:o}),empty:vc(vc({},this.state.empty),{},{email:r})}))}},{key:"handleNote",value:function(e){var t=e.target.value;this.setState(vc(vc({},this.state),{},{note:t}))}},{key:"handleSubmit",value:function(e){if(e.preventDefault(),this.props.onClickSubmit){if(!this.checkValidation())return!1;this.props.onClickSubmit(this.state.note,this.state.email)}}},{key:"render",value:function(){var t=this.handleEmail,n=this.handleNote,r=this.resetEmptyError,o=this.handleSubmit,a=this.props.onClickShow,i=this.state,l=i.email,u=i.note,s=i.error,c=i.empty,d=this.props,f=d.isProcessing;return d.isProcessingComplete,e.createElement("div",{className:"summary-form"},e.createElement("form",{onSubmit:o,noValidate:!0},e.createElement("input",{className:"".concat(s&&s.email?"errorField":""),type:"email",placeholder:"Email",onFocus:function(){return r("email")},onChange:t,onBlur:t,value:l}),c&&c.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,s&&s.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:n,defaultValue:u,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:a,readOnly:!0}),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2",type:"submit",value:"".concat(f?"Processing ...":"Request quote")}))))}}],[{key:"propTypes",get:function(){return{isProcessing:We().bool,isProcessingComplete:We().bool,onClickSubmit:We().func}}}]),r}(e.PureComponent),zc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).handleOnDeleteItem=t.handleOnDeleteItem.bind(fc(t)),t.handleOnDeleteAllItems=t.handleOnDeleteAllItems.bind(fc(t)),t.handleOnMouseEnterItem=t.handleOnMouseEnterItem.bind(fc(t)),t.handleOnMouseLeaveItem=t.handleOnMouseLeaveItem.bind(fc(t)),t.handleOnClickSelectItem=t.handleOnClickSelectItem.bind(fc(t)),t}return uc(r,[{key:"handleOnDeleteItem",value:function(e,t){this.props.onDeleteItem&&this.props.onDeleteItem(e),t.preventDefault()}},{key:"handleOnDeleteAllItems",value:function(e){this.props.onDeleteAllItems&&this.props.onDeleteAllItems(),e.preventDefault()}},{key:"handleOnMouseEnterItem",value:function(e,t){this.props.onMouseEnterItem&&this.props.onMouseEnterItem(e),t.preventDefault()}},{key:"handleOnMouseLeaveItem",value:function(e){this.props.onMouseLeaveItem&&this.props.onMouseLeaveItem(),e.preventDefault()}},{key:"handleOnClickSelectItem",value:function(e,t){return"IMG"!==t.target.tagName&&this.props.onClickSelectItem&&this.props.onClickSelectItem(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.currency,o=n.modes,a=n.currentMode,i=n.summary,l=n.itemsData,u=o.find((function(e){return e.id===a}));return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.createElement("span",{className:"item-card-name"},"Remove all cards"),e.createElement("button",{onClick:this.handleOnDeleteAllItems},e.createElement("img",{src:"/images/shop/icon-remove.svg"})))),u&&e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},u.name),e.createElement("td",{className:"price"},e.createElement("div",null,"".concat(r," ").concat(Nc(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," ")))),e.createElement("tbody",null,i.map((function(n,o){var a,i,u,s;if(l[o]&&l[o].warnings){a=l[o];var c=Object.keys(a.warnings);c&&c.length>0&&(i=a.warnings[c[0]])}return u=l[o]&&l[o].options,s=l[o]&&l[o].options_data,e.createElement("tr",{key:n.id,className:"hoverable ".concat(n.selected?"selected":""),onClick:t.handleOnClickSelectItem.bind(t,o),onMouseEnter:t.handleOnMouseEnterItem.bind(t,n.id),onMouseLeave:t.handleOnMouseLeaveItem},e.createElement("td",{className:"item-card-name"},e.createElement("div",null,"".concat(n.name_number," ").concat(n.name," ").concat(n.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",null,"".concat(r," ").concat(Nc(n.price)),e.createElement("button",{onClick:t.handleOnDeleteItem.bind(t,o)},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))),i?e.createElement("img",{style:{marginLeft:"10px"},className:"alert-warning",src:"/images/".concat(i.icon)}):u&&s?e.createElement(ec,{id:n.id+"options",options:u,data:s}):null,!i&&!u&&e.createElement("span",{style:{display:"inline-block",width:"30px"}}," ")))}))),e.createElement("tfoot",null,e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},"Price estimate"),e.createElement("td",{className:"price"},e.createElement("div",null,i.length?"".concat(r," ").concat(Nc(i.reduce((function(e,t){return e+t.price}),0)+u.price)):"".concat(r," ").concat(Nc(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}}],[{key:"propTypes",get:function(){return{currency:We().string,modes:We().array,currentMode:We().string,summary:We().array,itemsData:We().array,onDeleteItem:We().func,onDeleteAllItems:We().func,onMouseEnterItem:We().func,onMouseLeaveItem:We().func,onClickSelectItem:We().func}}}]),r}(e.PureComponent),Uc=function(t){sc(r,t);var n=dc(r);function r(){return ic(this,r),n.apply(this,arguments)}return uc(r,[{key:"render",value:function(){var t=this.props,n=t.currency,r=t.data,o=t.items,a=t.onClickAddItem,i=t.onClickToggleMobileSideMenu,l=t.isMobile,u=r.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return o[e]}))}})),s=-1,c=u.map((function(t,r){return e.createElement("div",{className:"accordion-item",key:"".concat(t.name)},e.createElement("h2",{className:"accordion-header"},e.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse".concat(r),"aria-expanded":"true","aria-controls":"collapse".concat(r)},t.name)),e.createElement("div",{id:"collapse".concat(r),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((function(t){return s++,e.createElement(_c,{key:t.id,id:Mi(),index:s,name:"".concat(t.name_number," ").concat(t.name),name_codename:t.name_codename,price:t.price,currency:n,image:"/images/".concat(t.image),specs:t.specs,datasheet_file:t.datasheet_file,datasheet_name:t.datasheet_name,onClickAddItem:a})})))))}));return e.createElement(Pi,{droppableId:r.id,isDropDisabled:!0},(function(t){return e.createElement("div",ac({className:"backlog-container",ref:t.innerRef},t.droppableProps),l?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:i},e.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null,e.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},c),t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder))}))}}],[{key:"propTypes",get:function(){return{currency:We().string,data:We().object.isRequired,items:We().object,isMobile:We().bool,onClickAddItem:We().func,onClickToggleMobileSideMenu:We().func}}},{key:"defaultProps",get:function(){return{items:{}}}}]),r}(e.PureComponent),Wc=function(t){sc(r,t);var n=dc(r);function r(e){var t;return ic(this,r),(t=n.call(this,e)).state=t.props.data,t.handleCrateModeChange=t.handleCrateModeChange.bind(fc(t)),t.handleOnDragEnd=t.handleOnDragEnd.bind(fc(t)),t.handleDeleteItem=t.handleDeleteItem.bind(fc(t)),t.handleDeleteAllItems=t.handleDeleteAllItems.bind(fc(t)),t.handleMouseEnterItem=t.handleMouseEnterItem.bind(fc(t)),t.handleMouseLeaveItem=t.handleMouseLeaveItem.bind(fc(t)),t.handleClickAddItem=t.handleClickAddItem.bind(fc(t)),t.checkAlerts=t.checkAlerts.bind(fc(t)),t.handleClickSelectItem=t.handleClickSelectItem.bind(fc(t)),t.handleClickSubmit=t.handleClickSubmit.bind(fc(t)),t.handleToggleOverlayRemove=t.handleToggleOverlayRemove.bind(fc(t)),t.handleShowOverlayRemove=t.handleShowOverlayRemove.bind(fc(t)),t.handleClickToggleMobileSideMenu=t.handleClickToggleMobileSideMenu.bind(fc(t)),t.handleClickCloseRFQFeedback=t.handleClickCloseRFQFeedback.bind(fc(t)),t.handleClickShowOrder=t.handleClickShowOrder.bind(fc(t)),t.handleClickOpenImport=t.handleClickOpenImport.bind(fc(t)),t.handleLoadCustomConf=t.handleLoadCustomConf.bind(fc(t)),t.handleCardsUpdated=t.handleCardsUpdated.bind(fc(t)),t.timer=null,t.timer_remove=null,t}return uc(r,[{key:"componentDidMount",value:function(){var e={droppableId:"backlog",indexes:[Ec.findIndex((function(e){return"eem_pwr_mod"===e})),Ec.findIndex((function(e){return"kasli"===e}))]};this.handleOnDragEnd({source:e,destination:{droppableId:"cart",index:0}})}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.columns.cart.items===this.state.columns.cart.items&&t.currentMode===this.state.currentMode||this.checkAlerts(this.state.columns.cart.items),this.state.newCardJustAdded&&(this.timer=setTimeout((function(){n.setState({newCardJustAdded:!1})}),2e3))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"handleCardsUpdated",value:function(){this.checkAlerts(this.state.columns.cart.items)}},{key:"handleCrateModeChange",value:function(e){this.setState({currentMode:e})}},{key:"handleDeleteItem",value:function(e){var t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);t.splice(e,1),n.splice(e,1),this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:t,itemsData:n})})}))}},{key:"handleDeleteAllItems",value:function(){this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:[],itemsData:[]})})}))}},{key:"handleMouseEnterItem",value:function(e){this.setState(vc(vc({},this.state),{},{currentItemHovered:e}))}},{key:"handleMouseLeaveItem",value:function(){this.setState(vc(vc({},this.state),{},{currentItemHovered:null}))}},{key:"handleClickAddItem",value:function(e,t){var n={droppableId:"backlog",index:e},r={droppableId:"cart",index:this.state.columns.cart.items.length};this.handleOnDragEnd({source:n,destination:r},t)}},{key:"handleClickSelectItem",value:function(e){var t=Array.from(this.state.columns.cart.items);this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:t.map((function(t,n){return vc(vc({},t),{},{selected:n===e})}))})})}))}},{key:"handleToggleOverlayRemove",value:function(e,t){var n=Array.from(this.state.columns.cart.items);this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:n.map((function(n,r){return vc(vc({},n),{},{showOverlayRemove:r===e&&t})}))})})}))}},{key:"handleShowOverlayRemove",value:function(e){var t=this;this.timer_remove&&clearTimeout(this.timer_remove),this.handleToggleOverlayRemove(e,!0),this.timer_remove=setTimeout((function(){t.handleToggleOverlayRemove(e,!1)}),2e3)}},{key:"handleClickShowOrder",value:function(){var e={items:[],type:this.state.currentMode},t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);for(var r in t){var o=t[r],a=n[r];e.items.push({pn:o.name_number,options:a.options_data&&a.options?Xs(a.options,a.options_data):null})}this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"show",RFQBodyOrder:JSON.stringify(e,null,2)})}},{key:"handleClickOpenImport",value:function(){this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"import"})}},{key:"handleLoadCustomConf",value:function(e){if(e){var t=this.props.data.items,n=[],r=[];this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:[]})})}),(function(){e.items.map((function(e){return Object.keys(t).map((function(o){e.pn&&e.pn===t[o].name_number&&(n.push(Object.assign(vc({},t[o]),{id:Mi(),options_data:e.options?e.options:null})),r.push({options_data:e.options?e.options:null}))})),e})),this.setState(vc(vc({},this.state),{},{columns:vc(vc({},this.state.columns),{},{cart:vc(vc({},this.state.columns.cart),{},{items:n,itemsData:r})}),currentMode:e.type}))}))}}},{key:"handleClickSubmit",value:function(e,t){var n=this,r={items:[],type:this.state.currentMode},o=Array.from(this.state.columns.cart.items),a=Array.from(this.state.columns.cart.itemsData);for(var i in o){var l=o[i],u=a[i];r.items.push({pn:l.name_number,options:u.options_data&&u.options?Xs(u.options,u.options_data):null})}var s=this.props.data;this.setState({isProcessing:!0}),Fe.post(s.API_RFQ,{email:t,note:e,configuration:JSON.stringify(r)}).then((function(e){n.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"email",isProcessingComplete:!0})})).catch((function(e){n.setState({isProcessing:!1},(function(){alert("We cannot receive your request. Try using the export by coping the configuration and send it to us at sales[at]m-labs.hk")}))}))}},{key:"handleOnDragEnd",value:function(e,t){var n=e.source,r=e.destination,o=[];if(n.indexes?n.indexes.forEach((function(e,t){o.push(Ec[e])})):n.index>=0&&o.push(Ec[n.index]),r)switch(n.droppableId){case"backlog":n.droppableId!==r.droppableId&&this.setState(vc(vc({},this.state),{},{newCardJustAdded:!!t,columns:vc(vc({},this.state.columns),{},bc({},r.droppableId,vc(vc({},this.state.columns[r.droppableId]),{},{items:Oc(this.state.items,this.state.columns[n.droppableId],this.state.columns[r.droppableId],o,r)})))}));break;case r.droppableId:this.setState(vc(vc({},this.state),{},{newCardJustAdded:!1,columns:vc(vc({},this.state.columns),{},bc({},r.droppableId,vc(vc({},this.state.columns[r.droppableId]),{},{items:Ic(this.state.columns[r.droppableId].items,n.index,r.index),itemsData:Ic(this.state.columns[r.droppableId].itemsData,n.index,r.index)})))}))}else"cart"===n.droppableId&&this.setState(vc(vc({},this.state),{},{newCardJustAdded:!1,columns:vc(vc({},this.state.columns),{},bc({},n.droppableId,vc(vc({},this.state.columns[n.droppableId]),{},{items:Dc(this.state.columns[n.droppableId].items,n.index),itemsData:Dc(this.state.columns[n.droppableId].itemsData,n.index)})))}))}},{key:"handleClickToggleMobileSideMenu",value:function(){this.setState(vc(vc({},this.state),{},{mobileSideMenuShouldOpen:!this.state.mobileSideMenuShouldOpen}))}},{key:"handleClickCloseRFQFeedback",value:function(){this.setState({shouldShowRFQFeedback:!1})}},{key:"checkAlerts",value:function(e){var t=this;console.log("--- START CHECKING CRATE WARNING ---");var n=this.state,r=n.currentMode,o=n.crateModeSlots,a=n.crateRules,i=Array.from(e),l=[],u={};i.forEach((function(e,n){n in l||(l[n]=e),n in t.state.columns.cart.itemsData&&t.state.columns.cart.itemsData[n].options_data&&(i[n].options_data=t.state.columns.cart.itemsData[n].options_data),l[n].warnings={}}));var s=Pc(e);s>o[r]?u[a.maxSlot.type]=vc({},a.maxSlot):21===o[r]&&s<=10&&(u[a.compactSlot.type]=vc({},a.compactSlot));for(var c=i.reduce((function(e,t,n){return"kasli"!==t.type&&"vhdcicarrier"!==t.type||e.push(n),e}),[]),d=function(){var e,t,n,r=c[f];if(e=f!==c.length-1?i.slice(r+1,c[f+1]):i.slice(r+1),0==f){var o=i.slice(0,r).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=o&&(o in l?("warnings"in l[o]||(l[o].warnings={}),l[o].warnings.resources=vc({},i[o].rules.resources)):(l[o]=vc({},i[o]),l[o].warnings={},l[o].warnings.resources=vc({},i[o].rules.resources)))}if(t=e.filter((function(e){return"idc-bnc"!==e.type})).reduce((function(e,t){return e+((n=t).options_data&&!1!==n.options_data.ext_pwr&&!1!==n.options_data.mono_eem?!0===n.options_data.ext_pwr?0:!0===n.options_data.mono_eem||"1 EEM"===n.options_data.n_eem?1:"3 EEM"===n.options_data.n_eem?3:n.slotOccupied:n.slotOccupied);var n}),0),n=e.reduce((function(e,t){return"clocker"===t.type?e+(t.options_data&&!0===t.options_data.ext_clk?0:t.clockOccupied):e}),0),r in l?(l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,"warnings"in l[r]||(l[r].warnings={})):(l[r]=vc({},i[r]),l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,l[r].warnings={}),t>i[r].nbrSlotMax&&(i[r].rules.maxSlot.message&&(u[i[r].rules.maxSlot.type]=vc({},i[r].rules.maxSlot)),l[r].warnings.maxSlotWarning=vc({},i[r].rules.maxSlotWarning)),n>i[r].nbrClockMax&&(u[i[r].rules.maxClock.type]=vc({},i[r].rules.maxClock),l[r].warnings.maxClockWarning=vc({},i[r].rules.maxClockWarning)),i.length>r+1){var a=i[r+1];"kasli"!==a.type&&"vhdcicarrier"!==a.type||(u[a.rules.follow.type]=vc({},a.rules.follow))}},f=0;f<=c.length-1;f++)d();if(0===c.length){var p=i.slice(0).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=p&&(p in l?("warnings"in l[p]||(l[p].warnings={}),l[p].warnings.resources=vc({},i[p].rules.resources)):(l[p]=vc({},i[p]),l[p].warnings={},l[p].warnings.resources=vc({},i[p].rules.resources)))}for(var m=i.reduce((function(e,t,n){return"kasli"!==t.type&&"clocker"!==t.type||e.push(n),e}),[]),h=0;h<=m.length-1;h++){var g,v=m[h];g=(h!==m.length-1?i.slice(v+1,m[h+1]):i.slice(v+1)).reduce((function(e,t){return e+(t.options_data&&t.options_data.ext_clk&&t.options_data.ext_clk.checked?0:t.clockOccupied)}),0),v in l?l[v].nbrCurrentClock&&"clocker"!==l[v].type?l[v].nbrCurrentClock+=g:l[v].nbrCurrentClock=g:(l[v]=vc({},i[v]),l[v].nbrCurrentClock=g,l[v].warnings={}),g>i[v].nbrClockMax&&(u[i[v].rules.maxClock.type]=vc({},i[v].rules.maxClock),l[v].warnings.maxClockWarning=vc({},i[v].rules.maxClockWarning))}i.find((function(e){return"urukul"===e.type}))&&this.state.items.urukul.rules.info&&(u[this.state.items.urukul.rules.info.type]=vc({},this.state.items.urukul.rules.info));for(var b=i.reduce((function(e,t,n){return"idc-bnc"===t.type&&e.push(n),e}),[]),y=b.length-1;y>=0;y--){var w=b[y],E=!1;if(0==w)E=!0;else if(w>=1){var x=b[y]-1;"zotino"!==i[x].type&&"hd68"!==i[x].type&&"idc-bnc"!==i[x].type&&(E=!0)}E&&(l[w]=vc({},i[w]),l[w].warnings={},l[w].warnings.wrong=vc({},i[w].rules.wrong))}for(var k=i.reduce((function(e,t,n){return"zotino"!==t.type&&"hd68"!==t.type||e.push(n),e}),[]),S=function(){var e,t,n=k[C];e=C!==k.length-1?i.slice(n+1,k[C+1]):i.slice(n+1);var r=!1;if(t=e.reduce((function(e,t,n,o){return 0===n&&"idc-bnc"===t.type?e+1:"idc-bnc"===o[0].type&&n>0&&"idc-bnc"===o[n-1].type?("idc-bnc"!==t.type&&(r=!0),e+("idc-bnc"!==t.type||r?0:1)):e}),0),n in l?(l[n].nbrCurrentSlot=t,"warnings"in l[n]||(l[n].warnings={})):(l[n]=vc({},i[n]),l[n].nbrCurrentSlot=t,l[n].warnings={}),t>0&&i[n].rules.maxSlot.message&&(u[i[n].rules.maxSlot.type]=vc({},i[n].rules.maxSlot)),t>i[n].nbrSlotMax&&(l[n].warnings.maxSlotWarning=vc({},i[n].rules.maxSlotWarning)),"hd68"===i[n].type){var o=!1;n index > item_index && value.name === "Carrier").length > 0,
has_other_dio: data.filter((value, item_index) => index !== item_index && value.name &&value.name.endsWith("-TTL")).length > 0,
- has_dds: data.filter(((value, _) => value.name === "DDS" && (!value.options_data || !value.options_data.mono_eem))).length > 0,
+ has_dds: data.filter(((value, _) => value.name === "DDS" && value.name_number === "4410" && (!value.options_data || !value.options_data.mono_eem))).length > 0,
has_sampler: data.filter(((value, _) => value.name === "Sampler" && (!value.options_data || !value.options_data.mono_eem))).length > 0,
}
}
diff --git a/static/js/shop_data.js b/static/js/shop_data.js
index b57c163..487120d 100644
--- a/static/js/shop_data.js
+++ b/static/js/shop_data.js
@@ -78,14 +78,15 @@ const shop_data = {
[
{type: "Line", args: {title: "IPv4", outvar: "ipv4", fallback: "192.168.1.75/24", tip: "Set up IPv4 address used by core device"}},
{type: "SwitchLine", args: {title: "IPv6", outvar: "ipv6"}},
- {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}, tip: "Use external clock reference: 10, 80 (beta), 100 or 125 MHz. Other variants may be provided if needed."}},
- {"if": [
- {"!": {"var": "ext_data.has_previous_carrier"}},
- {type: "Switch", args: {title: "Opt out from promotional USB-stick", outvar: "usb_opt_out", tip: "Do not ship a promotional USB-stick"}}
- ]}
+ {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}, tip: "Use external clock reference: 10, 80 (beta), 100 or 125 MHz. Other variants may be provided if needed."}}
],
[
- {type: "Switch", args: {title: "Optic fiber", outvar: "optics", tip: "Use optic fiber instead of direct attach copper cable"}}
+ {type: "Switch", args: {title: "Optical fiber", outvar: "optics", tip: "Use optical fiber instead of direct attach copper cable"}},
+ {"if": [
+ {"var": "optics"},
+ {type: "Radio", args: {title: "Fiber cable length", outvar: "cable_len", variants: ["1 M", "3 M", "5 M"], tip: "The desired length of the optical fiber cable", fallback: 1}},
+ {type: "Radio", args: {title: "Copper cable length", outvar: "cable_len", variants: ["0.5 M", "1 M", "2 M"], tip: "The desired length of the direct attach copper cable", fallback: 0}},
+ ]}
]
]
}
@@ -165,14 +166,15 @@ const shop_data = {
[
{type: "Line", args: {title: "IPv4", outvar: "ipv4", fallback: "192.168.1.75/24", tip: "Set up IPv4 address used by core device"}},
{type: "SwitchLine", args: {title: "IPv6", outvar: "ipv6"}},
- {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}, tip: "Use external clock reference: 10, 80 (beta), 100 or 125 MHz. Other variants may be provided if needed."}},
- {"if": [
- {"!": {"var": "ext_data.has_previous_carrier"}},
- {type: "Switch", args: {title: "Opt out from promotional USB-stick", outvar: "usb_opt_out", tip: "Do not ship a promotional USB-stick"}}
- ]}
+ {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}, tip: "Use external clock reference: 10, 80 (beta), 100 or 125 MHz. Other variants may be provided if needed."}}
],
[
- {type: "Switch", args: {title: "Optic fiber", outvar: "optics", tip: "Use optic fiber instead of direct attach copper cable"}}
+ {type: "Switch", args: {title: "Optical fiber", outvar: "optics", tip: "Use optical fiber instead of direct attach copper cable"}},
+ {"if": [
+ {"var": "optics"},
+ {type: "Radio", args: {title: "Fiber cable length", outvar: "cable_len", variants: ["1 M", "3 M", "5 M"], tip: "The desired length of the optical fiber cable", fallback: 1}},
+ {type: "Radio", args: {title: "Copper cable length", outvar: "cable_len", variants: ["0.5 M", "1 M", "2 M"], tip: "The desired length of the direct attach copper cable", fallback: 0}},
+ ]}
]
]
}
@@ -533,6 +535,67 @@ const shop_data = {
],
datasheet_file: '/docs/sinara-datasheets/2245.pdf',
datasheet_name: '2245 LVDS-TTL datasheet',
+ options: [
+ {type: "Switch", args: {title: "Configure first RJ45", fallback: false, outvar: "conf_first_rj45", tip: "Configure channels 0-3"}},
+ {
+ "if": [
+ {"var": "conf_first_rj45"},
+ {type: "Group", items: [
+ {type: "Switch", args: {title: "Output channel #0", fallback: true, outvar: "output_0", tip: "Set channel #0 to output"}},
+ {type: "Switch", args: {title: "Output channel #1", fallback: true, outvar: "output_1", tip: "Set channel #1 to output"}},
+ {type: "Switch", args: {title: "Output channel #2", fallback: true, outvar: "output_2", tip: "Set channel #2 to output"}},
+ {type: "Switch", args: {title: "Output channel #3", fallback: true, outvar: "output_3", tip: "Set channel #3 to output"}},
+ ]}
+ ]
+ },
+ {type: "Switch", args: {title: "Configure second RJ45", fallback: false, outvar: "conf_second_rj45", tip: "Configure channels 4-7"}},
+ {
+ "if": [
+ {"var": "conf_second_rj45"},
+ {type: "Group", items: [
+ {type: "Switch", args: {title: "Output channel #4", fallback: true, outvar: "output_4", tip: "Set channel #4 to output"}},
+ {type: "Switch", args: {title: "Output channel #5", fallback: true, outvar: "output_5", tip: "Set channel #5 to output"}},
+ {type: "Switch", args: {title: "Output channel #6", fallback: true, outvar: "output_6", tip: "Set channel #6 to output"}},
+ {type: "Switch", args: {title: "Output channel #7", fallback: true, outvar: "output_7", tip: "Set channel #7 to output"}},
+ ]}
+ ]
+ },
+ {type: "Switch", args: {title: "Configure third RJ45", fallback: false, outvar: "conf_third_rj45", tip: "Configure channels 8-11"}},
+ {
+ "if": [
+ {"var": "conf_third_rj45"},
+ {type: "Group", items: [
+ {type: "Switch", args: {title: "Output channel #8", fallback: true, outvar: "output_8", tip: "Set channel #8 to output"}},
+ {type: "Switch", args: {title: "Output channel #9", fallback: true, outvar: "output_9", tip: "Set channel #9 to output"}},
+ {type: "Switch", args: {title: "Output channel #10", fallback: true, outvar: "output_10", tip: "Set channel #10 to output"}},
+ {type: "Switch", args: {title: "Output channel #11", fallback: true, outvar: "output_11", tip: "Set channel #11 to output"}},
+ ]}
+ ]
+ },
+ {type: "Switch", args: {title: "Configure fourth RJ45", fallback: false, outvar: "conf_fourth_rj45", tip: "Configure channels 12-15"}},
+ {
+ "if": [
+ {"var": "conf_fourth_rj45"},
+ {type: "Group", items: [
+ {type: "Switch", args: {title: "Output channel #12", fallback: true, outvar: "output_12", tip: "Set channel #12 to output"}},
+ {type: "Switch", args: {title: "Output channel #13", fallback: true, outvar: "output_13", tip: "Set channel #13 to output"}},
+ {type: "Switch", args: {title: "Output channel #14", fallback: true, outvar: "output_14", tip: "Set channel #14 to output"}},
+ {type: "Switch", args: {title: "Output channel #15", fallback: true, outvar: "output_15", tip: "Set channel #15 to output"}},
+ ]}
+ ]
+ },
+ {
+ "if": [
+ {"or": [
+ {"and": [{"var": "conf_first_rj45"}, {"!": {"missing": ["output_0", "output_1", "output_2", "output_3"]}}, {"!": {"and": [{"var": "output_0"}, {"var": "output_1"}, {"var": "output_2"},{"var": "output_3"}]}}]},
+ {"and": [{"var": "conf_second_rj45"}, {"!": {"missing": ["output_4", "output_5", "output_6", "output_7"]}}, {"!": {"and": [{"var": "output_4"}, {"var": "output_5"}, {"var": "output_6"},{"var": "output_7"}]}}]},
+ {"and": [{"var": "conf_third_rj45"}, {"!": {"missing": ["output_8", "output_9", "output_10", "output_11"]}}, {"!": {"and": [{"var": "output_8"}, {"var": "output_9"}, {"var": "output_10"},{"var": "output_11"}]}}]},
+ {"and": [{"var": "conf_fourth_rj45"}, {"!": {"missing": ["output_12", "output_13", "output_14", "output_15"]}}, {"!": {"and": [{"var": "output_12"}, {"var": "output_13"}, {"var": "output_14"},{"var": "output_15"}]}}]}
+ ]},
+ {type: "Switch", args: {title: "Edge counter", outvar: "edge_counter", tip: "Enable edge counter for inputs"}}
+ ]
+ }
+ ],
size: 'small',
type: null,
hp: 4,
@@ -560,22 +623,20 @@ const shop_data = {
specs: [
'4 channel 1GS/s DDS.',
'Output frequency (-3 dB): <1 to >400 MHz.',
+ 'Frequency resolution ~0.25 Hz (32 bit)',
'Nominal max output power 10 dBm.',
'Digital step attenuator 0 to -31.5dB.',
'RF switch (1ns temporal resolution), 70dB isolation.',
- 'AD9910 or AD9912 chip.',
- 'By default, we use the AD9910 as it provides more features. If you need the higher frequency resolution of the AD9912, leave us a note.',
'AD9910 and AD9912 cards can be used at the same time in the same crate.',
'External 5W power amplifier is available separately, leave us a note if interested.'
],
datasheet_file: '/docs/sinara-datasheets/4410-4412.pdf',
datasheet_name: '4410/4412 Urukul datasheet',
options: [
- {type: "Switch", args: {title: "AD9912", outvar: "ad9912", tip: "AD9912 chip instead of AD9910"}},
{type: "Switch", args: {title: "Use 1 EEM", outvar: "mono_eem", tip: "Use one EEM port setup. RF switch and synchronization will be unavailable."}},
{
"if": [
- {"or": [{"var": "ad9912"}, {"var": "mono_eem"}]},
+ {"var": "mono_eem"},
[
{type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}}},
],
@@ -618,6 +679,47 @@ const shop_data = {
},
},
},
+ 'urukul_4412': {
+ id: 'urukul_4412',
+ name: 'DDS',
+ name_number: '4412',
+ name_codename: 'Urukul',
+ price: 2350,
+ image: '/shop/graphic-03_Urukul-4412.svg',
+ specs: [
+ '4 channel 1GS/s DDS.',
+ 'Higher frequency resolution ~8 µHz (47 bit)',
+ 'Output frequency (-3 dB): <1 to >400 MHz.',
+ 'Nominal max output power 10 dBm.',
+ 'Digital step attenuator 0 to -31.5dB.',
+ 'RF switch (1ns temporal resolution), 70dB isolation.',
+ 'AD9912 chip.',
+ 'AD9910 and AD9912 cards can be used at the same time in the same crate.',
+ 'External 5W power amplifier is available separately, leave us a note if interested.'
+ ],
+ datasheet_file: '/docs/sinara-datasheets/4410-4412.pdf',
+ datasheet_name: '4410/4412 Urukul datasheet',
+ options: [
+ {type: "Switch", args: {title: "Use 1 EEM", outvar: "mono_eem", tip: "Use one EEM port setup. RF switch and synchronization will be unavailable."}},
+ {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}}}
+ ],
+ size: 'small',
+ type: 'urukul',
+ hp: 4,
+ nbrSlotMin: 0,
+ nbrSlotMax: 0,
+ nbrClockMax: 0,
+ slotOccupied: 2,
+ clockOccupied: 1,
+ rules: {
+ resources: {
+ type: 'urukul',
+ icon: '/shop/icon-warning.svg',
+ name: 'Urukul',
+ message: 'This card needs a card that provides EEM and clocking connectors (e.g. Kasli) at its left.',
+ },
+ },
+ },
'phaser': {
id: 'phaser',
name: 'AWG',
@@ -852,7 +954,7 @@ const shop_data = {
type: 'hd68',
hp: 4,
options: [
- {type: "Radio", args: {title: "Cable length", outvar: "hd68_cable_len", variants: ["1 M", "2 M", "3 M"], tip: "The desired length of the HD68 cable", fallback: 1}},
+ {type: "Radio", args: {title: "Cable length", outvar: "cable_len", variants: ["1 M", "2 M", "3 M"], tip: "The desired length of the HD68 cable", fallback: 1}},
],
options_class: "hd68-idc",
nbrSlotMin: 1,
@@ -1032,6 +1134,7 @@ const shop_data = {
'Can be controlled by Kasli or work stand-alone with PoE supply.'
],
options: [
+ {type: "SwitchLine", args: {title: "IP", outvar: "ip", fallback: {text: "DHCP", checked: false}, tip: "Set up IP address used by the device"}},
{type: "Switch", args: {title: "Ext power", outvar: "ext_pwr", "tip": "Use external power supply in order to reduce number of used EEM connectors"}},
{type: "Switch", args: {title: "Term #0", outvar: "term_0", tip: "Enable termination on ADC channel #0"}},
{type: "Switch", args: {title: "Term #1", outvar: "term_1", tip: "Enable termination on ADC channel #1"}}
@@ -1185,6 +1288,7 @@ const shop_data = {
'AD9959 DDS (500MSPS, 10-bit).'
],
options: [
+ {type: "SwitchLine", args: {title: "IP", outvar: "ip", fallback: {text: "DHCP", checked: false}, tip: "Set up IP address used by the device"}},
{type: "Switch", args: {title: "Ext power", outvar: "ext_pwr", "tip": "Use external power supply in order to reduce number of used EEM connectors"}},
{type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}}},
{type: "Switch", args: {title: "Termination #0", outvar: "term_0", tip: "Enable termination on ADC channel #0"}},
@@ -1252,6 +1356,7 @@ const shop_data = {
itemIds: [
'clocker',
'urukul',
+ 'urukul_4412',
'phaser',
'mirny',
'almazny',