UNPKG

@findnlink/ui

Version:
62 lines 136 kB
var Ud=Object.defineProperty,jd=Object.defineProperties;var Hd=Object.getOwnPropertyDescriptors;var Zr=Object.getOwnPropertySymbols;var Ai=Object.prototype.hasOwnProperty,Oi=Object.prototype.propertyIsEnumerable;var Bi=(T,D,V)=>D in T?Ud(T,D,{enumerable:!0,configurable:!0,writable:!0,value:V}):T[D]=V,k=(T,D)=>{for(var V in D||(D={}))Ai.call(D,V)&&Bi(T,V,D[V]);if(Zr)for(var V of Zr(D))Oi.call(D,V)&&Bi(T,V,D[V]);return T},U=(T,D)=>jd(T,Hd(D));var We=(T,D)=>{var V={};for(var ae in T)Ai.call(T,ae)&&D.indexOf(ae)<0&&(V[ae]=T[ae]);if(T!=null&&Zr)for(var ae of Zr(T))D.indexOf(ae)<0&&Oi.call(T,ae)&&(V[ae]=T[ae]);return V};(function(T,D){typeof exports=="object"&&typeof module!="undefined"?D(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],D):(T=typeof globalThis!="undefined"?globalThis:T||self,D(T.ui={},T.React,T.ReactDOM))})(this,function(T,D,V){"use strict";function ae(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var W=ae(D),Ni=ae(V),Qr={fontS:"_fontS_u66oq_1",fontM:"_fontM_u66oq_6",fontL:"_fontL_u66oq_11",fontXL:"_fontXL_u66oq_16",weightLight:"_weightLight_u66oq_21",weightNormal:"_weightNormal_u66oq_26",weightBold:"_weightBold_u66oq_31",disabled:"_disabled_u66oq_36",errorMessage:"_errorMessage_u66oq_41",kanbanSkeleton:"_kanbanSkeleton_u66oq_46",button:"_button_u66oq_51",primary:"_primary_u66oq_72"};const Oe=(e,r,t,n,a)=>{let i=[e];switch(t){case"s":i.push(r.fontS);break;case"m":i.push(r.fontM);break;case"l":i.push(r.fontL);break;case"xl":i.push(r.fontXL);break}switch(n){case"light":i.push(r.weightLight);break;case"normal":i.push(r.weightNormal);break;case"bold":i.push(r.weightBold);break}return a&&i.push(r.disabled),i};var pr={exports:{}},Ue={};/* object-assign (c) Sindre Sorhus @license MIT */var ln=Object.getOwnPropertySymbols,Ti=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable;function Li(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Ri(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Ri();/** @license React v17.0.2 * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _i=W.default,sn=60103;if(Ue.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var un=Symbol.for;sn=un("react.element"),Ue.Fragment=un("react.fragment")}var $i=_i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ki=Object.prototype.hasOwnProperty,Fi={key:!0,ref:!0,__self:!0,__source:!0};function cn(e,r,t){var n,a={},i=null,o=null;t!==void 0&&(i=""+t),r.key!==void 0&&(i=""+r.key),r.ref!==void 0&&(o=r.ref);for(n in r)ki.call(r,n)&&!Fi.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps,r)a[n]===void 0&&(a[n]=r[n]);return{$$typeof:sn,type:e,key:i,ref:o,props:a,_owner:$i.current}}Ue.jsx=cn,Ue.jsxs=cn,pr.exports=Ue;const y=pr.exports.jsx,R=pr.exports.jsxs,et=pr.exports.Fragment,fr=s=>{var c=s,{children:e,primary:r,scale:t,weight:n,href:a,onClick:i,disabled:o}=c,l=We(c,["children","primary","scale","weight","href","onClick","disabled"]);return y("button",U(k({"data-testid":"button",onClick:u=>{o||(i&&i(u),a&&window.open(a,"_blank"))},className:(()=>{let u=Oe(Qr.button,Qr,t,n,o);return r&&u.push(Qr.primary),u.join(" ")})()},l),{children:e}))};var Gi={buttonGroup:"_buttonGroup_kjcg1_1"};const Wi=({value:e,setValue:r,buttons:t,scale:n})=>y("div",{className:Gi.buttonGroup,children:t.map((a,i)=>y(fr,{scale:n,onClick:()=>r(a),primary:e===a,children:a},i))});var Ui={card:"_card_9sl85_1"};const ji=({children:e})=>y("div",{"data-testid":"Card",className:Ui.card,children:e});var rt={fontS:"_fontS_951v6_1",fontM:"_fontM_951v6_6",fontL:"_fontL_951v6_11",fontXL:"_fontXL_951v6_16",weightLight:"_weightLight_951v6_21",weightNormal:"_weightNormal_951v6_26",weightBold:"_weightBold_951v6_31",disabled:"_disabled_951v6_36",errorMessage:"_errorMessage_951v6_41",kanbanSkeleton:"_kanbanSkeleton_951v6_46",checkbox:"_checkbox_951v6_51"};const Hi=i=>{var o=i,{children:e,error:r,size:t,weight:n}=o,a=We(o,["children","error","size","weight"]);return R("span",{className:(()=>{let s=Oe(rt.checkbox,rt,t,n,a.disabled);return r&&s.push(rt.error),s.join(" ")})(),children:[y("input",U(k({id:"checkbox",type:"checkbox"},a),{"data-testid":"Checkbox"})),y("label",{htmlFor:"checkbox",children:e})]})};var qi={menu:"_menu_kiun1_1"};const tt=({children:e,menu:r,open:t,setOpen:n,location:a,setLocation:i,isDisabled:o})=>{const l=D.useRef(null);D.useEffect(()=>{o&&n(!1)},[o]);const s=p=>{o||(n(!0),i({x:p.pageX,y:p.pageY}))},c=p=>{l.current&&!l.current.contains(p.target)&&n(!1)};return D.useEffect(()=>(document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}),[]),R(et,{children:[W.default.cloneElement(e,{onContextMenu:p=>{p.preventDefault(),s(p)}}),t?y("div",{style:{left:a.x,top:a.y},ref:l,className:qi.menu,children:r}):null]})};var dn={fontS:"_fontS_1yui9_1",fontM:"_fontM_1yui9_6",fontL:"_fontL_1yui9_11",fontXL:"_fontXL_1yui9_16"};const J=({icon:e,color:r,size:t})=>{const n=()=>Oe(dn.icon,dn,t,void 0,void 0).join(" ");return(()=>{switch(e){case"add":return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8.423",height:"8.423",viewBox:"0 0 8.423 8.423",children:R("g",{id:"Component_33_1","data-name":"Component 33 \u2013 1",transform:"translate(1 1)",children:[y("line",{id:"Line_845","data-name":"Line 845",x2:"6.423",transform:"translate(0 3.211)",fill:"none",stroke:r,strokeLinecap:"round",strokeWidth:"2"}),y("line",{id:"Line_846","data-name":"Line 846",x2:"6.423",transform:"translate(3.211) rotate(90)",fill:"none",stroke:r,strokeLinecap:"round",strokeWidth:"2"})]})});case"itemMenu":return R("svg",{id:"Component_31","data-name":"Component 31",xmlns:"http://www.w3.org/2000/svg",width:"3",height:"13",viewBox:"0 0 3 13",children:[y("circle",{id:"Ellipse_1201","data-name":"Ellipse 1201",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(3) rotate(90)",fill:"var(--text300)"}),y("circle",{id:"Ellipse_1202","data-name":"Ellipse 1202",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(3 5) rotate(90)",fill:"var(--text300)"}),y("circle",{id:"Ellipse_1203","data-name":"Ellipse 1203",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(3 10) rotate(90)",fill:"var(--text300)"})]});case"arrow":return R("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8.523",height:"11.831",viewBox:"0 0 8.523 11.831",children:[y("line",{id:"Line_867","data-name":"Line 867",x2:"3.798",y2:"4.288",transform:"translate(2.117 9.714) rotate(-90)",fill:"none",stroke:"#a7a8a8",strokeLinecap:"round",strokeWidth:"3"}),y("line",{id:"Line_868","data-name":"Line 868",x1:"3.798",y2:"4.288",transform:"translate(2.117 5.916) rotate(-90)",fill:"none",stroke:"#a7a8a8",strokeLinecap:"round",strokeWidth:"3"})]});case"cross":return R("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11.839",height:"11.839",viewBox:"0 0 11.839 11.839",children:[y("line",{id:"Line_869","data-name":"Line 869",y2:"10.742",transform:"translate(9.717 2.122) rotate(45)",fill:"none",stroke:"var(--text300)",strokeLinecap:"round",strokeWidth:"3"}),y("line",{id:"Line_870","data-name":"Line 870",y2:"10.742",transform:"translate(9.717 9.717) rotate(135)",fill:"none",stroke:"var(--text300)",strokeLinecap:"round",strokeWidth:"3"})]});case"edit":return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11.756",height:"11.756",viewBox:"0 0 11.756 11.756",children:y("path",{id:"Icon_material-edit","data-name":"Icon material-edit",d:"M4.5,13.8v2.449H6.949L14.171,9.03,11.722,6.581ZM16.065,7.136a.65.65,0,0,0,0-.921L14.537,4.687a.65.65,0,0,0-.921,0l-1.2,1.2L14.87,8.331Z",transform:"translate(-4.5 -4.496)",fill:"var(--text300)"})});case"remove":return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12.281",height:"12.281",viewBox:"0 0 12.281 12.281",children:y("path",{id:"Icon_material-remove-circle","data-name":"Icon material-remove-circle",d:"M9.141,3a6.141,6.141,0,1,0,6.141,6.141A6.143,6.143,0,0,0,9.141,3Zm3.07,6.755H6.07V8.527h6.141Z",transform:"translate(-3 -3)",fill:"var(--text300)"})});case"lock":return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11.92",height:"13.623",viewBox:"0 0 11.92 13.623",className:n(),children:y("path",{id:"Icon_awesome-lock","data-name":"Icon awesome-lock",d:"M10.643,5.96H10V4.044a4.044,4.044,0,1,0-8.089,0V5.96H1.277A1.277,1.277,0,0,0,0,7.237v5.109a1.277,1.277,0,0,0,1.277,1.277h9.366a1.277,1.277,0,0,0,1.277-1.277V7.237A1.277,1.277,0,0,0,10.643,5.96Zm-2.767,0H4.044V4.044a1.916,1.916,0,0,1,3.831,0Z",fill:"var(--text300)"})});case"eye":return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"11.927",viewBox:"0 0 18 11.927",className:n(),children:y("path",{id:"Path_1084","data-name":"Path 1084",d:"M17.892,69.51A10.029,10.029,0,0,0,9,64,10.031,10.031,0,0,0,.109,69.51a1,1,0,0,0,0,.907A10.029,10.029,0,0,0,9,75.927a10.031,10.031,0,0,0,8.891-5.51,1,1,0,0,0,0-.907ZM9,74.436a4.473,4.473,0,1,1,4.5-4.473A4.486,4.486,0,0,1,9,74.436Zm0-7.454a3,3,0,0,0-.791.118,1.479,1.479,0,0,1-.147,1.932,1.5,1.5,0,0,1-1.944.146,2.966,2.966,0,0,0,1.221,3.25,3.008,3.008,0,0,0,3.489-.11A2.972,2.972,0,0,0,9,66.982Z",transform:"translate(-0.001 -64)",fill:"#a7a8a8"})});case"eyeClosed":return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20.033",height:"16.027",viewBox:"0 0 20.033 16.027",className:n(),children:y("path",{id:"Path_1085","data-name":"Path 1085",d:"M10.018,12.517A4.491,4.491,0,0,1,5.545,8.351L2.261,5.813a10.433,10.433,0,0,0-1.149,1.74,1.013,1.013,0,0,0,0,.914,10.04,10.04,0,0,0,8.906,5.553,9.723,9.723,0,0,0,2.438-.327l-1.624-1.257A4.512,4.512,0,0,1,10.018,12.517Zm9.823,1.819-3.46-2.674a10.369,10.369,0,0,0,2.543-3.195,1.013,1.013,0,0,0,0-.914A10.04,10.04,0,0,0,10.018,2,9.646,9.646,0,0,0,5.407,3.18L1.424.1a.5.5,0,0,0-.7.088L.107.981a.5.5,0,0,0,.088.7L18.612,15.918a.5.5,0,0,0,.7-.088l.615-.791A.5.5,0,0,0,19.841,14.336ZM14.09,9.891,12.86,8.94A2.966,2.966,0,0,0,9.226,5.124a1.492,1.492,0,0,1,.291.883,1.46,1.46,0,0,1-.048.313l-2.3-1.781A4.455,4.455,0,0,1,10.018,3.5,4.5,4.5,0,0,1,14.525,8.01a4.4,4.4,0,0,1-.435,1.882Z",transform:"translate(-0.001 0.003)",fill:"#a7a8a8"})});default:return y("svg",{})}})()};var xe={fontS:"_fontS_1x9c1_1",fontM:"_fontM_1x9c1_6",fontL:"_fontL_1x9c1_11",fontXL:"_fontXL_1x9c1_16",weightLight:"_weightLight_1x9c1_21",weightNormal:"_weightNormal_1x9c1_26",weightBold:"_weightBold_1x9c1_31",disabled:"_disabled_1x9c1_36",errorMessage:"_errorMessage_1x9c1_41",kanbanSkeleton:"_kanbanSkeleton_1x9c1_46",input:"_input_1x9c1_51",icon:"_icon_1x9c1_75",password:"_password_1x9c1_81",error:"_error_1x9c1_41"};const Vi=c=>{var p=c,{error:e,errorMessage:r,scale:t,weight:n,type:a,icon:i,limit:o,value:l}=p,s=We(p,["error","errorMessage","scale","weight","type","icon","limit","value"]);const[u,d]=D.useState(!1);return R("div",{className:(()=>{let v=Oe(xe.input,xe,t,n,s.disabled);return e&&v.push(xe.error),(i||a==="password")&&v.push(xe.icon),v.join(" ")})(),children:[R("div",{children:[i&&i,a==="password"&&y(J,{size:t,icon:"lock"}),y("input",k({type:a==="password"&&u?"text":a,"data-testid":"Input"},s)),a==="password"&&y("span",{className:xe.password,onClick:()=>{d(v=>!v)},children:u?y(J,{icon:"eyeClosed",size:t}):y(J,{icon:"eye",size:t})}),o&&R("span",{className:xe.limit,children:[l.length,"/",s.maxLength]})]}),e&&r&&y("span",{className:xe.errorMessage,children:r})]})};var Be={board:"_board_1y65x_1",title:"_title_1y65x_6",skeletonWrapper:"_skeletonWrapper_1y65x_12",skeleton:"_skeleton_1y65x_12",skeletonText:"_skeletonText_1y65x_23"},zi={column:"_column_1jjlb_1",skeleton:"_skeleton_1jjlb_11"},nt={add:"_add_13zh4_1",column:"_column_13zh4_14"};const pn=({text:e,onClick:r,isColumn:t})=>R("span",{"data-testid":"add",className:t?nt.add+" "+nt.column:nt.add,onClick:r,children:[y(J,{icon:"add",color:"var(--text200)"})," ",e]});var fe={item:"_item_e949w_1",locked:"_locked_e949w_17",borderAnimation:"_borderAnimation_e949w_1",icon:"_icon_e949w_23",lock:"_lock_e949w_17",textWrapper:"_textWrapper_e949w_38",input:"_input_e949w_41",text:"_text_e949w_38"};const Xi=({text:e,position:r,_id:t,columnId:n,createdAt:a,updatedAt:i,isDragging:o,_deleteItem:l,columnIndex:s,itemIndex:c,_editItem:p,i18n:u,newItem:d,setNewItem:f,provided:v,_isEditingItem:g,locked:b})=>{const[m,h]=D.useState(!1),[x,S]=D.useState({x:0,y:0}),[A,O]=D.useState(e),[M,C]=D.useState(d);D.useEffect(()=>{g(s,c,M||o)},[M,o]),D.useEffect(()=>{O(e)},[e]);function w(E){E.style.height="5px",E.style.height=E.scrollHeight+"px"}return y(et,{children:y(tt,{menu:R("div",{onClick:()=>h(!1),children:[R("button",{onClick:()=>{C(!0)},children:[y(J,{icon:"edit"}),u.edit]}),R("button",{onClick:()=>{l(s,c)},children:[y(J,{icon:"remove"}),u.remove]})]}),open:m,setOpen:h,location:x,setLocation:S,isDisabled:b,children:R("div",{"data-testid":"Item",className:b?fe.item+" "+fe.locked:fe.item,style:o?{border:"2px solid var(--text400)"}:{},children:[y("span",{className:fe.textWrapper,children:M?y("textarea",{className:fe.input,autoFocus:!0,value:A,onChange:E=>{O(E.target.value),w(E.target)},onBlur:E=>{C(!1),f(!1),p(s,c,A)},onFocus:E=>E.currentTarget.setSelectionRange(E.currentTarget.value.length,E.currentTarget.value.length)}):y("span",{className:fe.text,children:A})}),b?y("div",{className:fe.icon+" "+fe.lock,children:y(J,{icon:"lock"})}):y("div",{className:fe.icon,onClick:E=>{S({x:E.pageX,y:E.pageY}),h(!0)},children:y(J,{icon:"itemMenu"})})]})})})};var ve={header:"_header_1jjvd_1",locked:"_locked_1jjvd_15",borderAnimation:"_borderAnimation_1jjvd_1",icon:"_icon_1jjvd_21",lock:"_lock_1jjvd_15",textWrapper:"_textWrapper_1jjvd_35",itemCount:"_itemCount_1jjvd_41",text:"_text_1jjvd_35",input:"_input_1jjvd_54",right:"_right_1jjvd_63"};const Yi=({text:e,color:r,itemCount:t,dragHandleProps:n,_deleteColumn:a,_editColumn:i,columnIndex:o,isDragging:l,i18n:s,newColumn:c,setNewColumn:p,locked:u,_isEditingColumn:d})=>{const[f,v]=D.useState(!1),[g,b]=D.useState({x:0,y:0}),[m,h]=D.useState(e),[x,S]=D.useState(c);return D.useEffect(()=>{d(o,x||l)},[x,l]),D.useEffect(()=>{h(e)},[e]),y(tt,{menu:R("div",{onClick:()=>v(!1),children:[R("div",{children:[y("span",{onClick:()=>i(o,m,"var(--text200)"),style:{backgroundColor:"var(--text200)"}}),y("span",{onClick:()=>i(o,m,"#796AFF"),style:{backgroundColor:"#796AFF"}}),y("span",{onClick:()=>i(o,m,"#FF6A6A"),style:{backgroundColor:"#FF6A6A"}}),y("span",{onClick:()=>i(o,m,"#FC762A"),style:{backgroundColor:"#FC762A"}}),y("span",{onClick:()=>i(o,m,"#FFAD1F"),style:{backgroundColor:"#FFAD1F"}}),y("span",{onClick:()=>i(o,m,"#17BF63"),style:{backgroundColor:"#17BF63"}})]}),y("hr",{}),R("button",{onClick:()=>S(!0),children:[y(J,{icon:"edit"})," ",s.edit]}),R("button",{onClick:()=>{a(o)},children:[y(J,{icon:"remove"}),s.remove]})]}),open:f,setOpen:v,location:g,setLocation:b,isDisabled:u,children:R("div",U(k({},n),{"data-testid":"Header",className:u?ve.header+" "+ve.locked:ve.header,style:l?{border:"2px solid var(--text400)",color:r}:{color:r},children:[R("div",{className:ve.textWrapper,children:[y("span",{className:ve.itemCount,children:t}),x?y("input",{className:ve.input,autoFocus:!0,value:m,onChange:A=>{h(A.target.value)},onBlur:A=>{S(!1),p(!1),i(o,m,r)},style:{color:r},maxLength:28}):y("span",{children:e})]}),u?y("div",{className:ve.icon+" "+ve.lock,children:y(J,{icon:"lock"})}):y("div",{className:ve.icon,onClick:A=>{b({x:A.pageX,y:A.pageY}),v(!0)},children:y(J,{icon:"itemMenu"})})]}))})};function at(e,r){return at=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},at(e,r)}function fn(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,at(e,r)}function N(){return N=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},N.apply(this,arguments)}function Ki(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function vn(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function gn(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?vn(Object(t),!0).forEach(function(n){Ki(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Z(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var mn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),it=function(){return Math.random().toString(36).substring(7).split("").join(".")},bn={INIT:"@@redux/INIT"+it(),REPLACE:"@@redux/REPLACE"+it(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+it()}};function Ji(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function hn(e,r,t){var n;if(typeof r=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof r=="function"&&typeof t=="undefined"&&(t=r,r=void 0),typeof t!="undefined"){if(typeof t!="function")throw new Error(Z(1));return t(hn)(e,r)}if(typeof e!="function")throw new Error(Z(2));var a=e,i=r,o=[],l=o,s=!1;function c(){l===o&&(l=o.slice())}function p(){if(s)throw new Error(Z(3));return i}function u(g){if(typeof g!="function")throw new Error(Z(4));if(s)throw new Error(Z(5));var b=!0;return c(),l.push(g),function(){if(!!b){if(s)throw new Error(Z(6));b=!1,c();var h=l.indexOf(g);l.splice(h,1),o=null}}}function d(g){if(!Ji(g))throw new Error(Z(7));if(typeof g.type=="undefined")throw new Error(Z(8));if(s)throw new Error(Z(9));try{s=!0,i=a(i,g)}finally{s=!1}for(var b=o=l,m=0;m<b.length;m++){var h=b[m];h()}return g}function f(g){if(typeof g!="function")throw new Error(Z(10));a=g,d({type:bn.REPLACE})}function v(){var g,b=u;return g={subscribe:function(h){if(typeof h!="object"||h===null)throw new Error(Z(11));function x(){h.next&&h.next(p())}x();var S=b(x);return{unsubscribe:S}}},g[mn]=function(){return this},g}return d({type:bn.INIT}),n={dispatch:d,subscribe:u,getState:p,replaceReducer:f},n[mn]=v,n}function yn(e,r){return function(){return r(e.apply(this,arguments))}}function wn(e,r){if(typeof e=="function")return yn(e,r);if(typeof e!="object"||e===null)throw new Error(Z(16));var t={};for(var n in e){var a=e[n];typeof a=="function"&&(t[n]=yn(a,r))}return t}function Dn(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Zi(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Z(15))},o={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(s){return s(o)});return i=Dn.apply(void 0,l)(a.dispatch),gn(gn({},a),{},{dispatch:i})}}}var Qi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",eo=Qi,ro=eo;function xn(){}function Sn(){}Sn.resetWarningCache=xn;var to=function(){function e(n,a,i,o,l,s){if(s!==ro){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function r(){return e}var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Sn,resetWarningCache:xn};return t.PropTypes=t,t};to();var In=W.default.createContext(null);function no(e){e()}var Cn=no,ao=function(r){return Cn=r},io=function(){return Cn};function oo(){var e=io(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var a=r;a;)a.callback(),a=a.next})},get:function(){for(var a=[],i=r;i;)a.push(i),i=i.next;return a},subscribe:function(a){var i=!0,o=t={callback:a,next:null,prev:t};return o.prev?o.prev.next=o:r=o,function(){!i||r===null||(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:r=o.next)}}}}var En={notify:function(){},get:function(){return[]}};function Pn(e,r){var t,n=En;function a(u){return s(),n.subscribe(u)}function i(){n.notify()}function o(){p.onStateChange&&p.onStateChange()}function l(){return Boolean(t)}function s(){t||(t=r?r.addNestedSub(o):e.subscribe(o),n=oo())}function c(){t&&(t(),t=void 0,n.clear(),n=En)}var p={addNestedSub:a,notifyNestedSubs:i,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return p}var An=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?D.useLayoutEffect:D.useEffect;function lo(e){var r=e.store,t=e.context,n=e.children,a=D.useMemo(function(){var l=Pn(r);return l.onStateChange=l.notifyNestedSubs,{store:r,subscription:l}},[r]),i=D.useMemo(function(){return r.getState()},[r]);An(function(){var l=a.subscription;return l.trySubscribe(),i!==r.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[a,i]);var o=t||In;return y(o.Provider,{value:a,children:n})}function vr(e,r){if(e==null)return{};var t={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(r.indexOf(a)>=0)&&(t[a]=e[a]);return t}var On={exports:{}},_={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var j=typeof Symbol=="function"&&Symbol.for,ot=j?Symbol.for("react.element"):60103,lt=j?Symbol.for("react.portal"):60106,gr=j?Symbol.for("react.fragment"):60107,mr=j?Symbol.for("react.strict_mode"):60108,br=j?Symbol.for("react.profiler"):60114,hr=j?Symbol.for("react.provider"):60109,yr=j?Symbol.for("react.context"):60110,st=j?Symbol.for("react.async_mode"):60111,wr=j?Symbol.for("react.concurrent_mode"):60111,Dr=j?Symbol.for("react.forward_ref"):60112,xr=j?Symbol.for("react.suspense"):60113,so=j?Symbol.for("react.suspense_list"):60120,Sr=j?Symbol.for("react.memo"):60115,Ir=j?Symbol.for("react.lazy"):60116,uo=j?Symbol.for("react.block"):60121,co=j?Symbol.for("react.fundamental"):60117,po=j?Symbol.for("react.responder"):60118,fo=j?Symbol.for("react.scope"):60119;function Q(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case ot:switch(e=e.type,e){case st:case wr:case gr:case br:case mr:case xr:return e;default:switch(e=e&&e.$$typeof,e){case yr:case Dr:case Ir:case Sr:case hr:return e;default:return r}}case lt:return r}}}function Bn(e){return Q(e)===wr}_.AsyncMode=st,_.ConcurrentMode=wr,_.ContextConsumer=yr,_.ContextProvider=hr,_.Element=ot,_.ForwardRef=Dr,_.Fragment=gr,_.Lazy=Ir,_.Memo=Sr,_.Portal=lt,_.Profiler=br,_.StrictMode=mr,_.Suspense=xr,_.isAsyncMode=function(e){return Bn(e)||Q(e)===st},_.isConcurrentMode=Bn,_.isContextConsumer=function(e){return Q(e)===yr},_.isContextProvider=function(e){return Q(e)===hr},_.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ot},_.isForwardRef=function(e){return Q(e)===Dr},_.isFragment=function(e){return Q(e)===gr},_.isLazy=function(e){return Q(e)===Ir},_.isMemo=function(e){return Q(e)===Sr},_.isPortal=function(e){return Q(e)===lt},_.isProfiler=function(e){return Q(e)===br},_.isStrictMode=function(e){return Q(e)===mr},_.isSuspense=function(e){return Q(e)===xr},_.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gr||e===wr||e===br||e===mr||e===xr||e===so||typeof e=="object"&&e!==null&&(e.$$typeof===Ir||e.$$typeof===Sr||e.$$typeof===hr||e.$$typeof===yr||e.$$typeof===Dr||e.$$typeof===co||e.$$typeof===po||e.$$typeof===fo||e.$$typeof===uo)},_.typeOf=Q,On.exports=_;var ut=On.exports,vo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},go={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mo={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ct={};ct[ut.ForwardRef]=mo,ct[ut.Memo]=Nn;function Tn(e){return ut.isMemo(e)?Nn:ct[e.$$typeof]||vo}var bo=Object.defineProperty,ho=Object.getOwnPropertyNames,Mn=Object.getOwnPropertySymbols,yo=Object.getOwnPropertyDescriptor,wo=Object.getPrototypeOf,Ln=Object.prototype;function Rn(e,r,t){if(typeof r!="string"){if(Ln){var n=wo(r);n&&n!==Ln&&Rn(e,n,t)}var a=ho(r);Mn&&(a=a.concat(Mn(r)));for(var i=Tn(e),o=Tn(r),l=0;l<a.length;++l){var s=a[l];if(!go[s]&&!(t&&t[s])&&!(o&&o[s])&&!(i&&i[s])){var c=yo(r,s);try{bo(e,s,c)}catch{}}}}return e}var _n=Rn,$n={exports:{}},$={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Cr=60103,Er=60106,je=60107,He=60108,qe=60114,Ve=60109,ze=60110,Xe=60112,Ye=60113,dt=60120,Ke=60115,Je=60116,kn=60121,Fn=60122,Gn=60117,Wn=60129,Un=60131;if(typeof Symbol=="function"&&Symbol.for){var z=Symbol.for;Cr=z("react.element"),Er=z("react.portal"),je=z("react.fragment"),He=z("react.strict_mode"),qe=z("react.profiler"),Ve=z("react.provider"),ze=z("react.context"),Xe=z("react.forward_ref"),Ye=z("react.suspense"),dt=z("react.suspense_list"),Ke=z("react.memo"),Je=z("react.lazy"),kn=z("react.block"),Fn=z("react.server.block"),Gn=z("react.fundamental"),Wn=z("react.debug_trace_mode"),Un=z("react.legacy_hidden")}function ce(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Cr:switch(e=e.type,e){case je:case qe:case He:case Ye:case dt:return e;default:switch(e=e&&e.$$typeof,e){case ze:case Xe:case Je:case Ke:case Ve:return e;default:return r}}case Er:return r}}}var Do=Ve,xo=Cr,So=Xe,Io=je,Co=Je,Eo=Ke,Po=Er,Ao=qe,Oo=He,Bo=Ye;$.ContextConsumer=ze,$.ContextProvider=Do,$.Element=xo,$.ForwardRef=So,$.Fragment=Io,$.Lazy=Co,$.Memo=Eo,$.Portal=Po,$.Profiler=Ao,$.StrictMode=Oo,$.Suspense=Bo,$.isAsyncMode=function(){return!1},$.isConcurrentMode=function(){return!1},$.isContextConsumer=function(e){return ce(e)===ze},$.isContextProvider=function(e){return ce(e)===Ve},$.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cr},$.isForwardRef=function(e){return ce(e)===Xe},$.isFragment=function(e){return ce(e)===je},$.isLazy=function(e){return ce(e)===Je},$.isMemo=function(e){return ce(e)===Ke},$.isPortal=function(e){return ce(e)===Er},$.isProfiler=function(e){return ce(e)===qe},$.isStrictMode=function(e){return ce(e)===He},$.isSuspense=function(e){return ce(e)===Ye},$.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===je||e===qe||e===Wn||e===He||e===Ye||e===dt||e===Un||typeof e=="object"&&e!==null&&(e.$$typeof===Je||e.$$typeof===Ke||e.$$typeof===Ve||e.$$typeof===ze||e.$$typeof===Xe||e.$$typeof===Gn||e.$$typeof===kn||e[0]===Fn)},$.typeOf=ce,$n.exports=$;var No=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],To=["reactReduxForwardedRef"],Mo=[],Lo=[null,null];function Ro(e,r){var t=e[1];return[r.payload,t+1]}function jn(e,r,t){An(function(){return e.apply(void 0,r)},t)}function _o(e,r,t,n,a,i,o){e.current=n,r.current=a,t.current=!1,i.current&&(i.current=null,o())}function $o(e,r,t,n,a,i,o,l,s,c){if(!!e){var p=!1,u=null,d=function(){if(!p){var g=r.getState(),b,m;try{b=n(g,a.current)}catch(h){m=h,u=h}m||(u=null),b===i.current?o.current||s():(i.current=b,l.current=b,o.current=!0,c({type:"STORE_UPDATED",payload:{error:m}}))}};t.onStateChange=d,t.trySubscribe(),d();var f=function(){if(p=!0,t.tryUnsubscribe(),t.onStateChange=null,u)throw u};return f}}var ko=function(){return[null,0]};function Fo(e,r){r===void 0&&(r={});var t=r,n=t.getDisplayName,a=n===void 0?function(x){return"ConnectAdvanced("+x+")"}:n,i=t.methodName,o=i===void 0?"connectAdvanced":i,l=t.renderCountProp,s=l===void 0?void 0:l,c=t.shouldHandleStateChanges,p=c===void 0?!0:c,u=t.storeKey,d=u===void 0?"store":u;t.withRef;var f=t.forwardRef,v=f===void 0?!1:f,g=t.context,b=g===void 0?In:g,m=vr(t,No),h=b;return function(S){var A=S.displayName||S.name||"Component",O=a(A),M=N({},m,{getDisplayName:a,methodName:o,renderCountProp:s,shouldHandleStateChanges:p,storeKey:d,displayName:O,wrappedComponentName:A,WrappedComponent:S}),C=m.pure;function w(G){return e(G.dispatch,M)}var E=C?D.useMemo:function(G){return G()};function P(G){var se=D.useMemo(function(){var dr=G.reactReduxForwardedRef,on=vr(G,To);return[G.context,dr,on]},[G]),ue=se[0],ke=se[1],we=se[2],Fe=D.useMemo(function(){return ue&&ue.Consumer&&$n.exports.isContextConsumer(y(ue.Consumer,{}))?ue:h},[ue,h]),pe=D.useContext(Fe),Ae=Boolean(G.store)&&Boolean(G.store.getState)&&Boolean(G.store.dispatch);Boolean(pe)&&Boolean(pe.store);var ne=Ae?G.store:pe.store,cr=D.useMemo(function(){return w(ne)},[ne]),zr=D.useMemo(function(){if(!p)return Lo;var dr=Pn(ne,Ae?null:pe.subscription),on=dr.notifyNestedSubs.bind(dr);return[dr,on]},[ne,Ae,pe]),De=zr[0],Xr=zr[1],Yr=D.useMemo(function(){return Ae?pe:N({},pe,{subscription:De})},[Ae,pe,De]),Kr=D.useReducer(Ro,Mo,ko),en=Kr[0],Ge=en[0],rn=Kr[1];if(Ge&&Ge.error)throw Ge.error;var Ei=D.useRef(),tn=D.useRef(we),Jr=D.useRef(),Pi=D.useRef(!1),nn=E(function(){return Jr.current&&we===tn.current?Jr.current:cr(ne.getState(),we)},[ne,Ge,we]);jn(_o,[tn,Ei,Pi,we,nn,Jr,Xr]),jn($o,[p,ne,De,cr,tn,Ei,Pi,Jr,Xr,rn],[ne,De,cr]);var an=D.useMemo(function(){return y(S,U(k({},nn),{ref:ke}))},[ke,S,nn]),Wd=D.useMemo(function(){return p?y(Fe.Provider,{value:Yr,children:an}):an},[Fe,an,Yr]);return Wd}var F=C?W.default.memo(P):P;if(F.WrappedComponent=S,F.displayName=P.displayName=O,v){var Y=W.default.forwardRef(function(se,ue){return y(F,U(k({},se),{reactReduxForwardedRef:ue}))});return Y.displayName=O,Y.WrappedComponent=S,_n(Y,S)}return _n(F,S)}}function Hn(e,r){return e===r?e!==0||r!==0||1/e==1/r:e!==e&&r!==r}function pt(e,r){if(Hn(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var a=0;a<t.length;a++)if(!Object.prototype.hasOwnProperty.call(r,t[a])||!Hn(e[t[a]],r[t[a]]))return!1;return!0}function Go(e,r){var t={},n=function(o){var l=e[o];typeof l=="function"&&(t[o]=function(){return r(l.apply(void 0,arguments))})};for(var a in e)n(a);return t}function ft(e){return function(t,n){var a=e(t,n);function i(){return a}return i.dependsOnOwnProps=!1,i}}function qn(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function Vn(e,r){return function(n,a){a.displayName;var i=function(l,s){return i.dependsOnOwnProps?i.mapToProps(l,s):i.mapToProps(l)};return i.dependsOnOwnProps=!0,i.mapToProps=function(l,s){i.mapToProps=e,i.dependsOnOwnProps=qn(e);var c=i(l,s);return typeof c=="function"&&(i.mapToProps=c,i.dependsOnOwnProps=qn(c),c=i(l,s)),c},i}}function Wo(e){return typeof e=="function"?Vn(e):void 0}function Uo(e){return e?void 0:ft(function(r){return{dispatch:r}})}function jo(e){return e&&typeof e=="object"?ft(function(r){return Go(e,r)}):void 0}var Ho=[Wo,Uo,jo];function qo(e){return typeof e=="function"?Vn(e):void 0}function Vo(e){return e?void 0:ft(function(){return{}})}var zo=[qo,Vo];function Xo(e,r,t){return N({},t,e,r)}function Yo(e){return function(t,n){n.displayName;var a=n.pure,i=n.areMergedPropsEqual,o=!1,l;return function(c,p,u){var d=e(c,p,u);return o?(!a||!i(d,l))&&(l=d):(o=!0,l=d),l}}}function Ko(e){return typeof e=="function"?Yo(e):void 0}function Jo(e){return e?void 0:function(){return Xo}}var Zo=[Ko,Jo],Qo=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function el(e,r,t,n){return function(i,o){return t(e(i,o),r(n,o),o)}}function rl(e,r,t,n,a){var i=a.areStatesEqual,o=a.areOwnPropsEqual,l=a.areStatePropsEqual,s=!1,c,p,u,d,f;function v(x,S){return c=x,p=S,u=e(c,p),d=r(n,p),f=t(u,d,p),s=!0,f}function g(){return u=e(c,p),r.dependsOnOwnProps&&(d=r(n,p)),f=t(u,d,p),f}function b(){return e.dependsOnOwnProps&&(u=e(c,p)),r.dependsOnOwnProps&&(d=r(n,p)),f=t(u,d,p),f}function m(){var x=e(c,p),S=!l(x,u);return u=x,S&&(f=t(u,d,p)),f}function h(x,S){var A=!o(S,p),O=!i(x,c);return c=x,p=S,A&&O?g():A?b():O?m():f}return function(S,A){return s?h(S,A):v(S,A)}}function tl(e,r){var t=r.initMapStateToProps,n=r.initMapDispatchToProps,a=r.initMergeProps,i=vr(r,Qo),o=t(e,i),l=n(e,i),s=a(e,i),c=i.pure?rl:el;return c(o,l,s,e,i)}var nl=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function vt(e,r,t){for(var n=r.length-1;n>=0;n--){var a=r[n](e);if(a)return a}return function(i,o){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+o.wrappedComponentName+".")}}function al(e,r){return e===r}function il(e){var r=e===void 0?{}:e,t=r.connectHOC,n=t===void 0?Fo:t,a=r.mapStateToPropsFactories,i=a===void 0?zo:a,o=r.mapDispatchToPropsFactories,l=o===void 0?Ho:o,s=r.mergePropsFactories,c=s===void 0?Zo:s,p=r.selectorFactory,u=p===void 0?tl:p;return function(f,v,g,b){b===void 0&&(b={});var m=b,h=m.pure,x=h===void 0?!0:h,S=m.areStatesEqual,A=S===void 0?al:S,O=m.areOwnPropsEqual,M=O===void 0?pt:O,C=m.areStatePropsEqual,w=C===void 0?pt:C,E=m.areMergedPropsEqual,P=E===void 0?pt:E,F=vr(m,nl),Y=vt(f,i,"mapStateToProps"),G=vt(v,l,"mapDispatchToProps"),se=vt(g,c,"mergeProps");return n(u,N({methodName:"connect",getDisplayName:function(ke){return"Connect("+ke+")"},shouldHandleStateChanges:Boolean(f),initMapStateToProps:Y,initMapDispatchToProps:G,initMergeProps:se,pure:x,areStatesEqual:A,areOwnPropsEqual:M,areStatePropsEqual:w,areMergedPropsEqual:P},F))}}var zn=il();ao(V.unstable_batchedUpdates);function ol(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function Xn(e,r){var t=D.useState(function(){return{inputs:r,result:e()}})[0],n=D.useRef(!0),a=D.useRef(t),i=n.current||Boolean(r&&a.current.inputs&&ol(r,a.current.inputs)),o=i?a.current:{inputs:r,result:e()};return D.useEffect(function(){n.current=!1,a.current=o},[o]),o.result}function ll(e,r){return Xn(function(){return e},r)}var L=Xn,B=ll,sl=!0,gt="Invariant failed";function ul(e,r){if(!e){if(sl)throw new Error(gt);var t=typeof r=="function"?r():r,n=t?gt+": "+t:gt;throw new Error(n)}}var de=function(r){var t=r.top,n=r.right,a=r.bottom,i=r.left,o=n-i,l=a-t,s={top:t,right:n,bottom:a,left:i,width:o,height:l,x:i,y:t,center:{x:(n+i)/2,y:(a+t)/2}};return s},mt=function(r,t){return{top:r.top-t.top,left:r.left-t.left,bottom:r.bottom+t.bottom,right:r.right+t.right}},Yn=function(r,t){return{top:r.top+t.top,left:r.left+t.left,bottom:r.bottom-t.bottom,right:r.right-t.right}},cl=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},bt={top:0,right:0,bottom:0,left:0},ht=function(r){var t=r.borderBox,n=r.margin,a=n===void 0?bt:n,i=r.border,o=i===void 0?bt:i,l=r.padding,s=l===void 0?bt:l,c=de(mt(t,a)),p=de(Yn(t,o)),u=de(Yn(p,s));return{marginBox:c,borderBox:de(t),paddingBox:p,contentBox:u,margin:a,border:o,padding:s}},ie=function(r){var t=r.slice(0,-2),n=r.slice(-2);if(n!=="px")return 0;var a=Number(t);return isNaN(a)&&ul(!1),a},dl=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Pr=function(r,t){var n=r.borderBox,a=r.border,i=r.margin,o=r.padding,l=cl(n,t);return ht({borderBox:l,border:a,margin:i,padding:o})},Ar=function(r,t){return t===void 0&&(t=dl()),Pr(r,t)},Kn=function(r,t){var n={top:ie(t.marginTop),right:ie(t.marginRight),bottom:ie(t.marginBottom),left:ie(t.marginLeft)},a={top:ie(t.paddingTop),right:ie(t.paddingRight),bottom:ie(t.paddingBottom),left:ie(t.paddingLeft)},i={top:ie(t.borderTopWidth),right:ie(t.borderRightWidth),bottom:ie(t.borderBottomWidth),left:ie(t.borderLeftWidth)};return ht({borderBox:r,margin:n,padding:a,border:i})},Jn=function(r){var t=r.getBoundingClientRect(),n=window.getComputedStyle(r);return Kn(t,n)},Zn=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function pl(e,r){return!!(e===r||Zn(e)&&Zn(r))}function fl(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!pl(e[t],r[t]))return!1;return!0}function H(e,r){r===void 0&&(r=fl);var t,n=[],a,i=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return i&&t===this&&r(l,n)||(a=e.apply(this,l),i=!0,t=this,n=l),a}return o}var vl=function(r){var t=[],n=null,a=function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];t=l,!n&&(n=requestAnimationFrame(function(){n=null,r.apply(void 0,t)}))};return a.cancel=function(){!n||(cancelAnimationFrame(n),n=null)},a},Ze=vl;function Qn(e,r){}Qn.bind(null,"warn"),Qn.bind(null,"error");function ge(){}function gl(e,r){return N({},e,{},r)}function oe(e,r,t){var n=r.map(function(a){var i=gl(t,a.options);return e.addEventListener(a.eventName,a.fn,i),function(){e.removeEventListener(a.eventName,a.fn,i)}});return function(){n.forEach(function(i){i()})}}var ml="Invariant failed";function Or(e){this.message=e}Or.prototype.toString=function(){return this.message};function I(e,r){if(!e)throw new Or(ml)}var bl=function(e){fn(r,e);function r(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i))||this,n.callbacks=null,n.unbind=ge,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var c=l.error;c instanceof Or&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var t=r.prototype;return t.componentDidMount=function(){this.unbind=oe(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(a){if(a instanceof Or){this.setState({});return}throw a},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(W.default.Component),hl=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,Br=function(r){return r+1},yl=function(r){return` You have lifted an item in position `+Br(r.source.index)+` `},ea=function(r,t){var n=r.droppableId===t.droppableId,a=Br(r.index),i=Br(t.index);return n?` You have moved the item from position `+a+` to position `+i+` `:` You have moved the item from position `+a+` in list `+r.droppableId+` to list `+t.droppableId+` in position `+i+` `},ra=function(r,t,n){var a=t.droppableId===n.droppableId;return a?` The item `+r+` has been combined with `+n.draggableId:` The item `+r+` in list `+t.droppableId+` has been combined with `+n.draggableId+` in list `+n.droppableId+` `},wl=function(r){var t=r.destination;if(t)return ea(r.source,t);var n=r.combine;return n?ra(r.draggableId,r.source,n):"You are over an area that cannot be dropped on"},ta=function(r){return` The item has returned to its starting position of `+Br(r.index)+` `},Dl=function(r){if(r.reason==="CANCEL")return` Movement cancelled. `+ta(r.source)+` `;var t=r.destination,n=r.combine;return t?` You have dropped the item. `+ea(r.source,t)+` `:n?` You have dropped the item. `+ra(r.draggableId,r.source,n)+` `:` The item has been dropped while not over a drop area. `+ta(r.source)+` `},Nr={dragHandleUsageInstructions:hl,onDragStart:yl,onDragUpdate:wl,onDragEnd:Dl},q={x:0,y:0},X=function(r,t){return{x:r.x+t.x,y:r.y+t.y}},ee=function(r,t){return{x:r.x-t.x,y:r.y-t.y}},me=function(r,t){return r.x===t.x&&r.y===t.y},Ne=function(r){return{x:r.x!==0?-r.x:0,y:r.y!==0?-r.y:0}},Se=function(r,t,n){var a;return n===void 0&&(n=0),a={},a[r]=t,a[r==="x"?"y":"x"]=n,a},Qe=function(r,t){return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))},na=function(r,t){return Math.min.apply(Math,t.map(function(n){return Qe(r,n)}))},aa=function(r){return function(t){return{x:r(t.x),y:r(t.y)}}},xl=function(e,r){var t=de({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t},er=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},ia=function(r){return[{x:r.left,y:r.top},{x:r.right,y:r.top},{x:r.left,y:r.bottom},{x:r.right,y:r.bottom}]},Sl={top:0,right:0,bottom:0,left:0},Il=function(r,t){return t?er(r,t.scroll.diff.displacement):r},Cl=function(r,t,n){if(n&&n.increasedBy){var a;return N({},r,(a={},a[t.end]=r[t.end]+n.increasedBy[t.line],a))}return r},El=function(r,t){return t&&t.shouldClipSubject?xl(t.pageMarginBox,r):de(r)},Te=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,a=e.frame,i=Il(r.marginBox,a),o=Cl(i,n,t),l=El(o,a);return{page:r,withPlaceholder:t,active:l}},yt=function(e,r){e.frame||I(!1);var t=e.frame,n=ee(r,t.scroll.initial),a=Ne(n),i=N({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:a},max:t.scroll.max}}),o=Te({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i}),l=N({},e,{frame:i,subject:o});return l};function Tr(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function wt(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function be(e,r){if(e.find)return e.find(r);var t=wt(e,r);if(t!==-1)return e[t]}function oa(e){return Array.prototype.slice.call(e)}var la=H(function(e){return e.reduce(function(r,t){return r[t.descriptor.id]=t,r},{})}),sa=H(function(e){return e.reduce(function(r,t){return r[t.descriptor.id]=t,r},{})}),Mr=H(function(e){return Tr(e)}),Pl=H(function(e){return Tr(e)}),Me=H(function(e,r){var t=Pl(r).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,a){return n.descriptor.index-a.descriptor.index});return t});function Dt(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Lr(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Rr=H(function(e,r){return r.filter(function(t){return t.descriptor.id!==e.descriptor.id})}),Al=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,a=e.insideDestination,i=e.previousImpact;if(!n.isCombineEnabled)return null;var o=Dt(i);if(!o)return null;function l(g){var b={type:"COMBINE",combine:{draggableId:g,droppableId:n.descriptor.id}};return N({},i,{at:b})}var s=i.displaced.all,c=s.length?s[0]:null;if(r)return c?l(c):null;var p=Rr(t,a);if(!c){if(!p.length)return null;var u=p[p.length-1];return l(u.descriptor.id)}var d=wt(p,function(g){return g.descriptor.id===c});d===-1&&I(!1);var f=d-1;if(f<0)return null;var v=p[f];return l(v.descriptor.id)},Le=function(e,r){return e.descriptor.droppableId===r.descriptor.id},ua={point:q,value:0},rr={invisible:{},visible:{},all:[]},Ol={displaced:rr,displacedBy:ua,at:null},le=function(e,r){return function(t){return e<=t&&t<=r}},ca=function(e){var r=le(e.top,e.bottom),t=le(e.left,e.right);return function(n){var a=r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right);if(a)return!0;var i=r(n.top)||r(n.bottom),o=t(n.left)||t(n.right),l=i&&o;if(l)return!0;var s=n.top<e.top&&n.bottom>e.bottom,c=n.left<e.left&&n.right>e.right,p=s&&c;if(p)return!0;var u=s&&o||c&&i;return u}},Bl=function(e){var r=le(e.top,e.bottom),t=le(e.left,e.right);return function(n){var a=r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right);return a}},xt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},da={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Nl=function(e){return function(r){var t=le(r.top,r.bottom),n=le(r.left,r.right);return function(a){return e===xt?t(a.top)&&t(a.bottom):n(a.left)&&n(a.right)}}},Tl=function(r,t){var n=t.frame?t.frame.scroll.diff.displacement:q;return er(r,n)},Ml=function(r,t,n){return t.subject.active?n(t.subject.active)(r):!1},Ll=function(r,t,n){return n(t)(r)},St=function(r){var t=r.target,n=r.destination,a=r.viewport,i=r.withDroppableDisplacement,o=r.isVisibleThroughFrameFn,l=i?Tl(t,n):t;return Ml(l,n,o)&&Ll(l,a,o)},Rl=function(r){return St(N({},r,{isVisibleThroughFrameFn:ca}))},pa=function(r){return St(N({},r,{isVisibleThroughFrameFn:Bl}))},_l=function(r){return St(N({},r,{isVisibleThroughFrameFn:Nl(r.destination.axis)}))},$l=function(r,t,n){if(typeof n=="boolean")return n;if(!t)return!0;var a=t.invisible,i=t.visible;if(a[r])return!1;var o=i[r];return o?o.shouldAnimate:!0};function kl(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return de(mt(t,n))}function tr(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,a=e.viewport,i=e.forceShouldAnimate,o=e.last;return r.reduce(function(s,c){var p=kl(c,n),u=c.descriptor.id;s.all.push(u);var d=Rl({target:p,destination:t,viewport:a,withDroppableDisplacement:!0});if(!d)return s.invisible[c.descriptor.id]=!0,s;var f=$l(u,o,i),v={draggableId:u,shouldAnimate:f};return s.visible[u]=v,s},{all:[],visible:{},invisible:{}})}function Fl(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}function fa(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,a=e.destination,i=Fl(r,{inHomeList:t});return{displaced:rr,displacedBy:n,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:i}}}}function _r(e){var r=e.draggable,t=e.insideDestination,n=e.destination,a=e.viewport,i=e.displacedBy,o=e.last,l=e.index,s=e.forceShouldAnimate,c=Le(r,n);if(l==null)return fa({insideDestination:t,inHomeList:c,displacedBy:i,destination:n});var p=be(t,function(g){return g.descriptor.index===l});if(!p)return fa({insideDestination:t,inHomeList:c,displacedBy:i,destination:n});var u=Rr(r,t),d=t.indexOf(p),f=u.slice(d),v=tr({afterDragging:f,destination:n,displacedBy:i,last:o,viewport:a.frame,forceShouldAnimate:s});return{displaced:v,displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function he(e,r){return Boolean(r.effected[e])}var Gl=function(e){var r=e.isMovingForward,t=e.destination,n=e.draggables,a=e.combine,i=e.afterCritical;if(!t.isCombineEnabled)return null;var o=a.draggableId,l=n[o],s=l.descriptor.index,c=he(o,i);return c?r?s:s-1:r?s+1:s},Wl=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,a=e.location;if(!n.length)return null;var i=a.index,o=r?i+1:i-1,l=n[0].descriptor.index,s=n[n.length-1].descriptor.index,c=t?s:s+1;return o<l||o>c?null:o},Ul=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,a=e.draggables,i=e.destination,o=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,p=l.at;if(p||I(!1),p.type==="REORDER"){var u=Wl({isMovingForward:r,isInHomeList:t,location:p.destination,insideDestination:o});return u==null?null:_r({draggable:n,insideDestination:o,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:u})}var d=Gl({isMovingForward:r,destination:i,displaced:l.displaced,draggables:a,combine:p.combine,afterCritical:c});return d==null?null:_r({draggable:n,insideDestination:o,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})},jl=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,a=e.displacedBy,i=Boolean(r.visible[n]||r.invisible[n]);return he(n,t)?i?q:Ne(a.point):i?a.point:q},Hl=function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,a=Lr(t);a||I(!1);var i=a.draggableId,o=n[i].page.borderBox.center,l=jl({displaced:t.displaced,afterCritical:r,combineWith:i,displacedBy:t.displacedBy});return X(o,l)},va=function(r,t){return t.margin[r.start]+t.borderBox[r.size]/2},ql=function(r,t){return t.margin[r.end]+t.borderBox[r.size]/2},It=function(r,t,n){return t[r.crossAxisStart]+n.margin[r.crossAxisStart]+n.borderBox[r.crossAxisSize]/2},ga=function(r){var t=r.axis,n=r.moveRelativeTo,a=r.isMoving;return Se(t.line,n.marginBox[t.end]+va(t,a),It(t,n.marginBox,a))},ma=function(r){var t=r.axis,n=r.moveRelativeTo,a=r.isMoving;return Se(t.line,n.marginBox[t.start]-ql(t,a),It(t,n.marginBox,a))},Vl=function(r){var t=r.axis,n=r.moveInto,a=r.isMoving;return Se(t.line,n.contentBox[t.start]+va(t,a),It(t,n.contentBox,a))},zl=function(e){var r=e.impact,t=e.draggable,n=e.draggables,a=e.droppable,i=e.afterCritical,o=Me(a.descriptor.id,n),l=t.page,s=a.axis;if(!o.length)return Vl({axis:s,moveInto:a.page,isMoving:l});var c=r.displaced,p=r.displacedBy,u=c.all[0];if(u){var d=n[u];if(he(u,i))return ma({axis:s,moveRelativeTo:d.page,isMoving:l});var f=Pr(d.page,p.point);return ma({axis:s,moveRelativeTo:f,isMoving:l})}var v=o[o.length-1];if(v.descriptor.id===t.descriptor.id)return l.borderBox.center;if(he(v.descriptor.id,i)){var g=Pr(v.page,Ne(i.displacedBy.point));return ga({axis:s,moveRelativeTo:g,isMoving:l})}return ga({axis:s,moveRelativeTo:v.page,isMoving:l})},C