@arkyn/components 1.3.135 → 1.3.139

Sign up to get free protection for your applications and to get access to all the features.
@@ -89,26 +89,26 @@ React keys must be passed directly to JSX without using spread:
89
89
  `?f.createElement(oc,{isTrailing:!0,text:n.text}):f.createElement(oc,{text:n.text})},oc=t=>{var{text:e,isTrailing:n=!1}=t,r=f.useRef(null),i=()=>"".concat(e??"").concat(n?`
90
90
  `:""),[o]=f.useState(i);return dr(()=>{var s=i();r.current&&r.current.textContent!==s&&(r.current.textContent=s)}),f.createElement(_0,{ref:r},o)},_0=f.memo(f.forwardRef((t,e)=>f.createElement("span",{"data-slate-string":!0,ref:e},t.children))),qo=t=>{var{length:e=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=t,i={"data-slate-zero-width":n?"n":"z","data-slate-length":e};return r&&(i["data-slate-mark-placeholder"]=!0),f.createElement("span",j0({},i),!(ct||Wl)||!n?"\uFEFF":null,n?f.createElement("br",null):null)};function sc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sc(Object(n),!0).forEach(function(r){wt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var z0=ct?300:0;function W0(t,e){t.current&&(t.current.disconnect(),e&&(t.current=null))}function uc(t){t.current&&(clearTimeout(t.current),t.current=null)}var U0=t=>{var{leaf:e,isLast:n,text:r,parent:i,renderPlaceholder:o,renderLeaf:s=B=>f.createElement(R0,ac({},B))}=t,a=Yt(),u=f.useRef(null),l=f.useRef(null),[c,p]=f.useState(!1),h=f.useRef(null),g=f.useCallback(B=>{if(W0(u,B==null),B==null){var b;jo.delete(a),(b=e.onPlaceholderResize)===null||b===void 0||b.call(e,null)}else{if(jo.set(a,B),!u.current){var O=window.ResizeObserver||Gy;u.current=new O(()=>{var E;(E=e.onPlaceholderResize)===null||E===void 0||E.call(e,B)})}u.current.observe(B),l.current=B}},[l,e,a]),y=f.createElement(N0,{isLast:n,leaf:e,parent:i,text:r}),v=!!e[In];if(f.useEffect(()=>(v?h.current||(h.current=setTimeout(()=>{p(!0),h.current=null},z0)):(uc(h),p(!1)),()=>uc(h)),[v,p]),v&&c){var d={children:e.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Dn?"inherit":void 0},contentEditable:!1,ref:g}};y=f.createElement(f.Fragment,null,o(d),y)}var D={"data-slate-leaf":!0};return s({attributes:D,children:y,leaf:e,text:r})},H0=f.memo(U0,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&ce.equals(e.leaf,t.leaf)&&e.leaf[In]===t.leaf[In]),R0=t=>{var{attributes:e,children:n}=t;return f.createElement("span",ac({},e),n)},V0=t=>{for(var{decorations:e,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:o,text:s}=t,a=Yt(),u=f.useRef(null),l=ce.decorations(s,e),c=Z.findKey(a,s),p=[],h=0;h<l.length;h++){var g=l[h];p.push(f.createElement(H0,{isLast:n&&h===l.length-1,key:"".concat(c.id,"-").concat(h),renderPlaceholder:i,leaf:g,text:s,parent:r,renderLeaf:o}))}var y=f.useCallback(v=>{var d=ni.get(a);v?(d==null||d.set(c,v),En.set(s,v),lr.set(v,s)):(d==null||d.delete(c),En.delete(s),u.current&&lr.delete(u.current)),u.current=v},[u,a,c,s]);return f.createElement("span",{"data-slate-node":"text",ref:y},p)},lc=f.memo(V0,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&I0(e.decorations,t.decorations));function cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Go(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cc(Object(n),!0).forEach(function(r){wt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var q0=t=>{var{decorations:e,element:n,renderElement:r=B=>f.createElement(Z0,Go({},B)),renderPlaceholder:i,renderLeaf:o,selection:s}=t,a=Yt(),u=X0(),l=a.isInline(n),c=Z.findKey(a,n),p=f.useCallback(B=>{var b=ni.get(a);B?(b==null||b.set(c,B),En.set(n,B),lr.set(B,n)):(b==null||b.delete(c),En.delete(n))},[a,c,n]),h=dc({decorations:e,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:s}),g={"data-slate-node":"element",ref:p};if(l&&(g["data-slate-inline"]=!0),!l&&m.hasInlines(a,n)){var y=ne.string(n),v=cl(y);v==="rtl"&&(g.dir=v)}if(m.isVoid(a,n)){g["data-slate-void"]=!0,!u&&l&&(g.contentEditable=!1);var d=l?"span":"div",[[D]]=ne.texts(n);h=f.createElement(d,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},f.createElement(lc,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:D})),To.set(D,0),Io.set(D,n)}return r({attributes:g,children:h,element:n})},G0=f.memo(q0,(t,e)=>t.element===e.element&&t.renderElement===e.renderElement&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&T0(t.decorations,e.decorations)&&(t.selection===e.selection||!!t.selection&&!!e.selection&&V.equals(t.selection,e.selection))),Z0=t=>{var{attributes:e,children:n,element:r}=t,i=Yt(),o=i.isInline(r)?"span":"div";return f.createElement(o,Go(Go({},e),{},{style:{position:"relative"}}),n)},fc=f.createContext(()=>[]),Y0=()=>f.useContext(fc),K0=f.createContext(!1),dc=t=>{for(var{decorations:e,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:s}=t,a=Y0(),u=Yt(),l=Z.findPath(u,n),c=[],p=ue.isElement(n)&&!u.isInline(n)&&m.hasInlines(u,n),h=0;h<n.children.length;h++){var g=l.concat(h),y=n.children[h],v=Z.findKey(u,y),d=m.range(u,g),D=s&&V.intersection(d,s),B=a([y,g]);for(var b of e){var O=V.intersection(b,d);O&&B.push(O)}ue.isElement(y)?c.push(f.createElement(K0.Provider,{key:"provider-".concat(v.id),value:!!D},f.createElement(G0,{decorations:B,element:y,key:v.id,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:D}))):c.push(f.createElement(lc,{decorations:B,key:v.id,isLast:p&&h===n.children.length-1,parent:n,renderPlaceholder:i,renderLeaf:o,text:y})),To.set(y,h),Io.set(y,n)}return c},pc=f.createContext(!1),X0=()=>f.useContext(pc),hc=f.createContext(null),Zo=()=>{var t=f.useContext(hc);if(!t)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:e}=t;return e};function J0(){var t=Yt(),e=f.useRef(!1),n=f.useRef(0),r=f.useCallback(()=>{if(!e.current){e.current=!0;var i=Z.getWindow(t);i.cancelAnimationFrame(n.current),n.current=i.requestAnimationFrame(()=>{e.current=!1})}},[t]);return f.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:e,onUserInput:r}}var Q0=3,$0={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},eC={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},tC={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Ve=t=>{var e=$0[t],n=eC[t],r=tC[t],i=e&&ao(e),o=n&&ao(n),s=r&&ao(r);return a=>!!(i&&i(a)||Ul&&o&&o(a)||!Ul&&s&&s(a))},Ze={isBold:Ve("bold"),isCompose:Ve("compose"),isMoveBackward:Ve("moveBackward"),isMoveForward:Ve("moveForward"),isDeleteBackward:Ve("deleteBackward"),isDeleteForward:Ve("deleteForward"),isDeleteLineBackward:Ve("deleteLineBackward"),isDeleteLineForward:Ve("deleteLineForward"),isDeleteWordBackward:Ve("deleteWordBackward"),isDeleteWordForward:Ve("deleteWordForward"),isExtendBackward:Ve("extendBackward"),isExtendForward:Ve("extendForward"),isExtendLineBackward:Ve("extendLineBackward"),isExtendLineForward:Ve("extendLineForward"),isItalic:Ve("italic"),isMoveLineBackward:Ve("moveLineBackward"),isMoveLineForward:Ve("moveLineForward"),isMoveWordBackward:Ve("moveWordBackward"),isMoveWordForward:Ve("moveWordForward"),isRedo:Ve("redo"),isSoftBreak:Ve("insertSoftBreak"),isSplitBlock:Ve("splitBlock"),isTransposeCharacter:Ve("transposeCharacter"),isUndo:Ve("undo")},nC=(t,e)=>{var n=[],r=()=>{n=[]},i=s=>{if(e.current){var a=s.filter(u=>Ho(t,u,s));n.push(...a)}};function o(){n.length>0&&(n.reverse().forEach(s=>{s.type!=="characterData"&&(s.removedNodes.forEach(a=>{s.target.insertBefore(a,s.nextSibling)}),s.addedNodes.forEach(a=>{s.target.removeChild(a)}))}),r())}return{registerMutations:i,restoreDOM:o,clear:r}},rC={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class vc extends f.Component{constructor(){super(...arguments),wt(this,"context",null),wt(this,"manager",null),wt(this,"mutationObserver",null)}observe(){var e,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(e=this.mutationObserver)===null||e===void 0||e.observe(n.current,rC)}componentDidMount(){var{receivedUserInput:e}=this.props,n=this.context;this.manager=nC(n,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,n,r,i=(e=this.mutationObserver)===null||e===void 0?void 0:e.takeRecords();if(i!=null&&i.length){var o;(o=this.manager)===null||o===void 0||o.registerMutations(i)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var e;(e=this.manager)===null||e===void 0||e.clear(),this.observe()}componentWillUnmount(){var e;(e=this.mutationObserver)===null||e===void 0||e.disconnect()}render(){return this.props.children}}wt(vc,"contextType",Fo);var iC=ct?vc:t=>{var{children:e}=t;return f.createElement(f.Fragment,null,e)},oC=f.createContext(!1),sC=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],aC=["text"];function gc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ft(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gc(Object(n),!0).forEach(function(r){wt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var uC=t=>f.createElement(f.Fragment,null,dc(t)),lC=f.forwardRef((t,e)=>{var n=f.useCallback(C=>f.createElement(cC,Ft({},C)),[]),{autoFocus:r,decorate:i=fC,onDOMBeforeInput:o,placeholder:s,readOnly:a=!1,renderElement:u,renderLeaf:l,renderPlaceholder:c=n,scrollSelectionIntoView:p=dC,style:h={},as:g="div",disableDefaultStyles:y=!1}=t,v=kn(t,sC),d=Zo(),[D,B]=f.useState(!1),b=f.useRef(null),O=f.useRef([]),[E,w]=f.useState(),A=f.useRef(!1),{onUserInput:F,receivedUserInput:R}=J0(),[,P]=f.useReducer(C=>C+1,0);Vl.set(d,P),No.set(d,a);var z=f.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);f.useEffect(()=>{b.current&&r&&b.current.focus()},[r]);var I=f.useRef(),j=f.useMemo(()=>by(()=>{var C=Z.toDOMNode(d,d),W=C.getRootNode();if(!A.current&&Dn&&W instanceof ShadowRoot){A.current=!0;var U=c0();U?document.execCommand("indent"):Q.deselect(d),A.current=!1;return}var M=I.current;if((ct||!Z.isComposing(d))&&(!z.isUpdatingSelection||M!=null&&M.isFlushing())&&!z.isDraggingInternally){var X=Z.findDocumentOrShadowRoot(d),{activeElement:te}=X,G=Z.toDOMNode(d,d),le=fr(X);if(te===G?(z.latestElement=te,Xt.set(d,!0)):Xt.delete(d),!le)return Q.deselect(d);var{anchorNode:se,focusNode:pe}=le,ve=Z.hasEditableTarget(d,se)||Z.isTargetInsideNonReadonlyVoid(d,se),Ce=Z.hasTarget(d,pe);if(ve&&Ce){var me=Z.toSlateRange(d,le,{exactMatch:!1,suppressThrow:!0});me&&(!Z.isComposing(d)&&!(M!=null&&M.hasPendingChanges())&&!(M!=null&&M.isFlushing())?Q.select(d,me):M==null||M.handleUserSelect(me))}a&&(!ve||!Ce)&&Q.deselect(d)}},100),[d,a,z]),T=f.useMemo(()=>gy(j,0),[j]);I.current=P0({node:b,onDOMSelectionChange:j,scheduleOnDOMSelectionChange:T}),dr(()=>{var C,W,U;b.current&&(U=Wo(b.current))?(Rl.set(d,U),ei.set(d,b.current),En.set(d,b.current),lr.set(b.current,d)):En.delete(d);var{selection:M}=d,X=Z.findDocumentOrShadowRoot(d),te=fr(X);if(!(!te||!Z.isFocused(d)||(C=I.current)!==null&&C!==void 0&&C.hasPendingAction())){var G=ve=>{var Ce=te.type!=="None";if(!(!M&&!Ce)){var me=te.focusNode,De;if(Tn&&te.rangeCount>1){var ge=te.getRangeAt(0),Ne=te.getRangeAt(te.rangeCount-1);ge.startContainer===me?De=Ne.endContainer:De=ge.startContainer}else De=te.anchorNode;var ae=ei.get(d),Ue=!1;if(ae.contains(De)&&ae.contains(me)&&(Ue=!0),Ce&&Ue&&M&&!ve){var de=Z.toSlateRange(d,te,{exactMatch:!0,suppressThrow:!0});if(de&&V.equals(de,M)){var we;if(!z.hasMarkPlaceholder||(we=De)!==null&&we!==void 0&&(we=we.parentElement)!==null&&we!==void 0&&we.hasAttribute("data-slate-mark-placeholder"))return}}if(M&&!Z.hasRange(d,M)){d.selection=Z.toSlateRange(d,te,{exactMatch:!1,suppressThrow:!0});return}z.isUpdatingSelection=!0;var Te=M&&Z.toDOMRange(d,M);return Te?(Z.isComposing(d)&&!ct?te.collapseToEnd():V.isBackward(M)?te.setBaseAndExtent(Te.endContainer,Te.endOffset,Te.startContainer,Te.startOffset):te.setBaseAndExtent(Te.startContainer,Te.startOffset,Te.endContainer,Te.endOffset),p(d,Te)):te.removeAllRanges(),Te}};te.rangeCount<=1&&G();var le=((W=I.current)===null||W===void 0?void 0:W.isFlushing())==="action";if(!ct||!le){setTimeout(()=>{z.isUpdatingSelection=!1});return}var se=null,pe=requestAnimationFrame(()=>{if(le){var ve=Ce=>{try{var me=Z.toDOMNode(d,d);me.focus(),G(Ce)}catch{}};ve(),se=setTimeout(()=>{ve(!0),z.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(pe),se&&clearTimeout(se)}}});var N=f.useCallback(C=>{var W=Z.toDOMNode(d,d),U=W.getRootNode();if(A!=null&&A.current&&Dn&&U instanceof ShadowRoot){var M=C.getTargetRanges(),X=M[0],te=new window.Range;te.setStart(X.startContainer,X.startOffset),te.setEnd(X.endContainer,X.endOffset);var G=Z.toSlateRange(d,te,{exactMatch:!1,suppressThrow:!1});Q.select(d,G),C.preventDefault(),C.stopImmediatePropagation();return}if(F(),!a&&Z.hasEditableTarget(d,C.target)&&!pC(C,o)){var le;if(I.current)return I.current.handleDOMBeforeInput(C);T.flush(),j.flush();var{selection:se}=d,{inputType:pe}=C,ve=C.dataTransfer||C.data||void 0,Ce=pe==="insertCompositionText"||pe==="deleteCompositionText";if(Ce&&Z.isComposing(d))return;var me=!1;if(pe==="insertText"&&se&&V.isCollapsed(se)&&C.data&&C.data.length===1&&/[a-z ]/i.test(C.data)&&se.anchor.offset!==0){var De,ge;me=!0,d.marks&&(me=!1);var{anchor:Ne}=se,[ae,Ue]=Z.toDOMPoint(d,Ne),de=(De=ae.parentElement)===null||De===void 0?void 0:De.closest("a"),we=Z.getWindow(d);if(me&&de&&Z.hasDOMNode(d,de)){var Te,Xe=we==null?void 0:we.document.createTreeWalker(de,NodeFilter.SHOW_TEXT).lastChild();Xe===ae&&((Te=Xe.textContent)===null||Te===void 0?void 0:Te.length)===Ue&&(me=!1)}if(me&&ae.parentElement&&(we==null||(ge=we.getComputedStyle(ae.parentElement))===null||ge===void 0?void 0:ge.whiteSpace)==="pre"){var $e=m.above(d,{at:Ne.path,match:Lt=>ue.isElement(Lt)&&m.isBlock(d,Lt)});$e&&ne.string($e[0]).includes(" ")&&(me=!1)}}if(!pe.startsWith("delete")||pe.startsWith("deleteBy")){var[xe]=C.getTargetRanges();if(xe){var pt=Z.toSlateRange(d,xe,{exactMatch:!1,suppressThrow:!1});if(!se||!V.equals(se,pt)){me=!1;var st=!Ce&&d.selection&&m.rangeRef(d,d.selection);Q.select(d,pt),st&&cr.set(d,st)}}}if(Ce)return;if(me||C.preventDefault(),se&&V.isExpanded(se)&&pe.startsWith("delete")){var an=pe.endsWith("Backward")?"backward":"forward";m.deleteFragment(d,{direction:an});return}switch(pe){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{m.deleteFragment(d);break}case"deleteContent":case"deleteContentForward":{m.deleteForward(d);break}case"deleteContentBackward":{m.deleteBackward(d);break}case"deleteEntireSoftLine":{m.deleteBackward(d,{unit:"line"}),m.deleteForward(d,{unit:"line"});break}case"deleteHardLineBackward":{m.deleteBackward(d,{unit:"block"});break}case"deleteSoftLineBackward":{m.deleteBackward(d,{unit:"line"});break}case"deleteHardLineForward":{m.deleteForward(d,{unit:"block"});break}case"deleteSoftLineForward":{m.deleteForward(d,{unit:"line"});break}case"deleteWordBackward":{m.deleteBackward(d,{unit:"word"});break}case"deleteWordForward":{m.deleteForward(d,{unit:"word"});break}case"insertLineBreak":m.insertSoftBreak(d);break;case"insertParagraph":{m.insertBreak(d);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{pe==="insertFromComposition"&&Z.isComposing(d)&&(B(!1),bn.set(d,!1)),(ve==null?void 0:ve.constructor.name)==="DataTransfer"?Z.insertData(d,ve):typeof ve=="string"&&(me?O.current.push(()=>m.insertText(d,ve)):m.insertText(d,ve));break}}var xt=(le=cr.get(d))===null||le===void 0?void 0:le.unref();cr.delete(d),xt&&(!d.selection||!V.equals(d.selection,xt))&&Q.select(d,xt)}},[d,j,F,o,a,T]),K=f.useCallback(C=>{C==null?(j.cancel(),T.cancel(),ei.delete(d),En.delete(d),b.current&&Kt&&b.current.removeEventListener("beforeinput",N)):Kt&&C.addEventListener("beforeinput",N),b.current=C,typeof e=="function"?e(C):e&&(e.current=C)},[j,T,d,N,e]);dr(()=>{var C=Z.getWindow(d);C.document.addEventListener("selectionchange",T);var W=()=>{z.isDraggingInternally=!1};return C.document.addEventListener("dragend",W),C.document.addEventListener("drop",W),()=>{C.document.removeEventListener("selectionchange",T),C.document.removeEventListener("dragend",W),C.document.removeEventListener("drop",W)}},[T,z]);var _=i([d,[]]),ie=s&&d.children.length===1&&Array.from(ne.texts(d)).length===1&&ne.string(d)===""&&!D,re=f.useCallback(C=>{if(C&&ie){var W;w((W=C.getBoundingClientRect())===null||W===void 0?void 0:W.height)}else w(void 0)},[ie]);if(ie){var k=m.start(d,[]);_.push({[In]:!0,placeholder:s,onPlaceholderResize:re,anchor:k,focus:k})}var{marks:H}=d;if(z.hasMarkPlaceholder=!1,d.selection&&V.isCollapsed(d.selection)&&H){var{anchor:J}=d.selection,q=ne.leaf(d,J.path),ee=kn(q,aC);if(!ce.equals(q,H,{loose:!0})){z.hasMarkPlaceholder=!0;var Y=Object.fromEntries(Object.keys(ee).map(C=>[C,null]));_.push(Ft(Ft(Ft({[ql]:!0},Y),H),{},{anchor:J,focus:J}))}}return f.useEffect(()=>{setTimeout(()=>{var{selection:C}=d;if(C){var{anchor:W}=C,U=ne.leaf(d,W.path);if(H&&!ce.equals(U,H,{loose:!0})){St.set(d,H);return}}St.delete(d)})}),f.createElement(pc.Provider,{value:a},f.createElement(oC.Provider,{value:D},f.createElement(fc.Provider,{value:i},f.createElement(iC,{node:b,receivedUserInput:R},f.createElement(g,Ft(Ft({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},v),{},{spellCheck:Kt||!$r?v.spellCheck:!1,autoCorrect:Kt||!$r?v.autoCorrect:"false",autoCapitalize:Kt||!$r?v.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:K,style:Ft(Ft({},y?{}:Ft({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),h),onBeforeInput:f.useCallback(C=>{if(!Kt&&!a&&!ft(C,v.onBeforeInput)&&Z.hasSelectableTarget(d,C.target)&&(C.preventDefault(),!Z.isComposing(d))){var W=C.data;m.insertText(d,W)}},[v.onBeforeInput,d,a]),onInput:f.useCallback(C=>{if(!ft(C,v.onInput)){if(I.current){I.current.handleInput();return}for(var W of O.current)W();O.current=[]}},[v.onInput]),onBlur:f.useCallback(C=>{if(!(a||z.isUpdatingSelection||!Z.hasSelectableTarget(d,C.target)||ft(C,v.onBlur))){var W=Z.findDocumentOrShadowRoot(d);if(z.latestElement!==W.activeElement){var{relatedTarget:U}=C,M=Z.toDOMNode(d,d);if(U!==M&&!(Bt(U)&&U.hasAttribute("data-slate-spacer"))){if(U!=null&&$t(U)&&Z.hasDOMNode(d,U)){var X=Z.toSlateNode(d,U);if(ue.isElement(X)&&!d.isVoid(X))return}if(Dn){var te=fr(W);te==null||te.removeAllRanges()}Xt.delete(d)}}}},[a,z.isUpdatingSelection,z.latestElement,d,v.onBlur]),onClick:f.useCallback(C=>{if(Z.hasTarget(d,C.target)&&!ft(C,v.onClick)&&$t(C.target)){var W=Z.toSlateNode(d,C.target),U=Z.findPath(d,W);if(!m.hasPath(d,U)||ne.get(d,U)!==W)return;if(C.detail===Q0&&U.length>=1){var M=U;if(!(ue.isElement(W)&&m.isBlock(d,W))){var X,te=m.above(d,{match:me=>ue.isElement(me)&&m.isBlock(d,me),at:U});M=(X=te==null?void 0:te[1])!==null&&X!==void 0?X:U.slice(0,1)}var G=m.range(d,M);Q.select(d,G);return}if(a)return;var le=m.start(d,U),se=m.end(d,U),pe=m.void(d,{at:le}),ve=m.void(d,{at:se});if(pe&&ve&&L.equals(pe[1],ve[1])){var Ce=m.range(d,le);Q.select(d,Ce)}}},[d,v.onClick,a]),onCompositionEnd:f.useCallback(C=>{if(Z.hasSelectableTarget(d,C.target)){var W;if(Z.isComposing(d)&&Promise.resolve().then(()=>{B(!1),bn.set(d,!1)}),(W=I.current)===null||W===void 0||W.handleCompositionEnd(C),ft(C,v.onCompositionEnd)||ct)return;if(!Dn&&!$y&&!Wl&&!t0&&!e0&&C.data){var U=St.get(d);St.delete(d),U!==void 0&&(_t.set(d,d.marks),d.marks=U),m.insertText(d,C.data);var M=_t.get(d);_t.delete(d),M!==void 0&&(d.marks=M)}}},[v.onCompositionEnd,d]),onCompositionUpdate:f.useCallback(C=>{Z.hasSelectableTarget(d,C.target)&&!ft(C,v.onCompositionUpdate)&&(Z.isComposing(d)||(B(!0),bn.set(d,!0)))},[v.onCompositionUpdate,d]),onCompositionStart:f.useCallback(C=>{if(Z.hasSelectableTarget(d,C.target)){var W;if((W=I.current)===null||W===void 0||W.handleCompositionStart(C),ft(C,v.onCompositionStart)||ct)return;B(!0);var{selection:U}=d;if(U&&V.isExpanded(U)){m.deleteFragment(d);return}}},[v.onCompositionStart,d]),onCopy:f.useCallback(C=>{Z.hasSelectableTarget(d,C.target)&&!ft(C,v.onCopy)&&!mc(C)&&(C.preventDefault(),Z.setFragmentData(d,C.clipboardData,"copy"))},[v.onCopy,d]),onCut:f.useCallback(C=>{if(!a&&Z.hasSelectableTarget(d,C.target)&&!ft(C,v.onCut)&&!mc(C)){C.preventDefault(),Z.setFragmentData(d,C.clipboardData,"cut");var{selection:W}=d;if(W)if(V.isExpanded(W))m.deleteFragment(d);else{var U=ne.parent(d,W.anchor.path);m.isVoid(d,U)&&Q.delete(d)}}},[a,d,v.onCut]),onDragOver:f.useCallback(C=>{if(Z.hasTarget(d,C.target)&&!ft(C,v.onDragOver)){var W=Z.toSlateNode(d,C.target);ue.isElement(W)&&m.isVoid(d,W)&&C.preventDefault()}},[v.onDragOver,d]),onDragStart:f.useCallback(C=>{if(!a&&Z.hasTarget(d,C.target)&&!ft(C,v.onDragStart)){var W=Z.toSlateNode(d,C.target),U=Z.findPath(d,W),M=ue.isElement(W)&&m.isVoid(d,W)||m.void(d,{at:U,voids:!0});if(M){var X=m.range(d,U);Q.select(d,X)}z.isDraggingInternally=!0,Z.setFragmentData(d,C.dataTransfer,"drag")}},[a,d,v.onDragStart,z]),onDrop:f.useCallback(C=>{if(!a&&Z.hasTarget(d,C.target)&&!ft(C,v.onDrop)){C.preventDefault();var W=d.selection,U=Z.findEventRange(d,C),M=C.dataTransfer;Q.select(d,U),z.isDraggingInternally&&W&&!V.equals(W,U)&&!m.void(d,{at:U,voids:!0})&&Q.delete(d,{at:W}),Z.insertData(d,M),Z.isFocused(d)||Z.focus(d)}},[a,d,v.onDrop,z]),onDragEnd:f.useCallback(C=>{!a&&z.isDraggingInternally&&v.onDragEnd&&Z.hasTarget(d,C.target)&&v.onDragEnd(C)},[a,z,v,d]),onFocus:f.useCallback(C=>{if(!a&&!z.isUpdatingSelection&&Z.hasEditableTarget(d,C.target)&&!ft(C,v.onFocus)){var W=Z.toDOMNode(d,d),U=Z.findDocumentOrShadowRoot(d);if(z.latestElement=U.activeElement,Tn&&C.target!==W){W.focus();return}Xt.set(d,!0)}},[a,z,d,v.onFocus]),onKeyDown:f.useCallback(C=>{if(!a&&Z.hasEditableTarget(d,C.target)){var W;(W=I.current)===null||W===void 0||W.handleKeyDown(C);var{nativeEvent:U}=C;if(Z.isComposing(d)&&U.isComposing===!1&&(bn.set(d,!1),B(!1)),ft(C,v.onKeyDown)||Z.isComposing(d))return;var{selection:M}=d,X=d.children[M!==null?M.focus.path[0]:0],te=cl(ne.string(X))==="rtl";if(Ze.isRedo(U)){C.preventDefault();var G=d;typeof G.redo=="function"&&G.redo();return}if(Ze.isUndo(U)){C.preventDefault();var le=d;typeof le.undo=="function"&&le.undo();return}if(Ze.isMoveLineBackward(U)){C.preventDefault(),Q.move(d,{unit:"line",reverse:!0});return}if(Ze.isMoveLineForward(U)){C.preventDefault(),Q.move(d,{unit:"line"});return}if(Ze.isExtendLineBackward(U)){C.preventDefault(),Q.move(d,{unit:"line",edge:"focus",reverse:!0});return}if(Ze.isExtendLineForward(U)){C.preventDefault(),Q.move(d,{unit:"line",edge:"focus"});return}if(Ze.isMoveBackward(U)){C.preventDefault(),M&&V.isCollapsed(M)?Q.move(d,{reverse:!te}):Q.collapse(d,{edge:te?"end":"start"});return}if(Ze.isMoveForward(U)){C.preventDefault(),M&&V.isCollapsed(M)?Q.move(d,{reverse:te}):Q.collapse(d,{edge:te?"start":"end"});return}if(Ze.isMoveWordBackward(U)){C.preventDefault(),M&&V.isExpanded(M)&&Q.collapse(d,{edge:"focus"}),Q.move(d,{unit:"word",reverse:!te});return}if(Ze.isMoveWordForward(U)){C.preventDefault(),M&&V.isExpanded(M)&&Q.collapse(d,{edge:"focus"}),Q.move(d,{unit:"word",reverse:te});return}if(Kt){if((Hl||Dn)&&M&&(Ze.isDeleteBackward(U)||Ze.isDeleteForward(U))&&V.isCollapsed(M)){var se=ne.parent(d,M.anchor.path);if(ue.isElement(se)&&m.isVoid(d,se)&&(m.isInline(d,se)||m.isBlock(d,se))){C.preventDefault(),m.deleteBackward(d,{unit:"block"});return}}}else{if(Ze.isBold(U)||Ze.isItalic(U)||Ze.isTransposeCharacter(U)){C.preventDefault();return}if(Ze.isSoftBreak(U)){C.preventDefault(),m.insertSoftBreak(d);return}if(Ze.isSplitBlock(U)){C.preventDefault(),m.insertBreak(d);return}if(Ze.isDeleteBackward(U)){C.preventDefault(),M&&V.isExpanded(M)?m.deleteFragment(d,{direction:"backward"}):m.deleteBackward(d);return}if(Ze.isDeleteForward(U)){C.preventDefault(),M&&V.isExpanded(M)?m.deleteFragment(d,{direction:"forward"}):m.deleteForward(d);return}if(Ze.isDeleteLineBackward(U)){C.preventDefault(),M&&V.isExpanded(M)?m.deleteFragment(d,{direction:"backward"}):m.deleteBackward(d,{unit:"line"});return}if(Ze.isDeleteLineForward(U)){C.preventDefault(),M&&V.isExpanded(M)?m.deleteFragment(d,{direction:"forward"}):m.deleteForward(d,{unit:"line"});return}if(Ze.isDeleteWordBackward(U)){C.preventDefault(),M&&V.isExpanded(M)?m.deleteFragment(d,{direction:"backward"}):m.deleteBackward(d,{unit:"word"});return}if(Ze.isDeleteWordForward(U)){C.preventDefault(),M&&V.isExpanded(M)?m.deleteFragment(d,{direction:"forward"}):m.deleteForward(d,{unit:"word"});return}}}},[a,d,v.onKeyDown]),onPaste:f.useCallback(C=>{!a&&Z.hasEditableTarget(d,C.target)&&!ft(C,v.onPaste)&&(!Kt||i0(C.nativeEvent)||Dn)&&(C.preventDefault(),Z.insertData(d,C.clipboardData))},[a,d,v.onPaste])}),f.createElement(uC,{decorations:_,node:d,renderElement:u,renderPlaceholder:c,renderLeaf:l,selection:d.selection}))))))}),cC=t=>{var{attributes:e,children:n}=t;return f.createElement("span",Ft({},e),n,ct&&f.createElement("br",null))},fC=()=>[],dC=(t,e)=>{if(e.getBoundingClientRect&&(!t.selection||t.selection&&V.isCollapsed(t.selection))){var n=e.startContainer.parentElement;n.getBoundingClientRect=e.getBoundingClientRect.bind(e),xy(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},ft=(t,e)=>{if(!e)return!1;var n=e(t);return n??(t.isDefaultPrevented()||t.isPropagationStopped())},mc=t=>$t(t.target)&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement),pC=(t,e)=>{if(!e)return!1;var n=e(t);return n??t.defaultPrevented},hC=f.createContext(!1),vC=f.createContext({});function gC(t){var e=f.useRef([]).current,n=f.useRef({editor:t}).current,r=f.useCallback(o=>{n.editor=o,e.forEach(s=>s(o))},[e,n]),i=f.useMemo(()=>({getSlate:()=>n.editor,addEventListener:o=>(e.push(o),()=>{e.splice(e.indexOf(o),1)})}),[e,n]);return{selectorContext:i,onChange:r}}var mC=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],yC=t=>{var{editor:e,children:n,onChange:r,onSelectionChange:i,onValueChange:o,initialValue:s}=t,a=kn(t,mC),[u,l]=f.useState(()=>{if(!ne.isNodeList(s))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(it.stringify(s)));if(!m.isEditor(e))throw new Error("[Slate] editor is invalid! You passed: ".concat(it.stringify(e)));return e.children=s,Object.assign(e,a),{v:0,editor:e}}),{selectorContext:c,onChange:p}=gC(e),h=f.useCallback(v=>{var d;switch(r&&r(e.children),v==null||(d=v.operation)===null||d===void 0?void 0:d.type){case"set_selection":i==null||i(e.selection);break;default:o==null||o(e.children)}l(D=>({v:D.v+1,editor:e})),p(e)},[e,p,r,i,o]);f.useEffect(()=>(_o.set(e,h),()=>{_o.set(e,()=>{})}),[e,h]);var[g,y]=f.useState(Z.isFocused(e));return f.useEffect(()=>{y(Z.isFocused(e))},[e]),dr(()=>{var v=()=>y(Z.isFocused(e));return zl>=17?(document.addEventListener("focusin",v),document.addEventListener("focusout",v),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",v)}):(document.addEventListener("focus",v,!0),document.addEventListener("blur",v,!0),()=>{document.removeEventListener("focus",v,!0),document.removeEventListener("blur",v,!0)})},[]),f.createElement(vC.Provider,{value:c},f.createElement(hc.Provider,{value:u},f.createElement(Fo.Provider,{value:u.editor},f.createElement(hC.Provider,{value:g},n))))},yc=(t,e)=>{var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},Cc=(t,e,n)=>{var r=Z.toDOMRange(t,e).getBoundingClientRect(),i=Z.toDOMRange(t,n).getBoundingClientRect();return yc(r,i)&&yc(i,r)},CC=(t,e)=>{var n=m.range(t,V.end(e)),r=Array.from(m.positions(t,{at:e})),i=0,o=r.length,s=Math.floor(o/2);if(Cc(t,m.range(t,r[i]),n))return m.range(t,r[i],n);if(r.length<2)return m.range(t,r[r.length-1],n);for(;s!==r.length&&s!==i;)Cc(t,m.range(t,r[s]),n)?o=s:i=s,s=Math.floor((i+o)/2);return m.range(t,r[o],n)};function Dc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ec(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dc(Object(n),!0).forEach(function(r){wt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var DC=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=e,{apply:i,onChange:o,deleteBackward:s,addMark:a,removeMark:u}=r;return ni.set(r,new WeakMap),r.addMark=(l,c)=>{var p,h;(p=zo.get(r))===null||p===void 0||p(),!St.get(r)&&(h=vt.get(r))!==null&&h!==void 0&&h.length&&St.set(r,null),_t.delete(r),a(l,c)},r.removeMark=l=>{var c;!St.get(r)&&(c=vt.get(r))!==null&&c!==void 0&&c.length&&St.set(r,null),_t.delete(r),u(l)},r.deleteBackward=l=>{if(l!=="line")return s(l);if(r.selection&&V.isCollapsed(r.selection)){var c=m.above(r,{match:y=>ue.isElement(y)&&m.isBlock(r,y),at:r.selection});if(c){var[,p]=c,h=m.range(r,p,r.selection.anchor),g=CC(r,h);V.isCollapsed(g)||Q.delete(r,{at:g})}}},r.apply=l=>{var c=[],p=[],h=vt.get(r);if(h!=null&&h.length){var g=h.map(T=>C0(T,l)).filter(Boolean);vt.set(r,g)}var y=Qt.get(r);y&&Qt.set(r,ec(r,y,l));var v=Jt.get(r);if(v!=null&&v.at){var d=Ae.isPoint(v==null?void 0:v.at)?Vo(r,v.at,l):ec(r,v.at,l);Jt.set(r,d?Ec(Ec({},v),{},{at:d}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...jn(r,l.path));break}case"set_selection":{var D;(D=cr.get(r))===null||D===void 0||D.unref(),cr.delete(r);break}case"insert_node":case"remove_node":{c.push(...jn(r,L.parent(l.path)));break}case"merge_node":{var B=L.previous(l.path);c.push(...jn(r,B));break}case"move_node":{var b=L.common(L.parent(l.path),L.parent(l.newPath));c.push(...jn(r,b));var O;L.isBefore(l.path,l.newPath)?(c.push(...jn(r,L.parent(l.path))),O=l.newPath):(c.push(...jn(r,L.parent(l.newPath))),O=l.path);var E=ne.get(e,L.parent(O)),w=Z.findKey(r,E),A=m.pathRef(r,L.parent(O));p.push([A,w]);break}}i(l);for(var[F,R]of c){var[P]=m.node(r,F);ti.set(P,R)}for(var[z,I]of p)if(z.current){var[j]=m.node(r,z.current);ti.set(j,I)}},r.setFragmentData=l=>{var{selection:c}=r;if(c){var[p,h]=V.edges(c),g=m.void(r,{at:p.path}),y=m.void(r,{at:h.path});if(!(V.isCollapsed(c)&&!g)){var v=Z.toDOMRange(r,c),d=v.cloneContents(),D=d.childNodes[0];if(d.childNodes.forEach(P=>{P.textContent&&P.textContent.trim()!==""&&(D=P)}),y){var[B]=y,b=v.cloneRange(),O=Z.toDOMNode(r,B);b.setEndAfter(O),d=b.cloneContents()}if(g&&(D=d.querySelector("[data-slate-spacer]")),Array.from(d.querySelectorAll("[data-slate-zero-width]")).forEach(P=>{var z=P.getAttribute("data-slate-zero-width")==="n";P.textContent=z?`
91
91
  `:""}),Zl(D)){var E=D.ownerDocument.createElement("span");E.style.whiteSpace="pre",E.appendChild(D),d.appendChild(E),D=E}var w=r.getFragment(),A=JSON.stringify(w),F=window.btoa(encodeURIComponent(A));D.setAttribute("data-slate-fragment",F),l.setData("application/".concat(n),F);var R=d.ownerDocument.createElement("div");return R.appendChild(d),R.setAttribute("hidden","true"),d.ownerDocument.body.appendChild(R),l.setData("text/html",R.innerHTML),l.setData("text/plain",Kl(R)),d.ownerDocument.body.removeChild(R),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||l0(l);if(c){var p=decodeURIComponent(window.atob(c)),h=JSON.parse(p);return r.insertFragment(h),!0}return!1},r.insertTextData=l=>{var c=l.getData("text/plain");if(c){var p=c.split(/\r\n|\r|\n/),h=!1;for(var g of p)h&&Q.splitNodes(r,{always:!0}),r.insertText(g),h=!0;return!0}return!1},r.onChange=l=>{var c=zl<18?ln.unstable_batchedUpdates:p=>p();c(()=>{var p=_o.get(r);p&&p(l),o(l)})},r},jn=(t,e)=>{var n=[];for(var[r,i]of m.levels(t,{at:e})){var o=Z.findKey(t,r);n.push([i,o])}return n};function bc(t,e,n="type"){const{selection:r}=t;if(!r)return!1;const[i]=Array.from(m.nodes(t,{at:m.unhangRange(t,r),match:o=>!m.isEditor(o)&&ue.isElement(o)&&o[n]===e}));return!!i}const wc=["listItem","numberedList"],ii=["left","center","right","justify"];function EC(t,e){const n=ii.includes(e)?"align":"type",r=bc(t,e,n),i=wc.includes(e);Q.unwrapNodes(t,{match:s=>!m.isEditor(s)&&ue.isElement(s)&&wc.includes(s.type)&&!ii.includes(e),split:!0});let o;if(ii.includes(e)?o={align:r?void 0:e}:o={type:r?"paragraph":i?"listItem":e},Q.setNodes(t,o),!r&&i){const s={type:e,children:[]};Q.wrapNodes(t,s)}}function wn({format:t,icon:e}){const n=Zo(),r=ii.includes(t)?"align":"type",o=bc(n,t,r)?"activeTrue":"activeFalse";function s(a){a.preventDefault(),EC(n,t)}return x.jsx("button",{type:"button",className:"arkynRichTextBlockButton "+o,onMouseDown:s,children:x.jsx(e,{})})}function bC({attributes:t,children:e,element:n}){const r={textAlign:n.align};switch(n.type){case"blockQuote":return x.jsx("blockquote",{className:"arkynElementBlockquote",style:r,...t,children:e});case"bulletedList":return x.jsx("ul",{className:"arkynElementBulletList",style:r,...t,children:e});case"headingOne":return x.jsx("h1",{className:"arkynElementHeadingOne",style:r,...t,children:e});case"headingTwo":return x.jsx("h2",{className:"arkynElementHeadingTwo",style:r,...t,children:e});case"listItem":return x.jsx("li",{className:"arkynElementListItem",style:r,...t,children:e});case"numberedList":return x.jsx("ol",{className:"arkynElementNumberedList",style:r,...t,children:e});default:return x.jsx("p",{className:"arkynElementParagraph",style:r,...t,children:e})}}function wC({attributes:t,children:e,leaf:n}){return n.bold&&(e=x.jsx("strong",{children:e})),n.code&&(e=x.jsx("code",{children:e})),n.italic&&(e=x.jsx("em",{children:e})),n.underline&&(e=x.jsx("u",{children:e})),x.jsx("span",{...t,children:e})}function Bc(t,e){const n=m.marks(t);return n?n[e]===!0:!1}function xc(t,e){Bc(t,e)?m.removeMark(t,e):m.addMark(t,e,!0)}function oi({format:t,icon:e}){const n=Zo(),i=Bc(n,t)?"activeTrue":"activeFalse";function o(s){s.preventDefault(),xc(n,t)}return x.jsx("button",{type:"button",className:"arkynRichTextMarkButton "+i,onMouseDown:o,children:x.jsx(e,{})})}function BC({children:t}){return x.jsx("div",{className:"arkynRichTextToolbar",children:t})}const Sc={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+`":"code"},xC=[{type:"paragraph",children:[{text:""}]}];var Ac={},Yo={},Ko={};Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.default=OC;var Lc="html",Oc="head",si="body",SC=/<([a-zA-Z]+[0-9]?)/,Pc=/<head[^]*>/i,Fc=/<body[^]*>/i,ai=function(t,e){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Xo=function(t,e){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Mc=typeof window=="object"&&window.DOMParser;if(typeof Mc=="function"){var AC=new Mc,LC="text/html";Xo=function(t,e){return e&&(t="<".concat(e,">").concat(t,"</").concat(e,">")),AC.parseFromString(t,LC)},ai=Xo}if(typeof document=="object"&&document.implementation){var ui=document.implementation.createHTMLDocument();ai=function(t,e){if(e){var n=ui.documentElement.querySelector(e);return n&&(n.innerHTML=t),ui}return ui.documentElement.innerHTML=t,ui}}var li=typeof document=="object"&&document.createElement("template"),Jo;li&&li.content&&(Jo=function(t){return li.innerHTML=t,li.content.childNodes});function OC(t){var e,n,r=t.match(SC),i=r&&r[1]?r[1].toLowerCase():"";switch(i){case Lc:{var o=Xo(t);if(!Pc.test(t)){var s=o.querySelector(Oc);(e=s==null?void 0:s.parentNode)===null||e===void 0||e.removeChild(s)}if(!Fc.test(t)){var s=o.querySelector(si);(n=s==null?void 0:s.parentNode)===null||n===void 0||n.removeChild(s)}return o.querySelectorAll(Lc)}case Oc:case si:{var a=ai(t).querySelectorAll(i);return Fc.test(t)&&Pc.test(t)?a[0].parentNode.childNodes:a}default:{if(Jo)return Jo(t);var s=ai(t,si).querySelector(si);return s.childNodes}}}var ci={},Qo={},$o={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})($o);var Fe={},en=We&&We.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pr=We&&We.__assign||function(){return pr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},pr.apply(this,arguments)};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.cloneNode=Fe.hasChildren=Fe.isDocument=Fe.isDirective=Fe.isComment=Fe.isText=Fe.isCDATA=Fe.isTag=Fe.Element=Fe.Document=Fe.CDATA=Fe.NodeWithChildren=Fe.ProcessingInstruction=Fe.Comment=Fe.Text=Fe.DataNode=Fe.Node=void 0;var gt=$o,es=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),ts(this,e)},t}();Fe.Node=es;var fi=function(t){en(e,t);function e(n){var r=t.call(this)||this;return r.data=n,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),e}(es);Fe.DataNode=fi;var kc=function(t){en(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=gt.ElementType.Text,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(fi);Fe.Text=kc;var Tc=function(t){en(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=gt.ElementType.Comment,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(fi);Fe.Comment=Tc;var Ic=function(t){en(e,t);function e(n,r){var i=t.call(this,r)||this;return i.name=n,i.type=gt.ElementType.Directive,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(fi);Fe.ProcessingInstruction=Ic;var di=function(t){en(e,t);function e(n){var r=t.call(this)||this;return r.children=n,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),e}(es);Fe.NodeWithChildren=di;var jc=function(t){en(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=gt.ElementType.CDATA,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(di);Fe.CDATA=jc;var Nc=function(t){en(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=gt.ElementType.Root,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(di);Fe.Document=Nc;var _c=function(t){en(e,t);function e(n,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=n==="script"?gt.ElementType.Script:n==="style"?gt.ElementType.Style:gt.ElementType.Tag);var s=t.call(this,i)||this;return s.name=n,s.attribs=r,s.type=o,s}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,o;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(o=n["x-attribsPrefix"])===null||o===void 0?void 0:o[r]}})},enumerable:!1,configurable:!0}),e}(di);Fe.Element=_c;function zc(t){return(0,gt.isTag)(t)}Fe.isTag=zc;function Wc(t){return t.type===gt.ElementType.CDATA}Fe.isCDATA=Wc;function Uc(t){return t.type===gt.ElementType.Text}Fe.isText=Uc;function Hc(t){return t.type===gt.ElementType.Comment}Fe.isComment=Hc;function Rc(t){return t.type===gt.ElementType.Directive}Fe.isDirective=Rc;function Vc(t){return t.type===gt.ElementType.Root}Fe.isDocument=Vc;function PC(t){return Object.prototype.hasOwnProperty.call(t,"children")}Fe.hasChildren=PC;function ts(t,e){e===void 0&&(e=!1);var n;if(Uc(t))n=new kc(t.data);else if(Hc(t))n=new Tc(t.data);else if(zc(t)){var r=e?ns(t.children):[],i=new _c(t.name,pr({},t.attribs),r);r.forEach(function(u){return u.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=pr({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=pr({},t["x-attribsPrefix"])),n=i}else if(Wc(t)){var r=e?ns(t.children):[],o=new jc(r);r.forEach(function(l){return l.parent=o}),n=o}else if(Vc(t)){var r=e?ns(t.children):[],s=new Nc(r);r.forEach(function(l){return l.parent=s}),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),n=s}else if(Rc(t)){var a=new Ic(t.name,t.data);t["x-name"]!=null&&(a["x-name"]=t["x-name"],a["x-publicId"]=t["x-publicId"],a["x-systemId"]=t["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(t.type));return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}Fe.cloneNode=ts;function ns(t){for(var e=t.map(function(r){return ts(r,!0)}),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}(function(t){var e=We&&We.__createBinding||(Object.create?function(a,u,l,c){c===void 0&&(c=l);var p=Object.getOwnPropertyDescriptor(u,l);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(a,c,p)}:function(a,u,l,c){c===void 0&&(c=l),a[c]=u[l]}),n=We&&We.__exportStar||function(a,u){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&e(u,a,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=$o,i=Fe;n(Fe,t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function a(u,l,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=o),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??o,this.elementCB=c??null}return a.prototype.onparserinit=function(u){this.parser=u},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(u){this.handleCallback(u)},a.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},a.prototype.onopentag=function(u,l){var c=this.options.xmlMode?r.ElementType.Tag:void 0,p=new i.Element(u,l,void 0,c);this.addNode(p),this.tagStack.push(p)},a.prototype.ontext=function(u){var l=this.lastNode;if(l&&l.type===r.ElementType.Text)l.data+=u,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new i.Text(u);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=u;return}var l=new i.Comment(u);this.addNode(l),this.lastNode=l},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var u=new i.Text(""),l=new i.CDATA([u]);this.addNode(l),u.parent=l,this.lastNode=u},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(u,l){var c=new i.ProcessingInstruction(u,l);this.addNode(c)},a.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},a.prototype.addNode=function(u){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),l.children.push(u),c&&(u.prev=c,c.next=u),u.parent=l,this.lastNode=null},a}();t.DomHandler=s,t.default=s})(Qo);var qc={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,n){return e[n.toLowerCase()]=n,e},{})})(qc),Object.defineProperty(ci,"__esModule",{value:!0}),ci.formatAttributes=Gc,ci.formatDOM=Zc;var pi=Qo,FC=qc;function MC(t){return FC.CASE_SENSITIVE_TAG_NAMES_MAP[t]}function Gc(t){for(var e={},n=0,r=t.length;n<r;n++){var i=t[n];e[i.name]=i.value}return e}function kC(t){t=t.toLowerCase();var e=MC(t);return e||t}function Zc(t,e,n){e===void 0&&(e=null);for(var r=[],i,o=0,s=t.length;o<s;o++){var a=t[o];switch(a.nodeType){case 1:{var u=kC(a.nodeName);i=new pi.Element(u,Gc(a.attributes)),i.children=Zc(u==="template"?a.content.childNodes:a.childNodes,i);break}case 3:i=new pi.Text(a.nodeValue);break;case 8:i=new pi.Comment(a.nodeValue);break;default:continue}var l=r[o-1]||null;l&&(l.next=i),i.parent=e,i.prev=l,i.next=null,r.push(i)}return n&&(i=new pi.ProcessingInstruction(n.substring(0,n.indexOf(" ")).toLowerCase(),n),i.next=r[0]||null,i.parent=e,r.unshift(i),r[1]&&(r[1].prev=r[0])),r}var TC=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=_C;var IC=TC(Ko),jC=ci,NC=/<(![a-zA-Z\s]+)>/;function _C(t){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];var e=t.match(NC),n=e?e[1]:void 0;return(0,jC.formatDOM)((0,IC.default)(t),null,n)}var hi={},At={},vi={},zC=0;vi.SAME=zC;var WC=1;vi.CAMELCASE=WC,vi.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const Yc=0,tn=1,gi=2,mi=3,rs=4,Kc=5,Xc=6;function UC(t){return ot.hasOwnProperty(t)?ot[t]:null}function dt(t,e,n,r,i,o,s){this.acceptsBooleans=e===gi||e===mi||e===rs,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}const ot={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(t=>{ot[t]=new dt(t,Yc,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([t,e])=>{ot[t]=new dt(t,tn,!1,e,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(t=>{ot[t]=new dt(t,gi,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(t=>{ot[t]=new dt(t,gi,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(t=>{ot[t]=new dt(t,mi,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(t=>{ot[t]=new dt(t,mi,!0,t,null,!1,!1)}),["capture","download"].forEach(t=>{ot[t]=new dt(t,rs,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(t=>{ot[t]=new dt(t,Xc,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(t=>{ot[t]=new dt(t,Kc,!1,t.toLowerCase(),null,!1,!1)});const is=/[\-\:]([a-z])/g,os=t=>t[1].toUpperCase();["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"].forEach(t=>{const e=t.replace(is,os);ot[e]=new dt(e,tn,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(t=>{const e=t.replace(is,os);ot[e]=new dt(e,tn,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(t=>{const e=t.replace(is,os);ot[e]=new dt(e,tn,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(t=>{ot[t]=new dt(t,tn,!1,t.toLowerCase(),null,!1,!1)});const HC="xlinkHref";ot[HC]=new dt("xlinkHref",tn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(t=>{ot[t]=new dt(t,tn,!1,t.toLowerCase(),null,!0,!0)});const{CAMELCASE:RC,SAME:VC,possibleStandardNames:Jc}=vi,qC=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",GC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+qC+"]*$")),ZC=Object.keys(Jc).reduce((t,e)=>{const n=Jc[e];return n===VC?t[e]=e:n===RC?t[e.toLowerCase()]=e:t[e]=n,t},{});At.BOOLEAN=mi,At.BOOLEANISH_STRING=gi,At.NUMERIC=Kc,At.OVERLOADED_BOOLEAN=rs,At.POSITIVE_NUMERIC=Xc,At.RESERVED=Yc,At.STRING=tn,At.getPropertyInfo=UC,At.isCustomAttribute=GC,At.possibleStandardNames=ZC;var ss={},as={},Qc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,YC=/\n/g,KC=/^\s*/,XC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,JC=/^:\s*/,QC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$C=/^[;\s]*/,eD=/^\s+|\s+$/g,tD=`
92
- `,$c="/",ef="*",Bn="",nD="comment",rD="declaration",iD=function(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function i(y){var v=y.match(YC);v&&(n+=v.length);var d=y.lastIndexOf(tD);r=~d?y.length-d:r+y.length}function o(){var y={line:n,column:r};return function(v){return v.position=new s(y),l(),v}}function s(y){this.start=y,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;function a(y){var v=new Error(e.source+":"+n+":"+r+": "+y);if(v.reason=y,v.filename=e.source,v.line=n,v.column=r,v.source=t,!e.silent)throw v}function u(y){var v=y.exec(t);if(v){var d=v[0];return i(d),t=t.slice(d.length),v}}function l(){u(KC)}function c(y){var v;for(y=y||[];v=p();)v!==!1&&y.push(v);return y}function p(){var y=o();if(!($c!=t.charAt(0)||ef!=t.charAt(1))){for(var v=2;Bn!=t.charAt(v)&&(ef!=t.charAt(v)||$c!=t.charAt(v+1));)++v;if(v+=2,Bn===t.charAt(v-1))return a("End of comment missing");var d=t.slice(2,v-2);return r+=2,i(d),t=t.slice(v),r+=2,y({type:nD,comment:d})}}function h(){var y=o(),v=u(XC);if(v){if(p(),!u(JC))return a("property missing ':'");var d=u(QC),D=y({type:rD,property:tf(v[0].replace(Qc,Bn)),value:d?tf(d[0].replace(Qc,Bn)):Bn});return u($C),D}}function g(){var y=[];c(y);for(var v;v=h();)v!==!1&&(y.push(v),c(y));return y}return l(),g()};function tf(t){return t?t.replace(eD,Bn):Bn}var oD=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(as,"__esModule",{value:!0}),as.default=aD;var sD=oD(iD);function aD(t,e){var n=null;if(!t||typeof t!="string")return n;var r=(0,sD.default)(t),i=typeof e=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,a=o.value;i?e(s,a,o):a&&(n=n||{},n[s]=a)}}),n}var yi={};Object.defineProperty(yi,"__esModule",{value:!0}),yi.camelCase=void 0;var uD=/^--[a-zA-Z0-9-]+$/,lD=/-([a-z])/g,cD=/^[^-]+$/,fD=/^-(webkit|moz|ms|o|khtml)-/,dD=/^-(ms)-/,pD=function(t){return!t||cD.test(t)||uD.test(t)},hD=function(t,e){return e.toUpperCase()},nf=function(t,e){return"".concat(e,"-")},vD=function(t,e){return e===void 0&&(e={}),pD(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(dD,nf):t=t.replace(fD,nf),t.replace(lD,hD))};yi.camelCase=vD;var gD=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},mD=gD(as),yD=yi;function us(t,e){var n={};return!t||typeof t!="string"||(0,mD.default)(t,function(r,i){r&&i&&(n[(0,yD.camelCase)(r,e)]=i)}),n}us.default=us;var CD=us;(function(t){var e=We&&We.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=o,t.setStyleProp=a;var n=f,r=e(CD),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(c,p){return c.includes("-")?!i.has(c):!!(p&&typeof p.is=="string")}var s={reactCompat:!0};function a(c,p){if(typeof c=="string"){if(!c.trim()){p.style={};return}try{p.style=(0,r.default)(c,s)}catch{p.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var u=function(c){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};t.canTextBeChildOfNode=u;var l=function(c){return c};t.returnFirstArg=l})(ss),Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=wD;var hr=At,rf=ss,DD=["checked","value"],ED=["input","select","textarea"],bD={reset:!0,submit:!0};function wD(t,e){t===void 0&&(t={});var n={},r=!!(t.type&&bD[t.type]);for(var i in t){var o=t[i];if((0,hr.isCustomAttribute)(i)){n[i]=o;continue}var s=i.toLowerCase(),a=of(s);if(a){var u=(0,hr.getPropertyInfo)(a);switch(DD.includes(a)&&ED.includes(e)&&!r&&(a=of("default"+s)),n[a]=o,u&&u.type){case hr.BOOLEAN:n[a]=!0;break;case hr.OVERLOADED_BOOLEAN:o===""&&(n[a]=!0);break}continue}rf.PRESERVE_CUSTOM_ATTRIBUTES&&(n[i]=o)}return(0,rf.setStyleProp)(t.style,n),n}function of(t){return hr.possibleStandardNames[t]}var ls={},BD=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.default=sf;var cs=f,xD=BD(hi),vr=ss,SD={cloneElement:cs.cloneElement,createElement:cs.createElement,isValidElement:cs.isValidElement};function sf(t,e){e===void 0&&(e={});for(var n=[],r=typeof e.replace=="function",i=e.transform||vr.returnFirstArg,o=e.library||SD,s=o.cloneElement,a=o.createElement,u=o.isValidElement,l=t.length,c=0;c<l;c++){var p=t[c];if(r){var h=e.replace(p,c);if(u(h)){l>1&&(h=s(h,{key:h.key||c})),n.push(i(h,p,c));continue}}if(p.type==="text"){var g=!p.data.trim().length;if(g&&p.parent&&!(0,vr.canTextBeChildOfNode)(p.parent)||e.trim&&g)continue;n.push(i(p.data,p,c));continue}var y=p,v={};AD(y)?((0,vr.setStyleProp)(y.attribs.style,y.attribs),v=y.attribs):y.attribs&&(v=(0,xD.default)(y.attribs,y.name));var d=void 0;switch(p.type){case"script":case"style":p.children[0]&&(v.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?v.defaultValue=p.children[0].data:p.children&&p.children.length&&(d=sf(p.children,e));break;default:continue}l>1&&(v.key=c),n.push(i(a(p.name,v,d),p,c))}return n.length===1?n[0]:n}function AD(t){return vr.PRESERVE_CUSTOM_ATTRIBUTES&&t.type==="tag"&&(0,vr.isCustomComponent)(t.name,t.attribs)}(function(t){var e=We&&We.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=a;var n=e(Yo);t.htmlToDOM=n.default;var r=e(hi);t.attributesToProps=r.default;var i=e(ls);t.domToReact=i.default;var o=Qo;Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return o.Text}});var s={lowerCaseAttributeNames:!1};function a(u,l){if(typeof u!="string")throw new TypeError("First argument must be a string");return u?(0,i.default)((0,n.default)(u,(l==null?void 0:l.htmlparser2)||s),l):[]}})(Ac);const af=Or(Ac),LD=af.default||af,fs=t=>{if(typeof t=="string")return{text:t||""};function e(i){return i.map(o=>fs(o))}const n=Array.isArray(t.props.children)?e(t.props.children):[{text:t.props.children}],r=typeof t.props.children=="string"?t.props.children:"";switch(t.type){case"p":return{type:"paragraph",children:n};case"blockquote":return{type:"blockQuote",children:n};case"ul":return{type:"bulletedList",children:n};case"h1":return{type:"headingOne",children:n};case"h2":return{type:"headingTwo",children:n};case"li":return{type:"listItem",children:n};case"ol":return{type:"numberedList",children:n};case"strong":return{type:"paragraph",text:r,bold:!0};case"code":return{text:r,code:!0};case"em":return{text:r,italic:!0};case"u":return{text:r,underline:!0};default:return{text:r}}},OD=t=>{const e=LD(t);return Array.isArray(e)?e.flatMap(n=>typeof n=="string"?{text:n}:fs(n)):typeof e=="string"?[{text:e}]:[fs(e)]};function uf(t){return t.map(e=>ne.string(e)).join("")}const lf=t=>{if(ce.isText(t)){let e=t.text;return t.bold&&(e=`<strong>${e}</strong>`),t.code&&(e=`<code>${e}</code>`),t.italic&&(e=`<em>${e}</em>`),t.underline&&(e=`<u>${e}</u>`),e}if(ue.isElement(t)){const e=t.children.map(n=>lf(n)).join("");switch(t.type){case"paragraph":return`<p>${e}</p>`;case"blockQuote":return`<blockquote>${e}</blockquote>`;case"bulletedList":return`<ul>${e}</ul>`;case"headingOne":return`<h1>${e}</h1>`;case"headingTwo":return`<h2>${e}</h2>`;case"listItem":return`<li>${e}</li>`;case"numberedList":return`<ol>${e}</ol>`;default:return e}}return""},cf=t=>t.children.map(e=>lf(e)).join(""),ff=t=>/<\/?[a-z][\s\S]*>/i.test(t);function PD({name:t,defaultValue:e,enforceCharacterLimit:n=!1,onChangeCharactersCount:r,maxLimit:i=2e3,onValueChange:o,onChange:s,isError:a}){const u=f.useMemo(()=>fm(DC(um())),[]),{id:l,inputRef:c,error:p}=yt(),h=f.useRef(null),g=ff(e)?OD(e):xC,y=uf(g),[v,d]=f.useState(y.length),[D,B]=f.useState(ff(e)?e:""),[b,O]=f.useState(!1),E=c||h,w=a||!!p,A=f.useCallback(wC,[]),F=f.useCallback(bC,[]);function R(T){const N=uf(T);d(N.length),r&&r(N.length),!(n&&N.length>=i)&&(B(cf(u)),s&&s(T),o&&o(cf(u)),u.children=T,Q.setNodes(u,{children:T}))}const P=b?"focusTrue":"focusFalse",I=`arkynRichText ${w||i<v?"errorTrue":"errorFalse"} ${P}`,j=i-v;return x.jsxs(yC,{editor:u,initialValue:g,onChange:R,onValueChange:R,children:[x.jsxs("div",{className:I,children:[x.jsxs(BC,{children:[x.jsx(wn,{format:"headingOne",icon:Se.Heading1}),x.jsx(wn,{format:"headingTwo",icon:Se.Heading2}),x.jsx(wn,{format:"blockQuote",icon:Se.Quote}),x.jsx(oi,{format:"bold",icon:Se.Bold}),x.jsx(oi,{format:"italic",icon:Se.Italic}),x.jsx(oi,{format:"underline",icon:Se.Underline}),x.jsx(oi,{format:"code",icon:Se.Code}),x.jsx(wn,{format:"left",icon:Se.AlignLeft}),x.jsx(wn,{format:"right",icon:Se.AlignRight}),x.jsx(wn,{format:"center",icon:Se.AlignCenter}),x.jsx(wn,{format:"justify",icon:Se.AlignJustify})]}),x.jsx(lC,{className:"editorContainer",renderElement:F,renderLeaf:A,spellCheck:!0,id:l,onFocus:()=>O(!0),onBlur:()=>O(!1),onKeyDown:T=>{for(const N in Sc)if(Ph(N,T)){T.preventDefault();const K=Sc[N];xc(u,K)}}}),j<0&&x.jsx("div",{className:"restatesCharacters",children:j})]}),x.jsx("input",{ref:E,type:"hidden",name:t,value:D}),x.jsx("input",{type:"hidden",name:`${t}Count`,value:v})]})}function FD(t,e){const{isLoading:n,isError:r,size:i="md",className:o="",variant:s="solid",prefix:a,leftIcon:u,disabled:l,readOnly:c,onFocus:p,onBlur:h,title:g,style:y,closeOnSelect:v=!0,...d}=t,E=`arkyn_select ${a?"hasPrefix":""} ${s} ${i} ${l||c||n?"opacity":""} ${r?"errored":""} ${e?"focused":""} ${o}`,A={md:20,lg:20}[i];return{isLoading:n,className:E,prefix:Pd(a,A,"prefix"),LeftIcon:u,disabled:l||n||c,onFocus:p,onBlur:h,title:g,closeOnSelect:v,style:y,iconSize:A,Spinner:x.jsx(Se.Loader2,{className:"spinner",size:A,strokeWidth:2.5}),...d}}function MD(t){var J;const[e,n]=f.useState(!1),{inputRef:r,id:i,error:o}=yt(),s=f.useRef(null),a=r||s,u=t.isError||!!o,{disabled:l,title:c,style:p,className:h,prefix:g,iconSize:y,isLoading:v,LeftIcon:d,value:D=null,defaultValue:B="",onFocus:b,onBlur:O,Spinner:E,name:w,placeholder:A,onSelect:F,options:R,optionMaxHeight:P,closeOnSelect:z,...I}=FD({...t,id:i,isError:u},e),[j,T]=f.useState(B);function N(){l||!(a!=null&&a.current)||e||(n(!0),a.current.focus())}function K(q){e||(n(!0),b&&b(q))}function _(){n(!1),O&&a.current&&a.current.blur()}function ie(q){const{label:ee,value:Y}=q;T(j!==Y?Y:""),F&&F({label:ee,value:Y}),z&&_()}const re=typeof D=="string"?D:j,k=((J=R.find(q=>q.value===re))==null?void 0:J.label)||"",H=()=>{if(!e&&k)return!0;if(!e&&!k)return!1;if(e&&k)return!0;if(e&&!k)return!1};return x.jsxs(x.Fragment,{children:[x.jsxs("section",{title:c,style:p,onClick:N,className:`${h} placeholder_dark_${H()}`,children:[g,d&&x.jsx(d,{size:y,strokeWidth:2.5}),x.jsx("input",{disabled:l,readOnly:!0,placeholder:k||A,onFocus:K,...I}),x.jsx("input",{type:"hidden",ref:a,name:w,value:re||"",readOnly:!0}),e&&x.jsxs("div",{className:"arkyn_select_content",style:{overflow:"auto",maxHeight:P},children:[R.map(({label:q,value:ee})=>x.jsxs("div",{onClick:()=>ie({label:q,value:ee}),className:re===ee?"arkyn_select_option active":"arkyn_select_option",children:[q," ",x.jsx(Se.Check,{})]},ee)),R.length<=0&&x.jsx("p",{children:"Sem opções disponíveis"})]}),!v&&x.jsx(Se.ChevronDown,{className:"arkyn_select_arrow",size:y,strokeWidth:2.5}),v&&E]}),e&&x.jsx("aside",{className:"arkyn_select_overlay",onClick:_})]})}function kD(t){const{size:e="lg",defaultChecked:n=!1,checked:r=null,value:i,unCheckedValue:o="",name:s,className:a="",onCheck:u,...l}=t,[c,p]=f.useState(n),{id:h,inputRef:g}=yt(),y=typeof r=="boolean"?r:c;function v(){p(!c),u&&u(y?o:i||"checked")}const D=`arkynSwitch ${y?"checkedTrue":"checkedFalse"} ${e} ${a}`;return x.jsx("button",{type:"button",onClick:v,className:D,...l,children:x.jsx("input",{id:h,type:"hidden",name:s,ref:g,onClick:v,value:y?i||"checked":o})})}function TD(t){const{variant:e="solid",size:n="md",className:r,disabled:i=!1,readOnly:o=!1,onFocus:s,onBlur:a,title:u,style:l,...c}=t,[p,h]=f.useState(!1),{inputRef:g,id:y,error:v}=yt(),d=f.useRef(null),D=g||d,b=t.isError||!!v?"errorTrue":"errorFalse",w=`arkynTextarea ${e} ${n} ${i||o?"opacityTrue":"opacityFalse"} ${b} ${p?"focusedTrue":"focusedFalse"} ${r}`;function A(){i||!(D!=null&&D.current)||(h(!0),D.current.focus())}function F(P){h(!0),s&&s(P)}function R(P){h(!1),a&&a(P)}return x.jsx("section",{title:u,style:l,onClick:A,className:w,children:x.jsx("textarea",{id:y,disabled:i,readOnly:o,ref:D,onFocus:F,onBlur:R,...c})})}function ID(t){const{className:e="",...n}=t,r=`arkynBreadcrumbContainer ${e}`;return x.jsx("nav",{className:r,...n})}function jD(t){const{pathname:e}=Ot.useLocation(),{className:n="",disabled:r=!1,children:i,to:o,...s}=t,u=`arkynBreadcrumbLink ${e===o?"active":"inactive"} ${n}`;return r?x.jsxs("p",{className:u,children:[x.jsx(Se.ChevronRight,{size:14,strokeWidth:2.5}),i]}):x.jsxs(Ot.Link,{to:o,className:u,...s,children:[x.jsx(Se.ChevronRight,{size:14,strokeWidth:2.5}),i]})}function ds(t=""){const e=Ot.useLocation(),n=new URLSearchParams(e.search),r=t?`${t}:`:"",i=o=>{Object.entries(o).forEach(([s,a])=>{a===void 0?n.delete(`${r}${s}`):n.set(`${r}${s}`,String(a))})};return{getParam:o=>n.get(`${r}${o}`),getScopedSearch:o=>{i(o);let s=n.toString();return s&&(s="?"+s),s}}}function ND(t){const{scope:e,totalCountRegisters:n,perPageKey:r="per_page",pageKey:i="page",siblingsCount:o=2,...s}=t,a=Ot.useNavigate(),{getParam:u,getScopedSearch:l}=ds(e),c=Number(u(i))||1,p=Number(u(r))||20,h=Math.ceil(n/p),g=Od(c,o),y=Ld(c,o,h);function v(d){a(l({page:d}))}return x.jsxs("div",{className:"arkynPagination",...s,children:[x.jsx("button",{className:"arkynPaginationIconButton",disabled:c<=1,onClick:()=>v(c-1),children:x.jsx(Se.ChevronLeft,{})}),c>1+o&&x.jsxs(x.Fragment,{children:[x.jsx("button",{className:"arkynPaginationPageButton",onClick:()=>v(1),children:"1"}),c>2+o&&x.jsx("button",{disabled:!0,className:"arkynPaginationSpread",children:x.jsx(Se.Ellipsis,{})})]}),g.map((d,D)=>x.jsx("button",{onClick:()=>v(d),className:"arkynPaginationPageButton",children:d},D)),x.jsx("button",{className:"arkynPaginationCurrent",disabled:!0,children:c}),y.map((d,D)=>x.jsx("button",{onClick:()=>v(d),className:"arkynPaginationPageButton",children:d},D)),c+o<h&&x.jsxs(x.Fragment,{children:[c+1+o<h&&x.jsx("button",{disabled:!0,className:"arkynPaginationSpread",children:x.jsx(Se.Ellipsis,{})}),x.jsx("button",{className:"arkynPaginationPageButton",onClick:()=>v(h),children:h})]}),x.jsx("button",{className:"arkynPaginationIconButton",disabled:c>=h,onClick:()=>v(c+1),children:x.jsx(Se.ChevronRight,{})})]})}const ps=f.createContext({});function _D(){if(!ps)throw new Error("useTabContext must be used within a TabProvider");return f.useContext(ps)}function zD(t){const{children:e,onClick:n,defaultActive:r,className:i,...o}=t,[s,a]=f.useState(r||""),[u,l]=f.useState(!0),c=f.useRef(null),p=`arkynTabContainer ${i||""}`,[h,g]=f.useState({width:"0px",left:"0px",transition:"none"}),y=(d,D)=>{const B=d.getBoundingClientRect(),b=c.current.getBoundingClientRect(),O=D?void 0:"none";l(!1),g({transition:O,width:`${B.width}px`,left:`${B.left-b.left}px`})};f.useEffect(()=>{const d=c.current;if(!d)return;let D=null;D=d.querySelector("button.activeTrue"),D&&y(D)},[]);const v=d=>{const D=d.target;D&&(a(D.value),D.classList.add("activeTrue"),y(D,!0),n&&n(D.value))};return x.jsxs("nav",{ref:c,className:p.trim(),...o,children:[x.jsx(ps.Provider,{value:{handleTabClick:v,showInitialTab:u,value:s},children:e}),x.jsx("div",{className:"activeLine",style:h})]})}function WD(t){const{children:e,className:n="",onClick:r,...i}=t,{value:o,showInitialTab:s,handleTabClick:a}=_D(),u=o===i.value&&o?"activeTrue":"activeFalse",c=`arkynTabButton ${o===i.value&&s?"showBorderBottom":""} ${u} ${n}`;function p(h){a(h),r&&r(h)}return x.jsx("button",{onClick:p,className:c.trim(),...i,children:e})}const df=f.createContext({});function UD(t){const{isVisibled:e,makeInvisible:n,orientation:r="left",children:i,className:o,...s}=t,a=r==="left"?"-100%":"100%",l=`arkynDrawerContainer ${r} ${e?"visibleTrue":"visibleFalse"} ${o}`;return x.jsx(df.Provider,{value:{makeInvisible:n},children:x.jsx(cn.AnimatePresence,{children:e&&x.jsxs("aside",{className:l.trim(),...s,children:[x.jsx(cn.motion.div,{className:"arkynDrawerContainerOverlay",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:n}),x.jsx(cn.motion.div,{className:"arkynDrawerContainerContent",transition:{ease:"easeOut",duration:.15},initial:{transform:`translateX(${a})`},animate:{transform:"translateX(0px)"},exit:{transform:`translateX(${a})`},children:i})]})})})}function HD(t){const{showCloseButton:e=!0,className:n,children:r,...i}=t,{makeInvisible:o}=f.useContext(df),s=`arkynDrawerHeader ${n}`;return x.jsxs("header",{className:s.trim(),...i,children:[r,e&&x.jsx("button",{className:"arkynDrawerHeaderCloseButton",type:"button",onClick:o,"aria-label":"Close drawer",children:x.jsx(Se.X,{size:24})})]})}const pf=f.createContext({});function RD(t){const{isVisibled:e,makeInvisible:n,children:r,className:i="",...o}=t,a=`arkynModalContainer ${e?"visibleTrue":"visibleFalse"} ${i}`;return x.jsx(pf.Provider,{value:{makeInvisible:n},children:x.jsx(cn.AnimatePresence,{children:e&&x.jsxs("aside",{className:a.trim(),...o,children:[x.jsx(cn.motion.div,{className:"arkynModalContainerOverlay",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:n}),x.jsx(cn.motion.div,{className:"arkynModalContainerContent",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0,scale:.75},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},children:r})]})})})}function VD(t){const{alignment:e="right",className:n,...r}=t,i=`arkynModalFooter ${e} ${n}`;return x.jsx("footer",{className:i.trim(),...r})}function qD(t){const{showCloseButton:e=!0,className:n,children:r,...i}=t,{makeInvisible:o}=f.useContext(pf),s=`arkynModalHeader ${n}`;return x.jsxs("header",{className:s.trim(),...i,children:[r,e&&x.jsx("button",{type:"button",onClick:o,"aria-label":"Close modal button",className:"arkynModalHeaderCloseButton",children:x.jsx(Se.X,{size:24})})]})}function GD(t){const{children:e,button:n,closeOnClick:r,orientation:i="bottomLeft"}=t,[o,s]=f.useState(!1),u=`arkynPopover ${i} ${o?"visibleTrue":"visibleFalse"}`;function l(){o||s(!0)}return x.jsxs("div",{className:u,onClick:l,children:[n,x.jsx(cn.motion.div,{style:{visibility:o?"visible":"hidden"},transition:{ease:"easeOut",duration:0},initial:{opacity:0},animate:{opacity:o?1:0},exit:{opacity:0},onClick:()=>r&&s(!1),className:"arkynPopoverContent",children:e}),o&&x.jsx("div",{onClick:()=>s(!1),className:"arkynPopoverOverlay"})]})}function hf(t){const{message:e,title:n,type:r,size:i="lg"}=t,o=`arkynToast ${r} ${i}`;function s(){switch(r){case"info":return x.jsx(Se.Info,{});case"success":return x.jsx(Se.CheckCircle2,{});case"danger":return x.jsx(Se.XCircle,{});case"warning":return x.jsx(Se.AlertCircle,{});default:return x.jsx(Se.Info,{})}}return x.jsxs("div",{className:o,children:[x.jsxs("div",{children:[x.jsx("div",{className:"bg"}),x.jsx(s,{})]}),x.jsxs("p",{children:[x.jsx("strong",{title:n,children:n}),x.jsx("span",{children:e})]})]})}function ZD(t){const{text:e,size:n="lg",children:r,orientation:i="top",className:o="",...s}=t,a=`arkynTooltip ${n} ${i} ${o}`;return x.jsxs("div",{className:a.trim(),...s,children:[r,x.jsx("div",{className:"arkynTooltipText",children:e})]})}var Qe={},hs={},gr={},mr={},vf="Expected a function",gf=NaN,YD="[object Symbol]",KD=/^\s+|\s+$/g,XD=/^[-+]0x[0-9a-f]+$/i,JD=/^0b[01]+$/i,QD=/^0o[0-7]+$/i,$D=parseInt,eE=typeof We=="object"&&We&&We.Object===Object&&We,tE=typeof self=="object"&&self&&self.Object===Object&&self,nE=eE||tE||Function("return this")(),rE=Object.prototype,iE=rE.toString,oE=Math.max,sE=Math.min,vs=function(){return nE.Date.now()};function aE(t,e,n){var r,i,o,s,a,u,l=0,c=!1,p=!1,h=!0;if(typeof t!="function")throw new TypeError(vf);e=mf(e)||0,Ci(n)&&(c=!!n.leading,p="maxWait"in n,o=p?oE(mf(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function g(w){var A=r,F=i;return r=i=void 0,l=w,s=t.apply(F,A),s}function y(w){return l=w,a=setTimeout(D,e),c?g(w):s}function v(w){var A=w-u,F=w-l,R=e-A;return p?sE(R,o-F):R}function d(w){var A=w-u,F=w-l;return u===void 0||A>=e||A<0||p&&F>=o}function D(){var w=vs();if(d(w))return B(w);a=setTimeout(D,v(w))}function B(w){return a=void 0,h&&r?g(w):(r=i=void 0,s)}function b(){a!==void 0&&clearTimeout(a),l=0,r=u=i=a=void 0}function O(){return a===void 0?s:B(vs())}function E(){var w=vs(),A=d(w);if(r=arguments,i=this,u=w,A){if(a===void 0)return y(u);if(p)return a=setTimeout(D,e),g(u)}return a===void 0&&(a=setTimeout(D,e)),s}return E.cancel=b,E.flush=O,E}function uE(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(vf);return Ci(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),aE(t,e,{leading:r,maxWait:e,trailing:i})}function Ci(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function lE(t){return!!t&&typeof t=="object"}function cE(t){return typeof t=="symbol"||lE(t)&&iE.call(t)==YD}function mf(t){if(typeof t=="number")return t;if(cE(t))return gf;if(Ci(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ci(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(KD,"");var n=JD.test(t);return n||QD.test(t)?$D(t.slice(2),n?2:8):XD.test(t)?gf:+t}var fE=uE,yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.addPassiveEventListener=function(e,n,r){var i=r.name;i||(i=n,console.warn("Listener must be a named function.")),Di.has(n)||Di.set(n,new Set);var o=Di.get(n);if(!o.has(i)){var s=function(){var a=!1;try{var u=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,u)}catch{}return a}();e.addEventListener(n,r,s?{passive:!0}:!1),o.add(i)}},yr.removePassiveEventListener=function(e,n,r){e.removeEventListener(n,r),Di.get(n).delete(r.name||n)};var Di=new Map;Object.defineProperty(mr,"__esModule",{value:!0});var dE=fE,pE=vE(dE),hE=yr;function vE(t){return t&&t.__esModule?t:{default:t}}var gE=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,pE.default)(e,n)},Ye={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,n){if(e){var r=gE(function(i){Ye.scrollHandler(e)},n);Ye.scrollSpyContainers.push(e),(0,hE.addPassiveEventListener)(e,"scroll",r)}},isMounted:function(e){return Ye.scrollSpyContainers.indexOf(e)!==-1},currentPositionX:function(e){if(e===document){var n=window.pageYOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}else return e.scrollLeft},currentPositionY:function(e){if(e===document){var n=window.pageXOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}else return e.scrollTop},scrollHandler:function(e){var n=Ye.scrollSpyContainers[Ye.scrollSpyContainers.indexOf(e)].spyCallbacks||[];n.forEach(function(r){return r(Ye.currentPositionX(e),Ye.currentPositionY(e))})},addStateHandler:function(e){Ye.spySetState.push(e)},addSpyHandler:function(e,n){var r=Ye.scrollSpyContainers[Ye.scrollSpyContainers.indexOf(n)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(e),e(Ye.currentPositionX(n),Ye.currentPositionY(n))},updateStates:function(){Ye.spySetState.forEach(function(e){return e()})},unmount:function(e,n){Ye.scrollSpyContainers.forEach(function(r){return r.spyCallbacks&&r.spyCallbacks.length&&r.spyCallbacks.indexOf(n)>-1&&r.spyCallbacks.splice(r.spyCallbacks.indexOf(n),1)}),Ye.spySetState&&Ye.spySetState.length&&Ye.spySetState.indexOf(e)>-1&&Ye.spySetState.splice(Ye.spySetState.indexOf(e),1),document.removeEventListener("scroll",Ye.scrollHandler)},update:function(){return Ye.scrollSpyContainers.forEach(function(e){return Ye.scrollHandler(e)})}};mr.default=Ye;var Nn={},Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});var mE=function(e,n){var r=e.indexOf("#")===0?e.substring(1):e,i=r?"#"+r:"",o=window&&window.location,s=i?o.pathname+o.search+i:o.pathname+o.search;n?history.pushState(history.state,"",s):history.replaceState(history.state,"",s)},yE=function(){return window.location.hash.replace(/^#/,"")},CE=function(e){return function(n){return e.contains?e!=n&&e.contains(n):!!(e.compareDocumentPosition(n)&16)}},DE=function(e){return getComputedStyle(e).position!=="static"},gs=function(e,n){for(var r=e.offsetTop,i=e.offsetParent;i&&!n(i);)r+=i.offsetTop,i=i.offsetParent;return{offsetTop:r,offsetParent:i}},EE=function(e,n,r){if(r)return e===document?n.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(e).position!=="static"?n.offsetLeft:n.offsetLeft-e.offsetLeft;if(e===document)return n.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(DE(e)){if(n.offsetParent!==e){var i=function(c){return c===e||c===document},o=gs(n,i),s=o.offsetTop,a=o.offsetParent;if(a!==e)throw new Error("Seems containerElement is not an ancestor of the Element");return s}return n.offsetTop}if(n.offsetParent===e.offsetParent)return n.offsetTop-e.offsetTop;var u=function(c){return c===document};return gs(n,u).offsetTop-gs(e,u).offsetTop};Cr.default={updateHash:mE,getHash:yE,filterElementInContainer:CE,scrollOffset:EE};var Ei={},ms={};Object.defineProperty(ms,"__esModule",{value:!0}),ms.default={defaultEasing:function(e){return e<.5?Math.pow(e*2,2)/2:1-Math.pow((1-e)*2,2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}};var ys={};Object.defineProperty(ys,"__esModule",{value:!0});var bE=yr,wE=["mousedown","mousewheel","touchmove","keydown"];ys.default={subscribe:function(e){return typeof document<"u"&&wE.forEach(function(n){return(0,bE.addPassiveEventListener)(document,n,e)})}};var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});var Cs={registered:{},scrollEvent:{register:function(e,n){Cs.registered[e]=n},remove:function(e){Cs.registered[e]=null}}};Dr.default=Cs,Object.defineProperty(Ei,"__esModule",{value:!0});var BE=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xE=Cr;bi(xE);var SE=ms,yf=bi(SE),AE=ys,LE=bi(AE),OE=Dr,Mt=bi(OE);function bi(t){return t&&t.__esModule?t:{default:t}}var Cf=function(e){return yf.default[e.smooth]||yf.default.defaultEasing},PE=function(e){return typeof e=="function"?e:function(){return e}},FE=function(){if(typeof window<"u")return window.requestAnimationFrame||window.webkitRequestAnimationFrame},Ds=function(){return FE()||function(t,e,n){window.setTimeout(t,n||1e3/60,new Date().getTime())}}(),Df=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},Ef=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollLeft;var r=window.pageXOffset!==void 0,i=(document.compatMode||"")==="CSS1Compat";return r?window.pageXOffset:i?document.documentElement.scrollLeft:document.body.scrollLeft},bf=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollTop;var r=window.pageXOffset!==void 0,i=(document.compatMode||"")==="CSS1Compat";return r?window.pageYOffset:i?document.documentElement.scrollTop:document.body.scrollTop},ME=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollWidth-n.offsetWidth;var r=document.body,i=document.documentElement;return Math.max(r.scrollWidth,r.offsetWidth,i.clientWidth,i.scrollWidth,i.offsetWidth)},kE=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollHeight-n.offsetHeight;var r=document.body,i=document.documentElement;return Math.max(r.scrollHeight,r.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},TE=function t(e,n,r){var i=n.data;if(!n.ignoreCancelEvents&&i.cancel){Mt.default.registered.end&&Mt.default.registered.end(i.to,i.target,i.currentPositionY);return}if(i.delta=Math.round(i.targetPosition-i.startPosition),i.start===null&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:e(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=t.bind(null,e,n);Ds.call(window,o);return}Mt.default.registered.end&&Mt.default.registered.end(i.to,i.target,i.currentPosition)},Es=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},Er=function(e,n,r,i){n.data=n.data||Df(),window.clearTimeout(n.data.delayTimeout);var o=function(){n.data.cancel=!0};if(LE.default.subscribe(o),Es(n),n.data.start=null,n.data.cancel=!1,n.data.startPosition=n.horizontal?Ef(n):bf(n),n.data.targetPosition=n.absolute?e:e+n.data.startPosition,n.data.startPosition===n.data.targetPosition){Mt.default.registered.end&&Mt.default.registered.end(n.data.to,n.data.target,n.data.currentPosition);return}n.data.delta=Math.round(n.data.targetPosition-n.data.startPosition),n.data.duration=PE(n.duration)(n.data.delta),n.data.duration=isNaN(parseFloat(n.data.duration))?1e3:parseFloat(n.data.duration),n.data.to=r,n.data.target=i;var s=Cf(n),a=TE.bind(null,s,n);if(n&&n.delay>0){n.data.delayTimeout=window.setTimeout(function(){Mt.default.registered.begin&&Mt.default.registered.begin(n.data.to,n.data.target),Ds.call(window,a)},n.delay);return}Mt.default.registered.begin&&Mt.default.registered.begin(n.data.to,n.data.target),Ds.call(window,a)},wi=function(e){return e=BE({},e),e.data=e.data||Df(),e.absolute=!0,e},IE=function(e){Er(0,wi(e))},jE=function(e,n){Er(e,wi(n))},NE=function(e){e=wi(e),Es(e),Er(e.horizontal?ME(e):kE(e),e)},_E=function(e,n){n=wi(n),Es(n);var r=n.horizontal?Ef(n):bf(n);Er(e+r,n)};Ei.default={animateTopScroll:Er,getAnimationType:Cf,scrollToTop:IE,scrollToBottom:NE,scrollTo:jE,scrollMore:_E},Object.defineProperty(Nn,"__esModule",{value:!0});var zE=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},WE=Cr,UE=bs(WE),HE=Ei,RE=bs(HE),VE=Dr,Bi=bs(VE);function bs(t){return t&&t.__esModule?t:{default:t}}var xi={},wf=void 0;Nn.default={unmount:function(){xi={}},register:function(e,n){xi[e]=n},unregister:function(e){delete xi[e]},get:function(e){return xi[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return wf=e},getActiveLink:function(){return wf},scrollTo:function(e,n){var r=this.get(e);if(!r){console.warn("target Element not found");return}n=zE({},n,{absolute:!1});var i=n.containerId,o=n.container,s=void 0;i?s=document.getElementById(i):o&&o.nodeType?s=o:s=document,n.absolute=!0;var a=n.horizontal,u=UE.default.scrollOffset(s,r,a)+(n.offset||0);if(!n.smooth){Bi.default.registered.begin&&Bi.default.registered.begin(e,r),s===document?n.horizontal?window.scrollTo(u,0):window.scrollTo(0,u):s.scrollTop=u,Bi.default.registered.end&&Bi.default.registered.end(e,r);return}RE.default.animateTopScroll(u,n,e,r)}};var ws={exports:{}},Si={exports:{}},_e={};/** @license React v16.13.1
92
+ `,$c="/",ef="*",Bn="",nD="comment",rD="declaration",iD=function(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function i(y){var v=y.match(YC);v&&(n+=v.length);var d=y.lastIndexOf(tD);r=~d?y.length-d:r+y.length}function o(){var y={line:n,column:r};return function(v){return v.position=new s(y),l(),v}}function s(y){this.start=y,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;function a(y){var v=new Error(e.source+":"+n+":"+r+": "+y);if(v.reason=y,v.filename=e.source,v.line=n,v.column=r,v.source=t,!e.silent)throw v}function u(y){var v=y.exec(t);if(v){var d=v[0];return i(d),t=t.slice(d.length),v}}function l(){u(KC)}function c(y){var v;for(y=y||[];v=p();)v!==!1&&y.push(v);return y}function p(){var y=o();if(!($c!=t.charAt(0)||ef!=t.charAt(1))){for(var v=2;Bn!=t.charAt(v)&&(ef!=t.charAt(v)||$c!=t.charAt(v+1));)++v;if(v+=2,Bn===t.charAt(v-1))return a("End of comment missing");var d=t.slice(2,v-2);return r+=2,i(d),t=t.slice(v),r+=2,y({type:nD,comment:d})}}function h(){var y=o(),v=u(XC);if(v){if(p(),!u(JC))return a("property missing ':'");var d=u(QC),D=y({type:rD,property:tf(v[0].replace(Qc,Bn)),value:d?tf(d[0].replace(Qc,Bn)):Bn});return u($C),D}}function g(){var y=[];c(y);for(var v;v=h();)v!==!1&&(y.push(v),c(y));return y}return l(),g()};function tf(t){return t?t.replace(eD,Bn):Bn}var oD=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(as,"__esModule",{value:!0}),as.default=aD;var sD=oD(iD);function aD(t,e){var n=null;if(!t||typeof t!="string")return n;var r=(0,sD.default)(t),i=typeof e=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,a=o.value;i?e(s,a,o):a&&(n=n||{},n[s]=a)}}),n}var yi={};Object.defineProperty(yi,"__esModule",{value:!0}),yi.camelCase=void 0;var uD=/^--[a-zA-Z0-9-]+$/,lD=/-([a-z])/g,cD=/^[^-]+$/,fD=/^-(webkit|moz|ms|o|khtml)-/,dD=/^-(ms)-/,pD=function(t){return!t||cD.test(t)||uD.test(t)},hD=function(t,e){return e.toUpperCase()},nf=function(t,e){return"".concat(e,"-")},vD=function(t,e){return e===void 0&&(e={}),pD(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(dD,nf):t=t.replace(fD,nf),t.replace(lD,hD))};yi.camelCase=vD;var gD=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},mD=gD(as),yD=yi;function us(t,e){var n={};return!t||typeof t!="string"||(0,mD.default)(t,function(r,i){r&&i&&(n[(0,yD.camelCase)(r,e)]=i)}),n}us.default=us;var CD=us;(function(t){var e=We&&We.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=o,t.setStyleProp=a;var n=f,r=e(CD),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(c,p){return c.includes("-")?!i.has(c):!!(p&&typeof p.is=="string")}var s={reactCompat:!0};function a(c,p){if(typeof c=="string"){if(!c.trim()){p.style={};return}try{p.style=(0,r.default)(c,s)}catch{p.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var u=function(c){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};t.canTextBeChildOfNode=u;var l=function(c){return c};t.returnFirstArg=l})(ss),Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=wD;var hr=At,rf=ss,DD=["checked","value"],ED=["input","select","textarea"],bD={reset:!0,submit:!0};function wD(t,e){t===void 0&&(t={});var n={},r=!!(t.type&&bD[t.type]);for(var i in t){var o=t[i];if((0,hr.isCustomAttribute)(i)){n[i]=o;continue}var s=i.toLowerCase(),a=of(s);if(a){var u=(0,hr.getPropertyInfo)(a);switch(DD.includes(a)&&ED.includes(e)&&!r&&(a=of("default"+s)),n[a]=o,u&&u.type){case hr.BOOLEAN:n[a]=!0;break;case hr.OVERLOADED_BOOLEAN:o===""&&(n[a]=!0);break}continue}rf.PRESERVE_CUSTOM_ATTRIBUTES&&(n[i]=o)}return(0,rf.setStyleProp)(t.style,n),n}function of(t){return hr.possibleStandardNames[t]}var ls={},BD=We&&We.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.default=sf;var cs=f,xD=BD(hi),vr=ss,SD={cloneElement:cs.cloneElement,createElement:cs.createElement,isValidElement:cs.isValidElement};function sf(t,e){e===void 0&&(e={});for(var n=[],r=typeof e.replace=="function",i=e.transform||vr.returnFirstArg,o=e.library||SD,s=o.cloneElement,a=o.createElement,u=o.isValidElement,l=t.length,c=0;c<l;c++){var p=t[c];if(r){var h=e.replace(p,c);if(u(h)){l>1&&(h=s(h,{key:h.key||c})),n.push(i(h,p,c));continue}}if(p.type==="text"){var g=!p.data.trim().length;if(g&&p.parent&&!(0,vr.canTextBeChildOfNode)(p.parent)||e.trim&&g)continue;n.push(i(p.data,p,c));continue}var y=p,v={};AD(y)?((0,vr.setStyleProp)(y.attribs.style,y.attribs),v=y.attribs):y.attribs&&(v=(0,xD.default)(y.attribs,y.name));var d=void 0;switch(p.type){case"script":case"style":p.children[0]&&(v.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?v.defaultValue=p.children[0].data:p.children&&p.children.length&&(d=sf(p.children,e));break;default:continue}l>1&&(v.key=c),n.push(i(a(p.name,v,d),p,c))}return n.length===1?n[0]:n}function AD(t){return vr.PRESERVE_CUSTOM_ATTRIBUTES&&t.type==="tag"&&(0,vr.isCustomComponent)(t.name,t.attribs)}(function(t){var e=We&&We.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=a;var n=e(Yo);t.htmlToDOM=n.default;var r=e(hi);t.attributesToProps=r.default;var i=e(ls);t.domToReact=i.default;var o=Qo;Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return o.Text}});var s={lowerCaseAttributeNames:!1};function a(u,l){if(typeof u!="string")throw new TypeError("First argument must be a string");return u?(0,i.default)((0,n.default)(u,(l==null?void 0:l.htmlparser2)||s),l):[]}})(Ac);const af=Or(Ac),LD=af.default||af,fs=t=>{if(typeof t=="string")return{text:t||""};function e(i){return i.map(o=>fs(o))}const n=Array.isArray(t.props.children)?e(t.props.children):[{text:t.props.children}],r=typeof t.props.children=="string"?t.props.children:"";switch(t.type){case"p":return{type:"paragraph",children:n};case"blockquote":return{type:"blockQuote",children:n};case"ul":return{type:"bulletedList",children:n};case"h1":return{type:"headingOne",children:n};case"h2":return{type:"headingTwo",children:n};case"li":return{type:"listItem",children:n};case"ol":return{type:"numberedList",children:n};case"strong":return{type:"paragraph",text:r,bold:!0};case"code":return{text:r,code:!0};case"em":return{text:r,italic:!0};case"u":return{text:r,underline:!0};default:return{text:r}}},OD=t=>{const e=LD(t);return Array.isArray(e)?e.flatMap(n=>typeof n=="string"?{text:n}:fs(n)):typeof e=="string"?[{text:e}]:[fs(e)]};function uf(t){return t.map(e=>ne.string(e)).join("")}const lf=t=>{if(ce.isText(t)){let e=t.text;return t.bold&&(e=`<strong>${e}</strong>`),t.code&&(e=`<code>${e}</code>`),t.italic&&(e=`<em>${e}</em>`),t.underline&&(e=`<u>${e}</u>`),e}if(ue.isElement(t)){const e=t.children.map(n=>lf(n)).join("");switch(t.type){case"paragraph":return`<p>${e}</p>`;case"blockQuote":return`<blockquote>${e}</blockquote>`;case"bulletedList":return`<ul>${e}</ul>`;case"headingOne":return`<h1>${e}</h1>`;case"headingTwo":return`<h2>${e}</h2>`;case"listItem":return`<li>${e}</li>`;case"numberedList":return`<ol>${e}</ol>`;default:return e}}return""},cf=t=>t.children.map(e=>lf(e)).join(""),ff=t=>/<\/?[a-z][\s\S]*>/i.test(t);function PD({name:t,defaultValue:e,enforceCharacterLimit:n=!1,onChangeCharactersCount:r,maxLimit:i=2e3,onValueChange:o,onChange:s,isError:a}){const u=f.useMemo(()=>fm(DC(um())),[]),{id:l,inputRef:c,error:p}=yt(),h=f.useRef(null),g=ff(e)?OD(e):xC,y=uf(g),[v,d]=f.useState(y.length),[D,B]=f.useState(ff(e)?e:""),[b,O]=f.useState(!1),E=c||h,w=a||!!p,A=f.useCallback(wC,[]),F=f.useCallback(bC,[]);function R(T){const N=uf(T);d(N.length),r&&r(N.length),!(n&&N.length>=i)&&(B(cf(u)),s&&s(T),o&&o(cf(u)),u.children=T,Q.setNodes(u,{children:T}))}const P=b?"focusTrue":"focusFalse",I=`arkynRichText ${w||i<v?"errorTrue":"errorFalse"} ${P}`,j=i-v;return x.jsxs(yC,{editor:u,initialValue:g,onChange:R,onValueChange:R,children:[x.jsxs("div",{className:I,children:[x.jsxs(BC,{children:[x.jsx(wn,{format:"headingOne",icon:Se.Heading1}),x.jsx(wn,{format:"headingTwo",icon:Se.Heading2}),x.jsx(wn,{format:"blockQuote",icon:Se.Quote}),x.jsx(oi,{format:"bold",icon:Se.Bold}),x.jsx(oi,{format:"italic",icon:Se.Italic}),x.jsx(oi,{format:"underline",icon:Se.Underline}),x.jsx(oi,{format:"code",icon:Se.Code}),x.jsx(wn,{format:"left",icon:Se.AlignLeft}),x.jsx(wn,{format:"right",icon:Se.AlignRight}),x.jsx(wn,{format:"center",icon:Se.AlignCenter}),x.jsx(wn,{format:"justify",icon:Se.AlignJustify})]}),x.jsx(lC,{className:"editorContainer",renderElement:F,renderLeaf:A,spellCheck:!0,id:l,onFocus:()=>O(!0),onBlur:()=>O(!1),onKeyDown:T=>{for(const N in Sc)if(Ph(N,T)){T.preventDefault();const K=Sc[N];xc(u,K)}}}),j<0&&x.jsx("div",{className:"restatesCharacters",children:j})]}),x.jsx("input",{ref:E,type:"hidden",name:t,value:D}),x.jsx("input",{type:"hidden",name:`${t}Count`,value:v})]})}function FD(t,e){const{isLoading:n,isError:r,size:i="md",className:o="",variant:s="solid",prefix:a,leftIcon:u,disabled:l,readOnly:c,onFocus:p,onBlur:h,title:g,style:y,closeOnSelect:v=!0,...d}=t,E=`arkyn_select ${a?"hasPrefix":""} ${s} ${i} ${l||c||n?"opacity":""} ${r?"errored":""} ${e?"focused":""} ${o}`,A={md:20,lg:20}[i];return{isLoading:n,className:E,prefix:Pd(a,A,"prefix"),LeftIcon:u,disabled:l||n||c,onFocus:p,onBlur:h,title:g,closeOnSelect:v,style:y,iconSize:A,Spinner:x.jsx(Se.Loader2,{className:"spinner",size:A,strokeWidth:2.5}),...d}}function MD(t){var J;const[e,n]=f.useState(!1),{inputRef:r,id:i,error:o}=yt(),s=f.useRef(null),a=r||s,u=t.isError||!!o,{disabled:l,title:c,style:p,className:h,prefix:g,iconSize:y,isLoading:v,LeftIcon:d,value:D=null,defaultValue:B="",onFocus:b,onBlur:O,Spinner:E,name:w,placeholder:A,onSelect:F,options:R,optionMaxHeight:P,closeOnSelect:z,...I}=FD({...t,id:i,isError:u},e),[j,T]=f.useState(B);function N(){l||!(a!=null&&a.current)||e||(n(!0),a.current.focus())}function K(q){e||(n(!0),b&&b(q))}function _(){n(!1),O&&a.current&&a.current.blur()}function ie(q){const{label:ee,value:Y}=q;T(j!==Y?Y:""),F&&F({label:ee,value:Y}),z&&_()}const re=typeof D=="string"?D:j,k=((J=R.find(q=>q.value===re))==null?void 0:J.label)||"",H=()=>{if(!e&&k)return!0;if(!e&&!k)return!1;if(e&&k)return!0;if(e&&!k)return!1};return x.jsxs(x.Fragment,{children:[x.jsxs("section",{title:c,style:p,onClick:N,className:`${h} placeholder_dark_${H()}`,children:[g,d&&x.jsx(d,{size:y,strokeWidth:2.5}),x.jsx("input",{disabled:l,readOnly:!0,placeholder:k||A,onFocus:K,...I}),x.jsx("input",{type:"hidden",ref:a,name:w,value:re||"",readOnly:!0}),e&&x.jsxs("div",{className:"arkyn_select_content",style:{overflow:"auto",maxHeight:P},children:[R.map(({label:q,value:ee})=>x.jsxs("div",{onClick:()=>ie({label:q,value:ee}),className:re===ee?"arkyn_select_option active":"arkyn_select_option",children:[q," ",x.jsx(Se.Check,{})]},ee)),R.length<=0&&x.jsx("p",{children:"Sem opções disponíveis"})]}),!v&&x.jsx(Se.ChevronDown,{className:"arkyn_select_arrow",size:y,strokeWidth:2.5}),v&&E]}),e&&x.jsx("aside",{className:"arkyn_select_overlay",onClick:_})]})}function kD(t){const{size:e="lg",defaultChecked:n=!1,checked:r=null,value:i,unCheckedValue:o="",name:s,className:a="",onCheck:u,...l}=t,[c,p]=f.useState(n),{id:h,inputRef:g}=yt(),y=typeof r=="boolean"?r:c;function v(){p(!c),u&&u(y?o:i||"checked")}const D=`arkynSwitch ${y?"checkedTrue":"checkedFalse"} ${e} ${a}`;return x.jsx("button",{type:"button",onClick:v,className:D,...l,children:x.jsx("input",{id:h,type:"hidden",name:s,ref:g,onClick:v,value:y?i||"checked":o})})}function TD(t){const{variant:e="solid",size:n="md",className:r,disabled:i=!1,readOnly:o=!1,onFocus:s,onBlur:a,title:u,style:l,...c}=t,[p,h]=f.useState(!1),{inputRef:g,id:y,error:v}=yt(),d=f.useRef(null),D=g||d,b=t.isError||!!v?"errorTrue":"errorFalse",w=`arkynTextarea ${e} ${n} ${i||o?"opacityTrue":"opacityFalse"} ${b} ${p?"focusedTrue":"focusedFalse"} ${r}`;function A(){i||!(D!=null&&D.current)||(h(!0),D.current.focus())}function F(P){h(!0),s&&s(P)}function R(P){h(!1),a&&a(P)}return x.jsx("section",{title:u,style:l,onClick:A,className:w,children:x.jsx("textarea",{id:y,disabled:i,readOnly:o,ref:D,onFocus:F,onBlur:R,...c})})}function ID(t){const{className:e="",...n}=t,r=`arkynBreadcrumbContainer ${e}`;return x.jsx("nav",{className:r,...n})}function jD(t){const{pathname:e}=Ot.useLocation(),{className:n="",disabled:r=!1,children:i,to:o,...s}=t,u=`arkynBreadcrumbLink ${e===o?"active":"inactive"} ${n}`;return r?x.jsxs("p",{className:u,children:[x.jsx(Se.ChevronRight,{size:14,strokeWidth:2.5}),i]}):x.jsxs(Ot.Link,{to:o,className:u,...s,children:[x.jsx(Se.ChevronRight,{size:14,strokeWidth:2.5}),i]})}function ds(t=""){const e=Ot.useLocation(),n=new URLSearchParams(e.search),r=t?`${t}:`:"",i=o=>{Object.entries(o).forEach(([s,a])=>{a===void 0?n.delete(`${r}${s}`):n.set(`${r}${s}`,String(a))})};return{getParam:o=>n.get(`${r}${o}`),getScopedSearch:o=>{i(o);let s=n.toString();return s&&(s="?"+s),s}}}function ND(t){const{scope:e,totalCountRegisters:n,perPageKey:r="per_page",pageKey:i="page",siblingsCount:o=2,...s}=t,a=Ot.useNavigate(),{getParam:u,getScopedSearch:l}=ds(e),c=Number(u(i))||1,p=Number(u(r))||20,h=Math.ceil(n/p),g=Od(c,o),y=Ld(c,o,h);function v(d){a(l({page:d}))}return x.jsxs("div",{className:"arkynPagination",...s,children:[x.jsx("button",{className:"arkynPaginationIconButton",disabled:c<=1,onClick:()=>v(c-1),children:x.jsx(Se.ChevronLeft,{})}),c>1+o&&x.jsxs(x.Fragment,{children:[x.jsx("button",{className:"arkynPaginationPageButton",onClick:()=>v(1),children:"1"}),c>2+o&&x.jsx("button",{disabled:!0,className:"arkynPaginationSpread",children:x.jsx(Se.Ellipsis,{})})]}),g.map((d,D)=>x.jsx("button",{onClick:()=>v(d),className:"arkynPaginationPageButton",children:d},D)),x.jsx("button",{className:"arkynPaginationCurrent",disabled:!0,children:c}),y.map((d,D)=>x.jsx("button",{onClick:()=>v(d),className:"arkynPaginationPageButton",children:d},D)),c+o<h&&x.jsxs(x.Fragment,{children:[c+1+o<h&&x.jsx("button",{disabled:!0,className:"arkynPaginationSpread",children:x.jsx(Se.Ellipsis,{})}),x.jsx("button",{className:"arkynPaginationPageButton",onClick:()=>v(h),children:h})]}),x.jsx("button",{className:"arkynPaginationIconButton",disabled:c>=h,onClick:()=>v(c+1),children:x.jsx(Se.ChevronRight,{})})]})}const ps=f.createContext({});function _D(){if(!ps)throw new Error("useTabContext must be used within a TabProvider");return f.useContext(ps)}function zD(t){const{children:e,onClick:n,defaultActive:r,className:i,...o}=t,[s,a]=f.useState(r||""),[u,l]=f.useState(!0),c=f.useRef(null),p=`arkynTabContainer ${i||""}`,[h,g]=f.useState({width:"0px",left:"0px",transition:"none"}),y=(d,D)=>{const B=d.getBoundingClientRect(),b=c.current.getBoundingClientRect(),O=D?void 0:"none";l(!1),g({transition:O,width:`${B.width}px`,left:`${B.left-b.left}px`})};f.useEffect(()=>{const d=c.current;if(!d)return;let D=null;D=d.querySelector("button.activeTrue"),D&&y(D)},[]);const v=d=>{const D=d.target;D&&(a(D.value),D.classList.add("activeTrue"),y(D,!0),n&&n(D.value))};return x.jsxs("nav",{ref:c,className:p.trim(),...o,children:[x.jsx(ps.Provider,{value:{handleTabClick:v,showInitialTab:u,value:s},children:e}),x.jsx("div",{className:"activeLine",style:h})]})}function WD(t){const{children:e,className:n="",onClick:r,...i}=t,{value:o,showInitialTab:s,handleTabClick:a}=_D(),u=o===i.value&&o?"activeTrue":"activeFalse",c=`arkynTabButton ${o===i.value&&s?"showBorderBottom":""} ${u} ${n}`;function p(h){a(h),r&&r(h)}return x.jsx("button",{onClick:p,className:c.trim(),...i,children:e})}const df=f.createContext({});function UD(t){const{isVisibled:e,makeInvisible:n,orientation:r="left",children:i,className:o,...s}=t,a=r==="left"?"-100%":"100%",l=`arkynDrawerContainer ${r} ${e?"visibleTrue":"visibleFalse"} ${o}`;return x.jsx(df.Provider,{value:{makeInvisible:n},children:x.jsx(cn.AnimatePresence,{children:e&&x.jsxs("aside",{className:l.trim(),...s,children:[x.jsx(cn.motion.div,{className:"arkynDrawerContainerOverlay",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:n}),x.jsx(cn.motion.div,{className:"arkynDrawerContainerContent",transition:{ease:"easeOut",duration:.15},initial:{transform:`translateX(${a})`},animate:{transform:"translateX(0px)"},exit:{transform:`translateX(${a})`},children:i})]})})})}function HD(t){const{showCloseButton:e=!0,className:n,children:r,...i}=t,{makeInvisible:o}=f.useContext(df),s=`arkynDrawerHeader ${n}`;return x.jsxs("header",{className:s.trim(),...i,children:[r,e&&x.jsx("button",{className:"arkynDrawerHeaderCloseButton",type:"button",onClick:o,"aria-label":"Close drawer",children:x.jsx(Se.X,{size:24})})]})}const pf=f.createContext({});function RD(t){const{isVisibled:e,makeInvisible:n,children:r,className:i="",...o}=t,a=`arkynModalContainer ${e?"visibleTrue":"visibleFalse"} ${i}`;return x.jsx(pf.Provider,{value:{makeInvisible:n},children:x.jsx(cn.AnimatePresence,{children:e&&x.jsxs("aside",{className:a.trim(),...o,children:[x.jsx(cn.motion.div,{className:"arkynModalContainerOverlay",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:n}),x.jsx(cn.motion.div,{className:"arkynModalContainerContent",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0,scale:.75},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},children:r})]})})})}function VD(t){const{alignment:e="right",className:n,...r}=t,i=`arkynModalFooter ${e} ${n}`;return x.jsx("footer",{className:i.trim(),...r})}function qD(t){const{showCloseButton:e=!0,className:n,children:r,...i}=t,{makeInvisible:o}=f.useContext(pf),s=`arkynModalHeader ${n}`;return x.jsxs("header",{className:s.trim(),...i,children:[r,e&&x.jsx("button",{type:"button",onClick:o,"aria-label":"Close modal button",className:"arkynModalHeaderCloseButton",children:x.jsx(Se.X,{size:24})})]})}function GD(t){const{children:e,button:n,closeOnClick:r,orientation:i="bottomLeft"}=t,[o,s]=f.useState(!1),u=`arkynPopover ${i} ${o?"visibleTrue":"visibleFalse"}`;function l(){o||s(!0)}return x.jsxs("div",{className:u,onClick:l,children:[n,x.jsx(cn.motion.div,{style:{visibility:o?"visible":"hidden"},transition:{ease:"easeOut",duration:0},initial:{opacity:0},animate:{opacity:o?1:0},exit:{opacity:0},onClick:()=>r&&s(!1),className:"arkynPopoverContent",children:e}),o&&x.jsx("div",{onClick:()=>s(!1),className:"arkynPopoverOverlay"})]})}function ZD(t){const{message:e,title:n,type:r,size:i="lg"}=t,o=`arkynToast ${r} ${i}`;function s(){switch(r){case"info":return x.jsx(Se.Info,{});case"success":return x.jsx(Se.CheckCircle2,{});case"danger":return x.jsx(Se.XCircle,{});case"warning":return x.jsx(Se.AlertCircle,{});default:return x.jsx(Se.Info,{})}}return x.jsxs("div",{className:o,children:[x.jsxs("div",{children:[x.jsx("div",{className:"bg"}),x.jsx(s,{})]}),x.jsxs("p",{children:[x.jsx("strong",{title:n,children:n}),x.jsx("span",{children:e})]})]})}function YD(t){const{text:e,size:n="lg",children:r,orientation:i="top",className:o="",...s}=t,a=`arkynTooltip ${n} ${i} ${o}`;return x.jsxs("div",{className:a.trim(),...s,children:[r,x.jsx("div",{className:"arkynTooltipText",children:e})]})}var Qe={},hs={},gr={},mr={},hf="Expected a function",vf=NaN,KD="[object Symbol]",XD=/^\s+|\s+$/g,JD=/^[-+]0x[0-9a-f]+$/i,QD=/^0b[01]+$/i,$D=/^0o[0-7]+$/i,eE=parseInt,tE=typeof We=="object"&&We&&We.Object===Object&&We,nE=typeof self=="object"&&self&&self.Object===Object&&self,rE=tE||nE||Function("return this")(),iE=Object.prototype,oE=iE.toString,sE=Math.max,aE=Math.min,vs=function(){return rE.Date.now()};function uE(t,e,n){var r,i,o,s,a,u,l=0,c=!1,p=!1,h=!0;if(typeof t!="function")throw new TypeError(hf);e=gf(e)||0,Ci(n)&&(c=!!n.leading,p="maxWait"in n,o=p?sE(gf(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function g(w){var A=r,F=i;return r=i=void 0,l=w,s=t.apply(F,A),s}function y(w){return l=w,a=setTimeout(D,e),c?g(w):s}function v(w){var A=w-u,F=w-l,R=e-A;return p?aE(R,o-F):R}function d(w){var A=w-u,F=w-l;return u===void 0||A>=e||A<0||p&&F>=o}function D(){var w=vs();if(d(w))return B(w);a=setTimeout(D,v(w))}function B(w){return a=void 0,h&&r?g(w):(r=i=void 0,s)}function b(){a!==void 0&&clearTimeout(a),l=0,r=u=i=a=void 0}function O(){return a===void 0?s:B(vs())}function E(){var w=vs(),A=d(w);if(r=arguments,i=this,u=w,A){if(a===void 0)return y(u);if(p)return a=setTimeout(D,e),g(u)}return a===void 0&&(a=setTimeout(D,e)),s}return E.cancel=b,E.flush=O,E}function lE(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(hf);return Ci(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),uE(t,e,{leading:r,maxWait:e,trailing:i})}function Ci(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function cE(t){return!!t&&typeof t=="object"}function fE(t){return typeof t=="symbol"||cE(t)&&oE.call(t)==KD}function gf(t){if(typeof t=="number")return t;if(fE(t))return vf;if(Ci(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ci(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(XD,"");var n=QD.test(t);return n||$D.test(t)?eE(t.slice(2),n?2:8):JD.test(t)?vf:+t}var dE=lE,yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.addPassiveEventListener=function(e,n,r){var i=r.name;i||(i=n,console.warn("Listener must be a named function.")),Di.has(n)||Di.set(n,new Set);var o=Di.get(n);if(!o.has(i)){var s=function(){var a=!1;try{var u=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,u)}catch{}return a}();e.addEventListener(n,r,s?{passive:!0}:!1),o.add(i)}},yr.removePassiveEventListener=function(e,n,r){e.removeEventListener(n,r),Di.get(n).delete(r.name||n)};var Di=new Map;Object.defineProperty(mr,"__esModule",{value:!0});var pE=dE,hE=gE(pE),vE=yr;function gE(t){return t&&t.__esModule?t:{default:t}}var mE=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,hE.default)(e,n)},Ye={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,n){if(e){var r=mE(function(i){Ye.scrollHandler(e)},n);Ye.scrollSpyContainers.push(e),(0,vE.addPassiveEventListener)(e,"scroll",r)}},isMounted:function(e){return Ye.scrollSpyContainers.indexOf(e)!==-1},currentPositionX:function(e){if(e===document){var n=window.pageYOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}else return e.scrollLeft},currentPositionY:function(e){if(e===document){var n=window.pageXOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}else return e.scrollTop},scrollHandler:function(e){var n=Ye.scrollSpyContainers[Ye.scrollSpyContainers.indexOf(e)].spyCallbacks||[];n.forEach(function(r){return r(Ye.currentPositionX(e),Ye.currentPositionY(e))})},addStateHandler:function(e){Ye.spySetState.push(e)},addSpyHandler:function(e,n){var r=Ye.scrollSpyContainers[Ye.scrollSpyContainers.indexOf(n)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(e),e(Ye.currentPositionX(n),Ye.currentPositionY(n))},updateStates:function(){Ye.spySetState.forEach(function(e){return e()})},unmount:function(e,n){Ye.scrollSpyContainers.forEach(function(r){return r.spyCallbacks&&r.spyCallbacks.length&&r.spyCallbacks.indexOf(n)>-1&&r.spyCallbacks.splice(r.spyCallbacks.indexOf(n),1)}),Ye.spySetState&&Ye.spySetState.length&&Ye.spySetState.indexOf(e)>-1&&Ye.spySetState.splice(Ye.spySetState.indexOf(e),1),document.removeEventListener("scroll",Ye.scrollHandler)},update:function(){return Ye.scrollSpyContainers.forEach(function(e){return Ye.scrollHandler(e)})}};mr.default=Ye;var Nn={},Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});var yE=function(e,n){var r=e.indexOf("#")===0?e.substring(1):e,i=r?"#"+r:"",o=window&&window.location,s=i?o.pathname+o.search+i:o.pathname+o.search;n?history.pushState(history.state,"",s):history.replaceState(history.state,"",s)},CE=function(){return window.location.hash.replace(/^#/,"")},DE=function(e){return function(n){return e.contains?e!=n&&e.contains(n):!!(e.compareDocumentPosition(n)&16)}},EE=function(e){return getComputedStyle(e).position!=="static"},gs=function(e,n){for(var r=e.offsetTop,i=e.offsetParent;i&&!n(i);)r+=i.offsetTop,i=i.offsetParent;return{offsetTop:r,offsetParent:i}},bE=function(e,n,r){if(r)return e===document?n.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(e).position!=="static"?n.offsetLeft:n.offsetLeft-e.offsetLeft;if(e===document)return n.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(EE(e)){if(n.offsetParent!==e){var i=function(c){return c===e||c===document},o=gs(n,i),s=o.offsetTop,a=o.offsetParent;if(a!==e)throw new Error("Seems containerElement is not an ancestor of the Element");return s}return n.offsetTop}if(n.offsetParent===e.offsetParent)return n.offsetTop-e.offsetTop;var u=function(c){return c===document};return gs(n,u).offsetTop-gs(e,u).offsetTop};Cr.default={updateHash:yE,getHash:CE,filterElementInContainer:DE,scrollOffset:bE};var Ei={},ms={};Object.defineProperty(ms,"__esModule",{value:!0}),ms.default={defaultEasing:function(e){return e<.5?Math.pow(e*2,2)/2:1-Math.pow((1-e)*2,2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}};var ys={};Object.defineProperty(ys,"__esModule",{value:!0});var wE=yr,BE=["mousedown","mousewheel","touchmove","keydown"];ys.default={subscribe:function(e){return typeof document<"u"&&BE.forEach(function(n){return(0,wE.addPassiveEventListener)(document,n,e)})}};var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});var Cs={registered:{},scrollEvent:{register:function(e,n){Cs.registered[e]=n},remove:function(e){Cs.registered[e]=null}}};Dr.default=Cs,Object.defineProperty(Ei,"__esModule",{value:!0});var xE=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},SE=Cr;bi(SE);var AE=ms,mf=bi(AE),LE=ys,OE=bi(LE),PE=Dr,Mt=bi(PE);function bi(t){return t&&t.__esModule?t:{default:t}}var yf=function(e){return mf.default[e.smooth]||mf.default.defaultEasing},FE=function(e){return typeof e=="function"?e:function(){return e}},ME=function(){if(typeof window<"u")return window.requestAnimationFrame||window.webkitRequestAnimationFrame},Ds=function(){return ME()||function(t,e,n){window.setTimeout(t,n||1e3/60,new Date().getTime())}}(),Cf=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},Df=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollLeft;var r=window.pageXOffset!==void 0,i=(document.compatMode||"")==="CSS1Compat";return r?window.pageXOffset:i?document.documentElement.scrollLeft:document.body.scrollLeft},Ef=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollTop;var r=window.pageXOffset!==void 0,i=(document.compatMode||"")==="CSS1Compat";return r?window.pageYOffset:i?document.documentElement.scrollTop:document.body.scrollTop},kE=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollWidth-n.offsetWidth;var r=document.body,i=document.documentElement;return Math.max(r.scrollWidth,r.offsetWidth,i.clientWidth,i.scrollWidth,i.offsetWidth)},TE=function(e){var n=e.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollHeight-n.offsetHeight;var r=document.body,i=document.documentElement;return Math.max(r.scrollHeight,r.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},IE=function t(e,n,r){var i=n.data;if(!n.ignoreCancelEvents&&i.cancel){Mt.default.registered.end&&Mt.default.registered.end(i.to,i.target,i.currentPositionY);return}if(i.delta=Math.round(i.targetPosition-i.startPosition),i.start===null&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:e(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=t.bind(null,e,n);Ds.call(window,o);return}Mt.default.registered.end&&Mt.default.registered.end(i.to,i.target,i.currentPosition)},Es=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},Er=function(e,n,r,i){n.data=n.data||Cf(),window.clearTimeout(n.data.delayTimeout);var o=function(){n.data.cancel=!0};if(OE.default.subscribe(o),Es(n),n.data.start=null,n.data.cancel=!1,n.data.startPosition=n.horizontal?Df(n):Ef(n),n.data.targetPosition=n.absolute?e:e+n.data.startPosition,n.data.startPosition===n.data.targetPosition){Mt.default.registered.end&&Mt.default.registered.end(n.data.to,n.data.target,n.data.currentPosition);return}n.data.delta=Math.round(n.data.targetPosition-n.data.startPosition),n.data.duration=FE(n.duration)(n.data.delta),n.data.duration=isNaN(parseFloat(n.data.duration))?1e3:parseFloat(n.data.duration),n.data.to=r,n.data.target=i;var s=yf(n),a=IE.bind(null,s,n);if(n&&n.delay>0){n.data.delayTimeout=window.setTimeout(function(){Mt.default.registered.begin&&Mt.default.registered.begin(n.data.to,n.data.target),Ds.call(window,a)},n.delay);return}Mt.default.registered.begin&&Mt.default.registered.begin(n.data.to,n.data.target),Ds.call(window,a)},wi=function(e){return e=xE({},e),e.data=e.data||Cf(),e.absolute=!0,e},jE=function(e){Er(0,wi(e))},NE=function(e,n){Er(e,wi(n))},_E=function(e){e=wi(e),Es(e),Er(e.horizontal?kE(e):TE(e),e)},zE=function(e,n){n=wi(n),Es(n);var r=n.horizontal?Df(n):Ef(n);Er(e+r,n)};Ei.default={animateTopScroll:Er,getAnimationType:yf,scrollToTop:jE,scrollToBottom:_E,scrollTo:NE,scrollMore:zE},Object.defineProperty(Nn,"__esModule",{value:!0});var WE=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},UE=Cr,HE=bs(UE),RE=Ei,VE=bs(RE),qE=Dr,Bi=bs(qE);function bs(t){return t&&t.__esModule?t:{default:t}}var xi={},bf=void 0;Nn.default={unmount:function(){xi={}},register:function(e,n){xi[e]=n},unregister:function(e){delete xi[e]},get:function(e){return xi[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return bf=e},getActiveLink:function(){return bf},scrollTo:function(e,n){var r=this.get(e);if(!r){console.warn("target Element not found");return}n=WE({},n,{absolute:!1});var i=n.containerId,o=n.container,s=void 0;i?s=document.getElementById(i):o&&o.nodeType?s=o:s=document,n.absolute=!0;var a=n.horizontal,u=HE.default.scrollOffset(s,r,a)+(n.offset||0);if(!n.smooth){Bi.default.registered.begin&&Bi.default.registered.begin(e,r),s===document?n.horizontal?window.scrollTo(u,0):window.scrollTo(0,u):s.scrollTop=u,Bi.default.registered.end&&Bi.default.registered.end(e,r);return}VE.default.animateTopScroll(u,n,e,r)}};var ws={exports:{}},Si={exports:{}},_e={};/** @license React v16.13.1
93
93
  * react-is.production.min.js
94
94
  *
95
95
  * Copyright (c) Facebook, Inc. and its affiliates.
96
96
  *
97
97
  * This source code is licensed under the MIT license found in the
98
98
  * LICENSE file in the root directory of this source tree.
99
- */var Bf;function qE(){if(Bf)return _e;Bf=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,d=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function b(E){if(typeof E=="object"&&E!==null){var w=E.$$typeof;switch(w){case e:switch(E=E.type,E){case u:case l:case r:case o:case i:case p:return E;default:switch(E=E&&E.$$typeof,E){case a:case c:case y:case g:case s:return E;default:return w}}case n:return w}}}function O(E){return b(E)===l}return _e.AsyncMode=u,_e.ConcurrentMode=l,_e.ContextConsumer=a,_e.ContextProvider=s,_e.Element=e,_e.ForwardRef=c,_e.Fragment=r,_e.Lazy=y,_e.Memo=g,_e.Portal=n,_e.Profiler=o,_e.StrictMode=i,_e.Suspense=p,_e.isAsyncMode=function(E){return O(E)||b(E)===u},_e.isConcurrentMode=O,_e.isContextConsumer=function(E){return b(E)===a},_e.isContextProvider=function(E){return b(E)===s},_e.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},_e.isForwardRef=function(E){return b(E)===c},_e.isFragment=function(E){return b(E)===r},_e.isLazy=function(E){return b(E)===y},_e.isMemo=function(E){return b(E)===g},_e.isPortal=function(E){return b(E)===n},_e.isProfiler=function(E){return b(E)===o},_e.isStrictMode=function(E){return b(E)===i},_e.isSuspense=function(E){return b(E)===p},_e.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===l||E===o||E===i||E===p||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===g||E.$$typeof===s||E.$$typeof===a||E.$$typeof===c||E.$$typeof===d||E.$$typeof===D||E.$$typeof===B||E.$$typeof===v)},_e.typeOf=b,_e}var ze={};/** @license React v16.13.1
99
+ */var wf;function GE(){if(wf)return _e;wf=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,d=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function b(E){if(typeof E=="object"&&E!==null){var w=E.$$typeof;switch(w){case e:switch(E=E.type,E){case u:case l:case r:case o:case i:case p:return E;default:switch(E=E&&E.$$typeof,E){case a:case c:case y:case g:case s:return E;default:return w}}case n:return w}}}function O(E){return b(E)===l}return _e.AsyncMode=u,_e.ConcurrentMode=l,_e.ContextConsumer=a,_e.ContextProvider=s,_e.Element=e,_e.ForwardRef=c,_e.Fragment=r,_e.Lazy=y,_e.Memo=g,_e.Portal=n,_e.Profiler=o,_e.StrictMode=i,_e.Suspense=p,_e.isAsyncMode=function(E){return O(E)||b(E)===u},_e.isConcurrentMode=O,_e.isContextConsumer=function(E){return b(E)===a},_e.isContextProvider=function(E){return b(E)===s},_e.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},_e.isForwardRef=function(E){return b(E)===c},_e.isFragment=function(E){return b(E)===r},_e.isLazy=function(E){return b(E)===y},_e.isMemo=function(E){return b(E)===g},_e.isPortal=function(E){return b(E)===n},_e.isProfiler=function(E){return b(E)===o},_e.isStrictMode=function(E){return b(E)===i},_e.isSuspense=function(E){return b(E)===p},_e.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===l||E===o||E===i||E===p||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===g||E.$$typeof===s||E.$$typeof===a||E.$$typeof===c||E.$$typeof===d||E.$$typeof===D||E.$$typeof===B||E.$$typeof===v)},_e.typeOf=b,_e}var ze={};/** @license React v16.13.1
100
100
  * react-is.development.js
101
101
  *
102
102
  * Copyright (c) Facebook, Inc. and its affiliates.
103
103
  *
104
104
  * This source code is licensed under the MIT license found in the
105
105
  * LICENSE file in the root directory of this source tree.
106
- */var xf;function GE(){return xf||(xf=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,d=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function b(G){return typeof G=="string"||typeof G=="function"||G===r||G===l||G===o||G===i||G===p||G===h||typeof G=="object"&&G!==null&&(G.$$typeof===y||G.$$typeof===g||G.$$typeof===s||G.$$typeof===a||G.$$typeof===c||G.$$typeof===d||G.$$typeof===D||G.$$typeof===B||G.$$typeof===v)}function O(G){if(typeof G=="object"&&G!==null){var le=G.$$typeof;switch(le){case e:var se=G.type;switch(se){case u:case l:case r:case o:case i:case p:return se;default:var pe=se&&se.$$typeof;switch(pe){case a:case c:case y:case g:case s:return pe;default:return le}}case n:return le}}}var E=u,w=l,A=a,F=s,R=e,P=c,z=r,I=y,j=g,T=n,N=o,K=i,_=p,ie=!1;function re(G){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(G)||O(G)===u}function k(G){return O(G)===l}function H(G){return O(G)===a}function J(G){return O(G)===s}function q(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function ee(G){return O(G)===c}function Y(G){return O(G)===r}function C(G){return O(G)===y}function W(G){return O(G)===g}function U(G){return O(G)===n}function M(G){return O(G)===o}function X(G){return O(G)===i}function te(G){return O(G)===p}ze.AsyncMode=E,ze.ConcurrentMode=w,ze.ContextConsumer=A,ze.ContextProvider=F,ze.Element=R,ze.ForwardRef=P,ze.Fragment=z,ze.Lazy=I,ze.Memo=j,ze.Portal=T,ze.Profiler=N,ze.StrictMode=K,ze.Suspense=_,ze.isAsyncMode=re,ze.isConcurrentMode=k,ze.isContextConsumer=H,ze.isContextProvider=J,ze.isElement=q,ze.isForwardRef=ee,ze.isFragment=Y,ze.isLazy=C,ze.isMemo=W,ze.isPortal=U,ze.isProfiler=M,ze.isStrictMode=X,ze.isSuspense=te,ze.isValidElementType=b,ze.typeOf=O}()),ze}var Sf;function Af(){return Sf||(Sf=1,process.env.NODE_ENV==="production"?Si.exports=qE():Si.exports=GE()),Si.exports}/*
106
+ */var Bf;function ZE(){return Bf||(Bf=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,d=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function b(G){return typeof G=="string"||typeof G=="function"||G===r||G===l||G===o||G===i||G===p||G===h||typeof G=="object"&&G!==null&&(G.$$typeof===y||G.$$typeof===g||G.$$typeof===s||G.$$typeof===a||G.$$typeof===c||G.$$typeof===d||G.$$typeof===D||G.$$typeof===B||G.$$typeof===v)}function O(G){if(typeof G=="object"&&G!==null){var le=G.$$typeof;switch(le){case e:var se=G.type;switch(se){case u:case l:case r:case o:case i:case p:return se;default:var pe=se&&se.$$typeof;switch(pe){case a:case c:case y:case g:case s:return pe;default:return le}}case n:return le}}}var E=u,w=l,A=a,F=s,R=e,P=c,z=r,I=y,j=g,T=n,N=o,K=i,_=p,ie=!1;function re(G){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(G)||O(G)===u}function k(G){return O(G)===l}function H(G){return O(G)===a}function J(G){return O(G)===s}function q(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function ee(G){return O(G)===c}function Y(G){return O(G)===r}function C(G){return O(G)===y}function W(G){return O(G)===g}function U(G){return O(G)===n}function M(G){return O(G)===o}function X(G){return O(G)===i}function te(G){return O(G)===p}ze.AsyncMode=E,ze.ConcurrentMode=w,ze.ContextConsumer=A,ze.ContextProvider=F,ze.Element=R,ze.ForwardRef=P,ze.Fragment=z,ze.Lazy=I,ze.Memo=j,ze.Portal=T,ze.Profiler=N,ze.StrictMode=K,ze.Suspense=_,ze.isAsyncMode=re,ze.isConcurrentMode=k,ze.isContextConsumer=H,ze.isContextProvider=J,ze.isElement=q,ze.isForwardRef=ee,ze.isFragment=Y,ze.isLazy=C,ze.isMemo=W,ze.isPortal=U,ze.isProfiler=M,ze.isStrictMode=X,ze.isSuspense=te,ze.isValidElementType=b,ze.typeOf=O}()),ze}var xf;function Sf(){return xf||(xf=1,process.env.NODE_ENV==="production"?Si.exports=GE():Si.exports=ZE()),Si.exports}/*
107
107
  object-assign
108
108
  (c) Sindre Sorhus
109
109
  @license MIT
110
- */var Bs,Lf;function ZE(){if(Lf)return Bs;Lf=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Bs=i()?Object.assign:function(o,s){for(var a,u=r(o),l,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var p in a)e.call(a,p)&&(u[p]=a[p]);if(t){l=t(a);for(var h=0;h<l.length;h++)n.call(a,l[h])&&(u[l[h]]=a[l[h]])}}return u},Bs}var xs,Of;function Ss(){if(Of)return xs;Of=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xs=t,xs}var As,Pf;function Ff(){return Pf||(Pf=1,As=Function.call.bind(Object.prototype.hasOwnProperty)),As}var Ls,Mf;function YE(){if(Mf)return Ls;Mf=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Ss(),n={},r=Ff();t=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,a,u,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var p;try{if(typeof o[c]!="function"){var h=Error((u||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=o[c](s,c,u,a,null,e)}catch(y){p=y}if(p&&!(p instanceof Error)&&t((u||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var g=l?l():"";t("Failed "+a+" type: "+p.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ls=i,Ls}var Os,kf;function KE(){if(kf)return Os;kf=1;var t=Af(),e=ZE(),n=Ss(),r=Ff(),i=YE(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return Os=function(a,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function p(k){var H=k&&(l&&k[l]||k[c]);if(typeof H=="function")return H}var h="<<anonymous>>",g={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:B(),arrayOf:b,element:O(),elementType:E(),instanceOf:w,node:P(),objectOf:F,oneOf:A,oneOfType:R,shape:I,exact:j};function y(k,H){return k===H?k!==0||1/k===1/H:k!==k&&H!==H}function v(k,H){this.message=k,this.data=H&&typeof H=="object"?H:{},this.stack=""}v.prototype=Error.prototype;function d(k){if(process.env.NODE_ENV!=="production")var H={},J=0;function q(Y,C,W,U,M,X,te){if(U=U||h,X=X||W,te!==n){if(u){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=U+":"+W;!H[le]&&J<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+U+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[le]=!0,J++)}}return C[W]==null?Y?C[W]===null?new v("The "+M+" `"+X+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new v("The "+M+" `"+X+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:k(C,W,U,M,X)}var ee=q.bind(null,!1);return ee.isRequired=q.bind(null,!0),ee}function D(k){function H(J,q,ee,Y,C,W){var U=J[q],M=K(U);if(M!==k){var X=_(U);return new v("Invalid "+Y+" `"+C+"` of type "+("`"+X+"` supplied to `"+ee+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return d(H)}function B(){return d(s)}function b(k){function H(J,q,ee,Y,C){if(typeof k!="function")return new v("Property `"+C+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var W=J[q];if(!Array.isArray(W)){var U=K(W);return new v("Invalid "+Y+" `"+C+"` of type "+("`"+U+"` supplied to `"+ee+"`, expected an array."))}for(var M=0;M<W.length;M++){var X=k(W,M,ee,Y,C+"["+M+"]",n);if(X instanceof Error)return X}return null}return d(H)}function O(){function k(H,J,q,ee,Y){var C=H[J];if(!a(C)){var W=K(C);return new v("Invalid "+ee+" `"+Y+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return d(k)}function E(){function k(H,J,q,ee,Y){var C=H[J];if(!t.isValidElementType(C)){var W=K(C);return new v("Invalid "+ee+" `"+Y+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return d(k)}function w(k){function H(J,q,ee,Y,C){if(!(J[q]instanceof k)){var W=k.name||h,U=re(J[q]);return new v("Invalid "+Y+" `"+C+"` of type "+("`"+U+"` supplied to `"+ee+"`, expected ")+("instance of `"+W+"`."))}return null}return d(H)}function A(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function H(J,q,ee,Y,C){for(var W=J[q],U=0;U<k.length;U++)if(y(W,k[U]))return null;var M=JSON.stringify(k,function(te,G){var le=_(G);return le==="symbol"?String(G):G});return new v("Invalid "+Y+" `"+C+"` of value `"+String(W)+"` "+("supplied to `"+ee+"`, expected one of "+M+"."))}return d(H)}function F(k){function H(J,q,ee,Y,C){if(typeof k!="function")return new v("Property `"+C+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var W=J[q],U=K(W);if(U!=="object")return new v("Invalid "+Y+" `"+C+"` of type "+("`"+U+"` supplied to `"+ee+"`, expected an object."));for(var M in W)if(r(W,M)){var X=k(W,M,ee,Y,C+"."+M,n);if(X instanceof Error)return X}return null}return d(H)}function R(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var H=0;H<k.length;H++){var J=k[H];if(typeof J!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(J)+" at index "+H+"."),s}function q(ee,Y,C,W,U){for(var M=[],X=0;X<k.length;X++){var te=k[X],G=te(ee,Y,C,W,U,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&M.push(G.data.expectedType)}var le=M.length>0?", expected one of type ["+M.join(", ")+"]":"";return new v("Invalid "+W+" `"+U+"` supplied to "+("`"+C+"`"+le+"."))}return d(q)}function P(){function k(H,J,q,ee,Y){return T(H[J])?null:new v("Invalid "+ee+" `"+Y+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return d(k)}function z(k,H,J,q,ee){return new v((k||"React class")+": "+H+" type `"+J+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function I(k){function H(J,q,ee,Y,C){var W=J[q],U=K(W);if(U!=="object")return new v("Invalid "+Y+" `"+C+"` of type `"+U+"` "+("supplied to `"+ee+"`, expected `object`."));for(var M in k){var X=k[M];if(typeof X!="function")return z(ee,Y,C,M,_(X));var te=X(W,M,ee,Y,C+"."+M,n);if(te)return te}return null}return d(H)}function j(k){function H(J,q,ee,Y,C){var W=J[q],U=K(W);if(U!=="object")return new v("Invalid "+Y+" `"+C+"` of type `"+U+"` "+("supplied to `"+ee+"`, expected `object`."));var M=e({},J[q],k);for(var X in M){var te=k[X];if(r(k,X)&&typeof te!="function")return z(ee,Y,C,X,_(te));if(!te)return new v("Invalid "+Y+" `"+C+"` key `"+X+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(J[q],null," ")+`
111
- Valid keys: `+JSON.stringify(Object.keys(k),null," "));var G=te(W,X,ee,Y,C+"."+X,n);if(G)return G}return null}return d(H)}function T(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(T);if(k===null||a(k))return!0;var H=p(k);if(H){var J=H.call(k),q;if(H!==k.entries){for(;!(q=J.next()).done;)if(!T(q.value))return!1}else for(;!(q=J.next()).done;){var ee=q.value;if(ee&&!T(ee[1]))return!1}}else return!1;return!0;default:return!1}}function N(k,H){return k==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function K(k){var H=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":N(H,k)?"symbol":H}function _(k){if(typeof k>"u"||k===null)return""+k;var H=K(k);if(H==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return H}function ie(k){var H=_(k);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function re(k){return!k.constructor||!k.constructor.name?h:k.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Os}var Ps,Tf;function XE(){if(Tf)return Ps;Tf=1;var t=Ss();function e(){}function n(){}return n.resetWarningCache=e,Ps=function(){function r(s,a,u,l,c,p){if(p!==t){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},Ps}if(process.env.NODE_ENV!=="production"){var JE=Af(),QE=!0;ws.exports=KE()(JE.isElement,QE)}else ws.exports=XE()();var Ai=ws.exports,Li={};Object.defineProperty(Li,"__esModule",{value:!0});var $E=Cr,Fs=eb($E);function eb(t){return t&&t.__esModule?t:{default:t}}var tb={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,n){this.containers[e]=n},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,n=this.getHash();n?window.setTimeout(function(){e.scrollTo(n,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,n){var r=this.scroller,i=r.get(e);if(i&&(n||e!==r.getActiveLink())){var o=this.containers[e]||document;r.scrollTo(e,{container:o})}},getHash:function(){return Fs.default.getHash()},changeHash:function(e,n){this.isInitialized()&&Fs.default.getHash()!==e&&Fs.default.updateHash(e,n)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};Li.default=tb,Object.defineProperty(gr,"__esModule",{value:!0});var Oi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nb=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),rb=f,If=br(rb),ib=mr,Pi=br(ib),ob=Nn,sb=br(ob),ab=Ai,qe=br(ab),ub=Li,nn=br(ub);function br(t){return t&&t.__esModule?t:{default:t}}function lb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cb(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var jf={to:qe.default.string.isRequired,containerId:qe.default.string,container:qe.default.object,activeClass:qe.default.string,activeStyle:qe.default.object,spy:qe.default.bool,horizontal:qe.default.bool,smooth:qe.default.oneOfType([qe.default.bool,qe.default.string]),offset:qe.default.number,delay:qe.default.number,isDynamic:qe.default.bool,onClick:qe.default.func,duration:qe.default.oneOfType([qe.default.number,qe.default.func]),absolute:qe.default.bool,onSetActive:qe.default.func,onSetInactive:qe.default.func,ignoreCancelEvents:qe.default.bool,hashSpy:qe.default.bool,saveHashHistory:qe.default.bool,spyThrottle:qe.default.number};gr.default=function(t,e){var n=e||sb.default,r=function(o){fb(s,o);function s(a){lb(this,s);var u=cb(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a));return i.call(u),u.state={active:!1},u}return nb(s,[{key:"getScrollSpyContainer",value:function(){var u=this.props.containerId,l=this.props.container;return u&&!l?document.getElementById(u):l&&l.nodeType?l:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var u=this.getScrollSpyContainer();Pi.default.isMounted(u)||Pi.default.mount(u,this.props.spyThrottle),this.props.hashSpy&&(nn.default.isMounted()||nn.default.mount(n),nn.default.mapContainer(this.props.to,u)),Pi.default.addSpyHandler(this.spyHandler,u),this.setState({container:u})}}},{key:"componentWillUnmount",value:function(){Pi.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var u="";this.state&&this.state.active?u=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():u=this.props.className;var l={};this.state&&this.state.active?l=Oi({},this.props.style,this.props.activeStyle):l=Oi({},this.props.style);var c=Oi({},this.props);for(var p in jf)c.hasOwnProperty(p)&&delete c[p];return c.className=u,c.style=l,c.onClick=this.handleClick,If.default.createElement(t,c)}}]),s}(If.default.PureComponent),i=function(){var s=this;this.scrollTo=function(a,u){n.scrollTo(a,Oi({},s.state,u))},this.handleClick=function(a){s.props.onClick&&s.props.onClick(a),a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault(),s.scrollTo(s.props.to,s.props)},this.spyHandler=function(a,u){var l=s.getScrollSpyContainer();if(!(nn.default.isMounted()&&!nn.default.isInitialized())){var c=s.props.horizontal,p=s.props.to,h=null,g=void 0,y=void 0;if(c){var v=0,d=0,D=0;if(l.getBoundingClientRect){var B=l.getBoundingClientRect();D=B.left}if(!h||s.props.isDynamic){if(h=n.get(p),!h)return;var b=h.getBoundingClientRect();v=b.left-D+a,d=v+b.width}var O=a-s.props.offset;g=O>=Math.floor(v)&&O<Math.floor(d),y=O<Math.floor(v)||O>=Math.floor(d)}else{var E=0,w=0,A=0;if(l.getBoundingClientRect){var F=l.getBoundingClientRect();A=F.top}if(!h||s.props.isDynamic){if(h=n.get(p),!h)return;var R=h.getBoundingClientRect();E=R.top-A+u,w=E+R.height}var P=u-s.props.offset;g=P>=Math.floor(E)&&P<Math.floor(w),y=P<Math.floor(E)||P>=Math.floor(w)}var z=n.getActiveLink();if(y){if(p===z&&n.setActiveLink(void 0),s.props.hashSpy&&nn.default.getHash()===p){var I=s.props.saveHashHistory,j=I===void 0?!1:I;nn.default.changeHash("",j)}s.props.spy&&s.state.active&&(s.setState({active:!1}),s.props.onSetInactive&&s.props.onSetInactive(p,h))}if(g&&(z!==p||s.state.active===!1)){n.setActiveLink(p);var T=s.props.saveHashHistory,N=T===void 0?!1:T;s.props.hashSpy&&nn.default.changeHash(p,N),s.props.spy&&(s.setState({active:!0}),s.props.onSetActive&&s.props.onSetActive(p,h))}}}};return r.propTypes=jf,r.defaultProps={offset:0},r},Object.defineProperty(hs,"__esModule",{value:!0});var db=f,Nf=_f(db),pb=gr,hb=_f(pb);function _f(t){return t&&t.__esModule?t:{default:t}}function vb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zf(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mb=function(t){gb(e,t);function e(){var n,r,i,o;vb(this,e);for(var s=arguments.length,a=Array(s),u=0;u<s;u++)a[u]=arguments[u];return o=(r=(i=zf(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(a))),i),i.render=function(){return Nf.default.createElement("a",i.props,i.props.children)},r),zf(i,o)}return e}(Nf.default.Component);hs.default=(0,hb.default)(mb);var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});var yb=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Cb=f,Wf=Uf(Cb),Db=gr,Eb=Uf(Db);function Uf(t){return t&&t.__esModule?t:{default:t}}function bb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wb(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Bb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var xb=function(t){Bb(e,t);function e(){return bb(this,e),wb(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return yb(e,[{key:"render",value:function(){return Wf.default.createElement("button",this.props,this.props.children)}}]),e}(Wf.default.Component);Ms.default=(0,Eb.default)(xb);var ks={},Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});var Sb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ab=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Lb=f,Hf=Mi(Lb),Ob=ln;Mi(Ob);var Pb=Nn,Rf=Mi(Pb),Fb=Ai,Vf=Mi(Fb);function Mi(t){return t&&t.__esModule?t:{default:t}}function Mb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kb(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Tb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Fi.default=function(t){var e=function(n){Tb(r,n);function r(i){Mb(this,r);var o=kb(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i));return o.childBindings={domNode:null},o}return Ab(r,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(o){this.props.name!==o.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;Rf.default.unregister(this.props.name)}},{key:"registerElems",value:function(o){Rf.default.register(o,this.childBindings.domNode)}},{key:"render",value:function(){return Hf.default.createElement(t,Sb({},this.props,{parentBindings:this.childBindings}))}}]),r}(Hf.default.Component);return e.propTypes={name:Vf.default.string,id:Vf.default.string},e},Object.defineProperty(ks,"__esModule",{value:!0});var qf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ib=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),jb=f,Gf=Ts(jb),Nb=Fi,_b=Ts(Nb),zb=Ai,Zf=Ts(zb);function Ts(t){return t&&t.__esModule?t:{default:t}}function Wb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ub(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Yf=function(t){Hb(e,t);function e(){return Wb(this,e),Ub(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ib(e,[{key:"render",value:function(){var r=this,i=qf({},this.props);return delete i.name,i.parentBindings&&delete i.parentBindings,Gf.default.createElement("div",qf({},i,{ref:function(s){r.props.parentBindings.domNode=s}}),this.props.children)}}]),e}(Gf.default.Component);Yf.propTypes={name:Zf.default.string,id:Zf.default.string},ks.default=(0,_b.default)(Yf);var Is=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kf=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function Xf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jf(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Qf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ki=f,xn=mr,js=Nn,Ke=Ai,rn=Li,$f={to:Ke.string.isRequired,containerId:Ke.string,container:Ke.object,activeClass:Ke.string,spy:Ke.bool,smooth:Ke.oneOfType([Ke.bool,Ke.string]),offset:Ke.number,delay:Ke.number,isDynamic:Ke.bool,onClick:Ke.func,duration:Ke.oneOfType([Ke.number,Ke.func]),absolute:Ke.bool,onSetActive:Ke.func,onSetInactive:Ke.func,ignoreCancelEvents:Ke.bool,hashSpy:Ke.bool,spyThrottle:Ke.number},Rb={Scroll:function(e,n){console.warn("Helpers.Scroll is deprecated since v1.7.0");var r=n||js,i=function(s){Qf(a,s);function a(u){Xf(this,a);var l=Jf(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,u));return o.call(l),l.state={active:!1},l}return Kf(a,[{key:"getScrollSpyContainer",value:function(){var l=this.props.containerId,c=this.props.container;return l?document.getElementById(l):c&&c.nodeType?c:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var l=this.getScrollSpyContainer();xn.isMounted(l)||xn.mount(l,this.props.spyThrottle),this.props.hashSpy&&(rn.isMounted()||rn.mount(r),rn.mapContainer(this.props.to,l)),this.props.spy&&xn.addStateHandler(this.stateHandler),xn.addSpyHandler(this.spyHandler,l),this.setState({container:l})}}},{key:"componentWillUnmount",value:function(){xn.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var l="";this.state&&this.state.active?l=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():l=this.props.className;var c=Is({},this.props);for(var p in $f)c.hasOwnProperty(p)&&delete c[p];return c.className=l,c.onClick=this.handleClick,ki.createElement(e,c)}}]),a}(ki.Component),o=function(){var a=this;this.scrollTo=function(u,l){r.scrollTo(u,Is({},a.state,l))},this.handleClick=function(u){a.props.onClick&&a.props.onClick(u),u.stopPropagation&&u.stopPropagation(),u.preventDefault&&u.preventDefault(),a.scrollTo(a.props.to,a.props)},this.stateHandler=function(){r.getActiveLink()!==a.props.to&&(a.state!==null&&a.state.active&&a.props.onSetInactive&&a.props.onSetInactive(),a.setState({active:!1}))},this.spyHandler=function(u){var l=a.getScrollSpyContainer();if(!(rn.isMounted()&&!rn.isInitialized())){var c=a.props.to,p=null,h=0,g=0,y=0;if(l.getBoundingClientRect){var v=l.getBoundingClientRect();y=v.top}if(!p||a.props.isDynamic){if(p=r.get(c),!p)return;var d=p.getBoundingClientRect();h=d.top-y+u,g=h+d.height}var D=u-a.props.offset,B=D>=Math.floor(h)&&D<Math.floor(g),b=D<Math.floor(h)||D>=Math.floor(g),O=r.getActiveLink();if(b)return c===O&&r.setActiveLink(void 0),a.props.hashSpy&&rn.getHash()===c&&rn.changeHash(),a.props.spy&&a.state.active&&(a.setState({active:!1}),a.props.onSetInactive&&a.props.onSetInactive()),xn.updateStates();if(B&&O!==c)return r.setActiveLink(c),a.props.hashSpy&&rn.changeHash(c),a.props.spy&&(a.setState({active:!0}),a.props.onSetActive&&a.props.onSetActive(c)),xn.updateStates()}}};return i.propTypes=$f,i.defaultProps={offset:0},i},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var n=function(r){Qf(i,r);function i(o){Xf(this,i);var s=Jf(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,o));return s.childBindings={domNode:null},s}return Kf(i,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(s){this.props.name!==s.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;js.unregister(this.props.name)}},{key:"registerElems",value:function(s){js.register(s,this.childBindings.domNode)}},{key:"render",value:function(){return ki.createElement(e,Is({},this.props,{parentBindings:this.childBindings}))}}]),i}(ki.Component);return n.propTypes={name:Ke.string,id:Ke.string},n}},Vb=Rb;Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.Helpers=Qe.ScrollElement=Qe.ScrollLink=cd=Qe.animateScroll=Qe.scrollSpy=Qe.Events=Qe.scroller=Qe.Element=Qe.Button=Qe.Link=void 0;var qb=hs,ed=kt(qb),Gb=Ms,td=kt(Gb),Zb=ks,nd=kt(Zb),Yb=Nn,rd=kt(Yb),Kb=Dr,id=kt(Kb),Xb=mr,od=kt(Xb),Jb=Ei,sd=kt(Jb),Qb=gr,ad=kt(Qb),$b=Fi,ud=kt($b),e1=Vb,ld=kt(e1);function kt(t){return t&&t.__esModule?t:{default:t}}Qe.Link=ed.default,Qe.Button=td.default,Qe.Element=nd.default,Qe.scroller=rd.default,Qe.Events=id.default,Qe.scrollSpy=od.default;var cd=Qe.animateScroll=sd.default;Qe.ScrollLink=ad.default,Qe.ScrollElement=ud.default,Qe.Helpers=ld.default,Qe.default={Link:ed.default,Button:td.default,Element:nd.default,scroller:rd.default,Events:id.default,scrollSpy:od.default,animateScroll:sd.default,ScrollLink:ad.default,ScrollElement:ud.default,Helpers:ld.default};const Ns=f.createContext({}),fd=f.createContext({});function dd(){const t=f.useContext(fd);if(Object.entries(t).length===0)throw new Error("useToast must be used within a Provider");return t}function pd(t){return t&&typeof t.title=="string"&&typeof t.message=="string"&&(t.size===void 0||t.size==="md"||t.size==="lg")&&(t.type==="info"||t.type==="success"||t.type==="danger"||t.type==="warning")}function t1(){const t=Ot.useActionData(),{closeModal:e,closeAll:n}=f.useContext(Ns),{showToast:r}=dd(),{getParam:i}=ds(),{pathname:o}=Ot.useLocation(),s=Ot.useNavigate(),a=i("closeAllModals");f.useEffect(()=>{a==="true"&&(n(),s(o))},[a]),f.useEffect(()=>{const u=t==null?void 0:t.closeModalKey;u&&e(u)},[t]),f.useEffect(()=>{const u=t==null?void 0:t.toast,l=t==null?void 0:t.message;pd(u)&&r(u),!pd(u)&&l&&r({message:l,title:"Atenção!",type:"warning"})},[t]),f.useEffect(()=>{var u,l;if(typeof((u=t==null?void 0:t.data)==null?void 0:u.scrollTo)=="string"){const c=document.getElementById((l=t==null?void 0:t.data)==null?void 0:l.scrollTo);c&&cd.scrollTo(c.offsetTop-200)}},[t])}const hd=f.createContext({});function n1(t){const e=f.useContext(hd);if(Object.entries(e).length===0)throw new Error("useDrawer must be used within a Provider");if(t){const{drawerData:n,drawerIsOpen:r,openDrawer:i,closeDrawer:o}=e,s=r(t),a=n(t);return{drawerIsOpen:s,drawerData:a,openDrawer:c=>i(t,c),closeDrawer:()=>o(t)}}else return e}function r1(t){const e=f.useContext(Ns);if(Object.entries(e).length===0)throw new Error("useModal must be used within a Provider");if(t){const{modalData:n,modalIsOpen:r,openModal:i,closeModal:o}=e,s=r(t),a=n(t);return{modalIsOpen:s,modalData:a,openModal:c=>i(t,c),closeModal:()=>o(t)}}else return e}function i1(t){const{children:e=!1}=t,[n,r]=f.useState([]);function i(u){return!!n.some(l=>l.key===u)}function o(u){var l;return(l=n.find(c=>c.key===u))==null?void 0:l.data}function s(u,l){const c=i(u);r(c?p=>[...p.filter(g=>g.key!==u),{key:u,data:l}]:[...n,{key:u,data:l}])}function a(u){r(n.filter(l=>l.key!==u))}return x.jsx(hd.Provider,{value:{drawerIsOpen:i,drawerData:o,openDrawer:s,closeDrawer:a},children:e})}function o1({googleMapsApiKey:t,children:e,...n}){return x.jsx(Zd,{libraries:["places","marker","maps"],googleMapsApiKey:t,...n,children:e})}function s1(t){const{children:e=!1}=t,[n,r]=f.useState([]);function i(l){return!!n.some(c=>c.key===l)}function o(l){var c;return(c=n.find(p=>p.key===l))==null?void 0:c.data}function s(l,c){const p=i(l);r(p?h=>[...h.filter(y=>y.key!==l),{key:l,data:c}]:[...n,{key:l,data:c}])}function a(l){r(n.filter(c=>c.key!==l))}function u(){r([])}return x.jsx(Ns.Provider,{value:{modalIsOpen:i,modalData:o,openModal:s,closeModal:a,closeAll:u},children:e})}let a1={data:""},u1=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||a1,l1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c1=/\/\*[^]*?\*\/| +/g,vd=/\n+/g,on=(t,e)=>{let n="",r="",i="";for(let o in t){let s=t[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?on(s,o):o+"{"+on(s,o[1]=="k"?"":e)+"}":typeof s=="object"?r+=on(s,e?e.replace(/([^,])+/g,a=>o.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,a):a?a+" "+u:u)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=on.p?on.p(o,s):o+":"+s+";")}return n+(e&&i?e+"{"+i+"}":i)+r},zt={},gd=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+gd(t[n]);return e}return t},f1=(t,e,n,r,i)=>{let o=gd(t),s=zt[o]||(zt[o]=(u=>{let l=0,c=11;for(;l<u.length;)c=101*c+u.charCodeAt(l++)>>>0;return"go"+c})(o));if(!zt[s]){let u=o!==t?t:(l=>{let c,p,h=[{}];for(;c=l1.exec(l.replace(c1,""));)c[4]?h.shift():c[3]?(p=c[3].replace(vd," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][c[1]]=c[2].replace(vd," ").trim();return h[0]})(t);zt[s]=on(i?{["@keyframes "+s]:u}:u,n?"":"."+s)}let a=n&&zt.g?zt.g:null;return n&&(zt.g=zt[s]),((u,l,c,p)=>{p?l.data=l.data.replace(p,u):l.data.indexOf(u)===-1&&(l.data=c?u+l.data:l.data+u)})(zt[s],e,r,a),s},d1=(t,e,n)=>t.reduce((r,i,o)=>{let s=e[o];if(s&&s.call){let a=s(n),u=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=u?"."+u:a&&typeof a=="object"?a.props?"":on(a,""):a===!1?"":a}return r+i+(s??"")},"");function Ti(t){let e=this||{},n=t.call?t(e.p):t;return f1(n.unshift?n.raw?d1(n,[].slice.call(arguments,1),e.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(e.p):i),{}):n,u1(e.target),e.g,e.o,e.k)}let md,_s,zs;Ti.bind({g:1});let Wt=Ti.bind({k:1});function p1(t,e,n,r){on.p=e,md=t,_s=n,zs=r}function sn(t,e){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),u=a.className||i.className;n.p=Object.assign({theme:_s&&_s()},a),n.o=/ *go\d+/.test(u),a.className=Ti.apply(n,r)+(u?" "+u:""),e&&(a.ref=s);let l=t;return t[0]&&(l=a.as||t,delete a.as),zs&&l[0]&&zs(a),md(l,a)}return e?e(i):i}}var h1=t=>typeof t=="function",Ii=(t,e)=>h1(t)?t(e):t,v1=(()=>{let t=0;return()=>(++t).toString()})(),yd=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),g1=20,ji=new Map,m1=1e3,Cd=t=>{if(ji.has(t))return;let e=setTimeout(()=>{ji.delete(t),Sn({type:4,toastId:t})},m1);ji.set(t,e)},y1=t=>{let e=ji.get(t);e&&clearTimeout(e)},Ws=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,g1)};case 1:return e.toast.id&&y1(e.toast.id),{...t,toasts:t.toasts.map(o=>o.id===e.toast.id?{...o,...e.toast}:o)};case 2:let{toast:n}=e;return t.toasts.find(o=>o.id===n.id)?Ws(t,{type:1,toast:n}):Ws(t,{type:0,toast:n});case 3:let{toastId:r}=e;return r?Cd(r):t.toasts.forEach(o=>{Cd(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(o=>o.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},Ni=[],_i={toasts:[],pausedAt:void 0},Sn=t=>{_i=Ws(_i,t),Ni.forEach(e=>{e(_i)})},C1={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},D1=(t={})=>{let[e,n]=f.useState(_i);f.useEffect(()=>(Ni.push(n),()=>{let i=Ni.indexOf(n);i>-1&&Ni.splice(i,1)}),[e]);let r=e.toasts.map(i=>{var o,s;return{...t,...t[i.type],...i,duration:i.duration||((o=t[i.type])==null?void 0:o.duration)||(t==null?void 0:t.duration)||C1[i.type],style:{...t.style,...(s=t[i.type])==null?void 0:s.style,...i.style}}});return{...e,toasts:r}},E1=(t,e="blank",n)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(n==null?void 0:n.id)||v1()}),wr=t=>(e,n)=>{let r=E1(e,t,n);return Sn({type:2,toast:r}),r.id},Et=(t,e)=>wr("blank")(t,e);Et.error=wr("error"),Et.success=wr("success"),Et.loading=wr("loading"),Et.custom=wr("custom"),Et.dismiss=t=>{Sn({type:3,toastId:t})},Et.remove=t=>Sn({type:4,toastId:t}),Et.promise=(t,e,n)=>{let r=Et.loading(e.loading,{...n,...n==null?void 0:n.loading});return t.then(i=>(Et.success(Ii(e.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Et.error(Ii(e.error,i),{id:r,...n,...n==null?void 0:n.error})}),t};var b1=(t,e)=>{Sn({type:1,toast:{id:t,height:e}})},w1=()=>{Sn({type:5,time:Date.now()})},B1=t=>{let{toasts:e,pausedAt:n}=D1(t);f.useEffect(()=>{if(n)return;let o=Date.now(),s=e.map(a=>{if(a.duration===1/0)return;let u=(a.duration||0)+a.pauseDuration-(o-a.createdAt);if(u<0){a.visible&&Et.dismiss(a.id);return}return setTimeout(()=>Et.dismiss(a.id),u)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[e,n]);let r=f.useCallback(()=>{n&&Sn({type:6,time:Date.now()})},[n]),i=f.useCallback((o,s)=>{let{reverseOrder:a=!1,gutter:u=8,defaultPosition:l}=s||{},c=e.filter(g=>(g.position||l)===(o.position||l)&&g.height),p=c.findIndex(g=>g.id===o.id),h=c.filter((g,y)=>y<p&&g.visible).length;return c.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,y)=>g+(y.height||0)+u,0)},[e]);return{toasts:e,handlers:{updateHeight:b1,startPause:w1,endPause:r,calculateOffset:i}}},x1=Wt`
110
+ */var Bs,Af;function YE(){if(Af)return Bs;Af=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Bs=i()?Object.assign:function(o,s){for(var a,u=r(o),l,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var p in a)e.call(a,p)&&(u[p]=a[p]);if(t){l=t(a);for(var h=0;h<l.length;h++)n.call(a,l[h])&&(u[l[h]]=a[l[h]])}}return u},Bs}var xs,Lf;function Ss(){if(Lf)return xs;Lf=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xs=t,xs}var As,Of;function Pf(){return Of||(Of=1,As=Function.call.bind(Object.prototype.hasOwnProperty)),As}var Ls,Ff;function KE(){if(Ff)return Ls;Ff=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Ss(),n={},r=Pf();t=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,a,u,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var p;try{if(typeof o[c]!="function"){var h=Error((u||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=o[c](s,c,u,a,null,e)}catch(y){p=y}if(p&&!(p instanceof Error)&&t((u||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var g=l?l():"";t("Failed "+a+" type: "+p.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ls=i,Ls}var Os,Mf;function XE(){if(Mf)return Os;Mf=1;var t=Sf(),e=YE(),n=Ss(),r=Pf(),i=KE(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return Os=function(a,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function p(k){var H=k&&(l&&k[l]||k[c]);if(typeof H=="function")return H}var h="<<anonymous>>",g={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:B(),arrayOf:b,element:O(),elementType:E(),instanceOf:w,node:P(),objectOf:F,oneOf:A,oneOfType:R,shape:I,exact:j};function y(k,H){return k===H?k!==0||1/k===1/H:k!==k&&H!==H}function v(k,H){this.message=k,this.data=H&&typeof H=="object"?H:{},this.stack=""}v.prototype=Error.prototype;function d(k){if(process.env.NODE_ENV!=="production")var H={},J=0;function q(Y,C,W,U,M,X,te){if(U=U||h,X=X||W,te!==n){if(u){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=U+":"+W;!H[le]&&J<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+U+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[le]=!0,J++)}}return C[W]==null?Y?C[W]===null?new v("The "+M+" `"+X+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new v("The "+M+" `"+X+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:k(C,W,U,M,X)}var ee=q.bind(null,!1);return ee.isRequired=q.bind(null,!0),ee}function D(k){function H(J,q,ee,Y,C,W){var U=J[q],M=K(U);if(M!==k){var X=_(U);return new v("Invalid "+Y+" `"+C+"` of type "+("`"+X+"` supplied to `"+ee+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return d(H)}function B(){return d(s)}function b(k){function H(J,q,ee,Y,C){if(typeof k!="function")return new v("Property `"+C+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var W=J[q];if(!Array.isArray(W)){var U=K(W);return new v("Invalid "+Y+" `"+C+"` of type "+("`"+U+"` supplied to `"+ee+"`, expected an array."))}for(var M=0;M<W.length;M++){var X=k(W,M,ee,Y,C+"["+M+"]",n);if(X instanceof Error)return X}return null}return d(H)}function O(){function k(H,J,q,ee,Y){var C=H[J];if(!a(C)){var W=K(C);return new v("Invalid "+ee+" `"+Y+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return d(k)}function E(){function k(H,J,q,ee,Y){var C=H[J];if(!t.isValidElementType(C)){var W=K(C);return new v("Invalid "+ee+" `"+Y+"` of type "+("`"+W+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return d(k)}function w(k){function H(J,q,ee,Y,C){if(!(J[q]instanceof k)){var W=k.name||h,U=re(J[q]);return new v("Invalid "+Y+" `"+C+"` of type "+("`"+U+"` supplied to `"+ee+"`, expected ")+("instance of `"+W+"`."))}return null}return d(H)}function A(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function H(J,q,ee,Y,C){for(var W=J[q],U=0;U<k.length;U++)if(y(W,k[U]))return null;var M=JSON.stringify(k,function(te,G){var le=_(G);return le==="symbol"?String(G):G});return new v("Invalid "+Y+" `"+C+"` of value `"+String(W)+"` "+("supplied to `"+ee+"`, expected one of "+M+"."))}return d(H)}function F(k){function H(J,q,ee,Y,C){if(typeof k!="function")return new v("Property `"+C+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var W=J[q],U=K(W);if(U!=="object")return new v("Invalid "+Y+" `"+C+"` of type "+("`"+U+"` supplied to `"+ee+"`, expected an object."));for(var M in W)if(r(W,M)){var X=k(W,M,ee,Y,C+"."+M,n);if(X instanceof Error)return X}return null}return d(H)}function R(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var H=0;H<k.length;H++){var J=k[H];if(typeof J!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(J)+" at index "+H+"."),s}function q(ee,Y,C,W,U){for(var M=[],X=0;X<k.length;X++){var te=k[X],G=te(ee,Y,C,W,U,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&M.push(G.data.expectedType)}var le=M.length>0?", expected one of type ["+M.join(", ")+"]":"";return new v("Invalid "+W+" `"+U+"` supplied to "+("`"+C+"`"+le+"."))}return d(q)}function P(){function k(H,J,q,ee,Y){return T(H[J])?null:new v("Invalid "+ee+" `"+Y+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return d(k)}function z(k,H,J,q,ee){return new v((k||"React class")+": "+H+" type `"+J+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function I(k){function H(J,q,ee,Y,C){var W=J[q],U=K(W);if(U!=="object")return new v("Invalid "+Y+" `"+C+"` of type `"+U+"` "+("supplied to `"+ee+"`, expected `object`."));for(var M in k){var X=k[M];if(typeof X!="function")return z(ee,Y,C,M,_(X));var te=X(W,M,ee,Y,C+"."+M,n);if(te)return te}return null}return d(H)}function j(k){function H(J,q,ee,Y,C){var W=J[q],U=K(W);if(U!=="object")return new v("Invalid "+Y+" `"+C+"` of type `"+U+"` "+("supplied to `"+ee+"`, expected `object`."));var M=e({},J[q],k);for(var X in M){var te=k[X];if(r(k,X)&&typeof te!="function")return z(ee,Y,C,X,_(te));if(!te)return new v("Invalid "+Y+" `"+C+"` key `"+X+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(J[q],null," ")+`
111
+ Valid keys: `+JSON.stringify(Object.keys(k),null," "));var G=te(W,X,ee,Y,C+"."+X,n);if(G)return G}return null}return d(H)}function T(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(T);if(k===null||a(k))return!0;var H=p(k);if(H){var J=H.call(k),q;if(H!==k.entries){for(;!(q=J.next()).done;)if(!T(q.value))return!1}else for(;!(q=J.next()).done;){var ee=q.value;if(ee&&!T(ee[1]))return!1}}else return!1;return!0;default:return!1}}function N(k,H){return k==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function K(k){var H=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":N(H,k)?"symbol":H}function _(k){if(typeof k>"u"||k===null)return""+k;var H=K(k);if(H==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return H}function ie(k){var H=_(k);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function re(k){return!k.constructor||!k.constructor.name?h:k.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Os}var Ps,kf;function JE(){if(kf)return Ps;kf=1;var t=Ss();function e(){}function n(){}return n.resetWarningCache=e,Ps=function(){function r(s,a,u,l,c,p){if(p!==t){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},Ps}if(process.env.NODE_ENV!=="production"){var QE=Sf(),$E=!0;ws.exports=XE()(QE.isElement,$E)}else ws.exports=JE()();var Ai=ws.exports,Li={};Object.defineProperty(Li,"__esModule",{value:!0});var eb=Cr,Fs=tb(eb);function tb(t){return t&&t.__esModule?t:{default:t}}var nb={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,n){this.containers[e]=n},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,n=this.getHash();n?window.setTimeout(function(){e.scrollTo(n,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,n){var r=this.scroller,i=r.get(e);if(i&&(n||e!==r.getActiveLink())){var o=this.containers[e]||document;r.scrollTo(e,{container:o})}},getHash:function(){return Fs.default.getHash()},changeHash:function(e,n){this.isInitialized()&&Fs.default.getHash()!==e&&Fs.default.updateHash(e,n)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};Li.default=nb,Object.defineProperty(gr,"__esModule",{value:!0});var Oi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rb=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ib=f,Tf=br(ib),ob=mr,Pi=br(ob),sb=Nn,ab=br(sb),ub=Ai,qe=br(ub),lb=Li,nn=br(lb);function br(t){return t&&t.__esModule?t:{default:t}}function cb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fb(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function db(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var If={to:qe.default.string.isRequired,containerId:qe.default.string,container:qe.default.object,activeClass:qe.default.string,activeStyle:qe.default.object,spy:qe.default.bool,horizontal:qe.default.bool,smooth:qe.default.oneOfType([qe.default.bool,qe.default.string]),offset:qe.default.number,delay:qe.default.number,isDynamic:qe.default.bool,onClick:qe.default.func,duration:qe.default.oneOfType([qe.default.number,qe.default.func]),absolute:qe.default.bool,onSetActive:qe.default.func,onSetInactive:qe.default.func,ignoreCancelEvents:qe.default.bool,hashSpy:qe.default.bool,saveHashHistory:qe.default.bool,spyThrottle:qe.default.number};gr.default=function(t,e){var n=e||ab.default,r=function(o){db(s,o);function s(a){cb(this,s);var u=fb(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a));return i.call(u),u.state={active:!1},u}return rb(s,[{key:"getScrollSpyContainer",value:function(){var u=this.props.containerId,l=this.props.container;return u&&!l?document.getElementById(u):l&&l.nodeType?l:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var u=this.getScrollSpyContainer();Pi.default.isMounted(u)||Pi.default.mount(u,this.props.spyThrottle),this.props.hashSpy&&(nn.default.isMounted()||nn.default.mount(n),nn.default.mapContainer(this.props.to,u)),Pi.default.addSpyHandler(this.spyHandler,u),this.setState({container:u})}}},{key:"componentWillUnmount",value:function(){Pi.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var u="";this.state&&this.state.active?u=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():u=this.props.className;var l={};this.state&&this.state.active?l=Oi({},this.props.style,this.props.activeStyle):l=Oi({},this.props.style);var c=Oi({},this.props);for(var p in If)c.hasOwnProperty(p)&&delete c[p];return c.className=u,c.style=l,c.onClick=this.handleClick,Tf.default.createElement(t,c)}}]),s}(Tf.default.PureComponent),i=function(){var s=this;this.scrollTo=function(a,u){n.scrollTo(a,Oi({},s.state,u))},this.handleClick=function(a){s.props.onClick&&s.props.onClick(a),a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault(),s.scrollTo(s.props.to,s.props)},this.spyHandler=function(a,u){var l=s.getScrollSpyContainer();if(!(nn.default.isMounted()&&!nn.default.isInitialized())){var c=s.props.horizontal,p=s.props.to,h=null,g=void 0,y=void 0;if(c){var v=0,d=0,D=0;if(l.getBoundingClientRect){var B=l.getBoundingClientRect();D=B.left}if(!h||s.props.isDynamic){if(h=n.get(p),!h)return;var b=h.getBoundingClientRect();v=b.left-D+a,d=v+b.width}var O=a-s.props.offset;g=O>=Math.floor(v)&&O<Math.floor(d),y=O<Math.floor(v)||O>=Math.floor(d)}else{var E=0,w=0,A=0;if(l.getBoundingClientRect){var F=l.getBoundingClientRect();A=F.top}if(!h||s.props.isDynamic){if(h=n.get(p),!h)return;var R=h.getBoundingClientRect();E=R.top-A+u,w=E+R.height}var P=u-s.props.offset;g=P>=Math.floor(E)&&P<Math.floor(w),y=P<Math.floor(E)||P>=Math.floor(w)}var z=n.getActiveLink();if(y){if(p===z&&n.setActiveLink(void 0),s.props.hashSpy&&nn.default.getHash()===p){var I=s.props.saveHashHistory,j=I===void 0?!1:I;nn.default.changeHash("",j)}s.props.spy&&s.state.active&&(s.setState({active:!1}),s.props.onSetInactive&&s.props.onSetInactive(p,h))}if(g&&(z!==p||s.state.active===!1)){n.setActiveLink(p);var T=s.props.saveHashHistory,N=T===void 0?!1:T;s.props.hashSpy&&nn.default.changeHash(p,N),s.props.spy&&(s.setState({active:!0}),s.props.onSetActive&&s.props.onSetActive(p,h))}}}};return r.propTypes=If,r.defaultProps={offset:0},r},Object.defineProperty(hs,"__esModule",{value:!0});var pb=f,jf=Nf(pb),hb=gr,vb=Nf(hb);function Nf(t){return t&&t.__esModule?t:{default:t}}function gb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var yb=function(t){mb(e,t);function e(){var n,r,i,o;gb(this,e);for(var s=arguments.length,a=Array(s),u=0;u<s;u++)a[u]=arguments[u];return o=(r=(i=_f(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(a))),i),i.render=function(){return jf.default.createElement("a",i.props,i.props.children)},r),_f(i,o)}return e}(jf.default.Component);hs.default=(0,vb.default)(yb);var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});var Cb=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Db=f,zf=Wf(Db),Eb=gr,bb=Wf(Eb);function Wf(t){return t&&t.__esModule?t:{default:t}}function wb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bb(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function xb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sb=function(t){xb(e,t);function e(){return wb(this,e),Bb(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Cb(e,[{key:"render",value:function(){return zf.default.createElement("button",this.props,this.props.children)}}]),e}(zf.default.Component);Ms.default=(0,bb.default)(Sb);var ks={},Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});var Ab=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lb=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ob=f,Uf=Mi(Ob),Pb=ln;Mi(Pb);var Fb=Nn,Hf=Mi(Fb),Mb=Ai,Rf=Mi(Mb);function Mi(t){return t&&t.__esModule?t:{default:t}}function kb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tb(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ib(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Fi.default=function(t){var e=function(n){Ib(r,n);function r(i){kb(this,r);var o=Tb(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i));return o.childBindings={domNode:null},o}return Lb(r,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(o){this.props.name!==o.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;Hf.default.unregister(this.props.name)}},{key:"registerElems",value:function(o){Hf.default.register(o,this.childBindings.domNode)}},{key:"render",value:function(){return Uf.default.createElement(t,Ab({},this.props,{parentBindings:this.childBindings}))}}]),r}(Uf.default.Component);return e.propTypes={name:Rf.default.string,id:Rf.default.string},e},Object.defineProperty(ks,"__esModule",{value:!0});var Vf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jb=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Nb=f,qf=Ts(Nb),_b=Fi,zb=Ts(_b),Wb=Ai,Gf=Ts(Wb);function Ts(t){return t&&t.__esModule?t:{default:t}}function Ub(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hb(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Zf=function(t){Rb(e,t);function e(){return Ub(this,e),Hb(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return jb(e,[{key:"render",value:function(){var r=this,i=Vf({},this.props);return delete i.name,i.parentBindings&&delete i.parentBindings,qf.default.createElement("div",Vf({},i,{ref:function(s){r.props.parentBindings.domNode=s}}),this.props.children)}}]),e}(qf.default.Component);Zf.propTypes={name:Gf.default.string,id:Gf.default.string},ks.default=(0,zb.default)(Zf);var Is=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yf=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function Kf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xf(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Jf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ki=f,xn=mr,js=Nn,Ke=Ai,rn=Li,Qf={to:Ke.string.isRequired,containerId:Ke.string,container:Ke.object,activeClass:Ke.string,spy:Ke.bool,smooth:Ke.oneOfType([Ke.bool,Ke.string]),offset:Ke.number,delay:Ke.number,isDynamic:Ke.bool,onClick:Ke.func,duration:Ke.oneOfType([Ke.number,Ke.func]),absolute:Ke.bool,onSetActive:Ke.func,onSetInactive:Ke.func,ignoreCancelEvents:Ke.bool,hashSpy:Ke.bool,spyThrottle:Ke.number},Vb={Scroll:function(e,n){console.warn("Helpers.Scroll is deprecated since v1.7.0");var r=n||js,i=function(s){Jf(a,s);function a(u){Kf(this,a);var l=Xf(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,u));return o.call(l),l.state={active:!1},l}return Yf(a,[{key:"getScrollSpyContainer",value:function(){var l=this.props.containerId,c=this.props.container;return l?document.getElementById(l):c&&c.nodeType?c:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var l=this.getScrollSpyContainer();xn.isMounted(l)||xn.mount(l,this.props.spyThrottle),this.props.hashSpy&&(rn.isMounted()||rn.mount(r),rn.mapContainer(this.props.to,l)),this.props.spy&&xn.addStateHandler(this.stateHandler),xn.addSpyHandler(this.spyHandler,l),this.setState({container:l})}}},{key:"componentWillUnmount",value:function(){xn.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var l="";this.state&&this.state.active?l=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():l=this.props.className;var c=Is({},this.props);for(var p in Qf)c.hasOwnProperty(p)&&delete c[p];return c.className=l,c.onClick=this.handleClick,ki.createElement(e,c)}}]),a}(ki.Component),o=function(){var a=this;this.scrollTo=function(u,l){r.scrollTo(u,Is({},a.state,l))},this.handleClick=function(u){a.props.onClick&&a.props.onClick(u),u.stopPropagation&&u.stopPropagation(),u.preventDefault&&u.preventDefault(),a.scrollTo(a.props.to,a.props)},this.stateHandler=function(){r.getActiveLink()!==a.props.to&&(a.state!==null&&a.state.active&&a.props.onSetInactive&&a.props.onSetInactive(),a.setState({active:!1}))},this.spyHandler=function(u){var l=a.getScrollSpyContainer();if(!(rn.isMounted()&&!rn.isInitialized())){var c=a.props.to,p=null,h=0,g=0,y=0;if(l.getBoundingClientRect){var v=l.getBoundingClientRect();y=v.top}if(!p||a.props.isDynamic){if(p=r.get(c),!p)return;var d=p.getBoundingClientRect();h=d.top-y+u,g=h+d.height}var D=u-a.props.offset,B=D>=Math.floor(h)&&D<Math.floor(g),b=D<Math.floor(h)||D>=Math.floor(g),O=r.getActiveLink();if(b)return c===O&&r.setActiveLink(void 0),a.props.hashSpy&&rn.getHash()===c&&rn.changeHash(),a.props.spy&&a.state.active&&(a.setState({active:!1}),a.props.onSetInactive&&a.props.onSetInactive()),xn.updateStates();if(B&&O!==c)return r.setActiveLink(c),a.props.hashSpy&&rn.changeHash(c),a.props.spy&&(a.setState({active:!0}),a.props.onSetActive&&a.props.onSetActive(c)),xn.updateStates()}}};return i.propTypes=Qf,i.defaultProps={offset:0},i},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var n=function(r){Jf(i,r);function i(o){Kf(this,i);var s=Xf(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,o));return s.childBindings={domNode:null},s}return Yf(i,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(s){this.props.name!==s.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;js.unregister(this.props.name)}},{key:"registerElems",value:function(s){js.register(s,this.childBindings.domNode)}},{key:"render",value:function(){return ki.createElement(e,Is({},this.props,{parentBindings:this.childBindings}))}}]),i}(ki.Component);return n.propTypes={name:Ke.string,id:Ke.string},n}},qb=Vb;Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.Helpers=Qe.ScrollElement=Qe.ScrollLink=ld=Qe.animateScroll=Qe.scrollSpy=Qe.Events=Qe.scroller=Qe.Element=Qe.Button=Qe.Link=void 0;var Gb=hs,$f=kt(Gb),Zb=Ms,ed=kt(Zb),Yb=ks,td=kt(Yb),Kb=Nn,nd=kt(Kb),Xb=Dr,rd=kt(Xb),Jb=mr,id=kt(Jb),Qb=Ei,od=kt(Qb),$b=gr,sd=kt($b),e1=Fi,ad=kt(e1),t1=qb,ud=kt(t1);function kt(t){return t&&t.__esModule?t:{default:t}}Qe.Link=$f.default,Qe.Button=ed.default,Qe.Element=td.default,Qe.scroller=nd.default,Qe.Events=rd.default,Qe.scrollSpy=id.default;var ld=Qe.animateScroll=od.default;Qe.ScrollLink=sd.default,Qe.ScrollElement=ad.default,Qe.Helpers=ud.default,Qe.default={Link:$f.default,Button:ed.default,Element:td.default,scroller:nd.default,Events:rd.default,scrollSpy:id.default,animateScroll:od.default,ScrollLink:sd.default,ScrollElement:ad.default,Helpers:ud.default};const Ns=f.createContext({}),cd=f.createContext({});function fd(){const t=f.useContext(cd);if(Object.entries(t).length===0)throw new Error("useToast must be used within a Provider");return t}function dd(t){return t&&typeof t.title=="string"&&typeof t.message=="string"&&(t.size===void 0||t.size==="md"||t.size==="lg")&&(t.type==="info"||t.type==="success"||t.type==="danger"||t.type==="warning")}function n1(){const t=Ot.useActionData(),{closeModal:e,closeAll:n}=f.useContext(Ns),{showToast:r}=fd(),{getParam:i}=ds(),{pathname:o}=Ot.useLocation(),s=Ot.useNavigate(),a=i("closeAllModals");f.useEffect(()=>{a==="true"&&(n(),s(o))},[a]),f.useEffect(()=>{const u=t==null?void 0:t.closeModalKey;u&&e(u)},[t]),f.useEffect(()=>{const u=t==null?void 0:t.toast,l=t==null?void 0:t.message;dd(u)&&r(u),!dd(u)&&l&&r({message:l,title:"Atenção!",type:"warning"})},[t]),f.useEffect(()=>{var u,l;if(typeof((u=t==null?void 0:t.data)==null?void 0:u.scrollTo)=="string"){const c=document.getElementById((l=t==null?void 0:t.data)==null?void 0:l.scrollTo);c&&ld.scrollTo(c.offsetTop-200)}},[t])}const pd=f.createContext({});function r1(t){const e=f.useContext(pd);if(Object.entries(e).length===0)throw new Error("useDrawer must be used within a Provider");if(t){const{drawerData:n,drawerIsOpen:r,openDrawer:i,closeDrawer:o}=e,s=r(t),a=n(t);return{drawerIsOpen:s,drawerData:a,openDrawer:c=>i(t,c),closeDrawer:()=>o(t)}}else return e}function i1(t){const e=f.useContext(Ns);if(Object.entries(e).length===0)throw new Error("useModal must be used within a Provider");if(t){const{modalData:n,modalIsOpen:r,openModal:i,closeModal:o}=e,s=r(t),a=n(t);return{modalIsOpen:s,modalData:a,openModal:c=>i(t,c),closeModal:()=>o(t)}}else return e}function o1(t){const{children:e=!1}=t,[n,r]=f.useState([]);function i(u){return!!n.some(l=>l.key===u)}function o(u){var l;return(l=n.find(c=>c.key===u))==null?void 0:l.data}function s(u,l){const c=i(u);r(c?p=>[...p.filter(g=>g.key!==u),{key:u,data:l}]:[...n,{key:u,data:l}])}function a(u){r(n.filter(l=>l.key!==u))}return x.jsx(pd.Provider,{value:{drawerIsOpen:i,drawerData:o,openDrawer:s,closeDrawer:a},children:e})}function s1({googleMapsApiKey:t,children:e,...n}){return x.jsx(Zd,{libraries:["places","marker","maps"],googleMapsApiKey:t,...n,children:e})}function a1(t){const{children:e=!1}=t,[n,r]=f.useState([]);function i(l){return!!n.some(c=>c.key===l)}function o(l){var c;return(c=n.find(p=>p.key===l))==null?void 0:c.data}function s(l,c){const p=i(l);r(p?h=>[...h.filter(y=>y.key!==l),{key:l,data:c}]:[...n,{key:l,data:c}])}function a(l){r(n.filter(c=>c.key!==l))}function u(){r([])}return x.jsx(Ns.Provider,{value:{modalIsOpen:i,modalData:o,openModal:s,closeModal:a,closeAll:u},children:e})}let u1={data:""},l1=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||u1,c1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,f1=/\/\*[^]*?\*\/| +/g,hd=/\n+/g,on=(t,e)=>{let n="",r="",i="";for(let o in t){let s=t[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?on(s,o):o+"{"+on(s,o[1]=="k"?"":e)+"}":typeof s=="object"?r+=on(s,e?e.replace(/([^,])+/g,a=>o.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,a):a?a+" "+u:u)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=on.p?on.p(o,s):o+":"+s+";")}return n+(e&&i?e+"{"+i+"}":i)+r},zt={},vd=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+vd(t[n]);return e}return t},d1=(t,e,n,r,i)=>{let o=vd(t),s=zt[o]||(zt[o]=(u=>{let l=0,c=11;for(;l<u.length;)c=101*c+u.charCodeAt(l++)>>>0;return"go"+c})(o));if(!zt[s]){let u=o!==t?t:(l=>{let c,p,h=[{}];for(;c=c1.exec(l.replace(f1,""));)c[4]?h.shift():c[3]?(p=c[3].replace(hd," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][c[1]]=c[2].replace(hd," ").trim();return h[0]})(t);zt[s]=on(i?{["@keyframes "+s]:u}:u,n?"":"."+s)}let a=n&&zt.g?zt.g:null;return n&&(zt.g=zt[s]),((u,l,c,p)=>{p?l.data=l.data.replace(p,u):l.data.indexOf(u)===-1&&(l.data=c?u+l.data:l.data+u)})(zt[s],e,r,a),s},p1=(t,e,n)=>t.reduce((r,i,o)=>{let s=e[o];if(s&&s.call){let a=s(n),u=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=u?"."+u:a&&typeof a=="object"?a.props?"":on(a,""):a===!1?"":a}return r+i+(s??"")},"");function Ti(t){let e=this||{},n=t.call?t(e.p):t;return d1(n.unshift?n.raw?p1(n,[].slice.call(arguments,1),e.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(e.p):i),{}):n,l1(e.target),e.g,e.o,e.k)}let gd,_s,zs;Ti.bind({g:1});let Wt=Ti.bind({k:1});function h1(t,e,n,r){on.p=e,gd=t,_s=n,zs=r}function sn(t,e){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),u=a.className||i.className;n.p=Object.assign({theme:_s&&_s()},a),n.o=/ *go\d+/.test(u),a.className=Ti.apply(n,r)+(u?" "+u:""),e&&(a.ref=s);let l=t;return t[0]&&(l=a.as||t,delete a.as),zs&&l[0]&&zs(a),gd(l,a)}return e?e(i):i}}var v1=t=>typeof t=="function",Ii=(t,e)=>v1(t)?t(e):t,g1=(()=>{let t=0;return()=>(++t).toString()})(),md=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),m1=20,ji=new Map,y1=1e3,yd=t=>{if(ji.has(t))return;let e=setTimeout(()=>{ji.delete(t),Sn({type:4,toastId:t})},y1);ji.set(t,e)},C1=t=>{let e=ji.get(t);e&&clearTimeout(e)},Ws=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,m1)};case 1:return e.toast.id&&C1(e.toast.id),{...t,toasts:t.toasts.map(o=>o.id===e.toast.id?{...o,...e.toast}:o)};case 2:let{toast:n}=e;return t.toasts.find(o=>o.id===n.id)?Ws(t,{type:1,toast:n}):Ws(t,{type:0,toast:n});case 3:let{toastId:r}=e;return r?yd(r):t.toasts.forEach(o=>{yd(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(o=>o.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},Ni=[],_i={toasts:[],pausedAt:void 0},Sn=t=>{_i=Ws(_i,t),Ni.forEach(e=>{e(_i)})},D1={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},E1=(t={})=>{let[e,n]=f.useState(_i);f.useEffect(()=>(Ni.push(n),()=>{let i=Ni.indexOf(n);i>-1&&Ni.splice(i,1)}),[e]);let r=e.toasts.map(i=>{var o,s;return{...t,...t[i.type],...i,duration:i.duration||((o=t[i.type])==null?void 0:o.duration)||(t==null?void 0:t.duration)||D1[i.type],style:{...t.style,...(s=t[i.type])==null?void 0:s.style,...i.style}}});return{...e,toasts:r}},b1=(t,e="blank",n)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(n==null?void 0:n.id)||g1()}),wr=t=>(e,n)=>{let r=b1(e,t,n);return Sn({type:2,toast:r}),r.id},Et=(t,e)=>wr("blank")(t,e);Et.error=wr("error"),Et.success=wr("success"),Et.loading=wr("loading"),Et.custom=wr("custom"),Et.dismiss=t=>{Sn({type:3,toastId:t})},Et.remove=t=>Sn({type:4,toastId:t}),Et.promise=(t,e,n)=>{let r=Et.loading(e.loading,{...n,...n==null?void 0:n.loading});return t.then(i=>(Et.success(Ii(e.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Et.error(Ii(e.error,i),{id:r,...n,...n==null?void 0:n.error})}),t};var w1=(t,e)=>{Sn({type:1,toast:{id:t,height:e}})},B1=()=>{Sn({type:5,time:Date.now()})},x1=t=>{let{toasts:e,pausedAt:n}=E1(t);f.useEffect(()=>{if(n)return;let o=Date.now(),s=e.map(a=>{if(a.duration===1/0)return;let u=(a.duration||0)+a.pauseDuration-(o-a.createdAt);if(u<0){a.visible&&Et.dismiss(a.id);return}return setTimeout(()=>Et.dismiss(a.id),u)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[e,n]);let r=f.useCallback(()=>{n&&Sn({type:6,time:Date.now()})},[n]),i=f.useCallback((o,s)=>{let{reverseOrder:a=!1,gutter:u=8,defaultPosition:l}=s||{},c=e.filter(g=>(g.position||l)===(o.position||l)&&g.height),p=c.findIndex(g=>g.id===o.id),h=c.filter((g,y)=>y<p&&g.visible).length;return c.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,y)=>g+(y.height||0)+u,0)},[e]);return{toasts:e,handlers:{updateHeight:w1,startPause:B1,endPause:r,calculateOffset:i}}},S1=Wt`
112
112
  from {
113
113
  transform: scale(0) rotate(45deg);
114
114
  opacity: 0;
@@ -116,7 +116,7 @@ from {
116
116
  to {
117
117
  transform: scale(1) rotate(45deg);
118
118
  opacity: 1;
119
- }`,S1=Wt`
119
+ }`,A1=Wt`
120
120
  from {
121
121
  transform: scale(0);
122
122
  opacity: 0;
@@ -124,7 +124,7 @@ from {
124
124
  to {
125
125
  transform: scale(1);
126
126
  opacity: 1;
127
- }`,A1=Wt`
127
+ }`,L1=Wt`
128
128
  from {
129
129
  transform: scale(0) rotate(90deg);
130
130
  opacity: 0;
@@ -132,7 +132,7 @@ from {
132
132
  to {
133
133
  transform: scale(1) rotate(90deg);
134
134
  opacity: 1;
135
- }`,L1=sn("div")`
135
+ }`,O1=sn("div")`
136
136
  width: 20px;
137
137
  opacity: 0;
138
138
  height: 20px;
@@ -141,14 +141,14 @@ to {
141
141
  position: relative;
142
142
  transform: rotate(45deg);
143
143
 
144
- animation: ${x1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
144
+ animation: ${S1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
145
145
  forwards;
146
146
  animation-delay: 100ms;
147
147
 
148
148
  &:after,
149
149
  &:before {
150
150
  content: '';
151
- animation: ${S1} 0.15s ease-out forwards;
151
+ animation: ${A1} 0.15s ease-out forwards;
152
152
  animation-delay: 150ms;
153
153
  position: absolute;
154
154
  border-radius: 3px;
@@ -161,18 +161,18 @@ to {
161
161
  }
162
162
 
163
163
  &:before {
164
- animation: ${A1} 0.15s ease-out forwards;
164
+ animation: ${L1} 0.15s ease-out forwards;
165
165
  animation-delay: 180ms;
166
166
  transform: rotate(90deg);
167
167
  }
168
- `,O1=Wt`
168
+ `,P1=Wt`
169
169
  from {
170
170
  transform: rotate(0deg);
171
171
  }
172
172
  to {
173
173
  transform: rotate(360deg);
174
174
  }
175
- `,P1=sn("div")`
175
+ `,F1=sn("div")`
176
176
  width: 12px;
177
177
  height: 12px;
178
178
  box-sizing: border-box;
@@ -180,8 +180,8 @@ to {
180
180
  border-radius: 100%;
181
181
  border-color: ${t=>t.secondary||"#e0e0e0"};
182
182
  border-right-color: ${t=>t.primary||"#616161"};
183
- animation: ${O1} 1s linear infinite;
184
- `,F1=Wt`
183
+ animation: ${P1} 1s linear infinite;
184
+ `,M1=Wt`
185
185
  from {
186
186
  transform: scale(0) rotate(45deg);
187
187
  opacity: 0;
@@ -189,7 +189,7 @@ from {
189
189
  to {
190
190
  transform: scale(1) rotate(45deg);
191
191
  opacity: 1;
192
- }`,M1=Wt`
192
+ }`,k1=Wt`
193
193
  0% {
194
194
  height: 0;
195
195
  width: 0;
@@ -203,7 +203,7 @@ to {
203
203
  100% {
204
204
  opacity: 1;
205
205
  height: 10px;
206
- }`,k1=sn("div")`
206
+ }`,T1=sn("div")`
207
207
  width: 20px;
208
208
  opacity: 0;
209
209
  height: 20px;
@@ -212,13 +212,13 @@ to {
212
212
  position: relative;
213
213
  transform: rotate(45deg);
214
214
 
215
- animation: ${F1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
215
+ animation: ${M1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
216
216
  forwards;
217
217
  animation-delay: 100ms;
218
218
  &:after {
219
219
  content: '';
220
220
  box-sizing: border-box;
221
- animation: ${M1} 0.2s ease-out forwards;
221
+ animation: ${k1} 0.2s ease-out forwards;
222
222
  opacity: 0;
223
223
  animation-delay: 200ms;
224
224
  position: absolute;
@@ -230,16 +230,16 @@ to {
230
230
  height: 10px;
231
231
  width: 6px;
232
232
  }
233
- `,T1=sn("div")`
234
- position: absolute;
235
233
  `,I1=sn("div")`
234
+ position: absolute;
235
+ `,j1=sn("div")`
236
236
  position: relative;
237
237
  display: flex;
238
238
  justify-content: center;
239
239
  align-items: center;
240
240
  min-width: 20px;
241
241
  min-height: 20px;
242
- `,j1=Wt`
242
+ `,N1=Wt`
243
243
  from {
244
244
  transform: scale(0.6);
245
245
  opacity: 0.4;
@@ -247,20 +247,20 @@ from {
247
247
  to {
248
248
  transform: scale(1);
249
249
  opacity: 1;
250
- }`,N1=sn("div")`
250
+ }`,_1=sn("div")`
251
251
  position: relative;
252
252
  transform: scale(0.6);
253
253
  opacity: 0.4;
254
254
  min-width: 20px;
255
- animation: ${j1} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
255
+ animation: ${N1} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
256
256
  forwards;
257
- `,_1=({toast:t})=>{let{icon:e,type:n,iconTheme:r}=t;return e!==void 0?typeof e=="string"?rt.createElement(N1,null,e):e:n==="blank"?null:rt.createElement(I1,null,rt.createElement(P1,{...r}),n!=="loading"&&rt.createElement(T1,null,n==="error"?rt.createElement(L1,{...r}):rt.createElement(k1,{...r})))},z1=t=>`
257
+ `,z1=({toast:t})=>{let{icon:e,type:n,iconTheme:r}=t;return e!==void 0?typeof e=="string"?rt.createElement(_1,null,e):e:n==="blank"?null:rt.createElement(j1,null,rt.createElement(F1,{...r}),n!=="loading"&&rt.createElement(I1,null,n==="error"?rt.createElement(O1,{...r}):rt.createElement(T1,{...r})))},W1=t=>`
258
258
  0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;}
259
259
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
260
- `,W1=t=>`
260
+ `,U1=t=>`
261
261
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
262
262
  100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;}
263
- `,U1="0%{opacity:0;} 100%{opacity:1;}",H1="0%{opacity:1;} 100%{opacity:0;}",R1=sn("div")`
263
+ `,H1="0%{opacity:0;} 100%{opacity:1;}",R1="0%{opacity:1;} 100%{opacity:0;}",V1=sn("div")`
264
264
  display: flex;
265
265
  align-items: center;
266
266
  background: #fff;
@@ -272,16 +272,16 @@ to {
272
272
  pointer-events: auto;
273
273
  padding: 8px 10px;
274
274
  border-radius: 8px;
275
- `,V1=sn("div")`
275
+ `,q1=sn("div")`
276
276
  display: flex;
277
277
  justify-content: center;
278
278
  margin: 4px 10px;
279
279
  color: inherit;
280
280
  flex: 1 1 auto;
281
281
  white-space: pre-line;
282
- `,q1=(t,e)=>{let n=t.includes("top")?1:-1,[r,i]=yd()?[U1,H1]:[z1(n),W1(n)];return{animation:e?`${Wt(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Wt(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},G1=rt.memo(({toast:t,position:e,style:n,children:r})=>{let i=t.height?q1(t.position||e||"top-center",t.visible):{opacity:0},o=rt.createElement(_1,{toast:t}),s=rt.createElement(V1,{...t.ariaProps},Ii(t.message,t));return rt.createElement(R1,{className:t.className,style:{...i,...n,...t.style}},typeof r=="function"?r({icon:o,message:s}):rt.createElement(rt.Fragment,null,o,s))});p1(rt.createElement);var Z1=({id:t,className:e,style:n,onHeightUpdate:r,children:i})=>{let o=rt.useCallback(s=>{if(s){let a=()=>{let u=s.getBoundingClientRect().height;r(t,u)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[t,r]);return rt.createElement("div",{ref:o,className:e,style:n},i)},Y1=(t,e)=>{let n=t.includes("top"),r=n?{top:0}:{bottom:0},i=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:yd()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(n?1:-1)}px)`,...r,...i}},K1=Ti`
282
+ `,G1=(t,e)=>{let n=t.includes("top")?1:-1,[r,i]=md()?[H1,R1]:[W1(n),U1(n)];return{animation:e?`${Wt(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Wt(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Z1=rt.memo(({toast:t,position:e,style:n,children:r})=>{let i=t.height?G1(t.position||e||"top-center",t.visible):{opacity:0},o=rt.createElement(z1,{toast:t}),s=rt.createElement(q1,{...t.ariaProps},Ii(t.message,t));return rt.createElement(V1,{className:t.className,style:{...i,...n,...t.style}},typeof r=="function"?r({icon:o,message:s}):rt.createElement(rt.Fragment,null,o,s))});h1(rt.createElement);var Y1=({id:t,className:e,style:n,onHeightUpdate:r,children:i})=>{let o=rt.useCallback(s=>{if(s){let a=()=>{let u=s.getBoundingClientRect().height;r(t,u)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[t,r]);return rt.createElement("div",{ref:o,className:e,style:n},i)},K1=(t,e)=>{let n=t.includes("top"),r=n?{top:0}:{bottom:0},i=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:md()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(n?1:-1)}px)`,...r,...i}},X1=Ti`
283
283
  z-index: 9999;
284
284
  > * {
285
285
  pointer-events: auto;
286
286
  }
287
- `,zi=16,X1=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:s})=>{let{toasts:a,handlers:u}=B1(n);return rt.createElement("div",{style:{position:"fixed",zIndex:9999,top:zi,left:zi,right:zi,bottom:zi,pointerEvents:"none",...o},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},a.map(l=>{let c=l.position||e,p=u.calculateOffset(l,{reverseOrder:t,gutter:r,defaultPosition:e}),h=Y1(c,p);return rt.createElement(Z1,{id:l.id,key:l.id,onHeightUpdate:u.updateHeight,className:l.visible?K1:"",style:h},l.type==="custom"?Ii(l.message,l):i?i(l):rt.createElement(G1,{toast:l,position:c}))}))},J1=Et;function Q1({children:t}){function e(n){J1(r=>x.jsx(hf,{...n}),{style:{padding:0,background:"transparent",boxShadow:"none"}})}return x.jsxs(fd.Provider,{value:{showToast:e},children:[x.jsx(X1,{position:"top-right"}),t]})}fe.AlertContainer=Bd,fe.AlertContent=xd,fe.AlertDescription=Sd,fe.AlertIcon=Ad,fe.AlertTitle=qs,fe.Badge=Fd,fe.BreadcrumbContainer=ID,fe.BreadcrumbLink=jD,fe.Button=sh,fe.Card=Md,fe.Checkbox=uh,fe.Divider=kd,fe.DrawerContainer=UD,fe.DrawerHeader=HD,fe.DrawerProvider=i1,fe.FormController=ah,fe.FormError=lh,fe.FormLabel=ch,fe.GoogleMap=$p,fe.GoogleProvider=o1,fe.GoogleSearchPlaces=bh,fe.IconButton=wh,fe.Input=su,fe.ModalContainer=RD,fe.ModalFooter=VD,fe.ModalHeader=qD,fe.ModalProvider=s1,fe.Pagination=ND,fe.Popover=GD,fe.RadioBox=Sh,fe.RadioGroup=xh,fe.RichText=PD,fe.Select=MD,fe.Skeleton=eh,fe.Switch=kD,fe.TabButton=WD,fe.TabContainer=zD,fe.TableBody=th,fe.TableCaption=nh,fe.TableContainer=rh,fe.TableFooter=ih,fe.TableHeader=oh,fe.Textarea=TD,fe.Toast=hf,fe.ToastProvider=Q1,fe.Tooltip=ZD,fe.useAutomation=t1,fe.useDrawer=n1,fe.useFieldErrors=$a,fe.useModal=r1,fe.useScopedParams=ds,fe.useToast=dd,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
287
+ `,zi=16,J1=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:s})=>{let{toasts:a,handlers:u}=x1(n);return rt.createElement("div",{style:{position:"fixed",zIndex:9999,top:zi,left:zi,right:zi,bottom:zi,pointerEvents:"none",...o},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},a.map(l=>{let c=l.position||e,p=u.calculateOffset(l,{reverseOrder:t,gutter:r,defaultPosition:e}),h=K1(c,p);return rt.createElement(Y1,{id:l.id,key:l.id,onHeightUpdate:u.updateHeight,className:l.visible?X1:"",style:h},l.type==="custom"?Ii(l.message,l):i?i(l):rt.createElement(Z1,{toast:l,position:c}))}))},Cd=Et;function Q1({children:t}){function e(n){switch(n.type){case"success":return Cd.success(n.message);case"danger":return Cd.error(n.message)}}return x.jsxs(cd.Provider,{value:{showToast:e},children:[x.jsx(J1,{position:"top-right"}),t]})}fe.AlertContainer=Bd,fe.AlertContent=xd,fe.AlertDescription=Sd,fe.AlertIcon=Ad,fe.AlertTitle=qs,fe.Badge=Fd,fe.BreadcrumbContainer=ID,fe.BreadcrumbLink=jD,fe.Button=sh,fe.Card=Md,fe.Checkbox=uh,fe.Divider=kd,fe.DrawerContainer=UD,fe.DrawerHeader=HD,fe.DrawerProvider=o1,fe.FormController=ah,fe.FormError=lh,fe.FormLabel=ch,fe.GoogleMap=$p,fe.GoogleProvider=s1,fe.GoogleSearchPlaces=bh,fe.IconButton=wh,fe.Input=su,fe.ModalContainer=RD,fe.ModalFooter=VD,fe.ModalHeader=qD,fe.ModalProvider=a1,fe.Pagination=ND,fe.Popover=GD,fe.RadioBox=Sh,fe.RadioGroup=xh,fe.RichText=PD,fe.Select=MD,fe.Skeleton=eh,fe.Switch=kD,fe.TabButton=WD,fe.TabContainer=zD,fe.TableBody=th,fe.TableCaption=nh,fe.TableContainer=rh,fe.TableFooter=ih,fe.TableHeader=oh,fe.Textarea=TD,fe.Toast=ZD,fe.ToastProvider=Q1,fe.Tooltip=YD,fe.useAutomation=n1,fe.useDrawer=r1,fe.useFieldErrors=$a,fe.useModal=i1,fe.useScopedParams=ds,fe.useToast=fd,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});