@wavv/ui 2.0.0-alpha.35 → 2.0.0-alpha.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ prismjs/prism.js:
27
27
  * @namespace
28
28
  * @public
29
29
  *)
30
- */;const m2=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:l}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(v2,{onClick:()=>{q1(r),i(!0)},copied:o,children:o?e.jsx(ir,{name:"check-circle",color:a.success}):e.jsx(ir,{name:"copy",color:l})})},v2=N.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),y2=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(b2,Object.assign({},i,{children:[e.jsx(w2,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(x2,{children:r}),e.jsx(m2,{content:r})]}))},b2=N.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),w2=N.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),x2=N.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),C2=N.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),nr),S2=N.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),k2=N.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),E2={shouldForwardProp:e=>$C(e,["hide","placeholderColor","isDisabled"])},O2=[({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,isDisabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",cursor:a?"default":"text","&:not(:focus):not(:focus-within)":{opacity:i?0:1,position:i?"absolute":void 0},"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})],D2=N(bw,E2)(O2),j2=[({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,isDisabled:a,hasLabel:l,pointer:s})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:l?48:40,height:l?48:40,padding:"5px 16px",boxSizing:"border-box",color:a?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,border:"none",borderColor:o,borderRadius:null!=r?r:4,cursor:s?"pointer":void 0,outline:"none",transition:"background-color 0.2s","&:focus-within":{backgroundColor:n||i?void 0:e.background.focused,outline:`${t} solid 1px`},"&:hover:not(:focus-within)":{backgroundColor:a||i||n?void 0:e.background.hover,Label:{color:a?void 0:e.labelColor.hover}}}),({theme:{input:e},isDisabled:t})=>({backgroundColor:t?e.background.disabled:void 0,pointerEvents:t?"none":void 0}),er,nr,tr,({theme:e,textOnly:t,isDisabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0}),({backgroundColor:e})=>({backgroundColor:e}),({minHeight:e})=>({minHeight:e})],P2=N(fw,{shouldForwardProp:e=>$C(e,["filled"])})((({theme:{font:e,input:t},filled:n})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",boxSizing:"border-box",width:"100%",fontSize:n?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,"&:focus-within":{fontSize:e.size.sm,color:t.labelColor.focused},position:"relative",transition:"all 0.2s"})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0}))),T2=N(Lw,zC)(FC),M2=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:l,inline:c,disabled:u}=t,d=s(t,["id","value","header","body","leftElement","rightElement","inline","disabled"]);return e.jsxs(A2,Object.assign({id:n||r,textValue:r,isDisabled:u},d,{children:[a||null,o&&i?e.jsx(ZC,{header:o,body:i,inline:c}):r,l&&e.jsx("div",{style:{marginLeft:"auto"},children:l})]}))},A2=N($w,XC)(JC),_2=t=>{var{options:n,autoWidth:r,width:o}=t,i=s(t,["options","autoWidth","width"]);return e.jsx(T2,Object.assign({autoWidth:r,shouldFocusWrap:!0,width:o},i,{children:n.map((t=>{if("options"in t){const n=t;return e.jsx(nS,{id:n.id,title:n.title,children:n.options.map((t=>e.jsx(M2,Object.assign({},t),t.id||t.value)))},n.id)}const n=t;return e.jsx(M2,Object.assign({},n),n.id||n.value)}))}))},R2=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(ir,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(ir,Object.assign({},n,r))},L2=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:l,options:c,placeholder:u="Select",placeholderColor:d,textOnly:f,value:p,width:h,iconLeft:g,onChange:m,afterShow:v,afterHide:y,onTextChange:b}=n,w=s(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","iconLeft","onChange","afterShow","afterHide","onTextChange"]);const[x,C]=t.useState(!1),[S,k]=t.useState(p||""),[E,O]=t.useState((null==p?void 0:p.toString())||""),D=t.useRef(null),{margin:j,marginTop:P,marginBottom:T,marginRight:M,marginLeft:A}=w,_={margin:j,marginTop:P,marginBottom:T,marginRight:M,marginLeft:A};t.useEffect((()=>{p&&p!==S&&k(p)}),[p,S]),t.useEffect((()=>{b&&b(E)}),[E]);return e.jsxs(ox,Object.assign({onOpenChange:e=>{C(e),v&&e&&v(),y&&!e&&y()},menuTrigger:"focus",onInputChange:O,onSelectionChange:e=>{e&&(k(e),m&&m(e))},isDisabled:a,shouldFocusWrap:!0,selectedKey:p?S:void 0},w,{children:[e.jsxs(I2,Object.assign({ref:D,hasLabel:!!l,width:h,textOnly:f,backgroundColor:r,isDisabled:a},_,{children:[g&&R2(g,{marginRight:8}),e.jsxs(P2,{filled:!!E,disabled:a,children:[l,e.jsx(D2,{placeholder:u,hide:!(E||!l),placeholderColor:d,fontSize:i,isDisabled:a})]}),e.jsx(oS,{children:e.jsx(ir,{name:x?"caret-up":"caret-down",inheritColor:!0})})]})),e.jsx(lw,{}),e.jsx(qw,{triggerRef:D,offset:2,children:c?e.jsx(_2,{options:c,autoWidth:f,width:h}):e.jsx(T2,{autoWidth:f,width:h,children:o})})]}))};L2.Item=M2,L2.Section=nS;const I2=N.div(j2);var N2=1,$2=.9,z2=.8,F2=.17,B2=.1,K2=.999,V2=.9999,H2=.99,U2=/[\\\/_+.#"@\[\(\{&]/,W2=/[\\\/_+.#"@\[\(\{&]/g,Z2=/[\s-]/,q2=/[\s-]/g;function G2(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?N2:H2;var l=`${o},${i}`;if(void 0!==a[l])return a[l];for(var s,c,u,d,f=r.charAt(i),p=n.indexOf(f,o),h=0;p>=0;)(s=G2(e,t,n,r,p+1,i+1,a))>h&&(p===o?s*=N2:U2.test(e.charAt(p-1))?(s*=z2,(u=e.slice(o,p-1).match(W2))&&o>0&&(s*=Math.pow(K2,u.length))):Z2.test(e.charAt(p-1))?(s*=$2,(d=e.slice(o,p-1).match(q2))&&o>0&&(s*=Math.pow(K2,d.length))):(s*=F2,o>0&&(s*=Math.pow(K2,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=V2)),(s<B2&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((c=G2(e,t,n,r,p+1,i+2,a))*B2>s&&(s=c*B2)),s>h&&(h=s),p=n.indexOf(f,p+1);return a[l]=h,h}function Y2(e){return e.toLowerCase().replace(q2," ")}function X2(e,t,n){return G2(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,Y2(e),Y2(t),0,0,{})}function J2(){return J2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J2.apply(this,arguments)}function Q2(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function e5(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function t5(...e){return t.useCallback(e5(...e),e)}function n5(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const r5=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},o5=i["useId".toString()]||(()=>{});let i5=0;function a5(e){const[t,n]=i.useState(o5());return r5((()=>{e||n((e=>null!=e?e:String(i5++)))}),[e]),e||(t?`radix-${t}`:"")}function l5(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function s5({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=l5(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,l=a?e:o,s=l5(r);return[l,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)}),[a,e,i,s])]}const c5=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(f5);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(u5,J2({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(u5,J2({},o,{ref:n}),r)}));c5.displayName="Slot";const u5=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...p5(o,r.props),ref:n?e5(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));u5.displayName="SlotClone";const d5=({children:e})=>t.createElement(t.Fragment,null,e);function f5(e){return t.isValidElement(e)&&e.type===d5}function p5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const h5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?c5:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,J2({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});const g5="dismissableLayer.update",m5="dismissableLayer.pointerDownOutside",v5="dismissableLayer.focusOutside";let y5;const b5=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),w5=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...u}=e,d=t.useContext(b5),[f,p]=t.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=t.useState({}),m=t5(n,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,S=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=l5(e),o=t.useRef(!1),i=t.useRef((()=>{}));return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){C5(m5,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(null==a||a(e),null==s||s(e),e.defaultPrevented||null==c||c())}),h),k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=l5(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){C5(v5,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==c||c())}),h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=l5(e);t.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),t.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(y5=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),x5(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=y5)}}),[f,h,o,d]),t.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),x5())}),[f,d]),t.useEffect((()=>{const e=()=>g({});return document.addEventListener(g5,e),()=>document.removeEventListener(g5,e)}),[]),t.createElement(h5.div,J2({},u,{ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:Q2(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Q2(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Q2(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function x5(){const e=new CustomEvent(g5);document.dispatchEvent(e)}function C5(e,t,n,{discrete:o}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?function(e,t){e&&r.flushSync((()=>e.dispatchEvent(t)))}(i,a):i.dispatchEvent(a)}const S5="focusScope.autoFocusOnMount",k5="focusScope.autoFocusOnUnmount",E5={bubbles:!1,cancelable:!0},O5=t.forwardRef(((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[s,c]=t.useState(null),u=l5(i),d=l5(a),f=t.useRef(null),p=t5(n,(e=>c(e))),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect((()=>{if(o){function e(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:T5(f.current,{select:!0})}function t(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||T5(f.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&T5(s)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,s,h.paused]),t.useEffect((()=>{if(s){M5.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(S5,E5);s.addEventListener(S5,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(T5(r,{select:t}),document.activeElement!==n)return}((e=D5(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&T5(s))}return()=>{s.removeEventListener(S5,u),setTimeout((()=>{const e=new CustomEvent(k5,E5);s.addEventListener(k5,d),s.dispatchEvent(e),e.defaultPrevented||T5(null!=t?t:document.body,{select:!0}),s.removeEventListener(k5,d),M5.remove(h)}),0)}}var e}),[s,u,d,h]);const g=t.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=D5(e),n=j5(t,e),r=j5(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&T5(i,{select:!0})):(e.preventDefault(),r&&T5(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return t.createElement(h5.div,J2({tabIndex:-1},l,{ref:p,onKeyDown:g}))}));function D5(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j5(e,t){for(const n of e)if(!P5(n,{upTo:t}))return n}function P5(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function T5(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const M5=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=A5(e,t),e.unshift(t)},remove(t){var n;e=A5(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function A5(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const _5=t.forwardRef(((e,n)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=e;return i?r.createPortal(t.createElement(h5.div,J2({},a,{ref:n})),i):null}));const R5=e=>{const{present:n,children:o}=e,i=function(e){const[n,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),l=t.useRef("none"),s=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const e=L5(i.current);l.current="mounted"===c?e:"none"}),[c]),r5((()=>{const t=i.current,n=a.current;if(n!==e){const r=l.current,o=L5(t);if(e)u("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,u]),r5((()=>{if(n){const e=e=>{const t=L5(i.current).includes(e.animationName);e.target===n&&t&&r.flushSync((()=>u("ANIMATION_END")))},t=e=>{e.target===n&&(l.current=L5(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(n),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),l=t5(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:l}):null};function L5(e){return(null==e?void 0:e.animationName)||"none"}R5.displayName="Presence";let I5=0;function N5(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var $5="right-scroll-bar-position",z5="width-before-scroll-bar";function F5(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var B5="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,K5=new WeakMap;function V5(e,n){var r,o,i,a=(r=null,o=function(t){return e.forEach((function(e){return F5(e,t)}))},i=t.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0],i.callback=o,i.facade);return B5((function(){var t=K5.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||F5(e,null)})),r.forEach((function(e){n.has(e)||F5(e,o)}))}K5.set(a,e)}),[e]),a}function H5(e){return e}var U5=function(e){var t=e.sideCar,n=s(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,l({},n))};U5.isSideCarExport=!0;var W5=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=H5);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=l({async:!0,ssr:!1},e),t}(),Z5=function(){},q5=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Z5,onWheelCapture:Z5,onTouchMoveCapture:Z5}),o=r[0],a=r[1],c=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,m=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,x=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=g,S=V5([n,t]),k=l(l({},x),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:W5,removeScrollBar:f,shards:h,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:n}),c?i.cloneElement(i.Children.only(u),l(l({},k),{ref:S})):i.createElement(w,l({},k,{className:d,ref:S}),u))}));q5.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q5.classNames={fullWidth:z5,zeroRight:$5};function G5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Y5=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=G5())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},X5=function(){var e,t=(e=Y5(),function(t,n){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},J5={left:0,top:0,right:0,gap:0},Q5=function(e){return parseInt(e||"",10)||0},e9=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return J5;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Q5(n),Q5(r),Q5(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},t9=X5(),n9="data-scroll-locked",r9=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(n9,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat($5," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(z5," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat($5," .").concat($5," {\n right: 0 ").concat(r,";\n }\n \n .").concat(z5," .").concat(z5," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(n9,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},o9=function(){var e=parseInt(document.body.getAttribute(n9)||"0",10);return isFinite(e)?e:0},i9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;i.useEffect((function(){return document.body.setAttribute(n9,(o9()+1).toString()),function(){var e=o9()-1;e<=0?document.body.removeAttribute(n9):document.body.setAttribute(n9,e.toString())}}),[]);var a=i.useMemo((function(){return e9(o)}),[o]);return i.createElement(t9,{styles:r9(a,!t,o,n?"":"!important")})},a9=!1;if("undefined"!=typeof window)try{var l9=Object.defineProperty({},"passive",{get:function(){return a9=!0,!0}});window.addEventListener("test",l9,l9),window.removeEventListener("test",l9,l9)}catch(e){a9=!1}var s9=!!a9&&{passive:!1},c9=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},u9=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),d9(e,n)){var r=f9(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},d9=function(e,t){return"v"===e?function(e){return c9(e,"overflowY")}(t):function(e){return c9(e,"overflowX")}(t)},f9=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},p9=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},h9=function(e){return[e.deltaX,e.deltaY]},g9=function(e){return e&&"current"in e?e.current:e},m9=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},v9=0,y9=[];var b9,w9=(b9=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(v9++)[0],a=i.useState((function(){return X5()}))[0],l=i.useRef(e);i.useEffect((function(){l.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(g9),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=p9(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=u9(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=u9(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),c=!1,u=a>0,d=0,f=0;do{var p=f9(e,l),h=p[0],g=p[1]-p[2]-i*h;(h||g)&&d9(e,l)&&(d+=g,f+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(!u||0!==d&&o)&&(u||0!==f&&o)||(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=i.useCallback((function(e){var n=e;if(y9.length&&y9[y9.length-1]===a){var r="deltaY"in n?h9(n):p9(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(l.current.shards||[]).map(g9).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?s(n,i[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=i.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=i.useCallback((function(e){n.current=p9(e),r.current=void 0}),[]),f=i.useCallback((function(t){u(t.type,h9(t),t.target,s(t,e.lockRef.current))}),[]),p=i.useCallback((function(t){u(t.type,p9(t),t.target,s(t,e.lockRef.current))}),[]);i.useEffect((function(){return y9.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,s9),document.addEventListener("touchmove",c,s9),document.addEventListener("touchstart",d,s9),function(){y9=y9.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,s9),document.removeEventListener("touchmove",c,s9),document.removeEventListener("touchstart",d,s9)}}),[]);var h=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(a,{styles:m9(o)}):null,h?i.createElement(i9,{gapMode:"margin"}):null)},W5.useMedium(b9),U5),x9=i.forwardRef((function(e,t){return i.createElement(q5,l({},e,{ref:t,sideCar:w9}))}));x9.classNames=q5.classNames;var C9=new WeakMap,S9=new WeakMap,k9={},E9=0,O9=function(e){return e&&(e.host||O9(e.parentNode))},D9=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=O9(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);k9[n]||(k9[n]=new WeakMap);var i=k9[n],a=[],l=new Set,s=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(C9.get(e)||0)+1,c=(i.get(e)||0)+1;C9.set(e,s),i.set(e,c),a.push(e),1===s&&o&&S9.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),l.clear(),E9++,function(){a.forEach((function(e){var t=C9.get(e)-1,o=i.get(e)-1;C9.set(e,t),i.set(e,o),t||(S9.has(e)||e.removeAttribute(r),S9.delete(e)),o||e.removeAttribute(n)})),--E9||(C9=new WeakMap,C9=new WeakMap,S9=new WeakMap,k9={})}},j9=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),D9(r,o,n,"aria-hidden")):function(){return null}};const P9="Dialog",[T9,M9]=function(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function l(n){const{scope:r,children:o,...l}=n,s=(null==r?void 0:r[e][a])||i,c=t.useMemo((()=>l),Object.values(l));return t.createElement(s.Provider,{value:c},o)}return r=[...r,o],l.displayName=n+"Provider",[l,function(r,l){const s=(null==l?void 0:l[e][a])||i,c=t.useContext(s);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},n5(o,...n)]}(P9),[A9,_9]=T9(P9),R9="DialogPortal",[L9,I9]=T9(R9,{forceMount:void 0}),N9="DialogOverlay",$9=t.forwardRef(((e,n)=>{const r=I9(N9,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=_9(N9,e.__scopeDialog);return a.modal?t.createElement(R5,{present:o||a.open},t.createElement(z9,J2({},i,{ref:n}))):null})),z9=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=_9(N9,r);return t.createElement(x9,{as:c5,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(h5.div,J2({"data-state":U9(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),F9="DialogContent",B9=t.forwardRef(((e,n)=>{const r=I9(F9,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=_9(F9,e.__scopeDialog);return t.createElement(R5,{present:o||a.open},a.modal?t.createElement(K9,J2({},i,{ref:n})):t.createElement(V9,J2({},i,{ref:n})))})),K9=t.forwardRef(((e,n)=>{const r=_9(F9,e.__scopeDialog),o=t.useRef(null),i=t5(n,r.contentRef,o);return t.useEffect((()=>{const e=o.current;if(e)return j9(e)}),[]),t.createElement(H9,J2({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q2(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Q2(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Q2(e.onFocusOutside,(e=>e.preventDefault()))}))})),V9=t.forwardRef(((e,n)=>{const r=_9(F9,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(H9,J2({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const l=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))})),H9=t.forwardRef(((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=e,s=_9(F9,r),c=t5(n,t.useRef(null));return t.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:N5()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:N5()),I5++,()=>{1===I5&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),I5--}}),[]),t.createElement(t.Fragment,null,t.createElement(O5,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},t.createElement(w5,J2({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":U9(s.open)},l,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}));function U9(e){return e?"open":"closed"}const W9=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,s=t.useRef(null),c=t.useRef(null),[u=!1,d]=s5({prop:o,defaultProp:i,onChange:a});return t.createElement(A9,{scope:n,triggerRef:s,contentRef:c,contentId:a5(),titleId:a5(),descriptionId:a5(),open:u,onOpenChange:d,onOpenToggle:t.useCallback((()=>d((e=>!e))),[d]),modal:l},r)},Z9=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,a=_9(R9,n);return t.createElement(L9,{scope:n,forceMount:r},t.Children.map(o,(e=>t.createElement(R5,{present:r||a.open},t.createElement(_5,{asChild:!0,container:i},e)))))},q9=$9,G9=B9;var Y9='[cmdk-group=""]',X9='[cmdk-group-items=""]',J9='[cmdk-item=""]',Q9=`${J9}:not([aria-disabled="true"])`,e3="cmdk-item-select",t3="data-value",n3=(e,t,n)=>X2(e,t,n),r3=i.createContext(void 0),o3=()=>i.useContext(r3),i3=i.createContext(void 0),a3=()=>i.useContext(i3),l3=i.createContext(void 0),s3=i.forwardRef(((e,t)=>{let n=C3((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=C3((()=>new Set)),o=C3((()=>new Map)),a=C3((()=>new Map)),l=C3((()=>new Set)),s=w3(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:h,loop:g,disablePointerSelection:m=!1,vimBindings:v=!0,...y}=e,b=i.useId(),w=i.useId(),x=i.useId(),C=i.useRef(null),S=O3();x3((()=>{if(void 0!==d){let e=d.trim();n.current.value=e,k.emit()}}),[d]),x3((()=>{S(6,T)}),[]);let k=i.useMemo((()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),D(),S(1,j);else if("value"===e&&(r||S(5,T),void 0!==(null==(o=s.current)?void 0:o.value))){let e=null!=t?t:"";return void(null==(a=(i=s.current).onValueChange)||a.call(i,e))}k.emit()}},emit:()=>{l.current.forEach((e=>e()))}})),[]),E=i.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,O(t,r)),S(2,(()=>{D(),k.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),S(3,(()=>{P(),D(),n.current.value||j(),k.emit()})),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=M();S(4,(()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&j(),k.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],disablePointerSelection:m,listId:b,inputId:x,labelId:w,listInnerRef:C})),[]);function O(e,t){var r,o;let i=null!=(o=null==(r=s.current)?void 0:r.filter)?o:n3;return e?i(e,n.current.search,t):0}function D(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=C.current;A().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(X9);t?t.appendChild(e.parentElement===t?e:e.closest(`${X9} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${X9} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=C.current.querySelector(`${Y9}[${t3}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function j(){let e=A().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(t3);k.setState("value",t||void 0)}function P(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=O(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function T(){var e,t,n;let r=M();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Y9))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function M(){var e;return null==(e=C.current)?void 0:e.querySelector(`${J9}[aria-selected="true"]`)}function A(){var e;return Array.from(null==(e=C.current)?void 0:e.querySelectorAll(Q9))}function _(e){let t=A()[e];t&&k.setState("value",t.getAttribute(t3))}function R(e){var t;let n=M(),r=A(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=s.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&k.setState("value",i.getAttribute(t3))}function L(e){let t,n=M(),r=null==n?void 0:n.closest(Y9);for(;r&&!t;)r=e>0?y3(r,Y9):b3(r,Y9),t=null==r?void 0:r.querySelector(Q9);t?k.setState("value",t.getAttribute(t3)):R(e)}let I=()=>_(A().length-1),N=e=>{e.preventDefault(),e.metaKey?I():e.altKey?L(1):R(1)},$=e=>{e.preventDefault(),e.metaKey?_(0):e.altKey?L(-1):R(-1)};return i.createElement(h5.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&N(e);break;case"ArrowDown":N(e);break;case"p":case"k":v&&e.ctrlKey&&$(e);break;case"ArrowUp":$(e);break;case"Home":e.preventDefault(),_(0);break;case"End":e.preventDefault(),I();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=M();if(t){let e=new Event(e3);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:j3},c),D3(e,(e=>i.createElement(i3.Provider,{value:k},i.createElement(r3.Provider,{value:E},e)))))})),c3=i.forwardRef(((e,t)=>{var n,r;let o=i.useId(),a=i.useRef(null),l=i.useContext(l3),s=o3(),c=w3(e),u=null!=(r=null==(n=c.current)?void 0:n.forceMount)?r:null==l?void 0:l.forceMount;x3((()=>{if(!u)return s.item(o,null==l?void 0:l.id)}),[u]);let d=E3(o,a,[e.value,e.children,a],e.keywords),f=a3(),p=k3((e=>e.value&&e.value===d.current)),h=k3((e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0)));function g(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(i.useEffect((()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(e3,g),()=>t.removeEventListener(e3,g)}),[h,e.onSelect,e.disabled]),!h)return null;let{disabled:v,value:y,onSelect:b,forceMount:w,keywords:x,...C}=e;return i.createElement(h5.div,{ref:S3([a,t]),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||s.disablePointerSelection?void 0:m,onClick:v?void 0:g},e.children)})),u3=i.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,l=i.useId(),s=i.useRef(null),c=i.useRef(null),u=i.useId(),d=o3(),f=k3((e=>!(!o&&!1!==d.filter())||(!e.search||e.filtered.groups.has(l))));x3((()=>d.group(l)),[]),E3(l,s,[e.value,e.heading,c]);let p=i.useMemo((()=>({id:l,forceMount:o})),[o]);return i.createElement(h5.div,{ref:S3([s,t]),...a,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&i.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),D3(e,(e=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(l3.Provider,{value:p},e)))))})),d3=i.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=k3((e=>!e.search));return n||a?i.createElement(h5.div,{ref:S3([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),f3=i.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=a3(),l=k3((e=>e.search)),s=k3((e=>e.value)),c=o3(),u=i.useMemo((()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${J9}[${t3}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return i.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),i.createElement(h5.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:o?e.value:l,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),p3=i.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=i.useRef(null),l=i.useRef(null),s=o3();return i.useEffect((()=>{if(l.current&&a.current){let e,t=l.current,n=a.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),i.createElement(h5.div,{ref:S3([a,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},D3(e,(e=>i.createElement("div",{ref:S3([l,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),h3=i.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:l,...s}=e;return i.createElement(W9,{open:n,onOpenChange:r},i.createElement(Z9,{container:l},i.createElement(q9,{"cmdk-overlay":"",className:o}),i.createElement(G9,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement(s3,{ref:t,...s}))))})),g3=i.forwardRef(((e,t)=>k3((e=>0===e.filtered.count))?i.createElement(h5.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),m3=i.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return i.createElement(h5.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},D3(e,(e=>i.createElement("div",{"aria-hidden":!0},e))))})),v3=Object.assign(s3,{List:p3,Item:c3,Input:f3,Group:u3,Separator:d3,Dialog:h3,Empty:g3,Loading:m3});function y3(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function b3(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function w3(e){let t=i.useRef(e);return x3((()=>{t.current=e})),t}var x3="undefined"==typeof window?i.useEffect:i.useLayoutEffect;function C3(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function S3(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function k3(e){let t=a3(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function E3(e,t,n,r=[]){let o=i.useRef(),a=o3();return x3((()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map((e=>e.trim()));a.value(e,l,s),null==(i=t.current)||i.setAttribute(t3,l),o.current=l})),o}var O3=()=>{let[e,t]=i.useState(),n=C3((()=>new Map));return x3((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function D3({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var j3={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const P3=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:l,inline:c,disabled:u,onClick:d}=t,f=s(t,["id","value","header","body","leftElement","rightElement","inline","disabled","onClick"]);return e.jsxs(T3,Object.assign({id:n||r,disabled:u,onSelect:d},f,{children:[a||null,o&&i?e.jsx(ZC,{header:o,body:i,inline:c}):r,l&&e.jsx("div",{style:{marginLeft:"auto"},children:l})]}))},T3=N(v3.Item,XC)((({theme:{optionItem:e}})=>({'&[data-selected="true"]':{backgroundColor:e.background.active}})),JC),M3=({id:t,title:n,children:r})=>e.jsx(A3,{id:t,heading:n,children:r}),A3=N(v3.Group)((({theme:e})=>({"& > div[cmdk-group-heading]":{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none"}}))),_3=({options:t,onItemSelect:n})=>e.jsx(e.Fragment,{children:t.map((t=>{if("options"in t){const r=t;return e.jsx(M3,{id:r.id,title:r.title,children:r.options.map((t=>e.jsx(P3,Object.assign({onClick:()=>n(t)},t),t.id||t.value)))},r.id)}return e.jsx(P3,Object.assign({onClick:()=>n(t)},t),t.id||t.value)}))}),R3=N(s3)(FC,{display:"flex",flexDirection:"column",overflow:"hidden"},(({maxWidth:e,maxHeight:t})=>({maxWidth:e,maxHeight:t})),er),L3=N.div(j2),I3=N(f3)(O2),N3=N(p3)({overflowY:"auto"}),$3=N(g3)((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),z3=N(Ux)((({overlayColor:e,overlayBlur:t})=>({position:"fixed",top:0,left:0,width:"100vw",height:"var(--visual-viewport-height)",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),F3=N.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var B3={exports:{}};B3.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Z(e)}function r(e){return l(e)?e:q(e)}function o(e){return s(e)?e:G(e)}function i(e){return a(e)&&!c(e)?e:Y(e)}function a(e){return!(!e||!e[d])}function l(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return l(e)||s(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,y=v-1,b={},w={value:!1},x={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function k(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function O(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function D(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function j(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return A(e,t,0)}function M(e,t){return A(e,t,t)}function A(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var _=0,R=1,L=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",$=I||N;function z(e){this.next=e}function F(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function B(){return{value:void 0,done:!0}}function K(e){return!!U(e)}function V(e){return e&&"function"==typeof e.next}function H(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(I&&e[I]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function G(e){return null==e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function Y(e){return(null==e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=_,z.VALUES=R,z.ENTRIES=L,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[$]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return de(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(q,Z),q.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return de(this,e,t,!1)},G.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=q,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return W(e)?new te(e):V(e)?new oe(e):K(e)?new re(e):void 0}function de(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new z((function(){var e=o[n?i-a:a];return a++>i?B():F(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):me(t)?e.call(r,n,q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():me(e)?q(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return d=!1,!1}));return d&&e.size===f}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function ke(){}function Ee(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[D(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new z((function(){return o>r?B():F(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new z((function(){var a=r[t?o-i:i];return i++>o?B():F(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!V(n))return new z(B);var r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new z((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return F(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new z((function(){return r<n.size?F(e,r++,n._value):B()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):ye(e)},t(xe,G),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new z((function(){var a=o;return o+=t?-r:r,i>n?B():F(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(Ce,n),t(Se,Ce),t(ke,Ce),t(Ee,Ce),Ce.Keyed=Se,Ce.Indexed=ke,Ce.Set=Ee;var Oe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function De(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return De(n)}if("string"===t)return e.length>ze?Pe(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=Ke[e];return void 0===t&&(t=Te(e),Be===Fe&&(Be=0,Ke={}),Be++,Ke[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return De(t)}function Me(e){var t;if(Ie&&void 0!==(t=Le.get(e)))return t;if(void 0!==(t=e[$e]))return t;if(!_e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[$e]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Le.set(e,t);else{if(void 0!==Ae&&!1===Ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(_e)Object.defineProperty(e,$e,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[$e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[$e]=t}}return t}var Ae=Object.isExtensible,_e=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Le,Ie="function"==typeof WeakMap;Ie&&(Le=new WeakMap);var Ne=0,$e="__immutablehash__";"function"==typeof Symbol&&($e=Symbol($e));var ze=16,Fe=255,Be=0,Ke={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?ot():Ue(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t(He,Se),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return it(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return it(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=mt(this,Cn(e),t,n);return r===b?void 0:r},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},He.prototype.merge=function(){return ft(this,void 0,arguments)},He.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return ft(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return Kt(dn(this,e))},He.prototype.sortBy=function(e,t){return Kt(dn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=Ue;var We,Ze="@@__IMMUTABLE_MAP__@@",qe=He.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return F(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===b?e:(S(l),S(a),new Qe(t,r,[o,i]))}function lt(e){return e.constructor===Qe||e.constructor===Je}function st(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&y,l=(0===n?r:r>>>n)&y;return new Ye(t,1<<a|1<<l,a===l?[st(e,t,n+m,r,o)]:(i=new Qe(t,r,o),a<l?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new k);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var u=t[l];void 0!==u&&l!==r&&(o|=s,a[i++]=u)}return new Ye(e,o,a)}function dt(e,t,n,r,o){for(var i=0,a=new Array(v),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function ft(e,t,n){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=r(l);a(l)||(s=s.map((function(e){return pe(e)}))),o.push(s)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function mt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,l=r(a);return l===a?e:l}we(o||e&&e.set,"invalid keyPath");var s=i.value,c=o?b:e.get(s,b),u=mt(c,t,n,r);return u===c?e:u===b?e.remove(s):(o?ot():e).set(s,u)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function yt(e,t,n,r){var o=r?e:E(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[Ze]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===b,s=this.entries,c=0,u=s.length;c<u&&!ve(r,s[c][0]);c++);var d=c<u;if(d?s[c][1]===o:l)return this;if(S(a),(l||!d)&&S(i),!l||1!==s.length){if(!d&&!l&&s.length>=xt)return ct(e,s,r,o);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&y),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+m,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var l=(0===t?n:n>>>t)&y,s=1<<l,c=this.bitmap,u=0!=(c&s);if(!u&&o===b)return this;var d=vt(c&s-1),f=this.nodes,p=u?f[d]:void 0,h=at(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!u&&h&&f.length>=Ct)return dt(e,f,c,l,h);if(u&&!h&&2===f.length&&lt(f[1^d]))return f[1^d];if(u&&h&&1===f.length&&lt(h))return h;var g=e&&e===this.ownerID,v=u?h?c:c^s:c|s,w=u?h?yt(f,d,h,g):wt(f,d,g):bt(f,d,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&y,i=this.nodes[o];return i?i.get(e+m,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var l=(0===t?n:n>>>t)&y,s=o===b,c=this.nodes,u=c[l];if(s&&!u)return this;var d=at(u,e,t+m,n,r,o,i,a);if(d===u)return this;var f=this.count;if(u){if(!d&&--f<St)return ut(e,c,f,l)}else f++;var p=e&&e===this.ownerID,h=yt(c,l,d,p);return p?(this.count=f,this.nodes=h,this):new Xe(e,f,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var l=o===b;if(n!==this.keyHash)return l?this:(S(a),S(i),st(this,e,t,n,[r,o]));for(var s=this.entries,c=0,u=s.length;c<u&&!ve(r,s[c][0]);c++);var d=c<u;if(d?s[c][1]===o:l)return this;if(S(a),(l||!d)&&S(i),l&&2===u)return new Qe(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var l=o===b,s=ve(r,this.entry[0]);return(s?o===this.entry[1]:l)?this:(S(a),l?void S(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(S(i),st(this,e,t,je(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return B()};var xt=v/4,Ct=v/2,St=v/4;function kt(e){var t=Rt();if(null==e)return t;if(Et(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?_t(0,r,m,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ot])}t(kt,ke),kt.of=function(){return this(arguments)},kt.prototype.toString=function(){return this.__toString("List [","]")},kt.prototype.get=function(e,t){if((e=D(this,e))>=0&&e<this.size){var n=$t(this,e+=this._origin);return n&&n.array[e&y]}return t},kt.prototype.set=function(e,t){return Lt(this,e,t)},kt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},kt.prototype.insert=function(e,t){return this.splice(e,0,t)},kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},kt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},kt.prototype.pop=function(){return zt(this,0,-1)},kt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},kt.prototype.shift=function(){return zt(this,1)},kt.prototype.merge=function(){return Ft(this,void 0,arguments)},kt.prototype.mergeWith=function(t){return Ft(this,t,e.call(arguments,1))},kt.prototype.mergeDeep=function(){return Ft(this,pt,arguments)},kt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ft(this,ht(t),n)},kt.prototype.setSize=function(e){return zt(this,0,e)},kt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:zt(this,T(e,n),M(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=At(this,t);return new z((function(){var t=r();return t===Mt?B():F(e,n++,t)}))},kt.prototype.__iterate=function(e,t){for(var n,r=0,o=At(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_t(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},kt.isList=Et;var Ot="@@__IMMUTABLE_LIST__@@",Dt=kt.prototype;function jt(e,t){this.array=e,this.ownerID=t}Dt[Ot]=!0,Dt[g]=Dt.remove,Dt.setIn=qe.setIn,Dt.deleteIn=Dt.removeIn=qe.removeIn,Dt.update=qe.update,Dt.updateIn=qe.updateIn,Dt.mergeIn=qe.mergeIn,Dt.mergeDeepIn=qe.mergeDeepIn,Dt.withMutations=qe.withMutations,Dt.asMutable=qe.asMutable,Dt.asImmutable=qe.asImmutable,Dt.wasAltered=qe.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-m,n))===a&&i)return this}if(i&&!o)return this;var l=Nt(this,e);if(!i)for(var s=0;s<r;s++)l.array[s]=void 0;return o&&(l.array[r]=o),l},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-m,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Pt,Tt,Mt={};function At(e,t){var n=e._origin,r=e._capacity,o=Bt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(s===c)return Mt;var e=t?--c:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,c=i>n?0:n-i>>o,u=1+(r-i>>o);return u>v&&(u=v),function(){for(;;){if(l){var e=l();if(e!==Mt)return e;l=null}if(c===u)return Mt;var n=t?--u:c++;l=a(s&&s[n],o-m,i+(n<<o))}}}}function _t(e,t,n,r,o,i,a){var l=Object.create(Dt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function Rt(){return Pt||(Pt=_t(0,0,m))}function Lt(e,t,n){if((t=D(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=Bt(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):_t(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,l=r>>>n&y,s=e&&l<e.array.length;if(!s&&void 0===o)return e;if(n>0){var c=e&&e.array[l],u=It(c,t,n-m,r,o,i);return u===c?e:((a=Nt(e,t)).array[l]=u,a)}return s&&e.array[l]===o?e:(S(i),a=Nt(e,t),void 0===o&&l===a.array.length-1?a.array.pop():a.array[l]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function $t(e,t){if(t>=Bt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=m;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,u=0;a+u<0;)c=new jt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(s+=m);u&&(a+=u,o+=u,l+=u,i+=u);for(var d=Bt(i),f=Bt(l);f>=1<<s+m;)c=new jt(c&&c.array.length?[c]:[],r),s+=m;var p=e._tail,h=f<d?$t(e,l-1):f>d?new jt([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var g=c=Nt(c,r),v=s;v>m;v-=m){var b=d>>>v&y;g=g.array[b]=Nt(g.array[b],r)}g.array[d>>>m&y]=p}if(l<i&&(h=h&&h.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=m,c=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(u=0;c;){var w=a>>>s&y;if(w!==f>>>s&y)break;w&&(u+=(1<<s)*w),s-=m,c=c.array[w]}c&&a>o&&(c=c.removeBefore(r,s,a-u)),c&&f<d&&(c=c.removeAfter(r,s,f-u)),u&&(a-=u,l-=u)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):_t(a,l,s,c,h)}function Ft(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],c=o(s);c.size>i&&(i=c.size),a(s)||(c=c.map((function(e){return pe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Bt(e){return e<v?0:e-1>>>m<<m}function Kt(e){return null==e?Ut():Vt(e)?e:Ut().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return Ue(e)&&u(e)}function Ht(e,t,n,r){var o=Object.create(Kt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Ut(){return Tt||(Tt=Ht(ot(),Rt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),s=void 0!==l;if(n===b){if(!s)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Ht(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===L){var r=e.__iterator(t,n);return new z((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?_:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(L,o);return new z((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return F(r,l,t.call(n,a[1],l,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return l++,o(e,r?i:l-1,a)}),i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(L,i),l=0;return new z((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],u=s[1];if(t.call(n,u,c,e))return F(o,r?c:l++,u,i)}}))},o}function tn(e,t,n){var r=He().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=l(e),o=(u(e)?Kt():He()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=yn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),P(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-i;s==s&&(l=s<0?0:s);var c=bn(e);return c.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(c.get=function(t,n){return(t=D(this,t))>=0&&t<l?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==l})),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),a=0,s=0;return new z((function(){for(;a++<i;)o.next();if(++s>l)return B();var e=o.next();return r||t===R?e:F(t,s-1,t===_?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,l){return t.call(n,e,o,l)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(L,o),l=!0;return new z((function(){if(!l)return B();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],c=o[1];return t.call(n,c,s,i)?r===L?e:F(r,s,c,e):(l=!1,B())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var l=!0,s=0;return e.__iterate((function(e,i,c){if(!l||!(l=t.call(n,e,i,c)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var l=e.__iterator(L,i),s=!0,c=0;return new z((function(){var e,i,u;do{if((e=l.next()).done)return r||o===R?e:F(o,c++,o===_?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],s&&(s=t.call(n,u,i,a))}while(s);return o===L?e:F(o,i,u,e)}))},o}function ln(e,t){var n=l(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&l(i)||s(e)&&s(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,c){var u=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?s(e,c+1):!1===r(e,n?o:i++,u)&&(l=!0),!l}),o)}return s(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],s=0;return new z((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===L&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:F(r,s++,c,e);l.push(i),i=c.__iterator(r,o)}else i=l.pop()}return B()}))},r}function cn(e,t,n){var r=yn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new z((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(n,a++,t):F(n,a++,o.value,o)}))},n}function dn(e,t,n){t||(t=xn);var r=l(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):s(e)?G(i):Y(i)}function fn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),H(o?e.reverse():e)})),a=0,l=!1;return new z((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?B():F(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),O(e)}function yn(e){return l(e)?r:s(e)?o:i}function bn(e){return Object.create((l(e)?q:s(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function Cn(e){var t=H(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function Sn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);Dn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=He(i)},o=r.prototype=Object.create(kn);return o.constructor=r,r}t(Kt,He),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Kt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ut()},Kt.prototype.set=function(e,t){return Wt(this,e,t)},Kt.prototype.remove=function(e){return Wt(this,e,b)},Kt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Kt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Kt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Kt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Kt.isOrderedMap=Vt,Kt.prototype[h]=!0,Kt.prototype[g]=Kt.prototype.remove,t(Zt,q),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new z((function(){var o=n.next();return o.done?o:F(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(qt,G),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new z((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t(Yt,q),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var o=a(r);return F(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(On(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+On(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var kn=Sn.prototype;function En(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function On(e){return e._name||e.constructor.name||"Record"}function Dn(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Pn(e){return null==e?In():Tn(e)&&!u(e)?e:In().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[An])}kn[g]=kn.remove,kn.deleteIn=kn.removeIn=qe.removeIn,kn.merge=qe.merge,kn.mergeWith=qe.mergeWith,kn.mergeIn=qe.mergeIn,kn.mergeDeep=qe.mergeDeep,kn.mergeDeepWith=qe.mergeDeepWith,kn.mergeDeepIn=qe.mergeDeepIn,kn.setIn=qe.setIn,kn.update=qe.update,kn.updateIn=qe.updateIn,kn.withMutations=qe.withMutations,kn.asMutable=qe.asMutable,kn.asImmutable=qe.asImmutable,t(Pn,Ee),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(r(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(e){return this._map.has(e)},Pn.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},Pn.prototype.remove=function(e){return Rn(this,this._map.remove(e))},Pn.prototype.clear=function(){return Rn(this,this._map.clear())},Pn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Pn.prototype.sort=function(e){return Nn(dn(this,e))},Pn.prototype.sortBy=function(e,t){return Nn(dn(this,t,e))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Pn.isSet=Tn;var Mn,An="@@__IMMUTABLE_SET__@@",_n=Pn.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Ln(e,t){var n=Object.create(_n);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Mn||(Mn=Ln(ot()))}function Nn(e){return null==e?Kn():$n(e)?e:Kn().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function $n(e){return Tn(e)&&u(e)}_n[An]=!0,_n[g]=_n.remove,_n.mergeDeep=_n.merge,_n.mergeDeepWith=_n.mergeWith,_n.withMutations=qe.withMutations,_n.asMutable=qe.asMutable,_n.asImmutable=qe.asImmutable,_n.__empty=In,_n.__make=Ln,t(Nn,Pn),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=$n;var zn,Fn=Nn.prototype;function Bn(e,t){var n=Object.create(Fn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return zn||(zn=Bn(Ut()))}function Vn(e){return null==e?Gn():Hn(e)?e:Gn().unshiftAll(e)}function Hn(e){return!(!e||!e[Wn])}Fn[h]=!0,Fn.__empty=Kn,Fn.__make=Bn,t(Vn,ke),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=D(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ve(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Vn.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):qn(r,o)},Vn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new z((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return B()}))},Vn.isStack=Hn;var Un,Wn="@@__IMMUTABLE_STACK__@@",Zn=Vn.prototype;function qn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Un||(Un=qn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[Wn]=!0,Zn.withMutations=qe.withMutations,Zn.asMutable=qe.asMutable,Zn.asImmutable=qe.asImmutable,Zn.wasAltered=qe.wasAltered,n.Iterator=z,Yn(n,{toArray:function(){Ve(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Kt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(l(this)?this.valueSeq():this)},toSet:function(){return Pn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(l(this)?this.valueSeq():this)},toList:function(){return kt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(L)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(_)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ve(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,dn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Cn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?nr(e):ir)},minBy:function(e,t){return fn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[d]=!0,Xn[$]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return E(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=l(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sr(je(e),je(t))|0}:function(e,t){r=r+sr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return lr(o,r)}function lr(e,t){return t=Oe(t,3432918353),t=Oe(t<<15|t>>>-15,461845907),t=Oe(t<<13|t>>>-13,5),t=Oe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=De((t=Oe(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[f]=!0,Jn[$]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,sn(this,e,!1))},get:function(e,t){return(e=D(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=D(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(q,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(Se,r.prototype),Yn(ke,o.prototype),Yn(Ee,i.prototype);var cr={Iterable:n,Seq:Z,Collection:Ce,Map:He,OrderedMap:Kt,List:kt,Stack:Vn,Set:Pn,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ve,fromJS:pe};return cr}();var K3=B3.exports,V3=K3.OrderedMap,H3={createFromArray:function(e){return V3(e.map((function(e){return[e.getKey(),e]})))}};var U3=K3,W3=U3.Map,Z3=U3.OrderedSet,q3=U3.Record,G3=Z3(),Y3={style:G3,entity:null},X3=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return J3;var t=W3({style:G3,entity:null}).merge(e),n=Q3.get(t);if(n)return n;var o=new r(t);return Q3=Q3.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?Z3(t):t,entity:Array.isArray(n)?Z3(n):n})},r}(q3(Y3)),J3=new X3,Q3=W3([[W3(Y3),J3]]);X3.EMPTY=J3;var e4=X3;var t4=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var n4=e4,r4=t4,o4=K3,i4=o4.List,a4=o4.Map,l4=o4.OrderedSet,s4=o4.Record,c4=o4.Repeat,u4=l4(),d4=s4({key:"",type:"unstyled",text:"",characterList:i4(),depth:0,data:a4()}),f4=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i4(c4(n4.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():u4},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){r4(this.getCharacterList(),p4,e,t)},o.findEntityRanges=function(e,t){r4(this.getCharacterList(),h4,e,t)},r}(d4);function p4(e,t){return e.getStyle()===t.getStyle()}function h4(e,t){return e.getEntity()===t.getEntity()}var g4=f4;var m4=e4,v4=t4,y4=K3,b4=y4.List,w4=y4.Map,x4=y4.OrderedSet,C4=y4.Record,S4=y4.Repeat,k4=x4(),E4={parent:null,characterList:b4(),data:w4(),depth:0,key:"",text:"",type:"unstyled",children:b4(),prevSibling:null,nextSibling:null},O4=function(e,t){return e.getStyle()===t.getStyle()},D4=function(e,t){return e.getEntity()===t.getEntity()},j4=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E4;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=b4(S4(m4.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():k4},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){v4(this.getCharacterList(),O4,e,t)},o.findEntityRanges=function(e,t){v4(this.getCharacterList(),D4,e,t)},r}(C4(E4)),P4=j4,T4=e4,M4=K3.Map;function A4(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),c=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).concat(M4([[l,o.get(l)]])).map((function(e,t){var o,c;i===l?(o=a,c=s):(o=t===i?a:0,c=t===l?s:e.getLength());for(var u,d=e.getCharacterList();o<c;)u=d.get(o),d=d.set(o,r?T4.applyStyle(u,n):T4.removeStyle(u,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:o.merge(c),selectionBefore:t,selectionAfter:t})}var _4={add:function(e,t,n){return A4(e,t,n,!0)},remove:function(e,t,n){return A4(e,t,n,!1)}},R4=e4;var L4=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,R4.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},I4=K3;var N4=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(I4.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,s=t===a?l:e.getLength();return L4(e,r,s,n)}));return e.merge({blockMap:r.merge(s),selectionBefore:t,selectionAfter:t})},$4={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,l=r,s=null,c=null,u=0;u<i.length;u++){if(e<(a=l+i[u].length)&&l<t)null!==s||(s=l),c=a;else if(null!==s)break;l=a}var d=r+n.length,f=s===r,p=c===d;return(!f&&p||f&&!p)&&("forward"===o?c!==d&&c++:s!==r&&s--),{start:s,end:c}}},z4="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var F4=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(z4(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},B4=F4;var K4=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?B4(!1,"Entity key not found in this range."):B4(!1)),n},V4=$4,H4=K4,U4=F4;function W4(e,t,n,r,o,i,a){var l=n.getStartOffset(),s=n.getEndOffset(),c=e.__get(o).getMutability(),u=a?l:s;if("MUTABLE"===c)return n;var d=H4(t,o).filter((function(e){return u<=e.end&&u>=e.start}));1!=d.length&&("production"!==process.env.NODE_ENV?U4(!1,"There should only be one entity range within this removal range."):U4(!1));var f=d[0];if("IMMUTABLE"===c)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:l=f.start);var p=V4.getRemovalRange(l,s,t.getText().slice(f.start,f.end),f.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var Z4=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),l=t.getEntityAt(i),s=n.getEntityAt(a-1);if(!l&&!s)return r;var c=r;if(l&&l===s)c=W4(e,t,c,o,l,!0,!0);else if(l&&s){var u=W4(e,t,c,o,l,!1,!0),d=W4(e,n,c,o,s,!1,!1);c=c.merge({anchorOffset:u.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(l){var f=W4(e,t,c,o,l,!1,!0);c=c.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var p=W4(e,n,c,o,s,!1,!1);c=c.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return c},q4={},G4=Math.pow(2,24);var Y4=function(){for(var e;void 0===e||q4.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*G4).toString(32);return q4[e]=!0,e},X4=P4,J4=Y4,Q4=K3.OrderedMap,e6=function(e){return e.first()instanceof X4?function(e){var t,n={};return Q4(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),c=r.getParentKey(),u=J4();if(n[i]=u,a&&(e.get(a)?e.setIn([a,"prevSibling"],u):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],u):e.setIn([i,"prevSibling"],null)),c&&e.get(c)){var d=e.get(c).getChildKeys();e.setIn([c,"children"],d.set(d.indexOf(r.getKey()),u))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],u),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return Q4(e.toArray().map((function(e){var t=J4();return[t,e.set("key",t)]})))}(e)},t6=e4,n6=t4,r6=F4;function o6(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,l=i?i.getEntity():void 0;if(l&&l===a&&"MUTABLE"!==e.__get(l).getMutability()){for(var s,c=function(e,t,n){var r;return n6(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?r6(!1,"Removal range must exist within character list."):r6(!1)),r}(r,l,n),u=c.start,d=c.end;u<d;)s=r.get(u),r=r.set(u,t6.applyEntity(s,null)),u++;return t.set("characterList",r)}return t}var i6=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),l=n.get(i),s=o6(r,l,a);s!==l&&(o[i]=s);var c=t.getEndKey(),u=t.getEndOffset(),d=n.get(c);i===c&&(d=s);var f=o6(r,d,u);return f!==d&&(o[c]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},a6=e6,l6=i6,s6=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=l6(e,t).getBlockMap(),l=a.keySeq(),s=l.indexOf(n),c=l.indexOf(o)+1;return a6(a.slice(s,c).map((function(e,t){var a=e.getText(),l=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:l.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:l.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:l.slice(0,i)}):e})))};var c6=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},u6=H3,d6=P4,f6=c6,p6=F4,h6=e6,g6=K3.List,m6=function(e,t,n,r,o,i){var a=n.first()instanceof d6,l=[],s=r.size,c=n.get(o),u=r.first(),d=r.last(),f=d.getLength(),p=d.getKey(),h=a&&(!c.getChildKeys().isEmpty()||!u.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),l=n.first();return e.merge({text:i+l.getText(),characterList:a.concat(l.getCharacterList()),type:i?e.getType():l.getType(),data:l.getData()})}(e,i,r)),r.slice(h?0:1,s-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),l=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,i,r))):l.push(e)}));var g=u6.createFromArray(l);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),l=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),c=s[s.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([c,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],c),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var u=e.get(l).getChildKeys(),d=u.indexOf(o)+1,f=u.toArray();f.splice.apply(f,[d,0].concat(s)),t.setIn([l,"children"],g6(f))}}))}(g,0,c,u)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},v6=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?p6(!1,"`insertFragment` should only be called with a collapsed selection state."):p6(!1));var o=e.getBlockMap(),i=h6(n),a=t.getStartKey(),l=t.getStartOffset(),s=o.get(a);return s instanceof d6&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?p6(!1,"`insertFragment` should not be called when a container node is selected."):p6(!1))),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(o),s=l.getText(),c=l.getCharacterList(),u=o,d=i+r.getText().length,f=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var p=l.getType();s&&"unstyled"===p&&(p=r.getType());var h=l.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:f6(c,r.getCharacterList(),i),type:p,data:f});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:d,focusKey:u,focusOffset:d,isBackward:!1})})}(e,t,o,i.first(),a,l,r):m6(e,t,o,i,a,l)},y6=c6,b6=F4,w6=K3.Repeat;var x6=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?b6(!1,"`insertText` should only be called with a collapsed range."):b6(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),l=t.getStartOffset(),s=i.get(a),c=s.getText(),u=s.merge({text:c.slice(0,l)+n+c.slice(l,s.getLength()),characterList:y6(s.getCharacterList(),w6(r,o).toList(),l)}),d=l+o;return e.merge({blockMap:i.set(a,u),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},C6=K3.Map;var S6=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(C6([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},k6=P4,E6=function(e,t){if(!(e instanceof k6))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},O6=P4,D6=E6,j6=K3;j6.List;var P6=j6.Map,T6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},M6=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},A6=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},_6=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},R6=function(e,t,n,r){return e.withMutations((function(o){if(T6(t.getKey(),o,(function(e){return e.merge({nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})})),T6(n.getKey(),o,(function(e){return e.merge({nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})})),M6(t.getKey(),r).forEach((function(e){return T6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})}))})),T6(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),T6(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:A6(e,o,r)})})),T6(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:_6(e,o,r)})})),T6(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),M6(n.getKey(),r).forEach((function(e){T6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=D6(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?D6(o,t):null}return n}(n,r).forEach((function(e){return T6(e,o,(function(e){return e.merge({nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();T6(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),T6(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,l=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){T6(e,o,(function(e){return e.merge({parent:l})}))})),null!=l){var s=e.get(l);T6(l,o,(function(e){return e.merge({children:s.getChildKeys().concat(t.getChildKeys())})}))}T6(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},L6=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},I6=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.get(o),c=r.get(a),u=s instanceof O6,d=[];if(u){var f=c.getChildKeys(),p=M6(a,r);c.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([a]))),d=d.concat(M6(D6(c,r),r))}n=s===c?L6(s.getCharacterList(),i,l):s.getCharacterList().slice(0,i).concat(c.getCharacterList().slice(l));var h=s.merge({text:s.getText().slice(0,i)+c.getText().slice(l),characterList:n}),g=u&&0===i&&0===l&&c.getParentKey()===o&&null==c.getPrevSiblingKey()?P6([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===d.indexOf(t)})).concat(P6([[a,null]])).map((function(e,t){return t===o?h:null})),m=r.merge(g).filter((function(e){return!!e}));return u&&s!==c&&(m=R6(m,s,c,r)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},N6=P4,$6=Y4,z6=K3,F6=F4,B6=S6,K6=z6.List,V6=z6.Map,H6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},U6=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?F6(!1,"Selection range must be collapsed."):F6(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return B6(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var l=t.getAnchorOffset(),s=o.getCharacterList(),c=$6(),u=o instanceof N6,d=o.merge({text:i.slice(0,l),characterList:s.slice(0,l)}),f=d.merge({key:c,text:i.slice(l),characterList:s.slice(l),data:V6()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,d],[c,f]],h).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?F6(!1,"ContentBlockNode must not have children"):F6(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();H6(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:K6(i)})})),H6(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),H6(r,e,(function(e){return e.merge({nextSibling:o})})),H6(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:0,focusKey:c,focusOffset:0,isBackward:!1})})},W6=e4,Z6=_4,q6=N4,G6=Z4,Y6=s6,X6=v6,J6=x6,Q6=F4,e7=S6,t7=i6,n7=I6,r7=U6,o7=K3.OrderedSet,i7={replaceText:function(e,t,n,r,o){var i=t7(e,t),a=n7(i,t),l=W6.create({style:r||o7(),entity:o||null});return J6(a,a.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?Q6(!1,"Target range must be collapsed for `insertText`."):Q6(!1)),i7.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=Y6(e,t),o=i7.removeRange(e,t,"backward");return i7.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=t7(e,t),i=n7(o,t);return X6(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var l=t.getStartOffset(),s=t.getEndOffset(),c=i.getEntityAt(l),u=a.getEntityAt(s-1);if(r===o&&c&&c===u){var d=G6(e.getEntityMap(),i,a,t,n);return n7(e,d)}var f=t7(e,t);return n7(f,t)},splitBlock:function(e,t){var n=t7(e,t),r=n7(n,t);return r7(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Z6.add(e,t,n)},removeInlineStyle:function(e,t,n){return Z6.remove(e,t,n)},setBlockType:function(e,t,n){return e7(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return e7(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return e7(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=t7(e,t);return q6(r,t,n)}},a7=i7;var l7=function(e){return Object.keys(e).map((function(t){return e[t]}))};function s7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c7=t4,u7=l7,d7=K3,f7=d7.List,p7=d7.Repeat,h7=d7.Record,g7=function(){return!0},m7=h7({start:null,end:null}),v7=h7({start:null,end:null,decoratorKey:null,leaves:null}),y7={generate:function(e,t,n){var r=t.getLength();if(!r)return f7.of(new v7({start:0,end:0,decoratorKey:null,leaves:f7.of(new m7({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):f7(p7(null,r)),a=t.getCharacterList();return c7(i,w7,g7,(function(e,t){o.push(new v7({start:e,end:t,decoratorKey:i.get(e),leaves:b7(a.slice(e,t).toList(),e)}))})),f7(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new v7(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s7(e,t,n[t])}))}return e}({},n,{leaves:null!=t?f7(Array.isArray(t)?t:u7(t)).map((function(e){return m7(e)})):null}))}};function b7(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return c7(r,w7,g7,(function(e,r){n.push(new m7({start:e+t,end:r+t}))})),f7(n)}function w7(e,t){return e===t}var x7=y7;var C7=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,K3.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),S7=C7;var k7=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function E7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O7=S7,D7=F4,j7=k7,P7=(0,K3.Map)(),T7=j7();function M7(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var A7={getLastCreatedEntityKey:function(){return M7("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),A7.__getLastCreatedEntityKey()},create:function(e,t,n){return M7("DraftEntity.create","contentState.createEntity"),A7.__create(e,t,n)},add:function(e){return M7("DraftEntity.add","contentState.addEntity"),A7.__add(e)},get:function(e){return M7("DraftEntity.get","contentState.getEntity"),A7.__get(e)},__getAll:function(){return P7},__loadWithEntities:function(e){P7=e,T7=j7()},mergeData:function(e,t){return M7("DraftEntity.mergeData","contentState.mergeEntityData"),A7.__mergeData(e,t)},replaceData:function(e,t){return M7("DraftEntity.replaceData","contentState.replaceEntityData"),A7.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return T7},__create:function(e,t,n){return A7.__add(new O7({type:e,mutability:t,data:n||{}}))},__add:function(e){return T7=j7(),P7=P7.set(T7,e),T7},__get:function(e){var t=P7.get(e);return t||("production"!==process.env.NODE_ENV?D7(!1,"Unknown DraftEntity key: %s.",e):D7(!1)),t},__mergeData:function(e,t){var n=A7.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){E7(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return P7=P7.set(e,o),o},__replaceData:function(e,t){var n=A7.__get(e).set("data",t);return P7=P7.set(e,n),n}},_7=A7;var R7=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,K3.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),L7=R7,I7=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},N7=new RegExp("\r","g");var $7=function(e){return e.replace(N7,"")};function z7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F7(e,t,n[t])}))}return e}function F7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B7=H3,K7=e4,V7=g4,H7=P4,U7=_7,W7=L7,Z7=Y4,q7=l7,G7=I7,Y7=K3,X7=$7,J7=Y7.List,Q7=Y7.Record,e8=Y7.Repeat,t8=Y7.Map,n8=Y7.OrderedMap,r8=Q7({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),o8=G7("draft_tree_data_support")?H7:V7,i8=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return U7},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return U7.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return U7.__create(e,t,n),this},o.mergeEntityData=function(e,t){return U7.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return U7.__replaceData(e,t),this},o.addEntity=function(e){return U7.__add(e),this},o.getEntity=function(e){return U7.__get(e)},o.getAllEntities=function(){return U7.__getAll()},o.loadWithEntities=function(e){return U7.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=B7.createFromArray(n),i=o.isEmpty()?new W7:W7.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||U7,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=X7(e),new o8({key:Z7(),text:e,type:"unstyled",characterList:J7(e8(K7.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(z7({},e,{blockMap:n8(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new W7(e.selectionBefore),selectionAfter:new W7(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new o8(z7({},e,{data:t8(e.data),characterList:null!=t?J7((Array.isArray(t)?t:q7(t)).map((function(e){return K7.fromJS(e)}))):void 0}))},r}(r8),a8=i8,l8=F4,s8="LTR",c8="RTL",u8=null;function d8(e){return e===s8||e===c8}function f8(e){return d8(e)||("production"!==process.env.NODE_ENV?l8(!1,"`dir` must be a strong direction to be converted to HTML Direction"):l8(!1)),e===s8?"ltr":"rtl"}function p8(e){u8=e}var h8={NEUTRAL:"NEUTRAL",LTR:s8,RTL:c8,isStrong:d8,getHTMLDir:f8,getHTMLDirIfDifferent:function(e,t){return d8(e)||("production"!==process.env.NODE_ENV?l8(!1,"`dir` must be a strong direction to be converted to HTML Direction"):l8(!1)),d8(t)||("production"!==process.env.NODE_ENV?l8(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):l8(!1)),e===t?null:f8(e)},setGlobalDir:p8,initGlobalDir:function(){p8(s8)},getGlobalDir:function(){return u8||this.initGlobalDir(),u8||("production"!==process.env.NODE_ENV?l8(!1,"Global direction not set."):l8(!1)),u8}},g8=h8,m8=F4,v8="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",y8="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",b8=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+v8+y8+"]"),w8=new RegExp("["+v8+y8+"]");function x8(e){var t=b8.exec(e);return null==t?null:t[0]}function C8(e){var t=x8(e);return null==t?g8.NEUTRAL:w8.exec(t)?g8.RTL:g8.LTR}function S8(e,t){if(t=t||g8.NEUTRAL,!e.length)return t;var n=C8(e);return n===g8.NEUTRAL?t:n}function k8(e,t){return t||(t=g8.getGlobalDir()),g8.isStrong(t)||("production"!==process.env.NODE_ENV?m8(!1,"Fallback direction must be a strong direction"):m8(!1)),S8(e,t)}var E8={firstStrongChar:x8,firstStrongCharDir:C8,resolveBlockDir:S8,getDirection:k8,isDirectionLTR:function(e,t){return k8(e,t)===g8.LTR},isDirectionRTL:function(e,t){return k8(e,t)===g8.RTL}};function O8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D8,j8=E8,P8=h8,T8=F4,M8=function(){function e(e){O8(this,"_defaultDir",void 0),O8(this,"_lastDir",void 0),e?P8.isStrong(e)||("production"!==process.env.NODE_ENV?T8(!1,"Default direction must be a strong direction (LTR or RTL)"):T8(!1)):e=P8.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=j8.getDirection(e,this._lastDir),this._lastDir},e}(),A8=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},_8=M8,R8=K3,L8=A8,I8=R8.OrderedMap;function N8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$8(e,t,n[t])}))}return e}function $8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z8=x7,F8=a8,B8={getDirectionMap:function(e,t){D8?D8.reset():D8=new _8;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return L8(D8).getDirection(e.getText())})),o=I8(n.keySeq().zip(r));return null!=t&&R8.is(t,o)?t:o}},K8=L7,V8=K3,H8=V8.OrderedSet,U8=V8.Record,W8=V8.Stack,Z8=V8.OrderedMap,q8=V8.List,G8=U8({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:W8(),selection:null,treeMap:null,undoStack:W8()}),Y8=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(F8.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:W8(),redoStack:W8(),decorator:n||null,selection:K8.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=N8({},e,{treeMap:J8(n,e.decorator),directionMap:B8.getDirectionMap(n)});return new t(new G8(r))},t.fromJS=function(e){return new t(new G8(N8({},e,{directionMap:null!=e.directionMap?Z8(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?H8(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?F8.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?W8(e.redoStack.map((function(e){return F8.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new K8(e.selection):e.selection,treeMap:null!=e.treeMap?Z8(e.treeMap).map((function(e){return q8(e).map((function(e){return z8.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?W8(e.undoStack.map((function(e){return F8.fromJS(e)}))):e.undoStack,currentContent:F8.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,l=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return z8.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):J8(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return z8.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){$8(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return Q8(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return Q8(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return X8(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),X8(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new K8({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=B8.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),s=e.getUndoStack(),c=n;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(s=s.push(l),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",l.getSelectionBefore()));var u=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var d={currentContent:c,directionMap:i,undoStack:s,redoStack:W8(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=B8.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=B8.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function X8(e,t,n){return Y8.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function J8(e,t){return e.getBlockMap().map((function(n){return z8.generate(e,n,t)})).toOrderedMap()}function Q8(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):H8()}var eee=Y8,tee=P4,nee=E6,ree=K3,oee=F4,iee=ree.OrderedMap,aee=ree.List,lee=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},see=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),s=t.getParentKey(),c=t.getNextSiblingKey(),u=t.getPrevSiblingKey(),d=n.getParentKey(),f=i?n.getNextSiblingKey():l,p=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){lee(s,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),lee(u,e,(function(e){return e.merge({nextSibling:c})})),lee(c,e,(function(e){return e.merge({prevSibling:u})})),lee(f,e,(function(e){return e.merge({prevSibling:a})})),lee(p,e,(function(e){return e.merge({nextSibling:a})})),lee(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(l),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:aee(o)})})),lee(a,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))};function cee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uee(e,t,n[t])}))}return e}function uee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dee=H3,fee=e4,pee=g4,hee=P4,gee=a7,mee=eee,vee=Y4,yee=K3,bee=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?oee(!1,"Replacing blocks is not supported."):oee(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?oee(!1,"Block cannot be moved next to itself."):oee(!1));var a=e.getBlockMap(),l=t instanceof tee,s=[t],c=a.delete(i);l&&(s=[],c=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=nee(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,l=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||l)})).forEach((function(t){s.push(t),e.delete(t.getKey())}))})));var u=c.toSeq().takeUntil((function(e){return e===n})),d=c.toSeq().skipUntil((function(e){return e===n})).skip(1),f=s.map((function(e){return[e.getKey(),e]})),p=iee();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?oee(!1,"Block cannot be moved next to itself."):oee(!1)),p=u.concat([].concat(f,[[o,n]]),d).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?oee(!1,"Block cannot be moved next to itself."):oee(!1)),p=u.concat([[o,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:see(p,t,n,r,l),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},wee=I7("draft_tree_data_support"),xee=wee?hee:pee,Cee=yee.List,See=yee.Repeat,kee={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=gee.removeRange(r,o,"backward"),a=i.getSelectionAfter(),l=gee.splitBlock(i,a),s=l.getSelectionAfter(),c=gee.setBlockType(l,s,"atomic"),u=fee.create({entity:t}),d={key:vee(),type:"atomic",text:n,characterList:Cee(See(u,n.length))},f={key:vee(),type:"unstyled"};wee&&(d=cee({},d,{nextSibling:f.key}),f=cee({},f,{prevSibling:d.key}));var p=[new xee(d),new xee(f)],h=dee.createFromArray(p),g=gee.replaceWithFragment(c,s,h),m=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return mee.push(e,m,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var l=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=bee(i,t,l,r)}else{var s=gee.removeRange(i,n,"backward"),c=s.getSelectionAfter(),u=s.getBlockForKey(c.getFocusKey());if(0===c.getStartOffset())o=bee(s,t,u,"before");else if(c.getEndOffset()===u.getLength())o=bee(s,t,u,"after");else{var d=gee.splitBlock(s,c),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());o=bee(d,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return mee.push(e,h,"move-block")}};var Eee=K3.List,Oee=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),Eee(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var Dee=Oee;function jee(e){return e.replace(/\//g,"-")}var Pee=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(jee).join(" "):Array.prototype.map.call(arguments,jee).join(" ")},Tee=t,Mee=Pee,Aee=(0,K3.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Tee.createElement("ul",{className:Mee("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:Tee.createElement("ol",{className:Mee("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Tee.createElement("pre",{className:Mee("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),_ee={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},Ree={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",c="model",u="name",d="type",f="vendor",p="version",h="architecture",g="console",m="mobile",v="tablet",y="smarttv",b="wearable",w="embedded",x="Amazon",C="Apple",S="ASUS",k="BlackBerry",E="Browser",O="Chrome",D="Firefox",j="Google",P="Huawei",T="LG",M="Microsoft",A="Motorola",_="Opera",R="Samsung",L="Sharp",I="Sony",N="Xiaomi",$="Zebra",z="Facebook",F="Chromium OS",B="Mac OS",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===l&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},U=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},W=function(e,t){for(var n,i,l,s,c,u,d=0;d<t.length&&!c;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(l=0;l<p.length;l++)u=c[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):r:this[s[0]]=u?s[1].call(this,u,s[2]):r:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):r):this[s]=u||r;d+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return e},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,_+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,_]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[u,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[u,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,_+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,_+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[p,[u,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+E]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+E],p],[/samsungbrowser\/([\w\.]+)/i],[p,[u,R+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,z],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,D+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,H]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,R],[d,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,R],[d,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,C],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,C],[d,v]],[/(macintosh);/i],[c,[f,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,L],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,P],[d,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,P],[d,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,N],[d,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,N],[d,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[d,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[d,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,A],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,A],[d,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,T],[d,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,T],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[d,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[d,m]],[/(pixel c)\b/i],[c,[f,j],[d,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,j],[d,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,I],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,I],[d,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,x],[d,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,x],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[d,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,k],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,S],[d,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,S],[d,m]],[/(nexus 9)/i],[c,[f,"HTC"],[d,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[d,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[d,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[d,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[d,m]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[d,v]],[/(surface duo)/i],[c,[f,M],[d,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[d,m]],[/(u304aa)/i],[c,[f,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[d,v]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[d,v]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[d,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[d,v]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[d,v]],[/\b(k88) b/i],[c,[f,"ZTE"],[d,v]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[d,v]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[d,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[d,v]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[d,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[d,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[d,m]],[/\b(ph-1) /i],[c,[f,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[d,v]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[d,v]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[d,v]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[d,v]],[/(sprint) (\w+)/i],[f,c,[d,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,M],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,$],[d,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,$],[d,m]],[/smart-tv.+(samsung)/i],[f,[d,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,R],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,T],[d,y]],[/(apple) ?tv/i],[f,[c,C+" TV"],[d,y]],[/crkey/i],[[c,O+"cast"],[f,j],[d,y]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,x],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,L],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,I],[d,y]],[/(mitv-\w{5}) bui/i],[c,[f,N],[d,y]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,U],[c,U],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[d,g]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[c,[f,I],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,M],[d,g]],[/((pebble))app/i],[f,c,[d,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,C],[d,b]],[/droid.+; (glass) \d/i],[c,[f,j],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,$],[d,b]],[/(quest( 2| pro)?)/i],[c,[f,z],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[c,[f,x],[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[p,Z,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Z,q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,B],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[u,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,F],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,p]]},Y=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,y=e||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:r,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,x=g&&g.userAgent==y;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,W.call(t,y,w.browser),t[s]=typeof(e=t[p])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,y,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[d]=r,W.call(e,y,w.device),x&&!e[d]&&b&&b.mobile&&(e[d]=m),x&&"Macintosh"==e[c]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[c]="iPad",e[d]=v),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,W.call(e,y,w.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,W.call(e,y,w.os),x&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,F).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===l&&e.length>500?U(e,500):e,this},this.setUA(y),this};Y.VERSION="0.7.37",Y.BROWSER=K([u,p,s]),Y.CPU=K([h]),Y.DEVICE=K([c,f,d,g,m,y,v,b,w]),Y.ENGINE=Y.OS=K([u,p]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new Y;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:Bi)}(Ree,Ree.exports);var Lee="Unknown",Iee={"Mac OS":"Mac OS X"};var Nee,$ee=(new(0,Ree.exports)).getResult(),zee=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}($ee.browser.version),Fee={browserArchitecture:$ee.cpu.architecture||Lee,browserFullVersion:$ee.browser.version||Lee,browserMinorVersion:zee.minor||Lee,browserName:$ee.browser.name||Lee,browserVersion:$ee.browser.major||Lee,deviceName:$ee.device.model||Lee,engineName:$ee.engine.name||Lee,engineVersion:$ee.engine.version||Lee,platformArchitecture:$ee.cpu.architecture||Lee,platformName:(Nee=$ee.os.name,Iee[Nee]||Nee||Lee),platformVersion:$ee.os.version||Lee,platformFullVersion:$ee.os.version||Lee},Bee=F4,Kee=/\./,Vee=/\|\|/,Hee=/\s+\-\s+/,Uee=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,Wee=/^(\d*)(.*)/;function Zee(e,t){var n=e.split(Vee);return n.length>1?n.some((function(e){return ote.contains(e,t)})):function(e,t){var n=e.split(Hee);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?Bee(!1,'the "-" operator expects exactly 2 operands'):Bee(!1)),1===n.length)return qee(n[0],t);var r=n[0],o=n[1];return Qee(r)&&Qee(o)||("production"!==process.env.NODE_ENV?Bee(!1,'operands to the "-" operator must be simple (no modifiers)'):Bee(!1)),qee(">="+r,t)&&qee("<="+o,t)}(e=n[0].trim(),t)}function qee(e,t){if(""===(e=e.trim()))return!0;var n=t.split(Kee),r=Xee(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return Gee(n,i);case"<=":return function(e,t){var n=rte(e,t);return-1===n||0===n}(n,i);case">=":return Yee(n,i);case">":return function(e,t){return 1===rte(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);Jee(i)&&(r[o]=i+1+"");return Yee(e,n)&&Gee(e,r)}(n,i);default:return function(e,t){return 0===rte(e,t)}(n,i)}}function Gee(e,t){return-1===rte(e,t)}function Yee(e,t){var n=rte(e,t);return 1===n||0===n}function Xee(e){var t=e.split(Kee),n=t[0].match(Uee);return n||("production"!==process.env.NODE_ENV?Bee(!1,"expected regex to match but it did not"):Bee(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function Jee(e){return!isNaN(e)&&isFinite(e)}function Qee(e){return!Xee(e).modifier}function ete(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function tte(e,t){var n=e.match(Wee)[1],r=t.match(Wee)[1],o=parseInt(n,10),i=parseInt(r,10);return Jee(o)&&Jee(i)&&o!==i?nte(o,i):nte(e,t)}function nte(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?Bee(!1,'"a" and "b" must be of the same type'):Bee(!1)),e>t?1:e<t?-1:0}function rte(e,t){for(var n=function(e,t){ete(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return ete(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=tte(r[i],o[i]);if(a)return a}return 0}var ote={contains:function(e,t){return Zee(e.trim(),t.trim())}},ite=ote,ate=Object.prototype.hasOwnProperty;var lte=function(e,t,n){if(!e)return null;var r={};for(var o in e)ate.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var ste=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},cte=Fee,ute=ite;function dte(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,ute.contains(o,t))}function fte(e){return"Windows"===cte.platformName?e.replace(/^\s*NT/,""):e}var pte=lte({isBrowser:function(e){return dte(cte.browserName,cte.browserFullVersion,e)},isBrowserArchitecture:function(e){return dte(cte.browserArchitecture,null,e)},isDevice:function(e){return dte(cte.deviceName,null,e)},isEngine:function(e){return dte(cte.engineName,cte.engineVersion,e)},isPlatform:function(e){return dte(cte.platformName,cte.platformFullVersion,e,fte)},isPlatformArchitecture:function(e){return dte(cte.platformArchitecture,null,e)}},ste);var hte=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var gte=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},mte=gte;var vte=function e(t){if(mte(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},yte=hte,bte=vte;var wte=function(e){for(var t=e;t&&t!==yte(e).documentElement;){var n=bte(t);if(null!=n)return n;t=t.parentNode}return null};var xte=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function Cte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ste=pte,kte=wte,Ete=xte,Ote=F4,Dte=A8,jte=K3.Map,Pte={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Tte=Ste.isBrowser("IE <= 11"),Mte=function(){function e(e){var t=this;Cte(this,"observer",void 0),Cte(this,"container",void 0),Cte(this,"mutations",void 0),Cte(this,"onCharData",void 0),this.container=e,this.mutations=jte();var n=Ete(e);n.MutationObserver&&!Tte?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?Ote(!1,"Expected target to be an instance of Node"):Ote(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,Pte):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=jte(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return Tte?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=Dte(kte(e.target));this.mutations=this.mutations.set(n,t)}},e}(),Ate="-",_te={encode:function(e,t,n){return e+Ate+t+Ate+n},decode:function(e){var t=e.split(Ate).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(Ate),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},Rte={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},Lte={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var Ite=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},Nte=F4,$te=Ite;var zte=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?Nte(!1,"Missing editorNode"):Nte(!1)),$te(t.firstChild)||("production"!==process.env.NODE_ENV?Nte(!1,"editorNode.firstChild is not an HTMLElement"):Nte(!1)),t.firstChild},Fte=_te,Bte=A8;var Kte=function(e,t,n,r,o){var i=Bte(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=Fte.decode(t),l=a.blockKey,s=e.getBlockTree(l),c=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),u=Fte.decode(r),d=u.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!c||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=c.get("start"),g=p.get("start"),m=c?h+n:null,v=p?g+o:null;if(i.getAnchorKey()===l&&i.getAnchorOffset()===m&&i.getFocusKey()===d&&i.getFocusOffset()===v)return i;var y=!1;if(l===d){var b=c.get("end"),w=p.get("end");y=g===h&&w===b?o<n:g<h}else{y=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===d})).first()===d}return i.merge({anchorKey:l,anchorOffset:m,focusKey:d,focusOffset:v,isBackward:y})},Vte=wte,Hte=vte,Ute=Kte,Wte=F4,Zte=gte,qte=A8;function Gte(e,t,n){var r=t,o=Vte(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?Wte(!1,"Unknown node in selection range."):Wte(!1)),e===r)&&(r=r.firstChild,Zte(r)||("production"!==process.env.NODE_ENV?Wte(!1,"Invalid DraftEditorContents node."):Wte(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?Wte(!1,"Invalid DraftEditorContents structure."):Wte(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(Zte(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||Hte(e.firstChild));)e=e.firstChild;return e}(r);i=qte(Hte(a))}return{key:i,offset:0}}var l=r.childNodes[n-1],s=null,c=null;if(Hte(l)){var u=function(e){for(;e.lastChild&&(Zte(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||Hte(e.lastChild));)e=e.lastChild;return e}(l);s=qte(Hte(u)),c=Yte(u)}else s=qte(o),c=Yte(l);return{key:s,offset:c}}function Yte(e){var t=e.textContent;return"\n"===t?0:t.length}var Xte=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,l=o.nodeType===Node.TEXT_NODE;if(a&&l)return{selectionState:Ute(e,qte(Vte(n)),r,qte(Vte(o)),i),needsRecovery:!1};var s=null,c=null,u=!0;return a?(s={key:qte(Vte(n)),offset:r},c=Gte(t,o,i)):l?(c={key:qte(Vte(o)),offset:i},s=Gte(t,n,r)):(s=Gte(t,n,r),c=Gte(t,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:Ute(e,s.key,s.offset,c.key,c.offset),needsRecovery:u}},Jte=Xte;var Qte=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:Jte(e,t,r,o,i,a)},ene=Lte,tne=eee,nne=zte,rne=Qte;var one=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();ene.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=rne(n,nne(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?tne.forceSelection(n,o):tne.acceptSelection(n,o),e.update(n))}};var ine={notEmptyKey:function(e){return null!=e&&""!=e}},ane=ine.notEmptyKey;function lne(e,t){return ane(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var sne=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:lne(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),l=e.getBlockForKey(i);return n=a===l.getLength()?null:l.getEntityAt(a),lne(e.getEntityMap(),n)},cne=Mte,une=a7,dne=_te,fne=eee,pne=Rte,hne=one,gne=zte,mne=Qte,vne=sne,yne=A8,bne=pte.isBrowser("IE"),wne=!1,xne=!1,Cne=null;var Sne,kne,Ene={onCompositionStart:function(e){xne=!0,function(e){Cne||(Cne=new cne(gne(e))).start()}(e)},onCompositionEnd:function(e){wne=!1,xne=!1,setTimeout((function(){wne||Ene.resolveComposition(e)}),20)},onSelect:hne,onKeyDown:function(e,t){if(!xne)return Ene.resolveComposition(e),void e._onKeyDown(t);t.which!==pne.RIGHT&&t.which!==pne.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===pne.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!xne){var t=yne(Cne).stopAndFlushMutations();Cne=null,wne=!0;var n=fne.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=dne.decode(t),i=o.blockKey,a=o.decoratorKey,l=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",l]),c=s.start,u=s.end,d=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:c,focusOffset:u,isBackward:!1}),f=vne(r,d),p=r.getBlockForKey(i).getInlineStyleAt(c);r=une.replaceText(r,d,e,p,f),n=fne.set(n,{currentContent:r})}));var o=mne(n,gne(e)).selectionState;e.restoreEditorDOM();var i=bne?fne.forceSelection(n,o):fne.acceptSelection(n,o);e.update(fne.push(i,r,"insert-characters"))}else e.update(n)}}},One=Ene;function Dne(){if(kne)return Sne;kne=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=_te,o=t,i=E8,a=h8,l=function(e){var t,l;function s(){return e.apply(this,arguments)||this}return l=e,(t=s).prototype=Object.create(l.prototype),t.prototype.constructor=t,t.__proto__=l,s.prototype.render=function(){var e=this.props,t=e.block,l=e.children,s=e.contentState,c=e.decorator,u=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,h=t.getKey(),g=f.get("leaves"),m=c.getComponentForKey(u),v=c.getPropsForKey(u),y=r.encode(h,parseInt(u,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),d);return o.createElement(m,n({},v,{contentState:s,decoratedText:b,dir:w,key:y,entityKey:t.getEntityAt(f.get("start")),offsetKey:y}),l)},s}(o.Component);return Sne=l}function jne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tne=t,Mne=F4,Ane=gte,_ne=pte.isBrowser("IE <= 11");var Rne=function(e){var t,n;function r(t){var n;return Pne(jne(n=e.call(this,t)||this),"_forceFlag",void 0),Pne(jne(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Ane(t)||("production"!==process.env.NODE_ENV?Mne(!1,"node is not an Element"):Mne(!1));var r=t;return n?!function(e){return _ne?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},_ne?Tne.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):Tne.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return _ne?Tne.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):Tne.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):Tne.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(Tne.Component),Lne=Rne,Ine=gte;var Nne=function(e){return!(!e||!e.ownerDocument)&&(Ine(e)&&"BR"===e.nodeName)},$ne={initODS:function(){},handleExtensionCausedError:function(){}};var zne=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},Fne=zne;var Bne=function(e){return Fne(e)&&3==e.nodeType},Kne=Bne;var Vne=function e(t,n){return!(!t||!n)&&(t===n||!Kne(t)&&(Kne(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Hne=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},Une=$ne,Wne=Lte,Zne=Vne,qne=Hne,Gne=hte,Yne=F4,Xne=gte,Jne=pte.isBrowser("IE");function Qne(e,t){if(!e)return"[empty]";var n=ere(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(Xne(n)||("production"!==process.env.NODE_ENV?Yne(!1,"Node must be an Element if it is not a text node."):Yne(!1)),n.outerHTML)}function ere(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return Gne(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(ere(i[a],t));return o}function tre(e,t){for(var n=e,r=n;n;){if(Xne(n)&&r.hasAttribute("contenteditable"))return Qne(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function nre(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function rre(e,t,n,r){var o=qne();if(e.extend&&null!=t&&Zne(o,t)){n>nre(t)&&Wne.logSelectionStateFailure({anonymizedDom:tre(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw Wne.logSelectionStateFailure({anonymizedDom:tre(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function ore(e,t,n,r){var o=Gne(t).createRange();if(n>nre(t)&&(Wne.logSelectionStateFailure({anonymizedDom:tre(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),Une.handleExtensionCausedError()),o.setStart(t,n),Jne)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var ire=function(e,t,n,r,o){var i=Gne(t);if(Zne(i.documentElement,t)){var a=i.defaultView.getSelection(),l=e.getAnchorKey(),s=e.getAnchorOffset(),c=e.getFocusKey(),u=e.getFocusOffset(),d=e.getIsBackward();if(!a.extend&&d){var f=l,p=s;l=c,s=u,c=f,u=p,d=!1}var h=l===n&&r<=s&&o>=s,g=c===n&&r<=u&&o>=u;if(h&&g)return a.removeAllRanges(),ore(a,t,s-r,e),void rre(a,t,u-r,e);if(d){if(g&&(a.removeAllRanges(),ore(a,t,u-r,e)),h){var m=a.focusNode,v=a.focusOffset;a.removeAllRanges(),ore(a,t,s-r,e),rre(a,m,v,e)}}else h&&(a.removeAllRanges(),ore(a,t,s-r,e)),g&&rre(a,t,u-r,e)}},are=oU;var lre,sre,cre=Lne,ure=t,dre=F4,fre=Nne,pre=ire,hre=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var l=this.leaf;l||("production"!==process.env.NODE_ENV?dre(!1,"Missing node"):dre(!1));var s,c=l.firstChild;c||("production"!==process.env.NODE_ENV?dre(!1,"Missing child"):dre(!1)),c.nodeType===Node.TEXT_NODE?s=c:fre(c)?s=l:(s=c.firstChild)||("production"!==process.env.NODE_ENV?dre(!1,"Missing targetNode"):dre(!1)),pre(e,s,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?dre(!1,"Missing leafNode"):dre(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,l=r.styleSet,s=l.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),are(e,r,n)}),{});if(i){var c=i(l,t);s=are(s,c)}return ure.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:s},ure.createElement(cre,null,n))},r}(ure.Component),gre=hre;function mre(){if(sre)return lre;sre=1;var e=Dne(),n=gre,r=_te,o=t,i=Pee;K3.List;var a=function(t){var a,l;function s(){return t.apply(this,arguments)||this}return l=t,(a=s).prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l,s.prototype.render=function(){var t=this.props,a=t.block,l=t.contentState,s=t.customStyleFn,c=t.customStyleMap,u=t.decorator,d=t.direction,f=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,m=a.getKey(),v=a.getText(),y=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var l=r.encode(m,i,t),u=e.get("start"),d=e.get("end");return o.createElement(n,{key:l,offsetKey:l,block:a,start:u,selection:p?h:null,forceSelection:f,text:v.slice(u,d),styleSet:a.getInlineStyleAt(u),customStyleMap:c,customStyleFn:s,isLast:g===y&&t===w})})).toArray();return g&&u?o.createElement(e,{block:a,children:x,contentState:l,decorator:u,decoratorKey:g,direction:d,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(m,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},s}(o.Component);return lre=a}function vre(e,t){return!!t&&(e===t.documentElement||e===t.body)}var yre={getTop:function(e){var t=e.ownerDocument;return vre(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;vre(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return vre(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;vre(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},bre=/-(.)/g;var wre=function(e){return e.replace(bre,(function(e,t){return t.toUpperCase()}))},xre=/([A-Z])/g;var Cre=function(e){return e.replace(xre,"-$1").toLowerCase()},Sre=wre,kre=Cre;function Ere(e){return null==e?e:String(e)}var Ore=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return Ere(n.getPropertyValue(kre(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return Ere(n.getPropertyValue(kre(t)));if("display"===t)return"none"}return e.currentStyle?Ere("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Sre(t)]):Ere(e.style&&e.style[Sre(t)])};function Dre(e,t){var n=jre.get(e,t);return"auto"===n||"scroll"===n}var jre={get:Ore,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(Dre(e,"overflow")||Dre(e,"overflowY")||Dre(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},Pre=jre,Tre=Vne;var Mre=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!Tre(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var Are=function(e){var t=Mre(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},_re="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Rre=function(e){return(e=e||document).scrollingElement?e.scrollingElement:_re||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Lre=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var Ire=function(e){var t=Rre(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Lre(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function Nre(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function $re(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function zre(){return{width:window.innerWidth||Nre(),height:window.innerHeight||$re()}}zre.withoutScrollbars=function(){return{width:Nre(),height:$re()}};var Fre,Bre,Kre,Vre,Hre=zre;function Ure(){if(Bre)return Fre;Bre=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=mre(),a=_te,l=t,s=yre,c=Pre,u=Are,d=Ire,f=Hre,p=F4,h=Ite;K3.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},m=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},y=function(e,t,n,o,i,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},s=o(e);return s&&(l.className=s),void 0!==i.customEditable&&(l=r({},l,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),l},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",l.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=c.getScrollParent(n),i=d(o);if(o===window){var a=u(n);(r=a.y+a.height-f().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var l=n;(r=l.offsetHeight+l.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,s=t.blockRenderMap,c=t.blockRendererFn,u=t.blockStyleFn,d=t.contentState,f=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,S=t.forceSelection,k=t.selection,E=t.tree,O=null;o.children.size&&(O=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=d.getBlockForKey(n),f=v(i,c),g=f.CustomComponent||w,b=m(i,s),x=b.Element,C=b.wrapperTemplate,S=y(i,p,o,u,f,null),k=r({},e.props,{tree:h.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:i});return t.push(l.createElement(x,S,l.createElement(g,k))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,d)||function(e,t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var c,u=n.reverse()[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var d=c.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),p=f[0].key;n.push(l.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},f))}(C,x,t),t}),[]));var D=o.getKey(),j=a.encode(D,0,0),P=v(o,c),T=P.CustomComponent,M=null!=T?l.createElement(T,n({},this.props,{tree:h.getBlockTree(D),blockProps:P.customProps,offsetKey:j,block:o})):l.createElement(i,{block:o,children:O,contentState:d,customStyleFn:b,customStyleMap:x,decorator:f,direction:C,forceSelection:S,hasSelection:g(k,D),selection:k,tree:E});if(o.getParentKey())return M;var A=m(o,s).Element,_=y(o,p,j,u,P,this.wrapperRef);return l.createElement(A,_,M)},w}(l.Component);return Fre=b}var Wre=oU;function Zre(){return Zre=Wre||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zre.apply(this,arguments)}var qre,Gre,Yre,Xre,Jre=gre,Qre=_te,eoe=t,toe=yre,noe=Pre,roe=E8,ooe=h8,ioe=Pee,aoe=Are,loe=Ire,soe=Hre,coe=F4,uoe=Ite,doe=A8,foe=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},poe=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||foe(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=noe.getScrollParent(n),i=loe(o);if(o===window){var a=aoe(n);(r=a.y+a.height-soe().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{uoe(n)||("production"!==process.env.NODE_ENV?coe(!1,"blockNode is not an HTMLElement"):coe(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&toe.setTop(o,toe.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=foe(this.props.selection,n);return this.props.tree.map((function(a,l){var s=a.get("leaves");if(0===s.size)return null;var c=s.size-1,u=s.map((function(a,s){var u=Qre.encode(n,l,s),d=a.get("start"),f=a.get("end");return eoe.createElement(Jre,{key:u,offsetKey:u,block:t,start:d,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(d,f),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:l===o&&s===c})})).toArray(),d=a.get("decoratorKey");if(null==d)return u;if(!e.props.decorator)return u;var f=doe(e.props.decorator),p=f.getComponentForKey(d);if(!p)return u;var h=f.getPropsForKey(d),g=Qre.encode(n,l,0),m=s.first().get("start"),v=s.last().get("end"),y=r.slice(m,v),b=t.getEntityAt(a.get("start")),w=ooe.getHTMLDirIfDifferent(roe.getDirection(y),e.props.direction),x={contentState:e.props.contentState,decoratedText:y,dir:w,start:m,end:v,blockKey:n,entityKey:b,offsetKey:g};return eoe.createElement(p,Zre({},h,x,{key:g}),u)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=ioe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return eoe.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(eoe.Component),hoe=poe;var goe=I7("draft_tree_data_support")?function(){if(Vre)return Kre;Vre=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=Ure(),o=_te,i=t,a=A8,l=function(e){var t,l;function s(){return e.apply(this,arguments)||this}l=e,(t=s).prototype=Object.create(l.prototype),t.prototype.constructor=t,t.__proto__=l;var c=s.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,t=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,c=e.customStyleMap,u=e.customStyleFn,d=e.editorState,f=e.editorKey,p=e.textDirectionality,h=d.getCurrentContent(),g=d.getSelection(),m=d.mustForceSelection(),v=d.getDecorator(),y=a(d.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:l,blockStyleFn:s,contentState:h,customStyleFn:u,customStyleMap:c,decorator:v,editorKey:f,editorState:d,forceSelection:m,selection:g,block:w,direction:p||y.get(x),tree:d.getBlockTree(x)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:S,key:x,offsetKey:o.encode(x,0,0)});var k=w.getNextSiblingKey();w=k?h.getBlockForKey(k):null}for(var E=[],O=0;O<b.length;){var D=b[O];if(D.wrapperTemplate){var j=[];do{j.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===D.wrapperTemplate);var P=i.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},j);E.push(P)}else E.push(D.block),O++}return i.createElement("div",{"data-contents":"true"},E)},s}(i.Component);return Kre=l}():function(){if(Xre)return Yre;Xre=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=hoe,a=_te,l=t,s=Pee,c=(Gre||(Gre=1,qre=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),qre),u=A8,d=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(e){var t,o;function s(){return e.apply(this,arguments)||this}o=e,(t=s).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var f=s.prototype;return f.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},f.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,s=e.blockStyleFn,f=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,m=e.preventScroll,v=e.textDirectionality,y=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),C=u(h.getDirectionMap()),S=y.getBlocksAsArray(),k=[],E=null,O=null,D=0;D<S.length;D++){var j=S[D],P=j.getKey(),T=j.getType(),M=o(j),A=void 0,_=void 0,R=void 0;M&&(A=M.component,_=M.props,R=M.editable);var L=v||C.get(P),I=a.encode(P,0,0),N={contentState:y,block:j,blockProps:_,blockStyleFn:s,customStyleMap:f,customStyleFn:p,decorator:x,direction:L,forceSelection:w,offsetKey:I,preventScroll:m,selection:b,tree:h.getBlockTree(P)},$=t.get(T)||t.get("unstyled"),z=$.wrapper,F=$.element||t.get("unstyled").element,B=j.getDepth(),K="";if(s&&(K=s(j)),"li"===F)K=c(K,d(T,B,O!==z||null===E||B>E,L));var V=A||i,H={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:P};void 0!==R&&(H=r({},H,{contentEditable:R,suppressContentEditableWarning:!0}));var U=l.createElement(F,H,l.createElement(V,n({},N,{key:P})));k.push({block:U,wrapperTemplate:z,key:P,offsetKey:I}),E=z?j.getDepth():null,O=z}for(var W=[],Z=0;Z<k.length;){var q=k[Z];if(q.wrapperTemplate){var G=[];do{G.push(k[Z].block),Z++}while(Z<k.length&&k[Z].wrapperTemplate===q.wrapperTemplate);var Y=l.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);W.push(Y)}else W.push(q.block),Z++}return l.createElement("div",{"data-contents":"true"},W)},s}(l.Component);return Yre=f}(),moe={isImage:function(e){return"image"===voe(e)[0]},isJpeg:function(e){var t=voe(e);return moe.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function voe(e){return e.split("/")}var yoe=moe,boe=F4;var woe=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?boe(!1,"toArray: Array-like object expected"):boe(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?boe(!1,"toArray: Object needs a length property"):boe(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?boe(!1,"toArray: Object should have keys for indices"):boe(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?boe(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):boe(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function xoe(e){return function(){return e}}var Coe=function(){};Coe.thatReturns=xoe,Coe.thatReturnsFalse=xoe(!1),Coe.thatReturnsTrue=xoe(!0),Coe.thatReturnsNull=xoe(null),Coe.thatReturnsThis=function(){return this},Coe.thatReturnsArgument=function(e){return e};var Soe=Coe,koe=yoe,Eoe=woe,Ooe=Soe,Doe=new RegExp("\r\n","g"),joe={"text/rtf":1,"text/html":1};function Poe(e){if("file"==e.kind)return e.getAsFile()}var Toe=function(){function e(e){this.data=e,this.types=e.types?Eoe(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return joe[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(Doe,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!koe.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(Poe).filter(Ooe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),Moe=Toe,Aoe=F4,_oe=/\.textClipping$/,Roe={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Loe=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!Bi.FileReader||e.type&&!(e.type in Roe))return void t("");if(""===e.type){var n="";return _oe.test(e.name)&&(n=e.name.replace(_oe,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?Aoe(!1,'We should be calling "FileReader.readAsText" which returns a string'):Aoe(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Ioe=function(e){return"handled"===e||!0===e},Noe=Moe,$oe=a7,zoe=eee,Foe=wte,Boe=hte,Koe=Loe,Voe=Kte,Hoe=xte,Uoe=Ioe,Woe=A8;var Zoe={onDragEnd:function(e){e.exitCurrentMode(),qoe(e)},onDrop:function(e,t){var n=new Noe(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=Boe(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=Woe(n),r=Woe(r);var a=Woe(Foe(n));return Voe(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&Uoe(e.props.handleDroppedFiles(o,i)))return;Koe(i,(function(t){t&&e.update(Goe(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&Uoe(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=$oe.moveText(e.getCurrentContent(),e.getSelection(),t);return zoe.push(e,n,"insert-fragment")}(r,o)):e.update(Goe(r,o,n.getText()))),qoe(e)}}}};function qoe(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:Hoe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Goe(e,t,n){var r=$oe.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return zoe.push(e,r,"insert-fragment")}var Yoe=Zoe;var Xoe=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,l=1,s={},c=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[l]=o,n(l),l++},d.clearImmediate=f}function f(e){delete s[e]}function p(e){if(c)setTimeout(p,0,e);else{var n=s[e];if(n){c=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),c=!1}}}}}("undefined"==typeof self?Bi:self);var Joe=Bi.setImmediate,Qoe=a7,eie=eee,tie=sne,nie=Ioe,rie=Xoe,oie=A8,iie=Joe,aie="'",lie="/",sie=pte.isBrowser("Firefox");function cie(e,t,n,r,o){var i=Qoe.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return eie.push(e,i,"insert-characters",o)}var uie=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&nie(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(cie(n,r,n.getCurrentInlineStyle(),tie(n.getCurrentContent(),n.getSelection()),!0));var l,s=cie(n,r,n.getCurrentInlineStyle(),tie(n.getCurrentContent(),n.getSelection()),!1),c=!1;if(c||(c=rie(e._latestCommittedEditorState)),!c){var u=n.getBlockTree(a),d=s.getBlockTree(a);c=u.size!==d.size||u.zip(d).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),l=t.get("end"),s=l+(l>=i?r.length:0),c=n.get("start"),u=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||a!==c||s!==u||null!=d&&u-c!=l-o}))}if(c||(l=r,c=sie&&(l==aie||l==lie)),c||(c=oie(s.getDirectionMap()).get(a)!==oie(n.getDirectionMap()).get(a)),c)return t.preventDefault(),s=eie.set(s,{forceSelection:!0}),void e.update(s);s=eie.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,iie((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},die=eee,fie=Vne,pie=Hne;var hie=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&pie(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&fie(o,r.anchorNode)&&fie(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var l=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(die.acceptSelection(i,l))}},gie=eee;var mie=function(e,t){e.setMode("composite"),e.update(gie.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},vie=s6;var yie=function(e){var t=e.getSelection();return t.isCollapsed()?null:vie(e.getCurrentContent(),t)},bie=yie;var wie=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(bie(e._latestEditorState))};var xie=a7,Cie=eee,Sie=Pre,kie=yie,Eie=Ire,Oie=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var Die=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Oie(i)){var a=i;n=Eie(Sie.getScrollParent(a))}var l=kie(r);e.setClipboard(l),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=xie.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Cie.push(e,t,"remove-range")}(r))}),0)}};var jie=function(e,t){e.setMode("drag"),t.preventDefault()};var Pie=function(e){e._internalDrag=!0,e.setMode("drag")},Tie=eee,Mie=pte;var Aie=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),Mie.isBrowser("Chrome < 60.0.3081.0")?e.update(Tie.forceSelection(n,o)):e.update(Tie.acceptSelection(n,o))}},_ie=F4,Rie=55296,Lie=57343,Iie=/[\uD800-\uDFFF]/;function Nie(e){return Rie<=e&&e<=Lie}function $ie(e){return Iie.test(e)}function zie(e,t){return 1+Nie(e.charCodeAt(t))}function Fie(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!$ie(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=zie(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=zie(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=zie(e,i);return e.substring(o,i)}var Bie={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=zie(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:zie,hasSurrogateUnit:$ie,isCodeUnitInSurrogateRange:Nie,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?_ie(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):_ie(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return Rie<=n&&n<=56319&&56320<=r&&r<=Lie},strlen:function(e){if(!$ie(e))return e.length;for(var t=0,n=0;n<e.length;n+=zie(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return Fie(e,t=t<n?t:n,r)},substr:Fie},Kie=Bie,Vie=Soe;function Hie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var Uie="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];Hie.apply(void 0,[t].concat(r))}}:Vie,Wie=Uie,Zie=Wie;var qie=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Zie(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,l=0;if(t>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,l=r.getBlockForKey(s).getText().length}else l=i-t;return n.merge({focusKey:a,focusOffset:l,isBackward:!0})},Gie=a7,Yie=I7("draft_tree_data_support");var Xie=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),l=r.getFocusKey(),s=o.getBlockForKey(a);if(Yie&&"forward"===n&&a!==l)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(Yie)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var c=o.getBlockForKey(s.nextSibling);if(!c||0===c.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return Gie.removeRange(o,i,n)},Jie=eee,Qie=Kie,eae=qie,tae=Xie;var nae=function(e){var t=tae(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return eae(e,i?Qie.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Jie.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},rae=a7,oae=_te,iae=eee,aae=ine.notEmptyKey,lae=wte,sae=nae,cae=A8,uae=pte.isEngine("Gecko");var dae=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var l=a.firstChild;null!=l;l=l.nextSibling)l!==r&&a.removeChild(l)}var s=r.textContent,c=e._latestEditorState,u=cae(lae(r)),d=oae.decode(u),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=c.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,y=c.getCurrentContent(),b=y.getBlockForKey(f),w=b.getText().slice(m,v);if(s.endsWith("\n\n")&&(s=s.slice(0,-1)),s!==w){var x,C,S,k,E=c.getSelection(),O=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),D=b.getEntityAt(m),j=aae(D)?y.getEntity(D):null,P="MUTABLE"===(null!=j?j.getMutability():null),T=P?"spellcheck-change":"apply-entity",M=rae.replaceText(y,O,s,b.getInlineStyleAt(m),P?b.getEntityAt(m):null);if(uae)x=n.anchorOffset,C=n.focusOffset,k=(S=m+Math.min(x,C))+Math.abs(x-C),x=S,C=k;else{var A=s.length-w.length;S=E.getStartOffset(),k=E.getEndOffset(),x=o?k+A:S,C=k+A}var _=M.merge({selectionBefore:y.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:x,focusOffset:C})});e.update(iae.push(c,_,T))}else{var R=t.nativeEvent.inputType;if(R){var L=function(e,t){return"deleteContentBackward"===e?sae(t):t}(R,c);if(L!==c)return e.restoreEditorDOM(),void e.update(L)}}}},fae=Rte;var pae=function(e){return e.which===fae.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},hae=pae,gae=pte.isPlatform("Mac OS X"),mae={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return gae&&e.altKey},usesMacOSHeuristics:function(){return gae},hasCommandModifier:function(e){return gae?!!e.metaKey&&!e.altKey:mae.isCtrlKeyCommand(e)},isSoftNewlineEvent:hae},vae=mae,yae=a7,bae=eee,wae=s6,xae=A8,Cae=null,Sae={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=xae(r),Cae=wae(t,r);var l=yae.removeRange(t,r,"forward");return l===t?e:bae.push(e,l,"remove-range")},paste:function(e){if(!Cae)return e;var t=yae.replaceWithFragment(e.getCurrentContent(),e.getSelection(),Cae);return bae.push(e,t,"insert-fragment")}},kae=F4;var Eae=pte.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?kae(!1,"Found an unexpected detached subtree when getting range client rects."):kae(!1)}:function(e){return Array.from(e.getClientRects())},Oae=Eae,Dae=Kie,jae=hte,Pae=Oae,Tae=F4;function Mae(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),o=Math.max(o,l.top),i=Math.max(i,l.bottom))}return o<=r&&o-n<t&&i-r<t}function Aae(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var _ae=function(e){e.collapsed||("production"!==process.env.NODE_ENV?Tae(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):Tae(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=jae(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?Tae(!1,"Missing document.body"):Tae(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);Mae(Pae(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?Tae(!1,"Found unexpected detached subtree when traversing."):Tae(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var l=i.nodeValue,s=a;s>=0;s--)if(!(null!=l&&s>0&&Dae.isSurrogatePair(l,s-1))){if(e.setStart(i,s),!Mae(Pae(e),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=Aae(i=i.childNodes[s])}return e.setStart(r,o),e},Rae=eee,Lae=_ae,Iae=Xte,Nae=qie,$ae=Xie;var zae=function(e,t){var n=$ae(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return Nae(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Lae(r),Iae(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:Rae.push(e,n,"remove-range")},Fae="['‘’]",Bae="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),Kae=new RegExp("^(?:"+Bae+")*(?:"+Fae+"|(?!"+Bae+").)*(?:(?!"+Bae+").)"),Vae=new RegExp("(?:(?!"+Bae+").)(?:"+Fae+"|(?!"+Bae+").)*(?:"+Bae+")*$");function Hae(e,t){var n=t?Vae.exec(e):Kae.exec(e);return n?n[0]:e}var Uae={getBackward:function(e){return Hae(e,!0)},getForward:function(e){return Hae(e,!1)}},Wae=Uae,Zae=eee,qae=qie,Gae=Xie;var Yae=function(e){var t=Gae(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return qae(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=Wae.getBackward(o);return qae(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:Zae.push(e,t,"remove-range")},Xae=Wie;var Jae=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Xae(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),l=o;return t>a.getBlockForKey(o).getText().length-i?(l=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:l,focusOffset:r})},Qae=Uae,ele=eee,tle=Jae,nle=Xie;var rle=function(e){var t=nle(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=Qae.getForward(o);return tle(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:ele.push(e,t,"remove-range")},ole=a7,ile=eee;var ale=eee;var lle=eee;var sle=eee,cle=Kie,ule=Jae,dle=Xie;var fle=function(e){var t=dle(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return ule(e,i?cle.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return sle.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},ple=a7,hle=eee,gle=s6;var mle=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),l=a.getBlockForKey(i).getLength();if(l<=1)return e;n===l?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var s=gle(a,r),c=ple.removeRange(a,r,"backward"),u=c.getSelectionAfter(),d=u.getAnchorOffset()-1,f=u.merge({anchorOffset:d,focusOffset:d}),p=ple.replaceWithFragment(c,f,s),h=hle.push(e,p,"insert-fragment");return hle.acceptSelection(h,o)},vle=eee;var yle=function(e,t,n){var r=vle.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(vle.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(vle.set(r,{nativelyRenderedContent:o}))}},ble=a7,wle=eee,xle=Rte,Cle=Sae,Sle=pte,kle=Ioe,Ele=zae,Ole=Yae,Dle=rle,jle=function(e){var t=ole.splitBlock(e.getCurrentContent(),e.getSelection());return ile.push(e,t,"split-block")},Ple=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return ale.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},Tle=function(e){var t=e.getSelection(),n=t.getStartKey();return lle.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},Mle=nae,Ale=fle,_le=mle,Rle=yle,Lle=vae.isOptionKeyCommand,Ile=Sle.isBrowser("Chrome");var Nle=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case xle.RETURN:if(t.preventDefault(),e.props.handleReturn&&kle(e.props.handleReturn(t,r)))return;break;case xle.ESC:if(t.preventDefault(),o("onEscape"))return;break;case xle.TAB:if(o("onTab"))return;break;case xle.UP:if(o("onUpArrow"))return;break;case xle.RIGHT:if(o("onRightArrow"))return;break;case xle.DOWN:if(o("onDownArrow"))return;break;case xle.LEFT:if(o("onLeftArrow"))return;break;case xle.SPACE:Ile&&Lle(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!kle(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return wle.redo(t);case"delete":return Ale(t);case"delete-word":return Dle(t);case"backspace":return Mle(t);case"backspace-word":return Ole(t);case"backspace-to-start-of-line":return Ele(t,n);case"split-block":return jle(t);case"transpose-characters":return _le(t);case"move-selection-to-start-of-block":return Tle(t);case"move-selection-to-end-of-block":return Ple(t);case"secondary-cut":return Cle.cut(t);case"secondary-paste":return Cle.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else Rle(t,r,e.update);else if(n===xle.SPACE&&Ile&&Lle(t)){var l=ble.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(wle.push(r,l,"insert-characters"))}};var $le=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),zle=$le,Fle=F4,Ble=pte.isBrowser("IE <= 9");var Kle=function(e){var t,n=null;return!Ble&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?Fle(!1,"Missing doc.documentElement"):Fle(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},Vle=gte;var Hle=function(e){return!(!e||!e.ownerDocument)&&(Vle(e)&&"A"===e.nodeName)},Ule=gte;var Wle,Zle=function(e){return!(!e||!e.ownerDocument)&&(Ule(e)&&"IMG"===e.nodeName)};function qle(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gle(e,t,n[t])}))}return e}function Gle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yle=e4,Xle=g4,Jle=P4,Qle=Aee,ese=_7,tse=zle,nse=Pee,rse=Y4,ose=Kle,ise=I7,ase=K3,lse=ase.List,sse=ase.Map,cse=ase.OrderedSet,use=Hle,dse=Nne,fse=Ite,pse=Zle,hse=ise("draft_tree_data_support"),gse=new RegExp("\r","g"),mse=new RegExp("\n","g"),vse=new RegExp("^\n","g"),yse=new RegExp("&nbsp;","g"),bse=new RegExp("&#13;?","g"),wse=new RegExp("&#8203;?","g"),xse=["bold","bolder","500","600","700","800","900"],Cse=["light","lighter","normal","100","200","300","400"],Sse=["className","href","rel","target","title"],kse=["alt","className","height","src","width"],Ese=(Gle(Wle={},nse("public/DraftStyleDefault/depth0"),0),Gle(Wle,nse("public/DraftStyleDefault/depth1"),1),Gle(Wle,nse("public/DraftStyleDefault/depth2"),2),Gle(Wle,nse("public/DraftStyleDefault/depth3"),3),Gle(Wle,nse("public/DraftStyleDefault/depth4"),4),Wle),Ose=sse({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Dse=function(e){if(fse(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},jse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(Ese).some((function(n){e.classList.contains(n)&&(t=Ese[n])})),t},Pse=function(e){if(!use(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new tse(t.href);return!0}catch(e){return!1}},Tse=function(e){if(!pse(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Mse=function(e,t){if(!fse(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){xse.indexOf(r)>=0?e.add("BOLD"):Cse.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},Ase=function(e){return"ul"===e||"ol"===e},_se=function(){function e(e,t){Gle(this,"characterList",lse()),Gle(this,"currentBlockType","unstyled"),Gle(this,"currentDepth",0),Gle(this,"currentEntity",null),Gle(this,"currentText",""),Gle(this,"wrapper",null),Gle(this,"blockConfigs",[]),Gle(this,"contentBlocks",[]),Gle(this,"entityMap",ese),Gle(this,"blockTypeMap",void 0),Gle(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=lse(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=ese,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],cse())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(hse?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=qle({key:e.key||rse(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:lse(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=lse(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||Ase(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;Ase(i)&&(this.wrapper=i,Ase(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=l}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(Tse(o))this._addImgNode(o,t);else if(Pse(o))this._addAnchorNode(o,n,t);else{var c=t;Ose.has(i)&&(c=c.add(Ose.get(i))),c=Mse(o,c);var u=Dse(o);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var d=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!hse&&fse(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=o;this.currentDepth=jse(p,this.currentDepth)}var h=rse(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:s})),this.currentDepth=d,this.wrapper=f}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=Yle.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=lse()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(vse,"")).replace(mse," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){dse(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(pse(e)){var n=e,r={};kse.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),ise("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(use(e)){var r=e,o={};Sse.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new tse(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=lse(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new Jle(qle({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return lse(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new Xle(qle({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=lse(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),Rse=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qle,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ose)(e=e.trim().replace(gse,"").replace(yse," ").replace(bse,"").replace(wse,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),sse(t)}(t);return new _se(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function Lse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ise=g4,Nse=P4,$se=Rse,zse=Y4,Fse=Kle,Bse=I7,Kse=K3,Vse=$7,Hse=Kse.List,Use=Kse.Repeat,Wse=Bse("draft_tree_data_support"),Zse=Wse?Nse:Ise,qse={processHTML:function(e,t){return $se(e,Fse,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=Vse(r);var i=zse(),a={key:i,type:n,text:r,characterList:Hse(Use(t,r.length))};if(Wse&&0!==o){var l=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Lse(e,t,n[t])}))}return e}({},a,{prevSibling:(e[l]=e[l].merge({nextSibling:i})).getKey()})}return e.push(new Zse(a)),e}),[])}};var Gse=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},Yse=a7,Xse=eee,Jse=Gse,Qse=A8,ece={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return ece.toggleInlineStyle(e,"BOLD");case"italic":return ece.toggleInlineStyle(e,"ITALIC");case"underline":return ece.toggleInlineStyle(e,"UNDERLINE");case"code":return ece.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return ece.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return ece.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=Yse.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Xse.push(e,t,"insert-characters");return Xse.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return Xse.push(e,a,"remove-range")}var l=ece.tryToRemoveBlockStyle(e);return l?Xse.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),l=Yse.removeRange(n,a,"forward");return l!==n?Xse.push(e,l,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),l=a.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;e.preventDefault();var s=a.getDepth();if(!e.shiftKey&&s===n)return t;var c=Jse(i,r,e.shiftKey?-1:1,n);return Xse.push(t,c,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var l=Qse(i.getBlockBefore(o));o=l.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:l.getLength(),isBackward:!1})}var s=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(s)return e;var c=i.getBlockForKey(r).getType()===t?"unstyled":t;return Xse.push(e,Yse.setBlockType(i,a,c),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?ece.toggleBlockType(e,"code-block"):ece.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Xse.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?Yse.removeInlineStyle(i,n,t):Yse.applyInlineStyle(i,n,t),Xse.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=Yse.applyEntity(e.getCurrentContent(),t,n);return Xse.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return Yse.setBlockType(o,t,"unstyled")}return null}},tce=ece,nce=/\r\n?|\n/g;var rce=H3,oce=e4,ice=Moe,ace=a7,lce=qse,sce=eee,cce=tce,uce=sne,dce=Loe,fce=Ioe,pce=function(e){return e.split(nce)};function hce(e,t,n){var r=ace.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return sce.push(e,r.set("entityMap",n),"insert-fragment")}var gce=function(e,t){t.preventDefault();var n=new ice(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&fce(e.props.handlePastedFiles(r)))return;return void dce(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=pce(t),i=oce.create({style:n.getCurrentInlineStyle(),entity:uce(n.getCurrentContent(),n.getSelection())}),a=cce.getCurrentBlockType(n),l=lce.processText(r,i,a),s=rce.createFromArray(l),c=ace.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);e.update(sce.push(n,c,"insert-fragment"))}}))}}var i=[],a=n.getText(),l=n.getHTML(),s=e._latestEditorState;if(e.props.formatPastedText){var c=e.props.formatPastedText(a,l);a=c.text,l=c.html}if(!e.props.handlePastedText||!fce(e.props.handlePastedText(a,l,s))){if(a&&(i=pce(a)),!e.props.stripPastedStyles){var u,d=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&d){if(-1!==(null===(u=l)||void 0===u?void 0:u.indexOf(e.getEditorKey()))||1===i.length&&1===d.size&&d.first().getText()===a)return void e.update(hce(e._latestEditorState,d))}else if(d&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,d))return void e.update(hce(e._latestEditorState,d));if(l){var f=lce.processHTML(l,e.props.blockRenderMap);if(f){var p=f.contentBlocks,h=f.entityMap;if(p){var g=rce.createFromArray(p);return void e.update(hce(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var m=oce.create({style:s.getCurrentInlineStyle(),entity:uce(s.getCurrentContent(),s.getSelection())}),v=cce.getCurrentBlockType(s),y=lce.processText(i,m,v),b=rce.createFromArray(y);e.update(hce(e._latestEditorState,b))}}},mce=pte,vce=uie,yce=hie,bce=mie,wce=wie,xce=Die,Cce=jie,Sce=Pie,kce=Aie,Ece=dae,Oce=Nle,Dce=gce,jce=one,Pce=mce.isBrowser("Chrome"),Tce=mce.isBrowser("Firefox"),Mce=Pce||Tce?jce:function(e){},Ace={onBeforeInput:vce,onBlur:yce,onCompositionStart:bce,onCopy:wce,onCut:xce,onDragOver:Cce,onDragStart:Sce,onFocus:kce,onInput:Ece,onKeyDown:Oce,onPaste:Dce,onSelect:jce,onMouseUp:Mce,onKeyUp:Mce},_ce=r.unstable_flushControlled;var Rce=t,Lce=Pee,Ice=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=Lce({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return Rce.createElement("div",{className:t},Rce.createElement("div",{className:Lce("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(Rce.Component),Nce=Ice,$ce=vae,zce=Rte,Fce=pte,Bce=Fce.isPlatform("Mac OS X"),Kce=Bce&&Fce.isBrowser("Firefox < 29"),Vce=$ce.hasCommandModifier,Hce=$ce.isCtrlKeyCommand;function Uce(e){return Bce&&e.altKey||Hce(e)}var Wce=function(e){switch(e.keyCode){case 66:return Vce(e)?"bold":null;case 68:return Hce(e)?"delete":null;case 72:return Hce(e)?"backspace":null;case 73:return Vce(e)?"italic":null;case 74:return Vce(e)?"code":null;case 75:return Bce&&Hce(e)?"secondary-cut":null;case 77:case 79:return Hce(e)?"split-block":null;case 84:return Bce&&Hce(e)?"transpose-characters":null;case 85:return Vce(e)?"underline":null;case 87:return Bce&&Hce(e)?"backspace-word":null;case 89:return Hce(e)?Bce?"secondary-paste":"redo":null;case 90:return function(e){return Vce(e)?e.shiftKey?"redo":"undo":null}(e)||null;case zce.RETURN:return"split-block";case zce.DELETE:return function(e){return!Bce&&e.shiftKey?null:Uce(e)?"delete-word":"delete"}(e);case zce.BACKSPACE:return function(e){return Vce(e)&&Bce?"backspace-to-start-of-line":Uce(e)?"backspace-word":"backspace"}(e);case zce.LEFT:return Kce&&Vce(e)?"move-selection-to-start-of-block":null;case zce.RIGHT:return Kce&&Vce(e)?"move-selection-to-end-of-block":null;default:return null}},Zce=oU;function qce(){return qce=Zce||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qce.apply(this,arguments)}function Gce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xce(e,t,n[t])}))}return e}function Yce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jce(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Qce=Aee,eue=_ee,tue=One,nue=goe,rue=Yoe,oue=Ace,iue=_ce,aue=Nce,lue=$ne,sue=eee,cue=t,uue=yre,due=Pre,fue=Pee,pue=Y4,hue=Wce,gue=Ire,mue=I7,vue=F4,yue=Ite,bue=A8,wue=pte.isBrowser("IE"),xue=!wue,Cue={edit:oue,composite:tue,drag:rue,cut:null,render:null},Sue=!1,kue=function(e){function t(){return e.apply(this,arguments)||this}Jce(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(cue.Component),Eue=function(e){function t(t){var n;return Xce(Yce(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Xce(Yce(n),"_clipboard",void 0),Xce(Yce(n),"_handler",void 0),Xce(Yce(n),"_dragCount",void 0),Xce(Yce(n),"_internalDrag",void 0),Xce(Yce(n),"_editorKey",void 0),Xce(Yce(n),"_placeholderAccessibilityID",void 0),Xce(Yce(n),"_latestEditorState",void 0),Xce(Yce(n),"_latestCommittedEditorState",void 0),Xce(Yce(n),"_pendingStateFromBeforeInput",void 0),Xce(Yce(n),"_onBeforeInput",void 0),Xce(Yce(n),"_onBlur",void 0),Xce(Yce(n),"_onCharacterData",void 0),Xce(Yce(n),"_onCompositionEnd",void 0),Xce(Yce(n),"_onCompositionStart",void 0),Xce(Yce(n),"_onCopy",void 0),Xce(Yce(n),"_onCut",void 0),Xce(Yce(n),"_onDragEnd",void 0),Xce(Yce(n),"_onDragOver",void 0),Xce(Yce(n),"_onDragStart",void 0),Xce(Yce(n),"_onDrop",void 0),Xce(Yce(n),"_onInput",void 0),Xce(Yce(n),"_onFocus",void 0),Xce(Yce(n),"_onKeyDown",void 0),Xce(Yce(n),"_onKeyPress",void 0),Xce(Yce(n),"_onKeyUp",void 0),Xce(Yce(n),"_onMouseDown",void 0),Xce(Yce(n),"_onMouseUp",void 0),Xce(Yce(n),"_onPaste",void 0),Xce(Yce(n),"_onSelect",void 0),Xce(Yce(n),"editor",void 0),Xce(Yce(n),"editorContainer",void 0),Xce(Yce(n),"focus",void 0),Xce(Yce(n),"blur",void 0),Xce(Yce(n),"setMode",void 0),Xce(Yce(n),"exitCurrentMode",void 0),Xce(Yce(n),"restoreEditorDOM",void 0),Xce(Yce(n),"setClipboard",void 0),Xce(Yce(n),"getClipboard",void 0),Xce(Yce(n),"getEditorKey",void 0),Xce(Yce(n),"update",void 0),Xce(Yce(n),"onDragEnter",void 0),Xce(Yce(n),"onDragLeave",void 0),Xce(Yce(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Xce(Yce(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=due.getScrollParent(o),a=e||gue(i),l=a.x,s=a.y;yue(o)||("production"!==process.env.NODE_ENV?vue(!1,"editorNode is not an HTMLElement"):vue(!1)),o.focus(),i===window?window.scrollTo(l,s):uue.setTop(i,s),r||n.update(sue.forceSelection(t,t.getSelection()))}})),Xce(Yce(n),"blur",(function(){var e=n.editor;e&&(yue(e)||("production"!==process.env.NODE_ENV?vue(!1,"editorNode is not an HTMLElement"):vue(!1)),e.blur())})),Xce(Yce(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Gce({},Cue.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var l=Gce({},Cue,{edit:a});n._handler=l[e]})),Xce(Yce(n),"exitCurrentMode",(function(){n.setMode("edit")})),Xce(Yce(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Xce(Yce(n),"setClipboard",(function(e){n._clipboard=e})),Xce(Yce(n),"getClipboard",(function(){return n._clipboard})),Xce(Yce(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Xce(Yce(n),"onDragEnter",(function(){n._dragCount++})),Xce(Yce(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||pue(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}Jce(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(iue?iue((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:bue(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return cue.createElement(aue,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,l=e.preventScroll,s=e.readOnly,c=e.textAlignment,u=e.textDirectionality,d=fue({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===c,"DraftEditor/alignRight":"right"===c,"DraftEditor/alignCenter":"center"===c}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Gce({},eue,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:l,textDirectionality:u};return cue.createElement("div",{className:d},this._renderPlaceholder(),cue.createElement("div",{className:fue("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},cue.createElement("div",{"aria-activedescendant":s?null:this.props.ariaActiveDescendantID,"aria-autocomplete":s?null:this.props.ariaAutoComplete,"aria-controls":s?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":s?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":s?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:fue({notranslate:!s,"public/DraftEditor/content":!0}),contentEditable:!s,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:s?null:f,spellCheck:xue&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},cue.createElement(kue,{editor:this,editorState:a}),cue.createElement(nue,qce({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Sue&&mue("draft_ods_enabled")&&(Sue=!0,lue.initODS()),this.setMode("edit"),wue&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Bi.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(cue.Component);Xce(Eue,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:Qce,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:hue,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Oue=Eue,Due={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},jue=Due,Pue=Kie.strlen;var Tue=Kie,Mue=t4,Aue=function(e,t){return e===t},_ue=function(e){return!!e},Rue=[];var Lue=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return Mue(o,Aue,_ue,(function(t,o){var i=e.getText();r.push({offset:Tue.strlen(i.slice(0,t)),length:Tue.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(Rue,n.toJS())};function Iue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nue=g4,$ue=P4,zue=Due,Fue=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:Pue(i.slice(0,r)),length:Pue(i.slice(r,o)),key:Number(t[jue.stringify(a)])})})),n},Bue=Lue,Kue=F4,Vue=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:Bue(e),entityRanges:Fue(e,t),data:e.getData().toObject()}},Hue=function(e,t,n,r){if(e instanceof Nue)n.push(Vue(e,t));else{e instanceof $ue||("production"!==process.env.NODE_ENV?Kue(!1,"block is not a BlockNode"):Kue(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iue(e,t,n[t])}))}return e}({},Vue(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},Uue=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=zue.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),Hue(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(zue.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function Wue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zue(e,t,n[t])}))}return e}function Zue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var que=Y4,Gue=F4,Yue=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},Xue={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Gue(!1,"Invalid raw state"):Gue(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Gue(!1,"Invalid tree raw block"):Gue(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Wue({},e);Yue(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Wue({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Wue({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Yue(e),o=e.depth||0,i=Wue({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var l={key:que(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===o?t.push(l):null!=a&&a.children.push(l),l.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),Wue({},e,{blocks:t})}},Jue=Wie,Que={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Jue(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Jue(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),l=i.getNextSiblingKey();if(a.size>0){null!=l&&o.unshift(l);var s=a.map((function(t){return e.get(t)})),c=s.find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return"production"!==process.env.NODE_ENV&&Jue(!0,"%s has no first child",r),!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Jue(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},ede=Que,tde=e4,nde=K3.List;var rde=function(e,t){var n=e.map((function(e,n){var r=t[n];return tde.create({style:e,entity:r})}));return nde(n)},ode=Kie.substr;var ide=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=ode(e,0,t.offset).length,o=r+ode(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},ade=Kie,lde=K3.OrderedSet,sde=ade.substr,cde=lde();var ude=function(e,t){var n=Array(e.length).fill(cde);return t&&t.forEach((function(t){for(var r=sde(e,0,t.offset).length,o=r+sde(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function dde(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fde(e,t,n[t])}))}return e}function fde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pde=g4,hde=P4,gde=a8,mde=_7,vde=Xue,yde=ede,bde=L7,wde=rde,xde=ide,Cde=ude,Sde=Y4,kde=K3,Ede=F4,Ode=I7("draft_tree_data_support"),Dde=kde.List,jde=kde.Map,Pde=kde.OrderedMap,Tde=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||Sde(),data:jde(o),characterList:Mde(e,t)}},Mde=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return wde(Cde(n,o||[]),xde(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return dde({},e,{key:t[e.key]})}))))},Ade=function(e){return dde({},e,{key:e.key||Sde()})},_de=function(e,t,n){var r=t.map((function(e){return dde({},e,{parentRef:n})}));return e.concat(r.reverse())},Rde=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=Ode&&!n?vde.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!Ode)return function(e,t){return Pde(e.map((function(e){var n=new pde(Tde(e,t));return[n.getKey(),n]})))}(n?vde.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(Ade).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?Ede(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Ede(!1));var i=r.children.map(Ade),a=new hde(dde({},Tde(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:Dde(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var l=_de([],i,a);l.length>0;){var s=l.pop(),c=s.parentRef,u=c.getChildKeys(),d=u.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?Ede(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Ede(!1));break}var p=s.children.map(Ade),h=new hde(dde({},Tde(s,t),{parent:c.getKey(),children:Dde(p.map((function(e){return e.key}))),prevSibling:0===d?null:u.get(d-1),nextSibling:d===u.size-1?null:u.get(d+1)}));n=n.set(h.getKey(),h),l=_de(l,p,h)}return n}),Pde())}(r,t);return"production"!==process.env.NODE_ENV&&(yde.isValidTree(o)||("production"!==process.env.NODE_ENV?Ede(!1,"Should be a valid tree"):Ede(!1))),o},Lde=Oae;var Ide=function(e){var t=Lde(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var l=t[0];n=l.top,r=l.right,o=l.bottom,i=l.left}for(var s=1;s<t.length;s++){var c=t[s];0!==c.height&&0!==c.width&&(n=Math.min(n,c.top),r=Math.max(r,c.right),o=Math.max(o,c.bottom),i=Math.min(i,c.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},Nde=Ide;var $de=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=Nde(n),o=r.top,i=r.right,a=r.bottom,l=r.left;return 0===o&&0===i&&0===a&&0===l?null:r},zde={Editor:Oue,EditorBlock:hoe,EditorState:eee,CompositeDecorator:Dee,Entity:_7,EntityInstance:S7,BlockMapBuilder:H3,CharacterMetadata:e4,ContentBlock:g4,ContentState:a8,RawDraftContentState:{},SelectionState:L7,AtomicBlockUtils:kee,KeyBindingUtil:vae,Modifier:a7,RichUtils:tce,DefaultDraftBlockRenderMap:Aee,DefaultDraftInlineStyle:_ee,convertFromHTML:Rse,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?Ede(!1,"invalid RawDraftContentState"):Ede(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=mde.__create(o,i,a||{})})),n}(e),n=Rde(e,t),r=n.isEmpty()?new bde:bde.createEmpty(n.first().getKey());return new gde({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:Uue,genKey:Y4,getDefaultKeyBinding:Wce,getVisibleSelectionRect:$de};const Fde=(e,n,r=!0)=>{const[o,i]=t.useState(!1);return{focused:o,handleFocus:t=>{r&&i(!0),e&&e(t)},handleBlur:e=>{i(!1),n&&n(e)}}},Bde=e=>!!e||null!=e&&""!==e,Kde=N.div((({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,focused:a,invalid:l,disabled:s,hasLabel:c,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:c?48:40,height:c?48:40,padding:"5px 16px",boxSizing:"border-box",color:s?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,border:"none",borderColor:o,borderRadius:null!=r?r:4,cursor:u?"pointer":void 0,outline:"none","&:focus-visible":{outline:`${t} solid 1px`},"&:hover":{backgroundColor:s||i||n?void 0:e.background.hover,borderColor:a||s||l?void 0:e.borderColor.hover,Label:{color:a||s?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),er,nr,tr),Vde=N.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),Hde=N.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),Ude=N.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var Wde={Container:Kde,Wrapper:Vde,Label:Hde,Description:Ude,useInputFocus:Fde,isInputFilled:Bde};function Zde(e,t=1){return 0===(t=Math.max(Math.floor(t),0))?[]:function(e,t){if(!Number.isInteger(t)||t<=0)throw new Error("Size must be an integer greater than zero.");const n=Math.ceil(e.length/t),r=Array(n);for(let o=0;o<n;o++){const n=o*t,i=n+t;r[o]=e.slice(n,i)}return r}(e,t)}function qde(...e){return jn(e)}function Gde(e,...t){return qt(e,jn(t))}((e,t)=>{for(var n in t)ut(e,n,{get:t[n],enumerable:!0})})({},{AbortError:()=>lt,TimeoutError:()=>ct,camelCase:()=>bt,capitalize:()=>yt,chunk:()=>Zde,clamp:()=>Ft,clone:()=>Mt,compact:()=>Fn,concat:()=>qde,countBy:()=>Bn,debounce:()=>Wn,delay:()=>st,difference:()=>Gde,differenceBy:()=>Jt,differenceWith:()=>rn,drop:()=>Rn,dropRight:()=>Ln,dropRightWhile:()=>In,dropWhile:()=>Nn,endsWith:()=>afe,fill:()=>$n,first:()=>An,flatMap:()=>zn,flatten:()=>jn,flattenDeep:()=>Pn,flattenObject:()=>_t,forEachRight:()=>Tn,get:()=>rfe,groupBy:()=>Mn,head:()=>An,inRange:()=>Bt,initial:()=>_n,intersection:()=>Zt,intersectionBy:()=>Xt,intersectionWith:()=>nn,invert:()=>Lt,isEqual:()=>kt,isLength:()=>Et,isNil:()=>Ot,isNotNil:()=>Dt,isNull:()=>wt,isPlainObject:()=>ofe,isUndefined:()=>xt,kebabCase:()=>rt,keyBy:()=>Cn,last:()=>Sn,lowerCase:()=>ot,max:()=>lfe,maxBy:()=>kn,mean:()=>Kt,meanBy:()=>Vt,min:()=>sfe,minBy:()=>En,negate:()=>Kn,noop:()=>Vn,omit:()=>It,omitBy:()=>jt,once:()=>Hn,orderBy:()=>On,partition:()=>Dn,pick:()=>Pt,pickBy:()=>Tt,random:()=>pn,randomInt:()=>hn,range:()=>Ht,round:()=>Nt,sample:()=>fn,sampleSize:()=>gn,set:()=>Qde,shuffle:()=>mn,snakeCase:()=>it,startCase:()=>at,startsWith:()=>ife,sum:()=>$t,sumBy:()=>zt,tail:()=>vn,take:()=>yn,takeRight:()=>bn,takeRightWhile:()=>wn,takeWhile:()=>xn,throttle:()=>Un,toFilled:()=>cn,union:()=>St,unionBy:()=>Yt,unionWith:()=>tn,uniq:()=>Ct,uniqBy:()=>un,uniqWith:()=>en,unzip:()=>dn,unzipWith:()=>Ut,withTimeout:()=>vt,without:()=>Wt,xor:()=>Gt,xorBy:()=>Qt,xorWith:()=>on,zip:()=>an,zipObject:()=>ln,zipObjectDeep:()=>efe,zipWith:()=>sn});var Yde=/^(?:0|[1-9]\d*)$/;function Xde(e){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<Number.MAX_SAFE_INTEGER;case"symbol":return!1;case"string":return Yde.test(e)}}function Jde(e){const t=/\\(\\)?/g,n=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),r=[];let o;"."===e[0]&&r.push("");let i=0;for(;null!==(o=n.exec(e));){let[e,a,l,s]=o;l?e=s.replace(t,"$1"):a&&(e=a),r.push(e),n.lastIndex===i?n.lastIndex++:i=n.lastIndex}return r}function Qde(e,t,n){const r=Array.isArray(t)?t:"string"==typeof t?Jde(t):[t];let o=e;for(let e=0;e<r.length-1;e++){const t=r[e],n=r[e+1];null==o[t]&&(o[t]=Xde(n)?[]:{}),o=o[t]}return o[r[r.length-1]]=n,e}function efe(e,t){const n={},r=an(e,t);for(let e=0;e<r.length;e++){const[t,o]=r[e];null!=t&&Qde(n,t,o)}return n}var tfe=/^\w*$/,nfe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function rfe(e,t,n){let r;if(r=Array.isArray(t)?t:"string"==typeof t&&function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return!tfe.test(e)&&nfe.test(e)}}(t)&&null==(null==e?void 0:e[t])?Jde(t):[t],0===r.length)return n;let o,i=e;for(o=0;o<r.length&&null!=i;o++){let e=r[o];Object.is(e.valueOf(),-0)&&(e="-0"),i=i[e]}return null===i&&o===r.length||null!=i?i:n}function ofe(e){var t;if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==e.toString()){const n=e[Symbol.toStringTag];if(null==n)return!1;return!!(null==(t=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))?void 0:t.writable)&&e.toString()===`[object ${n}]`}let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}var ife=(e,t,n=0)=>e.startsWith(t,n),afe=(e,t,n=e.length)=>e.endsWith(t,n);function lfe(e=[]){let t,n=e[0];for(const r of e)(null==t||r>t)&&(t=r,n=r);return n}function sfe(e=[]){let t,n=e[0];for(const r of e)(null==t||r<t)&&(t=r,n=r);return n}const cfe="FOUND_FIELD",ufe="NOT_FOUND",dfe="IMMUTABLE",ffe=N.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),pfe=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},hfe=new zde.CompositeDecorator([{strategy:(e,t,n)=>pfe(e,t,n,cfe),component:({children:t})=>e.jsx(ffe,{children:t})},{strategy:(e,t,n)=>pfe(e,t,n,ufe),component:({children:t})=>e.jsx(ffe,{error:!0,children:t})}]),gfe=(e,t,n)=>{const r=t.find((({id:t})=>t===e.id)),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,l="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,l=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?l:`{${l}}`,isValid:a}},mfe=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),l=(null==t?void 0:t.find((e=>e.id===i)))||{id:i,label:""},{label:s,isValid:c}=gfe(l,t||[],n);a=s,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:c?cfe:ufe,mutability:dfe,data:{id:i}}}o.text+=a}return zde.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return zde.EditorState.createWithContent(r,hfe)},vfe=(e,t=!0)=>{const n=e.getCurrentContent(),r=zde.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const l=rfe(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${l}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},yfe=e=>{const t=vfe(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},bfe=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new zde.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return zde.EditorState.forceSelection(e,o)},wfe=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:l,onBlur:c,mergeFields:u=[],placeholder:d="Text here...",description:f,invalid:p,width:h,height:g,maxHeight:m,noPadding:v=!1,readOnly:y=!1,displayMergedValues:b=!1,color:w,overflow:x,clampLines:C,label:S,disabled:k,borderRadius:E,backgroundColor:O,fontSize:D,textOnly:j,margin:P,marginLeft:T,marginRight:M,marginTop:A,marginBottom:_}=n,R=s(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[L,I]=t.useState((()=>mfe(o,u,b))),{focused:N,handleFocus:$,handleBlur:z}=Fde(l,c),[F,B]=t.useState(!1),K=t.useRef(null),V=t.useRef(),H=null!=m?m:g,U=e=>{I(e);const t=(e=>yfe(e).some((e=>e.type===ufe)))(e);B(t);const n=vfe(e),r=e.getLastChangeType();i&&i(n,t,r)},W=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:l,isValid:s}=gfe(e,t,r),c=s?cfe:ufe,u=i.createEntity(c,dfe,{id:o}).getLastCreatedEntityKey(),d=zde.Modifier.insertText(i,a,l,void 0,u),f=zde.EditorState.push(n,d,"insert-characters");return zde.EditorState.forceSelection(f,d.getSelectionAfter())})(e,u,L,b);U(t)},Z=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=bfe(L);I(e)};t.useImperativeHandle(r,(()=>({insertField:W,focusAtEnd:Z})));t.useEffect((()=>{vfe(L)!==o&&(e=>{const t=L.getSelection(),n=mfe(e,u,b),r=bfe(n),o=t.getHasFocus()?r:n;U(o)})(o)}),[o]),t.useEffect((()=>{V.current=u}),[]),t.useEffect((()=>{const{current:e}=V,t=kt(e,u),n=yfe(L);if(!t&&n.length>0){V.current=u;const e=mfe(o,u,b);U(e)}}),[u]);return e.jsxs(xfe,{onClick:e=>{y||e.stopPropagation();L.getSelection().getHasFocus()||Z()},width:h,height:g,editorMaxHeight:H,noPadding:v||j,readOnly:y,color:w,overflow:x,clampLines:C,filled:Bde(o),invalid:p||F,textOnly:j,borderRadius:E,backgroundColor:O,fontSize:D,margin:P,marginLeft:T,marginRight:M,marginTop:A,marginBottom:_,focused:N,disabled:k,hasLabel:!!S,hideEditor:!Bde(o)&&!!S&&!N,children:[e.jsxs(Vde,{readOnly:y,children:[S&&e.jsx(Hde,{filled:Bde(o),focused:N,disabled:k,children:S}),e.jsx(zde.Editor,Object.assign({ref:K,editorState:L,onChange:U,placeholder:d,readOnly:y,handleReturn:e=>{const t=zde.RichUtils.insertSoftNewline(L);return e.shiftKey||!a?U(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=zde.convertFromRaw({blocks:[o],entityMap:{}}),a=zde.EditorState.createWithContent(i,hfe).getCurrentContent().getBlockMap(),l=zde.Modifier.replaceWithFragment(n,r,a);return zde.EditorState.push(t,l,"insert-fragment")})(e,n);return U(r),"handled"},onFocus:$,onBlur:z},R))]}),f&&e.jsx(Ude,{invalid:p,children:f})]})})),xfe=N(Kde)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:l,noPadding:s,filled:c})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:l||e.font.size.lg,top:!c||n||s?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:l||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}}));var Cfe,Sfe={exports:{}},kfe={};var Efe,Ofe={};
30
+ */;const m2=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:l}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(v2,{onClick:()=>{q1(r),i(!0)},copied:o,children:o?e.jsx(ir,{name:"check-circle",color:a.success}):e.jsx(ir,{name:"copy",color:l})})},v2=N.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),y2=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(b2,Object.assign({},i,{children:[e.jsx(w2,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(x2,{children:r}),e.jsx(m2,{content:r})]}))},b2=N.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),w2=N.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),x2=N.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),C2=N.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),nr),S2=N.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),k2=N.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),E2={shouldForwardProp:e=>$C(e,["hide","placeholderColor","isDisabled"])},O2=[({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,isDisabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",cursor:a?"default":"text","&:not(:focus):not(:focus-within)":{opacity:i?0:1,position:i?"absolute":void 0},"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})],D2=N(bw,E2)(O2),j2=[({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,isDisabled:a,hasLabel:l,pointer:s})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:l?48:40,height:l?48:40,padding:"5px 16px",boxSizing:"border-box",color:a?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,border:"none",borderColor:o,borderRadius:null!=r?r:4,cursor:s?"pointer":void 0,outline:"none",transition:"background-color 0.2s","&:focus-within":{backgroundColor:n||i?void 0:e.background.focused,outline:`${t} solid 1px`},"&:hover:not(:focus-within)":{backgroundColor:a||i||n?void 0:e.background.hover,Label:{color:a?void 0:e.labelColor.hover}}}),({theme:{input:e},isDisabled:t})=>({backgroundColor:t?e.background.disabled:void 0,pointerEvents:t?"none":void 0}),er,nr,tr,({theme:e,textOnly:t,isDisabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0}),({backgroundColor:e})=>({backgroundColor:e}),({minHeight:e})=>({minHeight:e})],P2=N(fw,{shouldForwardProp:e=>$C(e,["filled"])})((({theme:{font:e,input:t},filled:n})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",boxSizing:"border-box",width:"100%",fontSize:n?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,"&:focus-within":{fontSize:e.size.sm,color:t.labelColor.focused},position:"relative",transition:"all 0.2s"})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0}))),T2=N(Lw,zC)(FC),M2=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:l,inline:c,disabled:u}=t,d=s(t,["id","value","header","body","leftElement","rightElement","inline","disabled"]);return e.jsxs(A2,Object.assign({id:n||r,textValue:r,isDisabled:u},d,{children:[a||null,o&&i?e.jsx(ZC,{header:o,body:i,inline:c}):r,l&&e.jsx("div",{style:{marginLeft:"auto"},children:l})]}))},A2=N($w,XC)(JC),_2=t=>{var{options:n,autoWidth:r,width:o}=t,i=s(t,["options","autoWidth","width"]);return e.jsx(T2,Object.assign({autoWidth:r,shouldFocusWrap:!0,width:o},i,{children:n.map((t=>{if("options"in t){const n=t;return e.jsx(nS,{id:n.id,title:n.title,children:n.options.map((t=>e.jsx(M2,Object.assign({},t),t.id||t.value)))},n.id)}const n=t;return e.jsx(M2,Object.assign({},n),n.id||n.value)}))}))},R2=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(ir,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(ir,Object.assign({},n,r))},L2=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:l,options:c,placeholder:u="Select",placeholderColor:d,textOnly:f,value:p,width:h,iconLeft:g,allowRepeatSelection:m,onChange:v,afterShow:y,afterHide:b,onTextChange:w}=n,x=s(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","iconLeft","allowRepeatSelection","onChange","afterShow","afterHide","onTextChange"]);const[C,S]=t.useState(!1),[k,E]=t.useState(p||""),[O,D]=t.useState((null==p?void 0:p.toString())||""),j=t.useRef(null),{margin:P,marginTop:T,marginBottom:M,marginRight:A,marginLeft:_}=x,R={margin:P,marginTop:T,marginBottom:M,marginRight:A,marginLeft:_};t.useEffect((()=>{p&&p!==k&&E(p)}),[p,k]),t.useEffect((()=>{w&&w(O)}),[O]);return e.jsxs(ox,Object.assign({onOpenChange:e=>{S(e),y&&e&&y(),b&&!e&&b()},menuTrigger:"focus",onInputChange:D,onSelectionChange:e=>{e&&(m||e!==k)&&(E(e),v&&v(e))},isDisabled:a,shouldFocusWrap:!0,selectedKey:p?k:void 0},x,{children:[e.jsxs(I2,Object.assign({ref:j,hasLabel:!!l,width:h,textOnly:f,backgroundColor:r,isDisabled:a},R,{children:[g&&R2(g,{marginRight:8}),e.jsxs(P2,{filled:!!O,disabled:a,children:[l,e.jsx(D2,{placeholder:u,hide:!(O||!l),placeholderColor:d,fontSize:i,isDisabled:a})]}),e.jsx(oS,{children:e.jsx(ir,{name:C?"caret-up":"caret-down",inheritColor:!0})})]})),e.jsx(lw,{}),e.jsx(qw,{triggerRef:j,offset:2,children:c?e.jsx(_2,{options:c,autoWidth:f,width:h}):e.jsx(T2,{autoWidth:f,width:h,children:o})})]}))};L2.Item=M2,L2.Section=nS;const I2=N.div(j2);var N2=1,$2=.9,z2=.8,F2=.17,B2=.1,K2=.999,V2=.9999,H2=.99,U2=/[\\\/_+.#"@\[\(\{&]/,W2=/[\\\/_+.#"@\[\(\{&]/g,Z2=/[\s-]/,q2=/[\s-]/g;function G2(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?N2:H2;var l=`${o},${i}`;if(void 0!==a[l])return a[l];for(var s,c,u,d,f=r.charAt(i),p=n.indexOf(f,o),h=0;p>=0;)(s=G2(e,t,n,r,p+1,i+1,a))>h&&(p===o?s*=N2:U2.test(e.charAt(p-1))?(s*=z2,(u=e.slice(o,p-1).match(W2))&&o>0&&(s*=Math.pow(K2,u.length))):Z2.test(e.charAt(p-1))?(s*=$2,(d=e.slice(o,p-1).match(q2))&&o>0&&(s*=Math.pow(K2,d.length))):(s*=F2,o>0&&(s*=Math.pow(K2,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=V2)),(s<B2&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((c=G2(e,t,n,r,p+1,i+2,a))*B2>s&&(s=c*B2)),s>h&&(h=s),p=n.indexOf(f,p+1);return a[l]=h,h}function Y2(e){return e.toLowerCase().replace(q2," ")}function X2(e,t,n){return G2(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,Y2(e),Y2(t),0,0,{})}function J2(){return J2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J2.apply(this,arguments)}function Q2(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function e5(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function t5(...e){return t.useCallback(e5(...e),e)}function n5(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const r5=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},o5=i["useId".toString()]||(()=>{});let i5=0;function a5(e){const[t,n]=i.useState(o5());return r5((()=>{e||n((e=>null!=e?e:String(i5++)))}),[e]),e||(t?`radix-${t}`:"")}function l5(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function s5({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=l5(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,l=a?e:o,s=l5(r);return[l,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)}),[a,e,i,s])]}const c5=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(f5);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(u5,J2({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(u5,J2({},o,{ref:n}),r)}));c5.displayName="Slot";const u5=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...p5(o,r.props),ref:n?e5(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));u5.displayName="SlotClone";const d5=({children:e})=>t.createElement(t.Fragment,null,e);function f5(e){return t.isValidElement(e)&&e.type===d5}function p5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const h5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?c5:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,J2({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});const g5="dismissableLayer.update",m5="dismissableLayer.pointerDownOutside",v5="dismissableLayer.focusOutside";let y5;const b5=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),w5=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...u}=e,d=t.useContext(b5),[f,p]=t.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=t.useState({}),m=t5(n,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,S=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=l5(e),o=t.useRef(!1),i=t.useRef((()=>{}));return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){C5(m5,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(null==a||a(e),null==s||s(e),e.defaultPrevented||null==c||c())}),h),k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=l5(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){C5(v5,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==c||c())}),h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=l5(e);t.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),t.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(y5=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),x5(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=y5)}}),[f,h,o,d]),t.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),x5())}),[f,d]),t.useEffect((()=>{const e=()=>g({});return document.addEventListener(g5,e),()=>document.removeEventListener(g5,e)}),[]),t.createElement(h5.div,J2({},u,{ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:Q2(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Q2(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Q2(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function x5(){const e=new CustomEvent(g5);document.dispatchEvent(e)}function C5(e,t,n,{discrete:o}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?function(e,t){e&&r.flushSync((()=>e.dispatchEvent(t)))}(i,a):i.dispatchEvent(a)}const S5="focusScope.autoFocusOnMount",k5="focusScope.autoFocusOnUnmount",E5={bubbles:!1,cancelable:!0},O5=t.forwardRef(((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[s,c]=t.useState(null),u=l5(i),d=l5(a),f=t.useRef(null),p=t5(n,(e=>c(e))),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect((()=>{if(o){function e(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:T5(f.current,{select:!0})}function t(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||T5(f.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&T5(s)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,s,h.paused]),t.useEffect((()=>{if(s){M5.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(S5,E5);s.addEventListener(S5,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(T5(r,{select:t}),document.activeElement!==n)return}((e=D5(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&T5(s))}return()=>{s.removeEventListener(S5,u),setTimeout((()=>{const e=new CustomEvent(k5,E5);s.addEventListener(k5,d),s.dispatchEvent(e),e.defaultPrevented||T5(null!=t?t:document.body,{select:!0}),s.removeEventListener(k5,d),M5.remove(h)}),0)}}var e}),[s,u,d,h]);const g=t.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=D5(e),n=j5(t,e),r=j5(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&T5(i,{select:!0})):(e.preventDefault(),r&&T5(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return t.createElement(h5.div,J2({tabIndex:-1},l,{ref:p,onKeyDown:g}))}));function D5(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j5(e,t){for(const n of e)if(!P5(n,{upTo:t}))return n}function P5(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function T5(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const M5=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=A5(e,t),e.unshift(t)},remove(t){var n;e=A5(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function A5(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const _5=t.forwardRef(((e,n)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=e;return i?r.createPortal(t.createElement(h5.div,J2({},a,{ref:n})),i):null}));const R5=e=>{const{present:n,children:o}=e,i=function(e){const[n,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),l=t.useRef("none"),s=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const e=L5(i.current);l.current="mounted"===c?e:"none"}),[c]),r5((()=>{const t=i.current,n=a.current;if(n!==e){const r=l.current,o=L5(t);if(e)u("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,u]),r5((()=>{if(n){const e=e=>{const t=L5(i.current).includes(e.animationName);e.target===n&&t&&r.flushSync((()=>u("ANIMATION_END")))},t=e=>{e.target===n&&(l.current=L5(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(n),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),l=t5(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:l}):null};function L5(e){return(null==e?void 0:e.animationName)||"none"}R5.displayName="Presence";let I5=0;function N5(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var $5="right-scroll-bar-position",z5="width-before-scroll-bar";function F5(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var B5="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,K5=new WeakMap;function V5(e,n){var r,o,i,a=(r=null,o=function(t){return e.forEach((function(e){return F5(e,t)}))},i=t.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0],i.callback=o,i.facade);return B5((function(){var t=K5.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||F5(e,null)})),r.forEach((function(e){n.has(e)||F5(e,o)}))}K5.set(a,e)}),[e]),a}function H5(e){return e}var U5=function(e){var t=e.sideCar,n=s(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,l({},n))};U5.isSideCarExport=!0;var W5=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=H5);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=l({async:!0,ssr:!1},e),t}(),Z5=function(){},q5=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Z5,onWheelCapture:Z5,onTouchMoveCapture:Z5}),o=r[0],a=r[1],c=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,m=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,x=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=g,S=V5([n,t]),k=l(l({},x),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:W5,removeScrollBar:f,shards:h,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:n}),c?i.cloneElement(i.Children.only(u),l(l({},k),{ref:S})):i.createElement(w,l({},k,{className:d,ref:S}),u))}));q5.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q5.classNames={fullWidth:z5,zeroRight:$5};function G5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Y5=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=G5())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},X5=function(){var e,t=(e=Y5(),function(t,n){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},J5={left:0,top:0,right:0,gap:0},Q5=function(e){return parseInt(e||"",10)||0},e9=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return J5;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Q5(n),Q5(r),Q5(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},t9=X5(),n9="data-scroll-locked",r9=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(n9,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat($5," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(z5," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat($5," .").concat($5," {\n right: 0 ").concat(r,";\n }\n \n .").concat(z5," .").concat(z5," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(n9,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},o9=function(){var e=parseInt(document.body.getAttribute(n9)||"0",10);return isFinite(e)?e:0},i9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;i.useEffect((function(){return document.body.setAttribute(n9,(o9()+1).toString()),function(){var e=o9()-1;e<=0?document.body.removeAttribute(n9):document.body.setAttribute(n9,e.toString())}}),[]);var a=i.useMemo((function(){return e9(o)}),[o]);return i.createElement(t9,{styles:r9(a,!t,o,n?"":"!important")})},a9=!1;if("undefined"!=typeof window)try{var l9=Object.defineProperty({},"passive",{get:function(){return a9=!0,!0}});window.addEventListener("test",l9,l9),window.removeEventListener("test",l9,l9)}catch(e){a9=!1}var s9=!!a9&&{passive:!1},c9=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},u9=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),d9(e,n)){var r=f9(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},d9=function(e,t){return"v"===e?function(e){return c9(e,"overflowY")}(t):function(e){return c9(e,"overflowX")}(t)},f9=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},p9=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},h9=function(e){return[e.deltaX,e.deltaY]},g9=function(e){return e&&"current"in e?e.current:e},m9=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},v9=0,y9=[];var b9,w9=(b9=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(v9++)[0],a=i.useState((function(){return X5()}))[0],l=i.useRef(e);i.useEffect((function(){l.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(g9),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=p9(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=u9(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=u9(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),c=!1,u=a>0,d=0,f=0;do{var p=f9(e,l),h=p[0],g=p[1]-p[2]-i*h;(h||g)&&d9(e,l)&&(d+=g,f+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(!u||0!==d&&o)&&(u||0!==f&&o)||(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=i.useCallback((function(e){var n=e;if(y9.length&&y9[y9.length-1]===a){var r="deltaY"in n?h9(n):p9(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(l.current.shards||[]).map(g9).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?s(n,i[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=i.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=i.useCallback((function(e){n.current=p9(e),r.current=void 0}),[]),f=i.useCallback((function(t){u(t.type,h9(t),t.target,s(t,e.lockRef.current))}),[]),p=i.useCallback((function(t){u(t.type,p9(t),t.target,s(t,e.lockRef.current))}),[]);i.useEffect((function(){return y9.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,s9),document.addEventListener("touchmove",c,s9),document.addEventListener("touchstart",d,s9),function(){y9=y9.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,s9),document.removeEventListener("touchmove",c,s9),document.removeEventListener("touchstart",d,s9)}}),[]);var h=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(a,{styles:m9(o)}):null,h?i.createElement(i9,{gapMode:"margin"}):null)},W5.useMedium(b9),U5),x9=i.forwardRef((function(e,t){return i.createElement(q5,l({},e,{ref:t,sideCar:w9}))}));x9.classNames=q5.classNames;var C9=new WeakMap,S9=new WeakMap,k9={},E9=0,O9=function(e){return e&&(e.host||O9(e.parentNode))},D9=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=O9(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);k9[n]||(k9[n]=new WeakMap);var i=k9[n],a=[],l=new Set,s=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(C9.get(e)||0)+1,c=(i.get(e)||0)+1;C9.set(e,s),i.set(e,c),a.push(e),1===s&&o&&S9.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),l.clear(),E9++,function(){a.forEach((function(e){var t=C9.get(e)-1,o=i.get(e)-1;C9.set(e,t),i.set(e,o),t||(S9.has(e)||e.removeAttribute(r),S9.delete(e)),o||e.removeAttribute(n)})),--E9||(C9=new WeakMap,C9=new WeakMap,S9=new WeakMap,k9={})}},j9=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),D9(r,o,n,"aria-hidden")):function(){return null}};const P9="Dialog",[T9,M9]=function(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function l(n){const{scope:r,children:o,...l}=n,s=(null==r?void 0:r[e][a])||i,c=t.useMemo((()=>l),Object.values(l));return t.createElement(s.Provider,{value:c},o)}return r=[...r,o],l.displayName=n+"Provider",[l,function(r,l){const s=(null==l?void 0:l[e][a])||i,c=t.useContext(s);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},n5(o,...n)]}(P9),[A9,_9]=T9(P9),R9="DialogPortal",[L9,I9]=T9(R9,{forceMount:void 0}),N9="DialogOverlay",$9=t.forwardRef(((e,n)=>{const r=I9(N9,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=_9(N9,e.__scopeDialog);return a.modal?t.createElement(R5,{present:o||a.open},t.createElement(z9,J2({},i,{ref:n}))):null})),z9=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=_9(N9,r);return t.createElement(x9,{as:c5,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(h5.div,J2({"data-state":U9(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),F9="DialogContent",B9=t.forwardRef(((e,n)=>{const r=I9(F9,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=_9(F9,e.__scopeDialog);return t.createElement(R5,{present:o||a.open},a.modal?t.createElement(K9,J2({},i,{ref:n})):t.createElement(V9,J2({},i,{ref:n})))})),K9=t.forwardRef(((e,n)=>{const r=_9(F9,e.__scopeDialog),o=t.useRef(null),i=t5(n,r.contentRef,o);return t.useEffect((()=>{const e=o.current;if(e)return j9(e)}),[]),t.createElement(H9,J2({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q2(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Q2(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Q2(e.onFocusOutside,(e=>e.preventDefault()))}))})),V9=t.forwardRef(((e,n)=>{const r=_9(F9,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(H9,J2({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const l=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))})),H9=t.forwardRef(((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=e,s=_9(F9,r),c=t5(n,t.useRef(null));return t.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:N5()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:N5()),I5++,()=>{1===I5&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),I5--}}),[]),t.createElement(t.Fragment,null,t.createElement(O5,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},t.createElement(w5,J2({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":U9(s.open)},l,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}));function U9(e){return e?"open":"closed"}const W9=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,s=t.useRef(null),c=t.useRef(null),[u=!1,d]=s5({prop:o,defaultProp:i,onChange:a});return t.createElement(A9,{scope:n,triggerRef:s,contentRef:c,contentId:a5(),titleId:a5(),descriptionId:a5(),open:u,onOpenChange:d,onOpenToggle:t.useCallback((()=>d((e=>!e))),[d]),modal:l},r)},Z9=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,a=_9(R9,n);return t.createElement(L9,{scope:n,forceMount:r},t.Children.map(o,(e=>t.createElement(R5,{present:r||a.open},t.createElement(_5,{asChild:!0,container:i},e)))))},q9=$9,G9=B9;var Y9='[cmdk-group=""]',X9='[cmdk-group-items=""]',J9='[cmdk-item=""]',Q9=`${J9}:not([aria-disabled="true"])`,e3="cmdk-item-select",t3="data-value",n3=(e,t,n)=>X2(e,t,n),r3=i.createContext(void 0),o3=()=>i.useContext(r3),i3=i.createContext(void 0),a3=()=>i.useContext(i3),l3=i.createContext(void 0),s3=i.forwardRef(((e,t)=>{let n=C3((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=C3((()=>new Set)),o=C3((()=>new Map)),a=C3((()=>new Map)),l=C3((()=>new Set)),s=w3(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:h,loop:g,disablePointerSelection:m=!1,vimBindings:v=!0,...y}=e,b=i.useId(),w=i.useId(),x=i.useId(),C=i.useRef(null),S=O3();x3((()=>{if(void 0!==d){let e=d.trim();n.current.value=e,k.emit()}}),[d]),x3((()=>{S(6,T)}),[]);let k=i.useMemo((()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),D(),S(1,j);else if("value"===e&&(r||S(5,T),void 0!==(null==(o=s.current)?void 0:o.value))){let e=null!=t?t:"";return void(null==(a=(i=s.current).onValueChange)||a.call(i,e))}k.emit()}},emit:()=>{l.current.forEach((e=>e()))}})),[]),E=i.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,O(t,r)),S(2,(()=>{D(),k.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),S(3,(()=>{P(),D(),n.current.value||j(),k.emit()})),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=M();S(4,(()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&j(),k.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],disablePointerSelection:m,listId:b,inputId:x,labelId:w,listInnerRef:C})),[]);function O(e,t){var r,o;let i=null!=(o=null==(r=s.current)?void 0:r.filter)?o:n3;return e?i(e,n.current.search,t):0}function D(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=C.current;A().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(X9);t?t.appendChild(e.parentElement===t?e:e.closest(`${X9} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${X9} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=C.current.querySelector(`${Y9}[${t3}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function j(){let e=A().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(t3);k.setState("value",t||void 0)}function P(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=O(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function T(){var e,t,n;let r=M();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Y9))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function M(){var e;return null==(e=C.current)?void 0:e.querySelector(`${J9}[aria-selected="true"]`)}function A(){var e;return Array.from(null==(e=C.current)?void 0:e.querySelectorAll(Q9))}function _(e){let t=A()[e];t&&k.setState("value",t.getAttribute(t3))}function R(e){var t;let n=M(),r=A(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=s.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&k.setState("value",i.getAttribute(t3))}function L(e){let t,n=M(),r=null==n?void 0:n.closest(Y9);for(;r&&!t;)r=e>0?y3(r,Y9):b3(r,Y9),t=null==r?void 0:r.querySelector(Q9);t?k.setState("value",t.getAttribute(t3)):R(e)}let I=()=>_(A().length-1),N=e=>{e.preventDefault(),e.metaKey?I():e.altKey?L(1):R(1)},$=e=>{e.preventDefault(),e.metaKey?_(0):e.altKey?L(-1):R(-1)};return i.createElement(h5.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&N(e);break;case"ArrowDown":N(e);break;case"p":case"k":v&&e.ctrlKey&&$(e);break;case"ArrowUp":$(e);break;case"Home":e.preventDefault(),_(0);break;case"End":e.preventDefault(),I();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=M();if(t){let e=new Event(e3);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:j3},c),D3(e,(e=>i.createElement(i3.Provider,{value:k},i.createElement(r3.Provider,{value:E},e)))))})),c3=i.forwardRef(((e,t)=>{var n,r;let o=i.useId(),a=i.useRef(null),l=i.useContext(l3),s=o3(),c=w3(e),u=null!=(r=null==(n=c.current)?void 0:n.forceMount)?r:null==l?void 0:l.forceMount;x3((()=>{if(!u)return s.item(o,null==l?void 0:l.id)}),[u]);let d=E3(o,a,[e.value,e.children,a],e.keywords),f=a3(),p=k3((e=>e.value&&e.value===d.current)),h=k3((e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0)));function g(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(i.useEffect((()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(e3,g),()=>t.removeEventListener(e3,g)}),[h,e.onSelect,e.disabled]),!h)return null;let{disabled:v,value:y,onSelect:b,forceMount:w,keywords:x,...C}=e;return i.createElement(h5.div,{ref:S3([a,t]),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||s.disablePointerSelection?void 0:m,onClick:v?void 0:g},e.children)})),u3=i.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,l=i.useId(),s=i.useRef(null),c=i.useRef(null),u=i.useId(),d=o3(),f=k3((e=>!(!o&&!1!==d.filter())||(!e.search||e.filtered.groups.has(l))));x3((()=>d.group(l)),[]),E3(l,s,[e.value,e.heading,c]);let p=i.useMemo((()=>({id:l,forceMount:o})),[o]);return i.createElement(h5.div,{ref:S3([s,t]),...a,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&i.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),D3(e,(e=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(l3.Provider,{value:p},e)))))})),d3=i.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=k3((e=>!e.search));return n||a?i.createElement(h5.div,{ref:S3([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),f3=i.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=a3(),l=k3((e=>e.search)),s=k3((e=>e.value)),c=o3(),u=i.useMemo((()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${J9}[${t3}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return i.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),i.createElement(h5.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:o?e.value:l,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),p3=i.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=i.useRef(null),l=i.useRef(null),s=o3();return i.useEffect((()=>{if(l.current&&a.current){let e,t=l.current,n=a.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),i.createElement(h5.div,{ref:S3([a,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},D3(e,(e=>i.createElement("div",{ref:S3([l,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),h3=i.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:l,...s}=e;return i.createElement(W9,{open:n,onOpenChange:r},i.createElement(Z9,{container:l},i.createElement(q9,{"cmdk-overlay":"",className:o}),i.createElement(G9,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement(s3,{ref:t,...s}))))})),g3=i.forwardRef(((e,t)=>k3((e=>0===e.filtered.count))?i.createElement(h5.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),m3=i.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return i.createElement(h5.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},D3(e,(e=>i.createElement("div",{"aria-hidden":!0},e))))})),v3=Object.assign(s3,{List:p3,Item:c3,Input:f3,Group:u3,Separator:d3,Dialog:h3,Empty:g3,Loading:m3});function y3(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function b3(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function w3(e){let t=i.useRef(e);return x3((()=>{t.current=e})),t}var x3="undefined"==typeof window?i.useEffect:i.useLayoutEffect;function C3(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function S3(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function k3(e){let t=a3(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function E3(e,t,n,r=[]){let o=i.useRef(),a=o3();return x3((()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map((e=>e.trim()));a.value(e,l,s),null==(i=t.current)||i.setAttribute(t3,l),o.current=l})),o}var O3=()=>{let[e,t]=i.useState(),n=C3((()=>new Map));return x3((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function D3({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var j3={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const P3=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:l,inline:c,disabled:u,onClick:d}=t,f=s(t,["id","value","header","body","leftElement","rightElement","inline","disabled","onClick"]);return e.jsxs(T3,Object.assign({id:n||r,disabled:u,onSelect:d},f,{children:[a||null,o&&i?e.jsx(ZC,{header:o,body:i,inline:c}):r,l&&e.jsx("div",{style:{marginLeft:"auto"},children:l})]}))},T3=N(v3.Item,XC)((({theme:{optionItem:e}})=>({'&[data-selected="true"]':{backgroundColor:e.background.active}})),JC),M3=({id:t,title:n,children:r})=>e.jsx(A3,{id:t,heading:n,children:r}),A3=N(v3.Group)((({theme:e})=>({"& > div[cmdk-group-heading]":{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none"}}))),_3=({options:t,onItemSelect:n})=>e.jsx(e.Fragment,{children:t.map((t=>{if("options"in t){const r=t;return e.jsx(M3,{id:r.id,title:r.title,children:r.options.map((t=>e.jsx(P3,Object.assign({onClick:()=>n(t)},t),t.id||t.value)))},r.id)}return e.jsx(P3,Object.assign({onClick:()=>n(t)},t),t.id||t.value)}))}),R3=N(s3)(FC,{display:"flex",flexDirection:"column",overflow:"hidden"},(({maxWidth:e,maxHeight:t})=>({maxWidth:e,maxHeight:t})),er),L3=N.div(j2),I3=N(f3)(O2),N3=N(p3)({overflowY:"auto"}),$3=N(g3)((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),z3=N(Ux)((({overlayColor:e,overlayBlur:t})=>({position:"fixed",top:0,left:0,width:"100vw",height:"var(--visual-viewport-height)",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),F3=N.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var B3={exports:{}};B3.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Z(e)}function r(e){return l(e)?e:q(e)}function o(e){return s(e)?e:G(e)}function i(e){return a(e)&&!c(e)?e:Y(e)}function a(e){return!(!e||!e[d])}function l(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return l(e)||s(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,y=v-1,b={},w={value:!1},x={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function k(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function O(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function D(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function j(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return A(e,t,0)}function M(e,t){return A(e,t,t)}function A(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var _=0,R=1,L=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",$=I||N;function z(e){this.next=e}function F(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function B(){return{value:void 0,done:!0}}function K(e){return!!U(e)}function V(e){return e&&"function"==typeof e.next}function H(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(I&&e[I]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function G(e){return null==e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function Y(e){return(null==e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=_,z.VALUES=R,z.ENTRIES=L,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[$]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return de(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(q,Z),q.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return de(this,e,t,!1)},G.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=q,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return W(e)?new te(e):V(e)?new oe(e):K(e)?new re(e):void 0}function de(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new z((function(){var e=o[n?i-a:a];return a++>i?B():F(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):me(t)?e.call(r,n,q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():me(e)?q(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return d=!1,!1}));return d&&e.size===f}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function ke(){}function Ee(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[D(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new z((function(){return o>r?B():F(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new z((function(){var a=r[t?o-i:i];return i++>o?B():F(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!V(n))return new z(B);var r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new z((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return F(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new z((function(){return r<n.size?F(e,r++,n._value):B()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):ye(e)},t(xe,G),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new z((function(){var a=o;return o+=t?-r:r,i>n?B():F(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(Ce,n),t(Se,Ce),t(ke,Ce),t(Ee,Ce),Ce.Keyed=Se,Ce.Indexed=ke,Ce.Set=Ee;var Oe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function De(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return De(n)}if("string"===t)return e.length>ze?Pe(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=Ke[e];return void 0===t&&(t=Te(e),Be===Fe&&(Be=0,Ke={}),Be++,Ke[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return De(t)}function Me(e){var t;if(Ie&&void 0!==(t=Le.get(e)))return t;if(void 0!==(t=e[$e]))return t;if(!_e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[$e]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Le.set(e,t);else{if(void 0!==Ae&&!1===Ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(_e)Object.defineProperty(e,$e,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[$e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[$e]=t}}return t}var Ae=Object.isExtensible,_e=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Le,Ie="function"==typeof WeakMap;Ie&&(Le=new WeakMap);var Ne=0,$e="__immutablehash__";"function"==typeof Symbol&&($e=Symbol($e));var ze=16,Fe=255,Be=0,Ke={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?ot():Ue(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t(He,Se),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return it(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return it(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=mt(this,Cn(e),t,n);return r===b?void 0:r},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},He.prototype.merge=function(){return ft(this,void 0,arguments)},He.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return ft(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return Kt(dn(this,e))},He.prototype.sortBy=function(e,t){return Kt(dn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=Ue;var We,Ze="@@__IMMUTABLE_MAP__@@",qe=He.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return F(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===b?e:(S(l),S(a),new Qe(t,r,[o,i]))}function lt(e){return e.constructor===Qe||e.constructor===Je}function st(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&y,l=(0===n?r:r>>>n)&y;return new Ye(t,1<<a|1<<l,a===l?[st(e,t,n+m,r,o)]:(i=new Qe(t,r,o),a<l?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new k);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var u=t[l];void 0!==u&&l!==r&&(o|=s,a[i++]=u)}return new Ye(e,o,a)}function dt(e,t,n,r,o){for(var i=0,a=new Array(v),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function ft(e,t,n){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=r(l);a(l)||(s=s.map((function(e){return pe(e)}))),o.push(s)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function mt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,l=r(a);return l===a?e:l}we(o||e&&e.set,"invalid keyPath");var s=i.value,c=o?b:e.get(s,b),u=mt(c,t,n,r);return u===c?e:u===b?e.remove(s):(o?ot():e).set(s,u)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function yt(e,t,n,r){var o=r?e:E(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[Ze]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===b,s=this.entries,c=0,u=s.length;c<u&&!ve(r,s[c][0]);c++);var d=c<u;if(d?s[c][1]===o:l)return this;if(S(a),(l||!d)&&S(i),!l||1!==s.length){if(!d&&!l&&s.length>=xt)return ct(e,s,r,o);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&y),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+m,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var l=(0===t?n:n>>>t)&y,s=1<<l,c=this.bitmap,u=0!=(c&s);if(!u&&o===b)return this;var d=vt(c&s-1),f=this.nodes,p=u?f[d]:void 0,h=at(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!u&&h&&f.length>=Ct)return dt(e,f,c,l,h);if(u&&!h&&2===f.length&&lt(f[1^d]))return f[1^d];if(u&&h&&1===f.length&&lt(h))return h;var g=e&&e===this.ownerID,v=u?h?c:c^s:c|s,w=u?h?yt(f,d,h,g):wt(f,d,g):bt(f,d,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&y,i=this.nodes[o];return i?i.get(e+m,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var l=(0===t?n:n>>>t)&y,s=o===b,c=this.nodes,u=c[l];if(s&&!u)return this;var d=at(u,e,t+m,n,r,o,i,a);if(d===u)return this;var f=this.count;if(u){if(!d&&--f<St)return ut(e,c,f,l)}else f++;var p=e&&e===this.ownerID,h=yt(c,l,d,p);return p?(this.count=f,this.nodes=h,this):new Xe(e,f,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var l=o===b;if(n!==this.keyHash)return l?this:(S(a),S(i),st(this,e,t,n,[r,o]));for(var s=this.entries,c=0,u=s.length;c<u&&!ve(r,s[c][0]);c++);var d=c<u;if(d?s[c][1]===o:l)return this;if(S(a),(l||!d)&&S(i),l&&2===u)return new Qe(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var l=o===b,s=ve(r,this.entry[0]);return(s?o===this.entry[1]:l)?this:(S(a),l?void S(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(S(i),st(this,e,t,je(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return B()};var xt=v/4,Ct=v/2,St=v/4;function kt(e){var t=Rt();if(null==e)return t;if(Et(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?_t(0,r,m,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ot])}t(kt,ke),kt.of=function(){return this(arguments)},kt.prototype.toString=function(){return this.__toString("List [","]")},kt.prototype.get=function(e,t){if((e=D(this,e))>=0&&e<this.size){var n=$t(this,e+=this._origin);return n&&n.array[e&y]}return t},kt.prototype.set=function(e,t){return Lt(this,e,t)},kt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},kt.prototype.insert=function(e,t){return this.splice(e,0,t)},kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},kt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},kt.prototype.pop=function(){return zt(this,0,-1)},kt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},kt.prototype.shift=function(){return zt(this,1)},kt.prototype.merge=function(){return Ft(this,void 0,arguments)},kt.prototype.mergeWith=function(t){return Ft(this,t,e.call(arguments,1))},kt.prototype.mergeDeep=function(){return Ft(this,pt,arguments)},kt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ft(this,ht(t),n)},kt.prototype.setSize=function(e){return zt(this,0,e)},kt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:zt(this,T(e,n),M(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=At(this,t);return new z((function(){var t=r();return t===Mt?B():F(e,n++,t)}))},kt.prototype.__iterate=function(e,t){for(var n,r=0,o=At(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_t(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},kt.isList=Et;var Ot="@@__IMMUTABLE_LIST__@@",Dt=kt.prototype;function jt(e,t){this.array=e,this.ownerID=t}Dt[Ot]=!0,Dt[g]=Dt.remove,Dt.setIn=qe.setIn,Dt.deleteIn=Dt.removeIn=qe.removeIn,Dt.update=qe.update,Dt.updateIn=qe.updateIn,Dt.mergeIn=qe.mergeIn,Dt.mergeDeepIn=qe.mergeDeepIn,Dt.withMutations=qe.withMutations,Dt.asMutable=qe.asMutable,Dt.asImmutable=qe.asImmutable,Dt.wasAltered=qe.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-m,n))===a&&i)return this}if(i&&!o)return this;var l=Nt(this,e);if(!i)for(var s=0;s<r;s++)l.array[s]=void 0;return o&&(l.array[r]=o),l},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-m,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Pt,Tt,Mt={};function At(e,t){var n=e._origin,r=e._capacity,o=Bt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(s===c)return Mt;var e=t?--c:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,c=i>n?0:n-i>>o,u=1+(r-i>>o);return u>v&&(u=v),function(){for(;;){if(l){var e=l();if(e!==Mt)return e;l=null}if(c===u)return Mt;var n=t?--u:c++;l=a(s&&s[n],o-m,i+(n<<o))}}}}function _t(e,t,n,r,o,i,a){var l=Object.create(Dt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function Rt(){return Pt||(Pt=_t(0,0,m))}function Lt(e,t,n){if((t=D(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=Bt(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):_t(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,l=r>>>n&y,s=e&&l<e.array.length;if(!s&&void 0===o)return e;if(n>0){var c=e&&e.array[l],u=It(c,t,n-m,r,o,i);return u===c?e:((a=Nt(e,t)).array[l]=u,a)}return s&&e.array[l]===o?e:(S(i),a=Nt(e,t),void 0===o&&l===a.array.length-1?a.array.pop():a.array[l]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function $t(e,t){if(t>=Bt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=m;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,u=0;a+u<0;)c=new jt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(s+=m);u&&(a+=u,o+=u,l+=u,i+=u);for(var d=Bt(i),f=Bt(l);f>=1<<s+m;)c=new jt(c&&c.array.length?[c]:[],r),s+=m;var p=e._tail,h=f<d?$t(e,l-1):f>d?new jt([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var g=c=Nt(c,r),v=s;v>m;v-=m){var b=d>>>v&y;g=g.array[b]=Nt(g.array[b],r)}g.array[d>>>m&y]=p}if(l<i&&(h=h&&h.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=m,c=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(u=0;c;){var w=a>>>s&y;if(w!==f>>>s&y)break;w&&(u+=(1<<s)*w),s-=m,c=c.array[w]}c&&a>o&&(c=c.removeBefore(r,s,a-u)),c&&f<d&&(c=c.removeAfter(r,s,f-u)),u&&(a-=u,l-=u)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):_t(a,l,s,c,h)}function Ft(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],c=o(s);c.size>i&&(i=c.size),a(s)||(c=c.map((function(e){return pe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Bt(e){return e<v?0:e-1>>>m<<m}function Kt(e){return null==e?Ut():Vt(e)?e:Ut().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return Ue(e)&&u(e)}function Ht(e,t,n,r){var o=Object.create(Kt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Ut(){return Tt||(Tt=Ht(ot(),Rt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),s=void 0!==l;if(n===b){if(!s)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Ht(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===L){var r=e.__iterator(t,n);return new z((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?_:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(L,o);return new z((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return F(r,l,t.call(n,a[1],l,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return l++,o(e,r?i:l-1,a)}),i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(L,i),l=0;return new z((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],u=s[1];if(t.call(n,u,c,e))return F(o,r?c:l++,u,i)}}))},o}function tn(e,t,n){var r=He().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=l(e),o=(u(e)?Kt():He()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=yn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),P(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-i;s==s&&(l=s<0?0:s);var c=bn(e);return c.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(c.get=function(t,n){return(t=D(this,t))>=0&&t<l?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==l})),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),a=0,s=0;return new z((function(){for(;a++<i;)o.next();if(++s>l)return B();var e=o.next();return r||t===R?e:F(t,s-1,t===_?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,l){return t.call(n,e,o,l)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(L,o),l=!0;return new z((function(){if(!l)return B();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],c=o[1];return t.call(n,c,s,i)?r===L?e:F(r,s,c,e):(l=!1,B())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var l=!0,s=0;return e.__iterate((function(e,i,c){if(!l||!(l=t.call(n,e,i,c)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var l=e.__iterator(L,i),s=!0,c=0;return new z((function(){var e,i,u;do{if((e=l.next()).done)return r||o===R?e:F(o,c++,o===_?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],s&&(s=t.call(n,u,i,a))}while(s);return o===L?e:F(o,i,u,e)}))},o}function ln(e,t){var n=l(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&l(i)||s(e)&&s(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,c){var u=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?s(e,c+1):!1===r(e,n?o:i++,u)&&(l=!0),!l}),o)}return s(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],s=0;return new z((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===L&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:F(r,s++,c,e);l.push(i),i=c.__iterator(r,o)}else i=l.pop()}return B()}))},r}function cn(e,t,n){var r=yn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new z((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(n,a++,t):F(n,a++,o.value,o)}))},n}function dn(e,t,n){t||(t=xn);var r=l(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):s(e)?G(i):Y(i)}function fn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),H(o?e.reverse():e)})),a=0,l=!1;return new z((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?B():F(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),O(e)}function yn(e){return l(e)?r:s(e)?o:i}function bn(e){return Object.create((l(e)?q:s(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function Cn(e){var t=H(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function Sn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);Dn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=He(i)},o=r.prototype=Object.create(kn);return o.constructor=r,r}t(Kt,He),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Kt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ut()},Kt.prototype.set=function(e,t){return Wt(this,e,t)},Kt.prototype.remove=function(e){return Wt(this,e,b)},Kt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Kt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Kt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Kt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Kt.isOrderedMap=Vt,Kt.prototype[h]=!0,Kt.prototype[g]=Kt.prototype.remove,t(Zt,q),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new z((function(){var o=n.next();return o.done?o:F(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(qt,G),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new z((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t(Yt,q),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var o=a(r);return F(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(On(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+On(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var kn=Sn.prototype;function En(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function On(e){return e._name||e.constructor.name||"Record"}function Dn(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Pn(e){return null==e?In():Tn(e)&&!u(e)?e:In().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[An])}kn[g]=kn.remove,kn.deleteIn=kn.removeIn=qe.removeIn,kn.merge=qe.merge,kn.mergeWith=qe.mergeWith,kn.mergeIn=qe.mergeIn,kn.mergeDeep=qe.mergeDeep,kn.mergeDeepWith=qe.mergeDeepWith,kn.mergeDeepIn=qe.mergeDeepIn,kn.setIn=qe.setIn,kn.update=qe.update,kn.updateIn=qe.updateIn,kn.withMutations=qe.withMutations,kn.asMutable=qe.asMutable,kn.asImmutable=qe.asImmutable,t(Pn,Ee),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(r(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(e){return this._map.has(e)},Pn.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},Pn.prototype.remove=function(e){return Rn(this,this._map.remove(e))},Pn.prototype.clear=function(){return Rn(this,this._map.clear())},Pn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Pn.prototype.sort=function(e){return Nn(dn(this,e))},Pn.prototype.sortBy=function(e,t){return Nn(dn(this,t,e))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Pn.isSet=Tn;var Mn,An="@@__IMMUTABLE_SET__@@",_n=Pn.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Ln(e,t){var n=Object.create(_n);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Mn||(Mn=Ln(ot()))}function Nn(e){return null==e?Kn():$n(e)?e:Kn().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function $n(e){return Tn(e)&&u(e)}_n[An]=!0,_n[g]=_n.remove,_n.mergeDeep=_n.merge,_n.mergeDeepWith=_n.mergeWith,_n.withMutations=qe.withMutations,_n.asMutable=qe.asMutable,_n.asImmutable=qe.asImmutable,_n.__empty=In,_n.__make=Ln,t(Nn,Pn),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=$n;var zn,Fn=Nn.prototype;function Bn(e,t){var n=Object.create(Fn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return zn||(zn=Bn(Ut()))}function Vn(e){return null==e?Gn():Hn(e)?e:Gn().unshiftAll(e)}function Hn(e){return!(!e||!e[Wn])}Fn[h]=!0,Fn.__empty=Kn,Fn.__make=Bn,t(Vn,ke),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=D(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ve(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Vn.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):qn(r,o)},Vn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new z((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return B()}))},Vn.isStack=Hn;var Un,Wn="@@__IMMUTABLE_STACK__@@",Zn=Vn.prototype;function qn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Un||(Un=qn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[Wn]=!0,Zn.withMutations=qe.withMutations,Zn.asMutable=qe.asMutable,Zn.asImmutable=qe.asImmutable,Zn.wasAltered=qe.wasAltered,n.Iterator=z,Yn(n,{toArray:function(){Ve(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Kt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(l(this)?this.valueSeq():this)},toSet:function(){return Pn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(l(this)?this.valueSeq():this)},toList:function(){return kt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(L)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(_)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ve(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,dn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Cn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?nr(e):ir)},minBy:function(e,t){return fn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[d]=!0,Xn[$]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return E(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=l(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sr(je(e),je(t))|0}:function(e,t){r=r+sr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return lr(o,r)}function lr(e,t){return t=Oe(t,3432918353),t=Oe(t<<15|t>>>-15,461845907),t=Oe(t<<13|t>>>-13,5),t=Oe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=De((t=Oe(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[f]=!0,Jn[$]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,sn(this,e,!1))},get:function(e,t){return(e=D(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=D(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(q,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(Se,r.prototype),Yn(ke,o.prototype),Yn(Ee,i.prototype);var cr={Iterable:n,Seq:Z,Collection:Ce,Map:He,OrderedMap:Kt,List:kt,Stack:Vn,Set:Pn,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ve,fromJS:pe};return cr}();var K3=B3.exports,V3=K3.OrderedMap,H3={createFromArray:function(e){return V3(e.map((function(e){return[e.getKey(),e]})))}};var U3=K3,W3=U3.Map,Z3=U3.OrderedSet,q3=U3.Record,G3=Z3(),Y3={style:G3,entity:null},X3=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return J3;var t=W3({style:G3,entity:null}).merge(e),n=Q3.get(t);if(n)return n;var o=new r(t);return Q3=Q3.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?Z3(t):t,entity:Array.isArray(n)?Z3(n):n})},r}(q3(Y3)),J3=new X3,Q3=W3([[W3(Y3),J3]]);X3.EMPTY=J3;var e4=X3;var t4=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var n4=e4,r4=t4,o4=K3,i4=o4.List,a4=o4.Map,l4=o4.OrderedSet,s4=o4.Record,c4=o4.Repeat,u4=l4(),d4=s4({key:"",type:"unstyled",text:"",characterList:i4(),depth:0,data:a4()}),f4=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i4(c4(n4.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():u4},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){r4(this.getCharacterList(),p4,e,t)},o.findEntityRanges=function(e,t){r4(this.getCharacterList(),h4,e,t)},r}(d4);function p4(e,t){return e.getStyle()===t.getStyle()}function h4(e,t){return e.getEntity()===t.getEntity()}var g4=f4;var m4=e4,v4=t4,y4=K3,b4=y4.List,w4=y4.Map,x4=y4.OrderedSet,C4=y4.Record,S4=y4.Repeat,k4=x4(),E4={parent:null,characterList:b4(),data:w4(),depth:0,key:"",text:"",type:"unstyled",children:b4(),prevSibling:null,nextSibling:null},O4=function(e,t){return e.getStyle()===t.getStyle()},D4=function(e,t){return e.getEntity()===t.getEntity()},j4=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E4;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=b4(S4(m4.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():k4},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){v4(this.getCharacterList(),O4,e,t)},o.findEntityRanges=function(e,t){v4(this.getCharacterList(),D4,e,t)},r}(C4(E4)),P4=j4,T4=e4,M4=K3.Map;function A4(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),c=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).concat(M4([[l,o.get(l)]])).map((function(e,t){var o,c;i===l?(o=a,c=s):(o=t===i?a:0,c=t===l?s:e.getLength());for(var u,d=e.getCharacterList();o<c;)u=d.get(o),d=d.set(o,r?T4.applyStyle(u,n):T4.removeStyle(u,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:o.merge(c),selectionBefore:t,selectionAfter:t})}var _4={add:function(e,t,n){return A4(e,t,n,!0)},remove:function(e,t,n){return A4(e,t,n,!1)}},R4=e4;var L4=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,R4.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},I4=K3;var N4=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(I4.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,s=t===a?l:e.getLength();return L4(e,r,s,n)}));return e.merge({blockMap:r.merge(s),selectionBefore:t,selectionAfter:t})},$4={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,l=r,s=null,c=null,u=0;u<i.length;u++){if(e<(a=l+i[u].length)&&l<t)null!==s||(s=l),c=a;else if(null!==s)break;l=a}var d=r+n.length,f=s===r,p=c===d;return(!f&&p||f&&!p)&&("forward"===o?c!==d&&c++:s!==r&&s--),{start:s,end:c}}},z4="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var F4=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(z4(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},B4=F4;var K4=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?B4(!1,"Entity key not found in this range."):B4(!1)),n},V4=$4,H4=K4,U4=F4;function W4(e,t,n,r,o,i,a){var l=n.getStartOffset(),s=n.getEndOffset(),c=e.__get(o).getMutability(),u=a?l:s;if("MUTABLE"===c)return n;var d=H4(t,o).filter((function(e){return u<=e.end&&u>=e.start}));1!=d.length&&("production"!==process.env.NODE_ENV?U4(!1,"There should only be one entity range within this removal range."):U4(!1));var f=d[0];if("IMMUTABLE"===c)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:l=f.start);var p=V4.getRemovalRange(l,s,t.getText().slice(f.start,f.end),f.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var Z4=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),l=t.getEntityAt(i),s=n.getEntityAt(a-1);if(!l&&!s)return r;var c=r;if(l&&l===s)c=W4(e,t,c,o,l,!0,!0);else if(l&&s){var u=W4(e,t,c,o,l,!1,!0),d=W4(e,n,c,o,s,!1,!1);c=c.merge({anchorOffset:u.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(l){var f=W4(e,t,c,o,l,!1,!0);c=c.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var p=W4(e,n,c,o,s,!1,!1);c=c.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return c},q4={},G4=Math.pow(2,24);var Y4=function(){for(var e;void 0===e||q4.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*G4).toString(32);return q4[e]=!0,e},X4=P4,J4=Y4,Q4=K3.OrderedMap,e6=function(e){return e.first()instanceof X4?function(e){var t,n={};return Q4(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),c=r.getParentKey(),u=J4();if(n[i]=u,a&&(e.get(a)?e.setIn([a,"prevSibling"],u):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],u):e.setIn([i,"prevSibling"],null)),c&&e.get(c)){var d=e.get(c).getChildKeys();e.setIn([c,"children"],d.set(d.indexOf(r.getKey()),u))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],u),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return Q4(e.toArray().map((function(e){var t=J4();return[t,e.set("key",t)]})))}(e)},t6=e4,n6=t4,r6=F4;function o6(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,l=i?i.getEntity():void 0;if(l&&l===a&&"MUTABLE"!==e.__get(l).getMutability()){for(var s,c=function(e,t,n){var r;return n6(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?r6(!1,"Removal range must exist within character list."):r6(!1)),r}(r,l,n),u=c.start,d=c.end;u<d;)s=r.get(u),r=r.set(u,t6.applyEntity(s,null)),u++;return t.set("characterList",r)}return t}var i6=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),l=n.get(i),s=o6(r,l,a);s!==l&&(o[i]=s);var c=t.getEndKey(),u=t.getEndOffset(),d=n.get(c);i===c&&(d=s);var f=o6(r,d,u);return f!==d&&(o[c]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},a6=e6,l6=i6,s6=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=l6(e,t).getBlockMap(),l=a.keySeq(),s=l.indexOf(n),c=l.indexOf(o)+1;return a6(a.slice(s,c).map((function(e,t){var a=e.getText(),l=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:l.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:l.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:l.slice(0,i)}):e})))};var c6=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},u6=H3,d6=P4,f6=c6,p6=F4,h6=e6,g6=K3.List,m6=function(e,t,n,r,o,i){var a=n.first()instanceof d6,l=[],s=r.size,c=n.get(o),u=r.first(),d=r.last(),f=d.getLength(),p=d.getKey(),h=a&&(!c.getChildKeys().isEmpty()||!u.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),l=n.first();return e.merge({text:i+l.getText(),characterList:a.concat(l.getCharacterList()),type:i?e.getType():l.getType(),data:l.getData()})}(e,i,r)),r.slice(h?0:1,s-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),l=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,i,r))):l.push(e)}));var g=u6.createFromArray(l);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),l=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),c=s[s.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([c,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],c),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var u=e.get(l).getChildKeys(),d=u.indexOf(o)+1,f=u.toArray();f.splice.apply(f,[d,0].concat(s)),t.setIn([l,"children"],g6(f))}}))}(g,0,c,u)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},v6=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?p6(!1,"`insertFragment` should only be called with a collapsed selection state."):p6(!1));var o=e.getBlockMap(),i=h6(n),a=t.getStartKey(),l=t.getStartOffset(),s=o.get(a);return s instanceof d6&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?p6(!1,"`insertFragment` should not be called when a container node is selected."):p6(!1))),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(o),s=l.getText(),c=l.getCharacterList(),u=o,d=i+r.getText().length,f=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var p=l.getType();s&&"unstyled"===p&&(p=r.getType());var h=l.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:f6(c,r.getCharacterList(),i),type:p,data:f});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:d,focusKey:u,focusOffset:d,isBackward:!1})})}(e,t,o,i.first(),a,l,r):m6(e,t,o,i,a,l)},y6=c6,b6=F4,w6=K3.Repeat;var x6=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?b6(!1,"`insertText` should only be called with a collapsed range."):b6(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),l=t.getStartOffset(),s=i.get(a),c=s.getText(),u=s.merge({text:c.slice(0,l)+n+c.slice(l,s.getLength()),characterList:y6(s.getCharacterList(),w6(r,o).toList(),l)}),d=l+o;return e.merge({blockMap:i.set(a,u),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},C6=K3.Map;var S6=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(C6([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},k6=P4,E6=function(e,t){if(!(e instanceof k6))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},O6=P4,D6=E6,j6=K3;j6.List;var P6=j6.Map,T6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},M6=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},A6=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},_6=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},R6=function(e,t,n,r){return e.withMutations((function(o){if(T6(t.getKey(),o,(function(e){return e.merge({nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})})),T6(n.getKey(),o,(function(e){return e.merge({nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})})),M6(t.getKey(),r).forEach((function(e){return T6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})}))})),T6(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),T6(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:A6(e,o,r)})})),T6(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:_6(e,o,r)})})),T6(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),M6(n.getKey(),r).forEach((function(e){T6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=D6(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?D6(o,t):null}return n}(n,r).forEach((function(e){return T6(e,o,(function(e){return e.merge({nextSibling:A6(e,o,r),prevSibling:_6(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();T6(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),T6(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,l=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){T6(e,o,(function(e){return e.merge({parent:l})}))})),null!=l){var s=e.get(l);T6(l,o,(function(e){return e.merge({children:s.getChildKeys().concat(t.getChildKeys())})}))}T6(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},L6=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},I6=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.get(o),c=r.get(a),u=s instanceof O6,d=[];if(u){var f=c.getChildKeys(),p=M6(a,r);c.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([a]))),d=d.concat(M6(D6(c,r),r))}n=s===c?L6(s.getCharacterList(),i,l):s.getCharacterList().slice(0,i).concat(c.getCharacterList().slice(l));var h=s.merge({text:s.getText().slice(0,i)+c.getText().slice(l),characterList:n}),g=u&&0===i&&0===l&&c.getParentKey()===o&&null==c.getPrevSiblingKey()?P6([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===d.indexOf(t)})).concat(P6([[a,null]])).map((function(e,t){return t===o?h:null})),m=r.merge(g).filter((function(e){return!!e}));return u&&s!==c&&(m=R6(m,s,c,r)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},N6=P4,$6=Y4,z6=K3,F6=F4,B6=S6,K6=z6.List,V6=z6.Map,H6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},U6=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?F6(!1,"Selection range must be collapsed."):F6(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return B6(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var l=t.getAnchorOffset(),s=o.getCharacterList(),c=$6(),u=o instanceof N6,d=o.merge({text:i.slice(0,l),characterList:s.slice(0,l)}),f=d.merge({key:c,text:i.slice(l),characterList:s.slice(l),data:V6()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,d],[c,f]],h).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?F6(!1,"ContentBlockNode must not have children"):F6(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();H6(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:K6(i)})})),H6(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),H6(r,e,(function(e){return e.merge({nextSibling:o})})),H6(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:0,focusKey:c,focusOffset:0,isBackward:!1})})},W6=e4,Z6=_4,q6=N4,G6=Z4,Y6=s6,X6=v6,J6=x6,Q6=F4,e7=S6,t7=i6,n7=I6,r7=U6,o7=K3.OrderedSet,i7={replaceText:function(e,t,n,r,o){var i=t7(e,t),a=n7(i,t),l=W6.create({style:r||o7(),entity:o||null});return J6(a,a.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?Q6(!1,"Target range must be collapsed for `insertText`."):Q6(!1)),i7.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=Y6(e,t),o=i7.removeRange(e,t,"backward");return i7.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=t7(e,t),i=n7(o,t);return X6(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var l=t.getStartOffset(),s=t.getEndOffset(),c=i.getEntityAt(l),u=a.getEntityAt(s-1);if(r===o&&c&&c===u){var d=G6(e.getEntityMap(),i,a,t,n);return n7(e,d)}var f=t7(e,t);return n7(f,t)},splitBlock:function(e,t){var n=t7(e,t),r=n7(n,t);return r7(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Z6.add(e,t,n)},removeInlineStyle:function(e,t,n){return Z6.remove(e,t,n)},setBlockType:function(e,t,n){return e7(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return e7(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return e7(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=t7(e,t);return q6(r,t,n)}},a7=i7;var l7=function(e){return Object.keys(e).map((function(t){return e[t]}))};function s7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c7=t4,u7=l7,d7=K3,f7=d7.List,p7=d7.Repeat,h7=d7.Record,g7=function(){return!0},m7=h7({start:null,end:null}),v7=h7({start:null,end:null,decoratorKey:null,leaves:null}),y7={generate:function(e,t,n){var r=t.getLength();if(!r)return f7.of(new v7({start:0,end:0,decoratorKey:null,leaves:f7.of(new m7({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):f7(p7(null,r)),a=t.getCharacterList();return c7(i,w7,g7,(function(e,t){o.push(new v7({start:e,end:t,decoratorKey:i.get(e),leaves:b7(a.slice(e,t).toList(),e)}))})),f7(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new v7(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s7(e,t,n[t])}))}return e}({},n,{leaves:null!=t?f7(Array.isArray(t)?t:u7(t)).map((function(e){return m7(e)})):null}))}};function b7(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return c7(r,w7,g7,(function(e,r){n.push(new m7({start:e+t,end:r+t}))})),f7(n)}function w7(e,t){return e===t}var x7=y7;var C7=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,K3.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),S7=C7;var k7=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function E7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O7=S7,D7=F4,j7=k7,P7=(0,K3.Map)(),T7=j7();function M7(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var A7={getLastCreatedEntityKey:function(){return M7("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),A7.__getLastCreatedEntityKey()},create:function(e,t,n){return M7("DraftEntity.create","contentState.createEntity"),A7.__create(e,t,n)},add:function(e){return M7("DraftEntity.add","contentState.addEntity"),A7.__add(e)},get:function(e){return M7("DraftEntity.get","contentState.getEntity"),A7.__get(e)},__getAll:function(){return P7},__loadWithEntities:function(e){P7=e,T7=j7()},mergeData:function(e,t){return M7("DraftEntity.mergeData","contentState.mergeEntityData"),A7.__mergeData(e,t)},replaceData:function(e,t){return M7("DraftEntity.replaceData","contentState.replaceEntityData"),A7.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return T7},__create:function(e,t,n){return A7.__add(new O7({type:e,mutability:t,data:n||{}}))},__add:function(e){return T7=j7(),P7=P7.set(T7,e),T7},__get:function(e){var t=P7.get(e);return t||("production"!==process.env.NODE_ENV?D7(!1,"Unknown DraftEntity key: %s.",e):D7(!1)),t},__mergeData:function(e,t){var n=A7.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){E7(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return P7=P7.set(e,o),o},__replaceData:function(e,t){var n=A7.__get(e).set("data",t);return P7=P7.set(e,n),n}},_7=A7;var R7=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,K3.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),L7=R7,I7=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},N7=new RegExp("\r","g");var $7=function(e){return e.replace(N7,"")};function z7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F7(e,t,n[t])}))}return e}function F7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B7=H3,K7=e4,V7=g4,H7=P4,U7=_7,W7=L7,Z7=Y4,q7=l7,G7=I7,Y7=K3,X7=$7,J7=Y7.List,Q7=Y7.Record,e8=Y7.Repeat,t8=Y7.Map,n8=Y7.OrderedMap,r8=Q7({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),o8=G7("draft_tree_data_support")?H7:V7,i8=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return U7},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return U7.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return U7.__create(e,t,n),this},o.mergeEntityData=function(e,t){return U7.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return U7.__replaceData(e,t),this},o.addEntity=function(e){return U7.__add(e),this},o.getEntity=function(e){return U7.__get(e)},o.getAllEntities=function(){return U7.__getAll()},o.loadWithEntities=function(e){return U7.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=B7.createFromArray(n),i=o.isEmpty()?new W7:W7.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||U7,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=X7(e),new o8({key:Z7(),text:e,type:"unstyled",characterList:J7(e8(K7.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(z7({},e,{blockMap:n8(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new W7(e.selectionBefore),selectionAfter:new W7(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new o8(z7({},e,{data:t8(e.data),characterList:null!=t?J7((Array.isArray(t)?t:q7(t)).map((function(e){return K7.fromJS(e)}))):void 0}))},r}(r8),a8=i8,l8=F4,s8="LTR",c8="RTL",u8=null;function d8(e){return e===s8||e===c8}function f8(e){return d8(e)||("production"!==process.env.NODE_ENV?l8(!1,"`dir` must be a strong direction to be converted to HTML Direction"):l8(!1)),e===s8?"ltr":"rtl"}function p8(e){u8=e}var h8={NEUTRAL:"NEUTRAL",LTR:s8,RTL:c8,isStrong:d8,getHTMLDir:f8,getHTMLDirIfDifferent:function(e,t){return d8(e)||("production"!==process.env.NODE_ENV?l8(!1,"`dir` must be a strong direction to be converted to HTML Direction"):l8(!1)),d8(t)||("production"!==process.env.NODE_ENV?l8(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):l8(!1)),e===t?null:f8(e)},setGlobalDir:p8,initGlobalDir:function(){p8(s8)},getGlobalDir:function(){return u8||this.initGlobalDir(),u8||("production"!==process.env.NODE_ENV?l8(!1,"Global direction not set."):l8(!1)),u8}},g8=h8,m8=F4,v8="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",y8="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",b8=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+v8+y8+"]"),w8=new RegExp("["+v8+y8+"]");function x8(e){var t=b8.exec(e);return null==t?null:t[0]}function C8(e){var t=x8(e);return null==t?g8.NEUTRAL:w8.exec(t)?g8.RTL:g8.LTR}function S8(e,t){if(t=t||g8.NEUTRAL,!e.length)return t;var n=C8(e);return n===g8.NEUTRAL?t:n}function k8(e,t){return t||(t=g8.getGlobalDir()),g8.isStrong(t)||("production"!==process.env.NODE_ENV?m8(!1,"Fallback direction must be a strong direction"):m8(!1)),S8(e,t)}var E8={firstStrongChar:x8,firstStrongCharDir:C8,resolveBlockDir:S8,getDirection:k8,isDirectionLTR:function(e,t){return k8(e,t)===g8.LTR},isDirectionRTL:function(e,t){return k8(e,t)===g8.RTL}};function O8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D8,j8=E8,P8=h8,T8=F4,M8=function(){function e(e){O8(this,"_defaultDir",void 0),O8(this,"_lastDir",void 0),e?P8.isStrong(e)||("production"!==process.env.NODE_ENV?T8(!1,"Default direction must be a strong direction (LTR or RTL)"):T8(!1)):e=P8.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=j8.getDirection(e,this._lastDir),this._lastDir},e}(),A8=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},_8=M8,R8=K3,L8=A8,I8=R8.OrderedMap;function N8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$8(e,t,n[t])}))}return e}function $8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z8=x7,F8=a8,B8={getDirectionMap:function(e,t){D8?D8.reset():D8=new _8;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return L8(D8).getDirection(e.getText())})),o=I8(n.keySeq().zip(r));return null!=t&&R8.is(t,o)?t:o}},K8=L7,V8=K3,H8=V8.OrderedSet,U8=V8.Record,W8=V8.Stack,Z8=V8.OrderedMap,q8=V8.List,G8=U8({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:W8(),selection:null,treeMap:null,undoStack:W8()}),Y8=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(F8.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:W8(),redoStack:W8(),decorator:n||null,selection:K8.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=N8({},e,{treeMap:J8(n,e.decorator),directionMap:B8.getDirectionMap(n)});return new t(new G8(r))},t.fromJS=function(e){return new t(new G8(N8({},e,{directionMap:null!=e.directionMap?Z8(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?H8(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?F8.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?W8(e.redoStack.map((function(e){return F8.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new K8(e.selection):e.selection,treeMap:null!=e.treeMap?Z8(e.treeMap).map((function(e){return q8(e).map((function(e){return z8.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?W8(e.undoStack.map((function(e){return F8.fromJS(e)}))):e.undoStack,currentContent:F8.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,l=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return z8.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):J8(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return z8.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){$8(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return Q8(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return Q8(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return X8(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),X8(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new K8({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=B8.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),s=e.getUndoStack(),c=n;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(s=s.push(l),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",l.getSelectionBefore()));var u=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var d={currentContent:c,directionMap:i,undoStack:s,redoStack:W8(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=B8.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=B8.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function X8(e,t,n){return Y8.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function J8(e,t){return e.getBlockMap().map((function(n){return z8.generate(e,n,t)})).toOrderedMap()}function Q8(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):H8()}var eee=Y8,tee=P4,nee=E6,ree=K3,oee=F4,iee=ree.OrderedMap,aee=ree.List,lee=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},see=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),s=t.getParentKey(),c=t.getNextSiblingKey(),u=t.getPrevSiblingKey(),d=n.getParentKey(),f=i?n.getNextSiblingKey():l,p=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){lee(s,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),lee(u,e,(function(e){return e.merge({nextSibling:c})})),lee(c,e,(function(e){return e.merge({prevSibling:u})})),lee(f,e,(function(e){return e.merge({prevSibling:a})})),lee(p,e,(function(e){return e.merge({nextSibling:a})})),lee(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(l),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:aee(o)})})),lee(a,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))};function cee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uee(e,t,n[t])}))}return e}function uee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dee=H3,fee=e4,pee=g4,hee=P4,gee=a7,mee=eee,vee=Y4,yee=K3,bee=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?oee(!1,"Replacing blocks is not supported."):oee(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?oee(!1,"Block cannot be moved next to itself."):oee(!1));var a=e.getBlockMap(),l=t instanceof tee,s=[t],c=a.delete(i);l&&(s=[],c=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=nee(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,l=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||l)})).forEach((function(t){s.push(t),e.delete(t.getKey())}))})));var u=c.toSeq().takeUntil((function(e){return e===n})),d=c.toSeq().skipUntil((function(e){return e===n})).skip(1),f=s.map((function(e){return[e.getKey(),e]})),p=iee();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?oee(!1,"Block cannot be moved next to itself."):oee(!1)),p=u.concat([].concat(f,[[o,n]]),d).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?oee(!1,"Block cannot be moved next to itself."):oee(!1)),p=u.concat([[o,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:see(p,t,n,r,l),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},wee=I7("draft_tree_data_support"),xee=wee?hee:pee,Cee=yee.List,See=yee.Repeat,kee={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=gee.removeRange(r,o,"backward"),a=i.getSelectionAfter(),l=gee.splitBlock(i,a),s=l.getSelectionAfter(),c=gee.setBlockType(l,s,"atomic"),u=fee.create({entity:t}),d={key:vee(),type:"atomic",text:n,characterList:Cee(See(u,n.length))},f={key:vee(),type:"unstyled"};wee&&(d=cee({},d,{nextSibling:f.key}),f=cee({},f,{prevSibling:d.key}));var p=[new xee(d),new xee(f)],h=dee.createFromArray(p),g=gee.replaceWithFragment(c,s,h),m=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return mee.push(e,m,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var l=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=bee(i,t,l,r)}else{var s=gee.removeRange(i,n,"backward"),c=s.getSelectionAfter(),u=s.getBlockForKey(c.getFocusKey());if(0===c.getStartOffset())o=bee(s,t,u,"before");else if(c.getEndOffset()===u.getLength())o=bee(s,t,u,"after");else{var d=gee.splitBlock(s,c),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());o=bee(d,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return mee.push(e,h,"move-block")}};var Eee=K3.List,Oee=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),Eee(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var Dee=Oee;function jee(e){return e.replace(/\//g,"-")}var Pee=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(jee).join(" "):Array.prototype.map.call(arguments,jee).join(" ")},Tee=t,Mee=Pee,Aee=(0,K3.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Tee.createElement("ul",{className:Mee("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:Tee.createElement("ol",{className:Mee("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Tee.createElement("pre",{className:Mee("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),_ee={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},Ree={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",c="model",u="name",d="type",f="vendor",p="version",h="architecture",g="console",m="mobile",v="tablet",y="smarttv",b="wearable",w="embedded",x="Amazon",C="Apple",S="ASUS",k="BlackBerry",E="Browser",O="Chrome",D="Firefox",j="Google",P="Huawei",T="LG",M="Microsoft",A="Motorola",_="Opera",R="Samsung",L="Sharp",I="Sony",N="Xiaomi",$="Zebra",z="Facebook",F="Chromium OS",B="Mac OS",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===l&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},U=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},W=function(e,t){for(var n,i,l,s,c,u,d=0;d<t.length&&!c;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(l=0;l<p.length;l++)u=c[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):r:this[s[0]]=u?s[1].call(this,u,s[2]):r:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):r):this[s]=u||r;d+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return e},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,_+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,_]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[u,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[u,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,_+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,_+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[p,[u,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+E]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+E],p],[/samsungbrowser\/([\w\.]+)/i],[p,[u,R+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,z],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,D+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,H]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,R],[d,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,R],[d,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,C],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,C],[d,v]],[/(macintosh);/i],[c,[f,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,L],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,P],[d,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,P],[d,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,N],[d,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,N],[d,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[d,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[d,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,A],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,A],[d,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,T],[d,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,T],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[d,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[d,m]],[/(pixel c)\b/i],[c,[f,j],[d,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,j],[d,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,I],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,I],[d,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,x],[d,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,x],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[d,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,k],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,S],[d,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,S],[d,m]],[/(nexus 9)/i],[c,[f,"HTC"],[d,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[d,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[d,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[d,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[d,m]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[d,v]],[/(surface duo)/i],[c,[f,M],[d,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[d,m]],[/(u304aa)/i],[c,[f,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[d,v]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[d,v]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[d,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[d,v]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[d,v]],[/\b(k88) b/i],[c,[f,"ZTE"],[d,v]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[d,v]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[d,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[d,v]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[d,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[d,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[d,m]],[/\b(ph-1) /i],[c,[f,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[d,v]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[d,v]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[d,v]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[d,v]],[/(sprint) (\w+)/i],[f,c,[d,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,M],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,$],[d,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,$],[d,m]],[/smart-tv.+(samsung)/i],[f,[d,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,R],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,T],[d,y]],[/(apple) ?tv/i],[f,[c,C+" TV"],[d,y]],[/crkey/i],[[c,O+"cast"],[f,j],[d,y]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,x],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,L],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,I],[d,y]],[/(mitv-\w{5}) bui/i],[c,[f,N],[d,y]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,U],[c,U],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[d,g]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[c,[f,I],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,M],[d,g]],[/((pebble))app/i],[f,c,[d,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,C],[d,b]],[/droid.+; (glass) \d/i],[c,[f,j],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,$],[d,b]],[/(quest( 2| pro)?)/i],[c,[f,z],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[c,[f,x],[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[p,Z,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Z,q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,B],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[u,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,F],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,p]]},Y=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,y=e||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:r,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,x=g&&g.userAgent==y;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,W.call(t,y,w.browser),t[s]=typeof(e=t[p])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,y,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[d]=r,W.call(e,y,w.device),x&&!e[d]&&b&&b.mobile&&(e[d]=m),x&&"Macintosh"==e[c]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[c]="iPad",e[d]=v),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,W.call(e,y,w.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,W.call(e,y,w.os),x&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,F).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===l&&e.length>500?U(e,500):e,this},this.setUA(y),this};Y.VERSION="0.7.37",Y.BROWSER=K([u,p,s]),Y.CPU=K([h]),Y.DEVICE=K([c,f,d,g,m,y,v,b,w]),Y.ENGINE=Y.OS=K([u,p]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new Y;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:Bi)}(Ree,Ree.exports);var Lee="Unknown",Iee={"Mac OS":"Mac OS X"};var Nee,$ee=(new(0,Ree.exports)).getResult(),zee=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}($ee.browser.version),Fee={browserArchitecture:$ee.cpu.architecture||Lee,browserFullVersion:$ee.browser.version||Lee,browserMinorVersion:zee.minor||Lee,browserName:$ee.browser.name||Lee,browserVersion:$ee.browser.major||Lee,deviceName:$ee.device.model||Lee,engineName:$ee.engine.name||Lee,engineVersion:$ee.engine.version||Lee,platformArchitecture:$ee.cpu.architecture||Lee,platformName:(Nee=$ee.os.name,Iee[Nee]||Nee||Lee),platformVersion:$ee.os.version||Lee,platformFullVersion:$ee.os.version||Lee},Bee=F4,Kee=/\./,Vee=/\|\|/,Hee=/\s+\-\s+/,Uee=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,Wee=/^(\d*)(.*)/;function Zee(e,t){var n=e.split(Vee);return n.length>1?n.some((function(e){return ote.contains(e,t)})):function(e,t){var n=e.split(Hee);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?Bee(!1,'the "-" operator expects exactly 2 operands'):Bee(!1)),1===n.length)return qee(n[0],t);var r=n[0],o=n[1];return Qee(r)&&Qee(o)||("production"!==process.env.NODE_ENV?Bee(!1,'operands to the "-" operator must be simple (no modifiers)'):Bee(!1)),qee(">="+r,t)&&qee("<="+o,t)}(e=n[0].trim(),t)}function qee(e,t){if(""===(e=e.trim()))return!0;var n=t.split(Kee),r=Xee(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return Gee(n,i);case"<=":return function(e,t){var n=rte(e,t);return-1===n||0===n}(n,i);case">=":return Yee(n,i);case">":return function(e,t){return 1===rte(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);Jee(i)&&(r[o]=i+1+"");return Yee(e,n)&&Gee(e,r)}(n,i);default:return function(e,t){return 0===rte(e,t)}(n,i)}}function Gee(e,t){return-1===rte(e,t)}function Yee(e,t){var n=rte(e,t);return 1===n||0===n}function Xee(e){var t=e.split(Kee),n=t[0].match(Uee);return n||("production"!==process.env.NODE_ENV?Bee(!1,"expected regex to match but it did not"):Bee(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function Jee(e){return!isNaN(e)&&isFinite(e)}function Qee(e){return!Xee(e).modifier}function ete(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function tte(e,t){var n=e.match(Wee)[1],r=t.match(Wee)[1],o=parseInt(n,10),i=parseInt(r,10);return Jee(o)&&Jee(i)&&o!==i?nte(o,i):nte(e,t)}function nte(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?Bee(!1,'"a" and "b" must be of the same type'):Bee(!1)),e>t?1:e<t?-1:0}function rte(e,t){for(var n=function(e,t){ete(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return ete(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=tte(r[i],o[i]);if(a)return a}return 0}var ote={contains:function(e,t){return Zee(e.trim(),t.trim())}},ite=ote,ate=Object.prototype.hasOwnProperty;var lte=function(e,t,n){if(!e)return null;var r={};for(var o in e)ate.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var ste=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},cte=Fee,ute=ite;function dte(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,ute.contains(o,t))}function fte(e){return"Windows"===cte.platformName?e.replace(/^\s*NT/,""):e}var pte=lte({isBrowser:function(e){return dte(cte.browserName,cte.browserFullVersion,e)},isBrowserArchitecture:function(e){return dte(cte.browserArchitecture,null,e)},isDevice:function(e){return dte(cte.deviceName,null,e)},isEngine:function(e){return dte(cte.engineName,cte.engineVersion,e)},isPlatform:function(e){return dte(cte.platformName,cte.platformFullVersion,e,fte)},isPlatformArchitecture:function(e){return dte(cte.platformArchitecture,null,e)}},ste);var hte=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var gte=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},mte=gte;var vte=function e(t){if(mte(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},yte=hte,bte=vte;var wte=function(e){for(var t=e;t&&t!==yte(e).documentElement;){var n=bte(t);if(null!=n)return n;t=t.parentNode}return null};var xte=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function Cte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ste=pte,kte=wte,Ete=xte,Ote=F4,Dte=A8,jte=K3.Map,Pte={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Tte=Ste.isBrowser("IE <= 11"),Mte=function(){function e(e){var t=this;Cte(this,"observer",void 0),Cte(this,"container",void 0),Cte(this,"mutations",void 0),Cte(this,"onCharData",void 0),this.container=e,this.mutations=jte();var n=Ete(e);n.MutationObserver&&!Tte?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?Ote(!1,"Expected target to be an instance of Node"):Ote(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,Pte):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=jte(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return Tte?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=Dte(kte(e.target));this.mutations=this.mutations.set(n,t)}},e}(),Ate="-",_te={encode:function(e,t,n){return e+Ate+t+Ate+n},decode:function(e){var t=e.split(Ate).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(Ate),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},Rte={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},Lte={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var Ite=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},Nte=F4,$te=Ite;var zte=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?Nte(!1,"Missing editorNode"):Nte(!1)),$te(t.firstChild)||("production"!==process.env.NODE_ENV?Nte(!1,"editorNode.firstChild is not an HTMLElement"):Nte(!1)),t.firstChild},Fte=_te,Bte=A8;var Kte=function(e,t,n,r,o){var i=Bte(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=Fte.decode(t),l=a.blockKey,s=e.getBlockTree(l),c=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),u=Fte.decode(r),d=u.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!c||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=c.get("start"),g=p.get("start"),m=c?h+n:null,v=p?g+o:null;if(i.getAnchorKey()===l&&i.getAnchorOffset()===m&&i.getFocusKey()===d&&i.getFocusOffset()===v)return i;var y=!1;if(l===d){var b=c.get("end"),w=p.get("end");y=g===h&&w===b?o<n:g<h}else{y=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===d})).first()===d}return i.merge({anchorKey:l,anchorOffset:m,focusKey:d,focusOffset:v,isBackward:y})},Vte=wte,Hte=vte,Ute=Kte,Wte=F4,Zte=gte,qte=A8;function Gte(e,t,n){var r=t,o=Vte(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?Wte(!1,"Unknown node in selection range."):Wte(!1)),e===r)&&(r=r.firstChild,Zte(r)||("production"!==process.env.NODE_ENV?Wte(!1,"Invalid DraftEditorContents node."):Wte(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?Wte(!1,"Invalid DraftEditorContents structure."):Wte(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(Zte(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||Hte(e.firstChild));)e=e.firstChild;return e}(r);i=qte(Hte(a))}return{key:i,offset:0}}var l=r.childNodes[n-1],s=null,c=null;if(Hte(l)){var u=function(e){for(;e.lastChild&&(Zte(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||Hte(e.lastChild));)e=e.lastChild;return e}(l);s=qte(Hte(u)),c=Yte(u)}else s=qte(o),c=Yte(l);return{key:s,offset:c}}function Yte(e){var t=e.textContent;return"\n"===t?0:t.length}var Xte=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,l=o.nodeType===Node.TEXT_NODE;if(a&&l)return{selectionState:Ute(e,qte(Vte(n)),r,qte(Vte(o)),i),needsRecovery:!1};var s=null,c=null,u=!0;return a?(s={key:qte(Vte(n)),offset:r},c=Gte(t,o,i)):l?(c={key:qte(Vte(o)),offset:i},s=Gte(t,n,r)):(s=Gte(t,n,r),c=Gte(t,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:Ute(e,s.key,s.offset,c.key,c.offset),needsRecovery:u}},Jte=Xte;var Qte=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:Jte(e,t,r,o,i,a)},ene=Lte,tne=eee,nne=zte,rne=Qte;var one=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();ene.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=rne(n,nne(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?tne.forceSelection(n,o):tne.acceptSelection(n,o),e.update(n))}};var ine={notEmptyKey:function(e){return null!=e&&""!=e}},ane=ine.notEmptyKey;function lne(e,t){return ane(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var sne=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:lne(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),l=e.getBlockForKey(i);return n=a===l.getLength()?null:l.getEntityAt(a),lne(e.getEntityMap(),n)},cne=Mte,une=a7,dne=_te,fne=eee,pne=Rte,hne=one,gne=zte,mne=Qte,vne=sne,yne=A8,bne=pte.isBrowser("IE"),wne=!1,xne=!1,Cne=null;var Sne,kne,Ene={onCompositionStart:function(e){xne=!0,function(e){Cne||(Cne=new cne(gne(e))).start()}(e)},onCompositionEnd:function(e){wne=!1,xne=!1,setTimeout((function(){wne||Ene.resolveComposition(e)}),20)},onSelect:hne,onKeyDown:function(e,t){if(!xne)return Ene.resolveComposition(e),void e._onKeyDown(t);t.which!==pne.RIGHT&&t.which!==pne.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===pne.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!xne){var t=yne(Cne).stopAndFlushMutations();Cne=null,wne=!0;var n=fne.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=dne.decode(t),i=o.blockKey,a=o.decoratorKey,l=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",l]),c=s.start,u=s.end,d=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:c,focusOffset:u,isBackward:!1}),f=vne(r,d),p=r.getBlockForKey(i).getInlineStyleAt(c);r=une.replaceText(r,d,e,p,f),n=fne.set(n,{currentContent:r})}));var o=mne(n,gne(e)).selectionState;e.restoreEditorDOM();var i=bne?fne.forceSelection(n,o):fne.acceptSelection(n,o);e.update(fne.push(i,r,"insert-characters"))}else e.update(n)}}},One=Ene;function Dne(){if(kne)return Sne;kne=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=_te,o=t,i=E8,a=h8,l=function(e){var t,l;function s(){return e.apply(this,arguments)||this}return l=e,(t=s).prototype=Object.create(l.prototype),t.prototype.constructor=t,t.__proto__=l,s.prototype.render=function(){var e=this.props,t=e.block,l=e.children,s=e.contentState,c=e.decorator,u=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,h=t.getKey(),g=f.get("leaves"),m=c.getComponentForKey(u),v=c.getPropsForKey(u),y=r.encode(h,parseInt(u,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),d);return o.createElement(m,n({},v,{contentState:s,decoratedText:b,dir:w,key:y,entityKey:t.getEntityAt(f.get("start")),offsetKey:y}),l)},s}(o.Component);return Sne=l}function jne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tne=t,Mne=F4,Ane=gte,_ne=pte.isBrowser("IE <= 11");var Rne=function(e){var t,n;function r(t){var n;return Pne(jne(n=e.call(this,t)||this),"_forceFlag",void 0),Pne(jne(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Ane(t)||("production"!==process.env.NODE_ENV?Mne(!1,"node is not an Element"):Mne(!1));var r=t;return n?!function(e){return _ne?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},_ne?Tne.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):Tne.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return _ne?Tne.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):Tne.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):Tne.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(Tne.Component),Lne=Rne,Ine=gte;var Nne=function(e){return!(!e||!e.ownerDocument)&&(Ine(e)&&"BR"===e.nodeName)},$ne={initODS:function(){},handleExtensionCausedError:function(){}};var zne=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},Fne=zne;var Bne=function(e){return Fne(e)&&3==e.nodeType},Kne=Bne;var Vne=function e(t,n){return!(!t||!n)&&(t===n||!Kne(t)&&(Kne(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Hne=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},Une=$ne,Wne=Lte,Zne=Vne,qne=Hne,Gne=hte,Yne=F4,Xne=gte,Jne=pte.isBrowser("IE");function Qne(e,t){if(!e)return"[empty]";var n=ere(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(Xne(n)||("production"!==process.env.NODE_ENV?Yne(!1,"Node must be an Element if it is not a text node."):Yne(!1)),n.outerHTML)}function ere(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return Gne(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(ere(i[a],t));return o}function tre(e,t){for(var n=e,r=n;n;){if(Xne(n)&&r.hasAttribute("contenteditable"))return Qne(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function nre(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function rre(e,t,n,r){var o=qne();if(e.extend&&null!=t&&Zne(o,t)){n>nre(t)&&Wne.logSelectionStateFailure({anonymizedDom:tre(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw Wne.logSelectionStateFailure({anonymizedDom:tre(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function ore(e,t,n,r){var o=Gne(t).createRange();if(n>nre(t)&&(Wne.logSelectionStateFailure({anonymizedDom:tre(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),Une.handleExtensionCausedError()),o.setStart(t,n),Jne)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var ire=function(e,t,n,r,o){var i=Gne(t);if(Zne(i.documentElement,t)){var a=i.defaultView.getSelection(),l=e.getAnchorKey(),s=e.getAnchorOffset(),c=e.getFocusKey(),u=e.getFocusOffset(),d=e.getIsBackward();if(!a.extend&&d){var f=l,p=s;l=c,s=u,c=f,u=p,d=!1}var h=l===n&&r<=s&&o>=s,g=c===n&&r<=u&&o>=u;if(h&&g)return a.removeAllRanges(),ore(a,t,s-r,e),void rre(a,t,u-r,e);if(d){if(g&&(a.removeAllRanges(),ore(a,t,u-r,e)),h){var m=a.focusNode,v=a.focusOffset;a.removeAllRanges(),ore(a,t,s-r,e),rre(a,m,v,e)}}else h&&(a.removeAllRanges(),ore(a,t,s-r,e)),g&&rre(a,t,u-r,e)}},are=oU;var lre,sre,cre=Lne,ure=t,dre=F4,fre=Nne,pre=ire,hre=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var l=this.leaf;l||("production"!==process.env.NODE_ENV?dre(!1,"Missing node"):dre(!1));var s,c=l.firstChild;c||("production"!==process.env.NODE_ENV?dre(!1,"Missing child"):dre(!1)),c.nodeType===Node.TEXT_NODE?s=c:fre(c)?s=l:(s=c.firstChild)||("production"!==process.env.NODE_ENV?dre(!1,"Missing targetNode"):dre(!1)),pre(e,s,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?dre(!1,"Missing leafNode"):dre(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,l=r.styleSet,s=l.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),are(e,r,n)}),{});if(i){var c=i(l,t);s=are(s,c)}return ure.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:s},ure.createElement(cre,null,n))},r}(ure.Component),gre=hre;function mre(){if(sre)return lre;sre=1;var e=Dne(),n=gre,r=_te,o=t,i=Pee;K3.List;var a=function(t){var a,l;function s(){return t.apply(this,arguments)||this}return l=t,(a=s).prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l,s.prototype.render=function(){var t=this.props,a=t.block,l=t.contentState,s=t.customStyleFn,c=t.customStyleMap,u=t.decorator,d=t.direction,f=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,m=a.getKey(),v=a.getText(),y=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var l=r.encode(m,i,t),u=e.get("start"),d=e.get("end");return o.createElement(n,{key:l,offsetKey:l,block:a,start:u,selection:p?h:null,forceSelection:f,text:v.slice(u,d),styleSet:a.getInlineStyleAt(u),customStyleMap:c,customStyleFn:s,isLast:g===y&&t===w})})).toArray();return g&&u?o.createElement(e,{block:a,children:x,contentState:l,decorator:u,decoratorKey:g,direction:d,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(m,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},s}(o.Component);return lre=a}function vre(e,t){return!!t&&(e===t.documentElement||e===t.body)}var yre={getTop:function(e){var t=e.ownerDocument;return vre(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;vre(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return vre(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;vre(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},bre=/-(.)/g;var wre=function(e){return e.replace(bre,(function(e,t){return t.toUpperCase()}))},xre=/([A-Z])/g;var Cre=function(e){return e.replace(xre,"-$1").toLowerCase()},Sre=wre,kre=Cre;function Ere(e){return null==e?e:String(e)}var Ore=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return Ere(n.getPropertyValue(kre(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return Ere(n.getPropertyValue(kre(t)));if("display"===t)return"none"}return e.currentStyle?Ere("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Sre(t)]):Ere(e.style&&e.style[Sre(t)])};function Dre(e,t){var n=jre.get(e,t);return"auto"===n||"scroll"===n}var jre={get:Ore,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(Dre(e,"overflow")||Dre(e,"overflowY")||Dre(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},Pre=jre,Tre=Vne;var Mre=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!Tre(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var Are=function(e){var t=Mre(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},_re="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Rre=function(e){return(e=e||document).scrollingElement?e.scrollingElement:_re||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Lre=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var Ire=function(e){var t=Rre(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Lre(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function Nre(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function $re(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function zre(){return{width:window.innerWidth||Nre(),height:window.innerHeight||$re()}}zre.withoutScrollbars=function(){return{width:Nre(),height:$re()}};var Fre,Bre,Kre,Vre,Hre=zre;function Ure(){if(Bre)return Fre;Bre=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=mre(),a=_te,l=t,s=yre,c=Pre,u=Are,d=Ire,f=Hre,p=F4,h=Ite;K3.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},m=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},y=function(e,t,n,o,i,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},s=o(e);return s&&(l.className=s),void 0!==i.customEditable&&(l=r({},l,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),l},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",l.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=c.getScrollParent(n),i=d(o);if(o===window){var a=u(n);(r=a.y+a.height-f().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var l=n;(r=l.offsetHeight+l.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,s=t.blockRenderMap,c=t.blockRendererFn,u=t.blockStyleFn,d=t.contentState,f=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,S=t.forceSelection,k=t.selection,E=t.tree,O=null;o.children.size&&(O=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=d.getBlockForKey(n),f=v(i,c),g=f.CustomComponent||w,b=m(i,s),x=b.Element,C=b.wrapperTemplate,S=y(i,p,o,u,f,null),k=r({},e.props,{tree:h.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:i});return t.push(l.createElement(x,S,l.createElement(g,k))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,d)||function(e,t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var c,u=n.reverse()[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var d=c.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),p=f[0].key;n.push(l.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},f))}(C,x,t),t}),[]));var D=o.getKey(),j=a.encode(D,0,0),P=v(o,c),T=P.CustomComponent,M=null!=T?l.createElement(T,n({},this.props,{tree:h.getBlockTree(D),blockProps:P.customProps,offsetKey:j,block:o})):l.createElement(i,{block:o,children:O,contentState:d,customStyleFn:b,customStyleMap:x,decorator:f,direction:C,forceSelection:S,hasSelection:g(k,D),selection:k,tree:E});if(o.getParentKey())return M;var A=m(o,s).Element,_=y(o,p,j,u,P,this.wrapperRef);return l.createElement(A,_,M)},w}(l.Component);return Fre=b}var Wre=oU;function Zre(){return Zre=Wre||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zre.apply(this,arguments)}var qre,Gre,Yre,Xre,Jre=gre,Qre=_te,eoe=t,toe=yre,noe=Pre,roe=E8,ooe=h8,ioe=Pee,aoe=Are,loe=Ire,soe=Hre,coe=F4,uoe=Ite,doe=A8,foe=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},poe=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||foe(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=noe.getScrollParent(n),i=loe(o);if(o===window){var a=aoe(n);(r=a.y+a.height-soe().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{uoe(n)||("production"!==process.env.NODE_ENV?coe(!1,"blockNode is not an HTMLElement"):coe(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&toe.setTop(o,toe.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=foe(this.props.selection,n);return this.props.tree.map((function(a,l){var s=a.get("leaves");if(0===s.size)return null;var c=s.size-1,u=s.map((function(a,s){var u=Qre.encode(n,l,s),d=a.get("start"),f=a.get("end");return eoe.createElement(Jre,{key:u,offsetKey:u,block:t,start:d,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(d,f),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:l===o&&s===c})})).toArray(),d=a.get("decoratorKey");if(null==d)return u;if(!e.props.decorator)return u;var f=doe(e.props.decorator),p=f.getComponentForKey(d);if(!p)return u;var h=f.getPropsForKey(d),g=Qre.encode(n,l,0),m=s.first().get("start"),v=s.last().get("end"),y=r.slice(m,v),b=t.getEntityAt(a.get("start")),w=ooe.getHTMLDirIfDifferent(roe.getDirection(y),e.props.direction),x={contentState:e.props.contentState,decoratedText:y,dir:w,start:m,end:v,blockKey:n,entityKey:b,offsetKey:g};return eoe.createElement(p,Zre({},h,x,{key:g}),u)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=ioe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return eoe.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(eoe.Component),hoe=poe;var goe=I7("draft_tree_data_support")?function(){if(Vre)return Kre;Vre=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=Ure(),o=_te,i=t,a=A8,l=function(e){var t,l;function s(){return e.apply(this,arguments)||this}l=e,(t=s).prototype=Object.create(l.prototype),t.prototype.constructor=t,t.__proto__=l;var c=s.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,t=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,c=e.customStyleMap,u=e.customStyleFn,d=e.editorState,f=e.editorKey,p=e.textDirectionality,h=d.getCurrentContent(),g=d.getSelection(),m=d.mustForceSelection(),v=d.getDecorator(),y=a(d.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:l,blockStyleFn:s,contentState:h,customStyleFn:u,customStyleMap:c,decorator:v,editorKey:f,editorState:d,forceSelection:m,selection:g,block:w,direction:p||y.get(x),tree:d.getBlockTree(x)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:S,key:x,offsetKey:o.encode(x,0,0)});var k=w.getNextSiblingKey();w=k?h.getBlockForKey(k):null}for(var E=[],O=0;O<b.length;){var D=b[O];if(D.wrapperTemplate){var j=[];do{j.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===D.wrapperTemplate);var P=i.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},j);E.push(P)}else E.push(D.block),O++}return i.createElement("div",{"data-contents":"true"},E)},s}(i.Component);return Kre=l}():function(){if(Xre)return Yre;Xre=1;var e=oU;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=hoe,a=_te,l=t,s=Pee,c=(Gre||(Gre=1,qre=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),qre),u=A8,d=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(e){var t,o;function s(){return e.apply(this,arguments)||this}o=e,(t=s).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var f=s.prototype;return f.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},f.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,s=e.blockStyleFn,f=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,m=e.preventScroll,v=e.textDirectionality,y=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),C=u(h.getDirectionMap()),S=y.getBlocksAsArray(),k=[],E=null,O=null,D=0;D<S.length;D++){var j=S[D],P=j.getKey(),T=j.getType(),M=o(j),A=void 0,_=void 0,R=void 0;M&&(A=M.component,_=M.props,R=M.editable);var L=v||C.get(P),I=a.encode(P,0,0),N={contentState:y,block:j,blockProps:_,blockStyleFn:s,customStyleMap:f,customStyleFn:p,decorator:x,direction:L,forceSelection:w,offsetKey:I,preventScroll:m,selection:b,tree:h.getBlockTree(P)},$=t.get(T)||t.get("unstyled"),z=$.wrapper,F=$.element||t.get("unstyled").element,B=j.getDepth(),K="";if(s&&(K=s(j)),"li"===F)K=c(K,d(T,B,O!==z||null===E||B>E,L));var V=A||i,H={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:P};void 0!==R&&(H=r({},H,{contentEditable:R,suppressContentEditableWarning:!0}));var U=l.createElement(F,H,l.createElement(V,n({},N,{key:P})));k.push({block:U,wrapperTemplate:z,key:P,offsetKey:I}),E=z?j.getDepth():null,O=z}for(var W=[],Z=0;Z<k.length;){var q=k[Z];if(q.wrapperTemplate){var G=[];do{G.push(k[Z].block),Z++}while(Z<k.length&&k[Z].wrapperTemplate===q.wrapperTemplate);var Y=l.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);W.push(Y)}else W.push(q.block),Z++}return l.createElement("div",{"data-contents":"true"},W)},s}(l.Component);return Yre=f}(),moe={isImage:function(e){return"image"===voe(e)[0]},isJpeg:function(e){var t=voe(e);return moe.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function voe(e){return e.split("/")}var yoe=moe,boe=F4;var woe=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?boe(!1,"toArray: Array-like object expected"):boe(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?boe(!1,"toArray: Object needs a length property"):boe(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?boe(!1,"toArray: Object should have keys for indices"):boe(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?boe(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):boe(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function xoe(e){return function(){return e}}var Coe=function(){};Coe.thatReturns=xoe,Coe.thatReturnsFalse=xoe(!1),Coe.thatReturnsTrue=xoe(!0),Coe.thatReturnsNull=xoe(null),Coe.thatReturnsThis=function(){return this},Coe.thatReturnsArgument=function(e){return e};var Soe=Coe,koe=yoe,Eoe=woe,Ooe=Soe,Doe=new RegExp("\r\n","g"),joe={"text/rtf":1,"text/html":1};function Poe(e){if("file"==e.kind)return e.getAsFile()}var Toe=function(){function e(e){this.data=e,this.types=e.types?Eoe(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return joe[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(Doe,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!koe.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(Poe).filter(Ooe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),Moe=Toe,Aoe=F4,_oe=/\.textClipping$/,Roe={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Loe=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!Bi.FileReader||e.type&&!(e.type in Roe))return void t("");if(""===e.type){var n="";return _oe.test(e.name)&&(n=e.name.replace(_oe,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?Aoe(!1,'We should be calling "FileReader.readAsText" which returns a string'):Aoe(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Ioe=function(e){return"handled"===e||!0===e},Noe=Moe,$oe=a7,zoe=eee,Foe=wte,Boe=hte,Koe=Loe,Voe=Kte,Hoe=xte,Uoe=Ioe,Woe=A8;var Zoe={onDragEnd:function(e){e.exitCurrentMode(),qoe(e)},onDrop:function(e,t){var n=new Noe(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=Boe(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=Woe(n),r=Woe(r);var a=Woe(Foe(n));return Voe(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&Uoe(e.props.handleDroppedFiles(o,i)))return;Koe(i,(function(t){t&&e.update(Goe(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&Uoe(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=$oe.moveText(e.getCurrentContent(),e.getSelection(),t);return zoe.push(e,n,"insert-fragment")}(r,o)):e.update(Goe(r,o,n.getText()))),qoe(e)}}}};function qoe(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:Hoe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Goe(e,t,n){var r=$oe.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return zoe.push(e,r,"insert-fragment")}var Yoe=Zoe;var Xoe=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,l=1,s={},c=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[l]=o,n(l),l++},d.clearImmediate=f}function f(e){delete s[e]}function p(e){if(c)setTimeout(p,0,e);else{var n=s[e];if(n){c=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),c=!1}}}}}("undefined"==typeof self?Bi:self);var Joe=Bi.setImmediate,Qoe=a7,eie=eee,tie=sne,nie=Ioe,rie=Xoe,oie=A8,iie=Joe,aie="'",lie="/",sie=pte.isBrowser("Firefox");function cie(e,t,n,r,o){var i=Qoe.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return eie.push(e,i,"insert-characters",o)}var uie=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&nie(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(cie(n,r,n.getCurrentInlineStyle(),tie(n.getCurrentContent(),n.getSelection()),!0));var l,s=cie(n,r,n.getCurrentInlineStyle(),tie(n.getCurrentContent(),n.getSelection()),!1),c=!1;if(c||(c=rie(e._latestCommittedEditorState)),!c){var u=n.getBlockTree(a),d=s.getBlockTree(a);c=u.size!==d.size||u.zip(d).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),l=t.get("end"),s=l+(l>=i?r.length:0),c=n.get("start"),u=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||a!==c||s!==u||null!=d&&u-c!=l-o}))}if(c||(l=r,c=sie&&(l==aie||l==lie)),c||(c=oie(s.getDirectionMap()).get(a)!==oie(n.getDirectionMap()).get(a)),c)return t.preventDefault(),s=eie.set(s,{forceSelection:!0}),void e.update(s);s=eie.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,iie((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},die=eee,fie=Vne,pie=Hne;var hie=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&pie(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&fie(o,r.anchorNode)&&fie(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var l=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(die.acceptSelection(i,l))}},gie=eee;var mie=function(e,t){e.setMode("composite"),e.update(gie.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},vie=s6;var yie=function(e){var t=e.getSelection();return t.isCollapsed()?null:vie(e.getCurrentContent(),t)},bie=yie;var wie=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(bie(e._latestEditorState))};var xie=a7,Cie=eee,Sie=Pre,kie=yie,Eie=Ire,Oie=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var Die=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Oie(i)){var a=i;n=Eie(Sie.getScrollParent(a))}var l=kie(r);e.setClipboard(l),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=xie.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Cie.push(e,t,"remove-range")}(r))}),0)}};var jie=function(e,t){e.setMode("drag"),t.preventDefault()};var Pie=function(e){e._internalDrag=!0,e.setMode("drag")},Tie=eee,Mie=pte;var Aie=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),Mie.isBrowser("Chrome < 60.0.3081.0")?e.update(Tie.forceSelection(n,o)):e.update(Tie.acceptSelection(n,o))}},_ie=F4,Rie=55296,Lie=57343,Iie=/[\uD800-\uDFFF]/;function Nie(e){return Rie<=e&&e<=Lie}function $ie(e){return Iie.test(e)}function zie(e,t){return 1+Nie(e.charCodeAt(t))}function Fie(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!$ie(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=zie(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=zie(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=zie(e,i);return e.substring(o,i)}var Bie={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=zie(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:zie,hasSurrogateUnit:$ie,isCodeUnitInSurrogateRange:Nie,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?_ie(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):_ie(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return Rie<=n&&n<=56319&&56320<=r&&r<=Lie},strlen:function(e){if(!$ie(e))return e.length;for(var t=0,n=0;n<e.length;n+=zie(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return Fie(e,t=t<n?t:n,r)},substr:Fie},Kie=Bie,Vie=Soe;function Hie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var Uie="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];Hie.apply(void 0,[t].concat(r))}}:Vie,Wie=Uie,Zie=Wie;var qie=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Zie(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,l=0;if(t>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,l=r.getBlockForKey(s).getText().length}else l=i-t;return n.merge({focusKey:a,focusOffset:l,isBackward:!0})},Gie=a7,Yie=I7("draft_tree_data_support");var Xie=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),l=r.getFocusKey(),s=o.getBlockForKey(a);if(Yie&&"forward"===n&&a!==l)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(Yie)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var c=o.getBlockForKey(s.nextSibling);if(!c||0===c.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return Gie.removeRange(o,i,n)},Jie=eee,Qie=Kie,eae=qie,tae=Xie;var nae=function(e){var t=tae(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return eae(e,i?Qie.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Jie.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},rae=a7,oae=_te,iae=eee,aae=ine.notEmptyKey,lae=wte,sae=nae,cae=A8,uae=pte.isEngine("Gecko");var dae=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var l=a.firstChild;null!=l;l=l.nextSibling)l!==r&&a.removeChild(l)}var s=r.textContent,c=e._latestEditorState,u=cae(lae(r)),d=oae.decode(u),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=c.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,y=c.getCurrentContent(),b=y.getBlockForKey(f),w=b.getText().slice(m,v);if(s.endsWith("\n\n")&&(s=s.slice(0,-1)),s!==w){var x,C,S,k,E=c.getSelection(),O=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),D=b.getEntityAt(m),j=aae(D)?y.getEntity(D):null,P="MUTABLE"===(null!=j?j.getMutability():null),T=P?"spellcheck-change":"apply-entity",M=rae.replaceText(y,O,s,b.getInlineStyleAt(m),P?b.getEntityAt(m):null);if(uae)x=n.anchorOffset,C=n.focusOffset,k=(S=m+Math.min(x,C))+Math.abs(x-C),x=S,C=k;else{var A=s.length-w.length;S=E.getStartOffset(),k=E.getEndOffset(),x=o?k+A:S,C=k+A}var _=M.merge({selectionBefore:y.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:x,focusOffset:C})});e.update(iae.push(c,_,T))}else{var R=t.nativeEvent.inputType;if(R){var L=function(e,t){return"deleteContentBackward"===e?sae(t):t}(R,c);if(L!==c)return e.restoreEditorDOM(),void e.update(L)}}}},fae=Rte;var pae=function(e){return e.which===fae.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},hae=pae,gae=pte.isPlatform("Mac OS X"),mae={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return gae&&e.altKey},usesMacOSHeuristics:function(){return gae},hasCommandModifier:function(e){return gae?!!e.metaKey&&!e.altKey:mae.isCtrlKeyCommand(e)},isSoftNewlineEvent:hae},vae=mae,yae=a7,bae=eee,wae=s6,xae=A8,Cae=null,Sae={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=xae(r),Cae=wae(t,r);var l=yae.removeRange(t,r,"forward");return l===t?e:bae.push(e,l,"remove-range")},paste:function(e){if(!Cae)return e;var t=yae.replaceWithFragment(e.getCurrentContent(),e.getSelection(),Cae);return bae.push(e,t,"insert-fragment")}},kae=F4;var Eae=pte.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?kae(!1,"Found an unexpected detached subtree when getting range client rects."):kae(!1)}:function(e){return Array.from(e.getClientRects())},Oae=Eae,Dae=Kie,jae=hte,Pae=Oae,Tae=F4;function Mae(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),o=Math.max(o,l.top),i=Math.max(i,l.bottom))}return o<=r&&o-n<t&&i-r<t}function Aae(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var _ae=function(e){e.collapsed||("production"!==process.env.NODE_ENV?Tae(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):Tae(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=jae(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?Tae(!1,"Missing document.body"):Tae(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);Mae(Pae(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?Tae(!1,"Found unexpected detached subtree when traversing."):Tae(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var l=i.nodeValue,s=a;s>=0;s--)if(!(null!=l&&s>0&&Dae.isSurrogatePair(l,s-1))){if(e.setStart(i,s),!Mae(Pae(e),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=Aae(i=i.childNodes[s])}return e.setStart(r,o),e},Rae=eee,Lae=_ae,Iae=Xte,Nae=qie,$ae=Xie;var zae=function(e,t){var n=$ae(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return Nae(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Lae(r),Iae(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:Rae.push(e,n,"remove-range")},Fae="['‘’]",Bae="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),Kae=new RegExp("^(?:"+Bae+")*(?:"+Fae+"|(?!"+Bae+").)*(?:(?!"+Bae+").)"),Vae=new RegExp("(?:(?!"+Bae+").)(?:"+Fae+"|(?!"+Bae+").)*(?:"+Bae+")*$");function Hae(e,t){var n=t?Vae.exec(e):Kae.exec(e);return n?n[0]:e}var Uae={getBackward:function(e){return Hae(e,!0)},getForward:function(e){return Hae(e,!1)}},Wae=Uae,Zae=eee,qae=qie,Gae=Xie;var Yae=function(e){var t=Gae(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return qae(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=Wae.getBackward(o);return qae(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:Zae.push(e,t,"remove-range")},Xae=Wie;var Jae=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Xae(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),l=o;return t>a.getBlockForKey(o).getText().length-i?(l=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:l,focusOffset:r})},Qae=Uae,ele=eee,tle=Jae,nle=Xie;var rle=function(e){var t=nle(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=Qae.getForward(o);return tle(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:ele.push(e,t,"remove-range")},ole=a7,ile=eee;var ale=eee;var lle=eee;var sle=eee,cle=Kie,ule=Jae,dle=Xie;var fle=function(e){var t=dle(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return ule(e,i?cle.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return sle.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},ple=a7,hle=eee,gle=s6;var mle=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),l=a.getBlockForKey(i).getLength();if(l<=1)return e;n===l?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var s=gle(a,r),c=ple.removeRange(a,r,"backward"),u=c.getSelectionAfter(),d=u.getAnchorOffset()-1,f=u.merge({anchorOffset:d,focusOffset:d}),p=ple.replaceWithFragment(c,f,s),h=hle.push(e,p,"insert-fragment");return hle.acceptSelection(h,o)},vle=eee;var yle=function(e,t,n){var r=vle.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(vle.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(vle.set(r,{nativelyRenderedContent:o}))}},ble=a7,wle=eee,xle=Rte,Cle=Sae,Sle=pte,kle=Ioe,Ele=zae,Ole=Yae,Dle=rle,jle=function(e){var t=ole.splitBlock(e.getCurrentContent(),e.getSelection());return ile.push(e,t,"split-block")},Ple=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return ale.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},Tle=function(e){var t=e.getSelection(),n=t.getStartKey();return lle.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},Mle=nae,Ale=fle,_le=mle,Rle=yle,Lle=vae.isOptionKeyCommand,Ile=Sle.isBrowser("Chrome");var Nle=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case xle.RETURN:if(t.preventDefault(),e.props.handleReturn&&kle(e.props.handleReturn(t,r)))return;break;case xle.ESC:if(t.preventDefault(),o("onEscape"))return;break;case xle.TAB:if(o("onTab"))return;break;case xle.UP:if(o("onUpArrow"))return;break;case xle.RIGHT:if(o("onRightArrow"))return;break;case xle.DOWN:if(o("onDownArrow"))return;break;case xle.LEFT:if(o("onLeftArrow"))return;break;case xle.SPACE:Ile&&Lle(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!kle(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return wle.redo(t);case"delete":return Ale(t);case"delete-word":return Dle(t);case"backspace":return Mle(t);case"backspace-word":return Ole(t);case"backspace-to-start-of-line":return Ele(t,n);case"split-block":return jle(t);case"transpose-characters":return _le(t);case"move-selection-to-start-of-block":return Tle(t);case"move-selection-to-end-of-block":return Ple(t);case"secondary-cut":return Cle.cut(t);case"secondary-paste":return Cle.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else Rle(t,r,e.update);else if(n===xle.SPACE&&Ile&&Lle(t)){var l=ble.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(wle.push(r,l,"insert-characters"))}};var $le=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),zle=$le,Fle=F4,Ble=pte.isBrowser("IE <= 9");var Kle=function(e){var t,n=null;return!Ble&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?Fle(!1,"Missing doc.documentElement"):Fle(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},Vle=gte;var Hle=function(e){return!(!e||!e.ownerDocument)&&(Vle(e)&&"A"===e.nodeName)},Ule=gte;var Wle,Zle=function(e){return!(!e||!e.ownerDocument)&&(Ule(e)&&"IMG"===e.nodeName)};function qle(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gle(e,t,n[t])}))}return e}function Gle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yle=e4,Xle=g4,Jle=P4,Qle=Aee,ese=_7,tse=zle,nse=Pee,rse=Y4,ose=Kle,ise=I7,ase=K3,lse=ase.List,sse=ase.Map,cse=ase.OrderedSet,use=Hle,dse=Nne,fse=Ite,pse=Zle,hse=ise("draft_tree_data_support"),gse=new RegExp("\r","g"),mse=new RegExp("\n","g"),vse=new RegExp("^\n","g"),yse=new RegExp("&nbsp;","g"),bse=new RegExp("&#13;?","g"),wse=new RegExp("&#8203;?","g"),xse=["bold","bolder","500","600","700","800","900"],Cse=["light","lighter","normal","100","200","300","400"],Sse=["className","href","rel","target","title"],kse=["alt","className","height","src","width"],Ese=(Gle(Wle={},nse("public/DraftStyleDefault/depth0"),0),Gle(Wle,nse("public/DraftStyleDefault/depth1"),1),Gle(Wle,nse("public/DraftStyleDefault/depth2"),2),Gle(Wle,nse("public/DraftStyleDefault/depth3"),3),Gle(Wle,nse("public/DraftStyleDefault/depth4"),4),Wle),Ose=sse({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Dse=function(e){if(fse(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},jse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(Ese).some((function(n){e.classList.contains(n)&&(t=Ese[n])})),t},Pse=function(e){if(!use(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new tse(t.href);return!0}catch(e){return!1}},Tse=function(e){if(!pse(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Mse=function(e,t){if(!fse(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){xse.indexOf(r)>=0?e.add("BOLD"):Cse.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},Ase=function(e){return"ul"===e||"ol"===e},_se=function(){function e(e,t){Gle(this,"characterList",lse()),Gle(this,"currentBlockType","unstyled"),Gle(this,"currentDepth",0),Gle(this,"currentEntity",null),Gle(this,"currentText",""),Gle(this,"wrapper",null),Gle(this,"blockConfigs",[]),Gle(this,"contentBlocks",[]),Gle(this,"entityMap",ese),Gle(this,"blockTypeMap",void 0),Gle(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=lse(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=ese,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],cse())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(hse?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=qle({key:e.key||rse(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:lse(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=lse(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||Ase(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;Ase(i)&&(this.wrapper=i,Ase(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=l}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(Tse(o))this._addImgNode(o,t);else if(Pse(o))this._addAnchorNode(o,n,t);else{var c=t;Ose.has(i)&&(c=c.add(Ose.get(i))),c=Mse(o,c);var u=Dse(o);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var d=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!hse&&fse(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=o;this.currentDepth=jse(p,this.currentDepth)}var h=rse(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:s})),this.currentDepth=d,this.wrapper=f}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=Yle.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=lse()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(vse,"")).replace(mse," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){dse(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(pse(e)){var n=e,r={};kse.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),ise("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(use(e)){var r=e,o={};Sse.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new tse(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=lse(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new Jle(qle({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return lse(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new Xle(qle({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=lse(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),Rse=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qle,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ose)(e=e.trim().replace(gse,"").replace(yse," ").replace(bse,"").replace(wse,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),sse(t)}(t);return new _se(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function Lse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ise=g4,Nse=P4,$se=Rse,zse=Y4,Fse=Kle,Bse=I7,Kse=K3,Vse=$7,Hse=Kse.List,Use=Kse.Repeat,Wse=Bse("draft_tree_data_support"),Zse=Wse?Nse:Ise,qse={processHTML:function(e,t){return $se(e,Fse,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=Vse(r);var i=zse(),a={key:i,type:n,text:r,characterList:Hse(Use(t,r.length))};if(Wse&&0!==o){var l=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Lse(e,t,n[t])}))}return e}({},a,{prevSibling:(e[l]=e[l].merge({nextSibling:i})).getKey()})}return e.push(new Zse(a)),e}),[])}};var Gse=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},Yse=a7,Xse=eee,Jse=Gse,Qse=A8,ece={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return ece.toggleInlineStyle(e,"BOLD");case"italic":return ece.toggleInlineStyle(e,"ITALIC");case"underline":return ece.toggleInlineStyle(e,"UNDERLINE");case"code":return ece.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return ece.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return ece.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=Yse.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Xse.push(e,t,"insert-characters");return Xse.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return Xse.push(e,a,"remove-range")}var l=ece.tryToRemoveBlockStyle(e);return l?Xse.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),l=Yse.removeRange(n,a,"forward");return l!==n?Xse.push(e,l,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),l=a.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;e.preventDefault();var s=a.getDepth();if(!e.shiftKey&&s===n)return t;var c=Jse(i,r,e.shiftKey?-1:1,n);return Xse.push(t,c,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var l=Qse(i.getBlockBefore(o));o=l.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:l.getLength(),isBackward:!1})}var s=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(s)return e;var c=i.getBlockForKey(r).getType()===t?"unstyled":t;return Xse.push(e,Yse.setBlockType(i,a,c),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?ece.toggleBlockType(e,"code-block"):ece.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Xse.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?Yse.removeInlineStyle(i,n,t):Yse.applyInlineStyle(i,n,t),Xse.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=Yse.applyEntity(e.getCurrentContent(),t,n);return Xse.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return Yse.setBlockType(o,t,"unstyled")}return null}},tce=ece,nce=/\r\n?|\n/g;var rce=H3,oce=e4,ice=Moe,ace=a7,lce=qse,sce=eee,cce=tce,uce=sne,dce=Loe,fce=Ioe,pce=function(e){return e.split(nce)};function hce(e,t,n){var r=ace.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return sce.push(e,r.set("entityMap",n),"insert-fragment")}var gce=function(e,t){t.preventDefault();var n=new ice(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&fce(e.props.handlePastedFiles(r)))return;return void dce(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=pce(t),i=oce.create({style:n.getCurrentInlineStyle(),entity:uce(n.getCurrentContent(),n.getSelection())}),a=cce.getCurrentBlockType(n),l=lce.processText(r,i,a),s=rce.createFromArray(l),c=ace.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);e.update(sce.push(n,c,"insert-fragment"))}}))}}var i=[],a=n.getText(),l=n.getHTML(),s=e._latestEditorState;if(e.props.formatPastedText){var c=e.props.formatPastedText(a,l);a=c.text,l=c.html}if(!e.props.handlePastedText||!fce(e.props.handlePastedText(a,l,s))){if(a&&(i=pce(a)),!e.props.stripPastedStyles){var u,d=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&d){if(-1!==(null===(u=l)||void 0===u?void 0:u.indexOf(e.getEditorKey()))||1===i.length&&1===d.size&&d.first().getText()===a)return void e.update(hce(e._latestEditorState,d))}else if(d&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,d))return void e.update(hce(e._latestEditorState,d));if(l){var f=lce.processHTML(l,e.props.blockRenderMap);if(f){var p=f.contentBlocks,h=f.entityMap;if(p){var g=rce.createFromArray(p);return void e.update(hce(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var m=oce.create({style:s.getCurrentInlineStyle(),entity:uce(s.getCurrentContent(),s.getSelection())}),v=cce.getCurrentBlockType(s),y=lce.processText(i,m,v),b=rce.createFromArray(y);e.update(hce(e._latestEditorState,b))}}},mce=pte,vce=uie,yce=hie,bce=mie,wce=wie,xce=Die,Cce=jie,Sce=Pie,kce=Aie,Ece=dae,Oce=Nle,Dce=gce,jce=one,Pce=mce.isBrowser("Chrome"),Tce=mce.isBrowser("Firefox"),Mce=Pce||Tce?jce:function(e){},Ace={onBeforeInput:vce,onBlur:yce,onCompositionStart:bce,onCopy:wce,onCut:xce,onDragOver:Cce,onDragStart:Sce,onFocus:kce,onInput:Ece,onKeyDown:Oce,onPaste:Dce,onSelect:jce,onMouseUp:Mce,onKeyUp:Mce},_ce=r.unstable_flushControlled;var Rce=t,Lce=Pee,Ice=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=Lce({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return Rce.createElement("div",{className:t},Rce.createElement("div",{className:Lce("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(Rce.Component),Nce=Ice,$ce=vae,zce=Rte,Fce=pte,Bce=Fce.isPlatform("Mac OS X"),Kce=Bce&&Fce.isBrowser("Firefox < 29"),Vce=$ce.hasCommandModifier,Hce=$ce.isCtrlKeyCommand;function Uce(e){return Bce&&e.altKey||Hce(e)}var Wce=function(e){switch(e.keyCode){case 66:return Vce(e)?"bold":null;case 68:return Hce(e)?"delete":null;case 72:return Hce(e)?"backspace":null;case 73:return Vce(e)?"italic":null;case 74:return Vce(e)?"code":null;case 75:return Bce&&Hce(e)?"secondary-cut":null;case 77:case 79:return Hce(e)?"split-block":null;case 84:return Bce&&Hce(e)?"transpose-characters":null;case 85:return Vce(e)?"underline":null;case 87:return Bce&&Hce(e)?"backspace-word":null;case 89:return Hce(e)?Bce?"secondary-paste":"redo":null;case 90:return function(e){return Vce(e)?e.shiftKey?"redo":"undo":null}(e)||null;case zce.RETURN:return"split-block";case zce.DELETE:return function(e){return!Bce&&e.shiftKey?null:Uce(e)?"delete-word":"delete"}(e);case zce.BACKSPACE:return function(e){return Vce(e)&&Bce?"backspace-to-start-of-line":Uce(e)?"backspace-word":"backspace"}(e);case zce.LEFT:return Kce&&Vce(e)?"move-selection-to-start-of-block":null;case zce.RIGHT:return Kce&&Vce(e)?"move-selection-to-end-of-block":null;default:return null}},Zce=oU;function qce(){return qce=Zce||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qce.apply(this,arguments)}function Gce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xce(e,t,n[t])}))}return e}function Yce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jce(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Qce=Aee,eue=_ee,tue=One,nue=goe,rue=Yoe,oue=Ace,iue=_ce,aue=Nce,lue=$ne,sue=eee,cue=t,uue=yre,due=Pre,fue=Pee,pue=Y4,hue=Wce,gue=Ire,mue=I7,vue=F4,yue=Ite,bue=A8,wue=pte.isBrowser("IE"),xue=!wue,Cue={edit:oue,composite:tue,drag:rue,cut:null,render:null},Sue=!1,kue=function(e){function t(){return e.apply(this,arguments)||this}Jce(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(cue.Component),Eue=function(e){function t(t){var n;return Xce(Yce(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Xce(Yce(n),"_clipboard",void 0),Xce(Yce(n),"_handler",void 0),Xce(Yce(n),"_dragCount",void 0),Xce(Yce(n),"_internalDrag",void 0),Xce(Yce(n),"_editorKey",void 0),Xce(Yce(n),"_placeholderAccessibilityID",void 0),Xce(Yce(n),"_latestEditorState",void 0),Xce(Yce(n),"_latestCommittedEditorState",void 0),Xce(Yce(n),"_pendingStateFromBeforeInput",void 0),Xce(Yce(n),"_onBeforeInput",void 0),Xce(Yce(n),"_onBlur",void 0),Xce(Yce(n),"_onCharacterData",void 0),Xce(Yce(n),"_onCompositionEnd",void 0),Xce(Yce(n),"_onCompositionStart",void 0),Xce(Yce(n),"_onCopy",void 0),Xce(Yce(n),"_onCut",void 0),Xce(Yce(n),"_onDragEnd",void 0),Xce(Yce(n),"_onDragOver",void 0),Xce(Yce(n),"_onDragStart",void 0),Xce(Yce(n),"_onDrop",void 0),Xce(Yce(n),"_onInput",void 0),Xce(Yce(n),"_onFocus",void 0),Xce(Yce(n),"_onKeyDown",void 0),Xce(Yce(n),"_onKeyPress",void 0),Xce(Yce(n),"_onKeyUp",void 0),Xce(Yce(n),"_onMouseDown",void 0),Xce(Yce(n),"_onMouseUp",void 0),Xce(Yce(n),"_onPaste",void 0),Xce(Yce(n),"_onSelect",void 0),Xce(Yce(n),"editor",void 0),Xce(Yce(n),"editorContainer",void 0),Xce(Yce(n),"focus",void 0),Xce(Yce(n),"blur",void 0),Xce(Yce(n),"setMode",void 0),Xce(Yce(n),"exitCurrentMode",void 0),Xce(Yce(n),"restoreEditorDOM",void 0),Xce(Yce(n),"setClipboard",void 0),Xce(Yce(n),"getClipboard",void 0),Xce(Yce(n),"getEditorKey",void 0),Xce(Yce(n),"update",void 0),Xce(Yce(n),"onDragEnter",void 0),Xce(Yce(n),"onDragLeave",void 0),Xce(Yce(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Xce(Yce(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=due.getScrollParent(o),a=e||gue(i),l=a.x,s=a.y;yue(o)||("production"!==process.env.NODE_ENV?vue(!1,"editorNode is not an HTMLElement"):vue(!1)),o.focus(),i===window?window.scrollTo(l,s):uue.setTop(i,s),r||n.update(sue.forceSelection(t,t.getSelection()))}})),Xce(Yce(n),"blur",(function(){var e=n.editor;e&&(yue(e)||("production"!==process.env.NODE_ENV?vue(!1,"editorNode is not an HTMLElement"):vue(!1)),e.blur())})),Xce(Yce(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Gce({},Cue.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var l=Gce({},Cue,{edit:a});n._handler=l[e]})),Xce(Yce(n),"exitCurrentMode",(function(){n.setMode("edit")})),Xce(Yce(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Xce(Yce(n),"setClipboard",(function(e){n._clipboard=e})),Xce(Yce(n),"getClipboard",(function(){return n._clipboard})),Xce(Yce(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Xce(Yce(n),"onDragEnter",(function(){n._dragCount++})),Xce(Yce(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||pue(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}Jce(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(iue?iue((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:bue(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return cue.createElement(aue,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,l=e.preventScroll,s=e.readOnly,c=e.textAlignment,u=e.textDirectionality,d=fue({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===c,"DraftEditor/alignRight":"right"===c,"DraftEditor/alignCenter":"center"===c}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Gce({},eue,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:l,textDirectionality:u};return cue.createElement("div",{className:d},this._renderPlaceholder(),cue.createElement("div",{className:fue("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},cue.createElement("div",{"aria-activedescendant":s?null:this.props.ariaActiveDescendantID,"aria-autocomplete":s?null:this.props.ariaAutoComplete,"aria-controls":s?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":s?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":s?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:fue({notranslate:!s,"public/DraftEditor/content":!0}),contentEditable:!s,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:s?null:f,spellCheck:xue&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},cue.createElement(kue,{editor:this,editorState:a}),cue.createElement(nue,qce({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Sue&&mue("draft_ods_enabled")&&(Sue=!0,lue.initODS()),this.setMode("edit"),wue&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Bi.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(cue.Component);Xce(Eue,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:Qce,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:hue,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Oue=Eue,Due={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},jue=Due,Pue=Kie.strlen;var Tue=Kie,Mue=t4,Aue=function(e,t){return e===t},_ue=function(e){return!!e},Rue=[];var Lue=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return Mue(o,Aue,_ue,(function(t,o){var i=e.getText();r.push({offset:Tue.strlen(i.slice(0,t)),length:Tue.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(Rue,n.toJS())};function Iue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nue=g4,$ue=P4,zue=Due,Fue=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:Pue(i.slice(0,r)),length:Pue(i.slice(r,o)),key:Number(t[jue.stringify(a)])})})),n},Bue=Lue,Kue=F4,Vue=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:Bue(e),entityRanges:Fue(e,t),data:e.getData().toObject()}},Hue=function(e,t,n,r){if(e instanceof Nue)n.push(Vue(e,t));else{e instanceof $ue||("production"!==process.env.NODE_ENV?Kue(!1,"block is not a BlockNode"):Kue(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iue(e,t,n[t])}))}return e}({},Vue(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},Uue=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=zue.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),Hue(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(zue.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function Wue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zue(e,t,n[t])}))}return e}function Zue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var que=Y4,Gue=F4,Yue=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},Xue={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Gue(!1,"Invalid raw state"):Gue(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Gue(!1,"Invalid tree raw block"):Gue(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Wue({},e);Yue(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Wue({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Wue({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Yue(e),o=e.depth||0,i=Wue({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var l={key:que(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===o?t.push(l):null!=a&&a.children.push(l),l.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),Wue({},e,{blocks:t})}},Jue=Wie,Que={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Jue(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Jue(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&Jue(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),l=i.getNextSiblingKey();if(a.size>0){null!=l&&o.unshift(l);var s=a.map((function(t){return e.get(t)})),c=s.find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return"production"!==process.env.NODE_ENV&&Jue(!0,"%s has no first child",r),!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Jue(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},ede=Que,tde=e4,nde=K3.List;var rde=function(e,t){var n=e.map((function(e,n){var r=t[n];return tde.create({style:e,entity:r})}));return nde(n)},ode=Kie.substr;var ide=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=ode(e,0,t.offset).length,o=r+ode(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},ade=Kie,lde=K3.OrderedSet,sde=ade.substr,cde=lde();var ude=function(e,t){var n=Array(e.length).fill(cde);return t&&t.forEach((function(t){for(var r=sde(e,0,t.offset).length,o=r+sde(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function dde(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fde(e,t,n[t])}))}return e}function fde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pde=g4,hde=P4,gde=a8,mde=_7,vde=Xue,yde=ede,bde=L7,wde=rde,xde=ide,Cde=ude,Sde=Y4,kde=K3,Ede=F4,Ode=I7("draft_tree_data_support"),Dde=kde.List,jde=kde.Map,Pde=kde.OrderedMap,Tde=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||Sde(),data:jde(o),characterList:Mde(e,t)}},Mde=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return wde(Cde(n,o||[]),xde(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return dde({},e,{key:t[e.key]})}))))},Ade=function(e){return dde({},e,{key:e.key||Sde()})},_de=function(e,t,n){var r=t.map((function(e){return dde({},e,{parentRef:n})}));return e.concat(r.reverse())},Rde=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=Ode&&!n?vde.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!Ode)return function(e,t){return Pde(e.map((function(e){var n=new pde(Tde(e,t));return[n.getKey(),n]})))}(n?vde.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(Ade).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?Ede(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Ede(!1));var i=r.children.map(Ade),a=new hde(dde({},Tde(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:Dde(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var l=_de([],i,a);l.length>0;){var s=l.pop(),c=s.parentRef,u=c.getChildKeys(),d=u.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?Ede(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Ede(!1));break}var p=s.children.map(Ade),h=new hde(dde({},Tde(s,t),{parent:c.getKey(),children:Dde(p.map((function(e){return e.key}))),prevSibling:0===d?null:u.get(d-1),nextSibling:d===u.size-1?null:u.get(d+1)}));n=n.set(h.getKey(),h),l=_de(l,p,h)}return n}),Pde())}(r,t);return"production"!==process.env.NODE_ENV&&(yde.isValidTree(o)||("production"!==process.env.NODE_ENV?Ede(!1,"Should be a valid tree"):Ede(!1))),o},Lde=Oae;var Ide=function(e){var t=Lde(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var l=t[0];n=l.top,r=l.right,o=l.bottom,i=l.left}for(var s=1;s<t.length;s++){var c=t[s];0!==c.height&&0!==c.width&&(n=Math.min(n,c.top),r=Math.max(r,c.right),o=Math.max(o,c.bottom),i=Math.min(i,c.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},Nde=Ide;var $de=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=Nde(n),o=r.top,i=r.right,a=r.bottom,l=r.left;return 0===o&&0===i&&0===a&&0===l?null:r},zde={Editor:Oue,EditorBlock:hoe,EditorState:eee,CompositeDecorator:Dee,Entity:_7,EntityInstance:S7,BlockMapBuilder:H3,CharacterMetadata:e4,ContentBlock:g4,ContentState:a8,RawDraftContentState:{},SelectionState:L7,AtomicBlockUtils:kee,KeyBindingUtil:vae,Modifier:a7,RichUtils:tce,DefaultDraftBlockRenderMap:Aee,DefaultDraftInlineStyle:_ee,convertFromHTML:Rse,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?Ede(!1,"invalid RawDraftContentState"):Ede(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=mde.__create(o,i,a||{})})),n}(e),n=Rde(e,t),r=n.isEmpty()?new bde:bde.createEmpty(n.first().getKey());return new gde({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:Uue,genKey:Y4,getDefaultKeyBinding:Wce,getVisibleSelectionRect:$de};const Fde=(e,n,r=!0)=>{const[o,i]=t.useState(!1);return{focused:o,handleFocus:t=>{r&&i(!0),e&&e(t)},handleBlur:e=>{i(!1),n&&n(e)}}},Bde=e=>!!e||null!=e&&""!==e,Kde=N.div((({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,focused:a,invalid:l,disabled:s,hasLabel:c,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:c?48:40,height:c?48:40,padding:"5px 16px",boxSizing:"border-box",color:s?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,border:"none",borderColor:o,borderRadius:null!=r?r:4,cursor:u?"pointer":void 0,outline:"none","&:focus-visible":{outline:`${t} solid 1px`},"&:hover":{backgroundColor:s||i||n?void 0:e.background.hover,borderColor:a||s||l?void 0:e.borderColor.hover,Label:{color:a||s?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),er,nr,tr),Vde=N.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),Hde=N.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),Ude=N.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var Wde={Container:Kde,Wrapper:Vde,Label:Hde,Description:Ude,useInputFocus:Fde,isInputFilled:Bde};function Zde(e,t=1){return 0===(t=Math.max(Math.floor(t),0))?[]:function(e,t){if(!Number.isInteger(t)||t<=0)throw new Error("Size must be an integer greater than zero.");const n=Math.ceil(e.length/t),r=Array(n);for(let o=0;o<n;o++){const n=o*t,i=n+t;r[o]=e.slice(n,i)}return r}(e,t)}function qde(...e){return jn(e)}function Gde(e,...t){return qt(e,jn(t))}((e,t)=>{for(var n in t)ut(e,n,{get:t[n],enumerable:!0})})({},{AbortError:()=>lt,TimeoutError:()=>ct,camelCase:()=>bt,capitalize:()=>yt,chunk:()=>Zde,clamp:()=>Ft,clone:()=>Mt,compact:()=>Fn,concat:()=>qde,countBy:()=>Bn,debounce:()=>Wn,delay:()=>st,difference:()=>Gde,differenceBy:()=>Jt,differenceWith:()=>rn,drop:()=>Rn,dropRight:()=>Ln,dropRightWhile:()=>In,dropWhile:()=>Nn,endsWith:()=>afe,fill:()=>$n,first:()=>An,flatMap:()=>zn,flatten:()=>jn,flattenDeep:()=>Pn,flattenObject:()=>_t,forEachRight:()=>Tn,get:()=>rfe,groupBy:()=>Mn,head:()=>An,inRange:()=>Bt,initial:()=>_n,intersection:()=>Zt,intersectionBy:()=>Xt,intersectionWith:()=>nn,invert:()=>Lt,isEqual:()=>kt,isLength:()=>Et,isNil:()=>Ot,isNotNil:()=>Dt,isNull:()=>wt,isPlainObject:()=>ofe,isUndefined:()=>xt,kebabCase:()=>rt,keyBy:()=>Cn,last:()=>Sn,lowerCase:()=>ot,max:()=>lfe,maxBy:()=>kn,mean:()=>Kt,meanBy:()=>Vt,min:()=>sfe,minBy:()=>En,negate:()=>Kn,noop:()=>Vn,omit:()=>It,omitBy:()=>jt,once:()=>Hn,orderBy:()=>On,partition:()=>Dn,pick:()=>Pt,pickBy:()=>Tt,random:()=>pn,randomInt:()=>hn,range:()=>Ht,round:()=>Nt,sample:()=>fn,sampleSize:()=>gn,set:()=>Qde,shuffle:()=>mn,snakeCase:()=>it,startCase:()=>at,startsWith:()=>ife,sum:()=>$t,sumBy:()=>zt,tail:()=>vn,take:()=>yn,takeRight:()=>bn,takeRightWhile:()=>wn,takeWhile:()=>xn,throttle:()=>Un,toFilled:()=>cn,union:()=>St,unionBy:()=>Yt,unionWith:()=>tn,uniq:()=>Ct,uniqBy:()=>un,uniqWith:()=>en,unzip:()=>dn,unzipWith:()=>Ut,withTimeout:()=>vt,without:()=>Wt,xor:()=>Gt,xorBy:()=>Qt,xorWith:()=>on,zip:()=>an,zipObject:()=>ln,zipObjectDeep:()=>efe,zipWith:()=>sn});var Yde=/^(?:0|[1-9]\d*)$/;function Xde(e){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<Number.MAX_SAFE_INTEGER;case"symbol":return!1;case"string":return Yde.test(e)}}function Jde(e){const t=/\\(\\)?/g,n=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),r=[];let o;"."===e[0]&&r.push("");let i=0;for(;null!==(o=n.exec(e));){let[e,a,l,s]=o;l?e=s.replace(t,"$1"):a&&(e=a),r.push(e),n.lastIndex===i?n.lastIndex++:i=n.lastIndex}return r}function Qde(e,t,n){const r=Array.isArray(t)?t:"string"==typeof t?Jde(t):[t];let o=e;for(let e=0;e<r.length-1;e++){const t=r[e],n=r[e+1];null==o[t]&&(o[t]=Xde(n)?[]:{}),o=o[t]}return o[r[r.length-1]]=n,e}function efe(e,t){const n={},r=an(e,t);for(let e=0;e<r.length;e++){const[t,o]=r[e];null!=t&&Qde(n,t,o)}return n}var tfe=/^\w*$/,nfe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;function rfe(e,t,n){let r;if(r=Array.isArray(t)?t:"string"==typeof t&&function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return!tfe.test(e)&&nfe.test(e)}}(t)&&null==(null==e?void 0:e[t])?Jde(t):[t],0===r.length)return n;let o,i=e;for(o=0;o<r.length&&null!=i;o++){let e=r[o];Object.is(e.valueOf(),-0)&&(e="-0"),i=i[e]}return null===i&&o===r.length||null!=i?i:n}function ofe(e){var t;if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==e.toString()){const n=e[Symbol.toStringTag];if(null==n)return!1;return!!(null==(t=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))?void 0:t.writable)&&e.toString()===`[object ${n}]`}let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}var ife=(e,t,n=0)=>e.startsWith(t,n),afe=(e,t,n=e.length)=>e.endsWith(t,n);function lfe(e=[]){let t,n=e[0];for(const r of e)(null==t||r>t)&&(t=r,n=r);return n}function sfe(e=[]){let t,n=e[0];for(const r of e)(null==t||r<t)&&(t=r,n=r);return n}const cfe="FOUND_FIELD",ufe="NOT_FOUND",dfe="IMMUTABLE",ffe=N.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),pfe=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},hfe=new zde.CompositeDecorator([{strategy:(e,t,n)=>pfe(e,t,n,cfe),component:({children:t})=>e.jsx(ffe,{children:t})},{strategy:(e,t,n)=>pfe(e,t,n,ufe),component:({children:t})=>e.jsx(ffe,{error:!0,children:t})}]),gfe=(e,t,n)=>{const r=t.find((({id:t})=>t===e.id)),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,l="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,l=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?l:`{${l}}`,isValid:a}},mfe=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),l=(null==t?void 0:t.find((e=>e.id===i)))||{id:i,label:""},{label:s,isValid:c}=gfe(l,t||[],n);a=s,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:c?cfe:ufe,mutability:dfe,data:{id:i}}}o.text+=a}return zde.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return zde.EditorState.createWithContent(r,hfe)},vfe=(e,t=!0)=>{const n=e.getCurrentContent(),r=zde.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const l=rfe(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${l}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},yfe=e=>{const t=vfe(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},bfe=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new zde.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return zde.EditorState.forceSelection(e,o)},wfe=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:l,onBlur:c,mergeFields:u=[],placeholder:d="Text here...",description:f,invalid:p,width:h,height:g,maxHeight:m,noPadding:v=!1,readOnly:y=!1,displayMergedValues:b=!1,color:w,overflow:x,clampLines:C,label:S,disabled:k,borderRadius:E,backgroundColor:O,fontSize:D,textOnly:j,margin:P,marginLeft:T,marginRight:M,marginTop:A,marginBottom:_}=n,R=s(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[L,I]=t.useState((()=>mfe(o,u,b))),{focused:N,handleFocus:$,handleBlur:z}=Fde(l,c),[F,B]=t.useState(!1),K=t.useRef(null),V=t.useRef(),H=null!=m?m:g,U=e=>{I(e);const t=(e=>yfe(e).some((e=>e.type===ufe)))(e);B(t);const n=vfe(e),r=e.getLastChangeType();i&&i(n,t,r)},W=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:l,isValid:s}=gfe(e,t,r),c=s?cfe:ufe,u=i.createEntity(c,dfe,{id:o}).getLastCreatedEntityKey(),d=zde.Modifier.insertText(i,a,l,void 0,u),f=zde.EditorState.push(n,d,"insert-characters");return zde.EditorState.forceSelection(f,d.getSelectionAfter())})(e,u,L,b);U(t)},Z=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=bfe(L);I(e)};t.useImperativeHandle(r,(()=>({insertField:W,focusAtEnd:Z})));t.useEffect((()=>{vfe(L)!==o&&(e=>{const t=L.getSelection(),n=mfe(e,u,b),r=bfe(n),o=t.getHasFocus()?r:n;U(o)})(o)}),[o]),t.useEffect((()=>{V.current=u}),[]),t.useEffect((()=>{const{current:e}=V,t=kt(e,u),n=yfe(L);if(!t&&n.length>0){V.current=u;const e=mfe(o,u,b);U(e)}}),[u]);return e.jsxs(xfe,{onClick:e=>{y||e.stopPropagation();L.getSelection().getHasFocus()||Z()},width:h,height:g,editorMaxHeight:H,noPadding:v||j,readOnly:y,color:w,overflow:x,clampLines:C,filled:Bde(o),invalid:p||F,textOnly:j,borderRadius:E,backgroundColor:O,fontSize:D,margin:P,marginLeft:T,marginRight:M,marginTop:A,marginBottom:_,focused:N,disabled:k,hasLabel:!!S,hideEditor:!Bde(o)&&!!S&&!N,children:[e.jsxs(Vde,{readOnly:y,children:[S&&e.jsx(Hde,{filled:Bde(o),focused:N,disabled:k,children:S}),e.jsx(zde.Editor,Object.assign({ref:K,editorState:L,onChange:U,placeholder:d,readOnly:y,handleReturn:e=>{const t=zde.RichUtils.insertSoftNewline(L);return e.shiftKey||!a?U(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=zde.convertFromRaw({blocks:[o],entityMap:{}}),a=zde.EditorState.createWithContent(i,hfe).getCurrentContent().getBlockMap(),l=zde.Modifier.replaceWithFragment(n,r,a);return zde.EditorState.push(t,l,"insert-fragment")})(e,n);return U(r),"handled"},onFocus:$,onBlur:z},R))]}),f&&e.jsx(Ude,{invalid:p,children:f})]})})),xfe=N(Kde)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:l,noPadding:s,filled:c})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:l||e.font.size.lg,top:!c||n||s?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:l||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}}));var Cfe,Sfe={exports:{}},kfe={};var Efe,Ofe={};
31
31
  /**
32
32
  * @license React
33
33
  * react-is.development.js
@@ -42,5 +42,5 @@ prismjs/prism.js:
42
42
  (c) Sindre Sorhus
43
43
  @license MIT
44
44
  */
45
- var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(l[c]=n[c]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(l[a[u]]=n[a[u]])}}return l}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,l,s,c){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,u,typeof e[u]),d=e[u](n,u,s,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",l,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=c?c():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?l(e,t):function(e,t,n){return!(10===c(e).length&&!n||i(t))}(e,n,r)?s(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var l=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var l=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+l+i.substring(r)}var s=f(e,i,t,o);return{phoneNumber:d(i),cursorPosition:s}},s=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},c=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=c(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},f=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return d(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var l=/[^0-9]/g;if(a(n)&&l.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&l.test(e[n.start-1]))return n.start-1}var s=e.substring(n.end).match(/[0-9]/g),c=s?s.length:0,u=d(t),f=p(u,c);return u.length-f},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var Nfe=Ife.exports;const $fe=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:l,placeholderColor:c,description:u,isLoading:d,search:f,phone:p,textOnly:h,iconLeft:g,iconRight:m,invalid:v,borderRadius:y,borderColor:b,backgroundColor:w,fontSize:x,width:C,height:S,margin:k,marginLeft:E,marginRight:O,marginTop:D,marginBottom:j,padding:P,paddingLeft:T,paddingRight:M,paddingTop:A,paddingBottom:_,containerRef:R,value:L,disabled:I,readOnly:N,preventFocus:$,pointer:z,hideControls:F,onChange:B,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,W=s(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:Z,handleFocus:q,handleBlur:G}=Fde(H,U,!$&&!N),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:D,marginBottom:j,marginRight:O,marginLeft:E},ne={padding:P,paddingTop:A,paddingBottom:_,paddingRight:M,paddingLeft:T};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;L&&(e.innerHTML=L.toString().replace(/ /g,"&nbsp;"));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,L,l,ee]);const re=h?L||l:L,oe=(!!L||"number"==typeof L)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof L&&10===L.length&&L===Nfe.normalize(L)){const{current:n}=Y;if(n){const r=Nfe.format(L),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[L]);const ie=()=>{Z||q()},ae=()=>{Z&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:Z,select:le}))),t.useEffect((()=>{var e;Z&&(null===(e=Y.current)||void 0===e||e.focus())}),[Z]);return e.jsxs(Kde,Object.assign({ref:R,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:Z,disabled:I,hasLabel:!!a,onClick:e=>{$||N||ie(),K&&K(e)},pointer:z,readOnly:N},te,ne,{children:[f&&e.jsx(ir,{name:"search",marginRight:8,inheritColor:!0}),g&&R2(g,{marginRight:8}),e.jsxs(Vde,{readOnly:N||$,children:[h&&e.jsx(Bfe,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(Hde,{htmlFor:i||a,filled:Bde(L),focused:Z,disabled:I,children:a}),e.jsx(zfe,Object.assign({id:i||a,ref:Y,value:L,placeholder:l,placeholderColor:c,onChange:e=>{if(p){const{value:t}=e.target,n=Nfe.normalize(t);if(n.length>10)return;const r=Nfe.format(n);B&&B(e,r,n)}else B&&B(e)},onFocus:q,onBlur:G,disabled:I,hide:!(Bde(L)||!a||Z||h),width:J,fontSize:x,hideControls:F},W))]}),m&&R2(m),d&&e.jsx(cS,{}),oe&&e.jsx(Ffe,{onClick:V,children:e.jsx(ir,{name:"close-circle-outline",color:X.brand})}),u&&e.jsx(Ude,{invalid:v,children:u})]}))})),zfe=N.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),Ffe=N.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),Bfe=N.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Kfe=N("div",{shouldForwardProp:e=>$C(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Vfe=N("div",{shouldForwardProp:e=>$C(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),Hfe=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:c,offsetX:u,centerY:d,centerX:f,direction:p})=>{const[h,g]=t.useState(),m=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?u:c)||4))}}),[i,p]);const v=e.jsx(Ufe,{id:n,ref:i||m,offsetX:u,offsetY:c,width:l,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};Hfe.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:c,accented:u,section:d}=t,f=s(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(Vfe,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:l,color:c,accented:u,tabIndex:a?-1:0},f,{children:n}))};const Ufe=N(Kfe)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Wfe=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Zfe=t=>e.jsxs(e.Fragment,{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Gfe,{children:t.header}),e.jsx(Yfe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),qfe=(n,r,o,i,a)=>{const{selected:l}=a,c=((t,n,r,o)=>{if(t&&t.length>0)return Wfe(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(Hfe.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Zfe(t)},t.id)}));return[]})(n,o,i,s(a,["selected"])),u=((e,n,r)=>e?jfe(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return jfe([...c,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:l===n}):null))},Gfe=N.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Yfe=N.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Xfe=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Jfe=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:l,onFocus:c,onBlur:u,onError:d,placeholder:f,placeholderColor:p,value:h,options:g,children:m,borderColor:v,backgroundColor:y,hideIcon:b,clearOnSelect:w,textOnly:x,width:C,height:S,isLoading:k,margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P,label:T,id:M,name:A,trigger:_,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,fontSize:z,description:F,disabled:B,invalid:K,search:V,filter:H,restrictInput:U,inputRef:W,optionsParent:Z}=r,q=s(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[G,Y]=t.useState(""),[X,J]=t.useState(""),[Q,ee]=t.useState(!1),[te,ne]=t.useState(!1),[re,oe]=t.useState(!1),ie=t.useRef(null),{input:ae}=n.useTheme(),le={margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&l&&l(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(W||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ce=et(se,Q,Z?[Z,`${Z} *`]:void 0),ue=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ue(t.label,e);return!n&&"id"in t&&(n=ue(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ue(t.value,e)),n}));return t},fe=e=>"function"==typeof U?!U(e):U,pe=e=>he(null,e),he=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(fe(e))return de(e)||null;return{id:Lfe(),label:e,value:e}})(e);const t=fe(e);null===n&&t&&(r=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}Q&&se(t),Y((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?oe(!0):(re&&oe(!1),w&&Y(""),J(""))};t.useEffect((()=>{""!==h&&null!=h||pe()}),[h]);const ge=()=>{const e=jfe(m).map((e=>{const t=e;let n=t.props.displayText||"";return!T&&t.props.children&&(n=Xfe(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Wfe(g||[],{search:V,filter:H,inputText:X}),...e]},me={options:ge(),select:he,open:se,close:se,searchText:V?X:void 0,isOpen:Q,isFocused:te},[ve,ye]=Zn(me),be=qfe(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!B?p||ae.color.default:void 0,Ce=s(q,["onClear","phone"]);return e.jsx(Qfe,Object.assign({textOnly:x,altTrigger:!!_,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(epe,{ref:ce,children:[_?e.jsx(tpe,{id:M,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:_}):e.jsx(rpe,{shake:re,children:e.jsx($fe,Object.assign({},Ce,{ref:W||ie,id:M,name:A,label:T,fontSize:z,pointer:!0,preventFocus:!V,value:X||h||G,placeholder:f||"Select",placeholderColor:xe,iconRight:b||k?void 0:we,borderColor:v,backgroundColor:y,isLoading:k,textOnly:x,description:F,disabled:B,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(W||ie).current)||void 0===t?void 0:t.hasFocus;V?(J(n),!Q&&r&&ee(!0),re&&oe(!1)):n||pe(e);const o=de(n),i=fe(n),a=""===n||i&&!r;o&&!(V&&(!i||r))?he(o,e):V&&!a||pe(e)},onFocus:e=>{ne(!0),c&&c(e)},onBlur:e=>{var t;if(ne(!1),u&&u(e),V&&X&&e){const{relatedTarget:n}=e;(null===(t=null==ye?void 0:ye.current)||void 0===t?void 0:t.contains(n))||he(X,e)}}}))}),Q&&be.length>0&&e.jsx(Hfe,{containerRef:ye,parentSelector:Z,width:!_&&!x||Z?"100%":void 0,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,children:be})]})}))};Jfe.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:c,id:u,section:d})=>{const f=c?e=>{c&&c(e),o&&o()}:e=>{const o={id:u,label:n||Xfe(i)||"",value:t};r&&r(o,e)};return e.jsx(Hfe.Item,{id:u,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const Qfe=N.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),er,nr),epe=N.div({position:"relative",width:"100%",height:"inherit"}),tpe=N.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),npe=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),rpe=N.div((({shake:e})=>({"& input":{animation:e?`${npe} .5s linear`:void 0}}))),ope=({description:t,errorMessage:n})=>t||n?e.jsxs(ipe,{children:[t&&!n&&e.jsx(ape,{slot:"description",children:t}),n&&e.jsx(lpe,{children:n})]}):null,ipe=N.div({position:"absolute",left:0,top:"100%"}),ape=N(ty)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),lpe=N(lw)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),spe=r=>{var{value:o,label:i,placeholder:a,inputRef:l,iconLeft:c,iconRight:u,isLoading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,description:m,errorMessage:v,onChange:y}=r,b=s(r,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const{color:w}=n.useTheme(),[x,C]=t.useState("");t.useEffect((()=>{null!=o&&x!==o&&C(o)}),[o]);return e.jsxs(cpe,Object.assign({value:x,hasLabel:!!i,isDisabled:h,isReadOnly:g,onChange:e=>{C(e),y&&y(e)}},b,{children:[c&&R2(c,{marginRight:8}),e.jsx(ir,{name:"search",inheritColor:!0,marginRight:8}),e.jsxs(P2,{filled:!!x,disabled:h,children:[i,e.jsx(D2,{ref:l,placeholder:a,hide:!(x||!i),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e.jsx(cS,{}),!!x&&!d&&e.jsx(oS,{children:e.jsx(ir,{name:"close-circle-outline",color:w.brand})}),e.jsx(ope,{description:m,errorMessage:v})]}))},cpe=N(eC)(j2),upe=(e,t)=>{const n=e=>{if(!e)return!1;const n=t.toLowerCase();return e.toString().toLowerCase().includes(n)};return e.reduce(((e,r)=>{if("options"in r){const n=upe(r.options,t);n.length>0&&e.push(Object.assign(Object.assign({},r),{options:n}))}else{let t=n(r.value);!t&&"id"in r&&(t=n(r.id)),!t&&"body"in r&&(t=n(r.body)),!t&&"header"in r&&(t=n(r.header)),t&&e.push(r)}return e}),[])},dpe=N.div(j2),fpe=N.div(FC),ppe=N.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t}))),hpe=N.div((({gap:e})=>({display:"flex",alignItems:"center",gap:e||4}))),gpe=N.div((({theme:e})=>({color:e.scale10}))),mpe=N.div((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),vpe=N.div((({clampLines:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:e?void 0:"nowrap",WebkitLineClamp:e,display:e?"-webkit-box":void 0,WebkitBoxOrient:e?"vertical":void 0,wordBreak:e?"break-word":void 0})),(({width:e})=>({width:e||"auto"})),tr,nr),ype=N.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:c,width:u,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:c,alignContent:a,justifyContent:s,width:u,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),tr,nr);ype.Item=N.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})),tr,nr);const bpe=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:l,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f}=t,p=s(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:l,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};return e.jsxs(KC,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(HC,{children:r}),e.jsx(VC,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(ir,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},wpe=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,onChange:c,margin:u,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=s(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[m,v]=t.useState("toggle-off"),[y,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(y?"toggle-on":"toggle-off")}),[y]),t.useEffect((()=>{b("boolean"==typeof a?a:y)}),[a,y]),e.jsxs(KC,Object.assign({htmlFor:r,labelRight:w,disabled:l},x,{children:[o&&e.jsx(HC,{children:o}),e.jsx(VC,Object.assign({id:r,type:"checkbox",checked:y,disabled:l,onChange:()=>{const e=!y;b(e),c(e)}},g)),e.jsx(ir,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!l,size:40})]}))},xpe=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,l=s(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(Cpe,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&R2(r,{marginRight:4,size:"small"}),n,o&&R2(o,{marginLeft:4,size:"small"})]}))},Cpe=N.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),nr),Spe=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,c=s(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(kpe,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{l?l(e):e.preventDefault()}},c,{children:n}))};Spe.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,c=s(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(Epe,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},c,{children:n}))},Spe.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=s(t,["children","inline","align","disabled"]);return e.jsx(Ope,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Spe.Input=$fe,Spe.Dropdown=Jfe,Spe.Radio=bpe,Spe.Toggle=wpe,Spe.Checkbox=UC,Spe.Label=xpe;const kpe=N(ype)({boxSizing:"border-box"}),Epe=N(ype)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Ope=N.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),nr),Dpe=N.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),jpe=N.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Ppe=N.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),Tpe=N.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Mpe=N.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),Ape=N(mx)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder},'&[data-type="literal"]':{padding:0,color:t||e.input.color.placeholder},'&[data-type="dayPeriod"]':{textTransform:"lowercase"}}))),_pe=N(oS)((({theme:{input:e},isDisabled:t})=>({color:t?e.labelColor.disabled:e.labelColor.default}))),Rpe=g0(),Lpe=N(Cx)(j2),Ipe=N(hx,E2)({display:"flex"},O2),Npe=g0(),$pe=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:l,noShadow:c}=n,u=s(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?v0(r):Npe),{current:f}=t.useRef(o?v0(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),{min:v,max:y}=y0({past:a,future:l,rel:d});return e.jsxs(zpe,Object.assign({value:{start:p,end:g},onChange:e=>{const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:c}=n,u=new Fc(r,o,a);h(u);const d=new Fc(l,s,c);m(d);const f=m0(t),p=m0(n);i&&i(f,p)},minValue:v,maxValue:y,noShadow:c},u,{children:[e.jsx(d0,{}),e.jsx(a0,{range:!0})]}))},zpe=N(Zb)(i0),Fpe=g0(),Bpe=N(kx)(j2),Kpe=N(hx,E2)(O2,{display:"flex","&:first-of-type":{marginRight:0}}),Vpe=N(Hw,E2)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),Hpe=N(Xx)(j2),Upe=N.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder,overflow:"hidden",borderTopRightRadius:4,borderBottomRightRadius:4}))),Wpe=N(oS)((({theme:e,isDisabled:t})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",borderRadius:0,color:t?e.scale4:void 0,pointerEvents:t?"none":void 0,"&:hover":{backgroundColor:t?void 0:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Zpe=N.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),qpe=N(NC)(j2),Gpe=N(NC)(j2),Ype=N(ux)(j2),Xpe=N(hx,E2)({display:"flex"},O2),Jpe=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:c,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(Qpe,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:c,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?jfe(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),Qpe=N.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})),tr),ehe=N.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),the=N.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),nhe=N.div({marginLeft:"auto",marginRight:8});Jpe.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(ehe,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),Jpe.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:c,children:u,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>jfe(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:f})}return null})),m=g(u),v=()=>h((e=>!e));return e.jsxs(the,{backgroundColor:f,children:[e.jsxs(ehe,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:c,role:"menuitem",indent:d,children:[n,e.jsx(nhe,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(ir,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const rhe=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d,children:f})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d};return e.jsxs(ahe,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(ir,{name:h,style:{marginRight:10},color:g}),e.jsx(lhe,{children:r||f}),o&&e.jsx(ir,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},ohe=N.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),ihe=N.div((({theme:e})=>({fontWeight:e.font.weight.default})));rhe.Header=ohe,rhe.Body=ihe;const ahe=N.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),nr),lhe=N.div({width:"100%"}),she=N.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),che=N.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),uhe=N.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),dhe=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:c,preventOverlayClose:u,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:j})=>{const P=et(u?()=>null:s,i),T={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},M=jfe(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),A=e.jsx(hhe,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:j,blur:d,children:e.jsxs(fhe,Object.assign({ref:P,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},T,{children:[M,c&&e.jsx(phe,{inline:h,children:e.jsx(ir,{name:"close",onClick:s,pointer:!0})})]}))}),_=document.querySelector(o||"#root");return i&&_?r.createPortal(A,_):null};dhe.Header=N.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),dhe.Text=N.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),dhe.Body=N.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),nr),dhe.Footer=N.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),nr);const fhe=N.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),tr),phe=N.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),hhe=N.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:c,zIndex:u})=>({position:i||"absolute",top:a||(c||l||s?void 0:0),left:c||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:u||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),ghe=t.forwardRef(((o,i)=>{var{children:a,options:l,items:c,listLabel:u,listText:d,itemsTitle:f,maxItems:p,placeholder:h,width:g,filter:m,restrictInput:v,disabled:y,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:k,removeItem:E,onTextChange:O,autoFocus:D}=o,j=s(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[P,T]=t.useState(D||!1),[M,A]=t.useState(!1),[_,R]=t.useState(""),{color:L,font:I,input:N}=n.useTheme(),$=et((()=>T(!1)),P,w?[w,`${w} *`]:void 0),z=t.useRef(null),F=x&&!!u,B=e=>{e&&k(e)},K=()=>{const{current:e}=z;P||u||T(!0),null==e||e.focus()},V=()=>{const{current:e}=z;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:K,blur:V})));const H=e=>{R(e),O&&O(e)};t.useEffect((()=>{P||V()}),[P]);Qe(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];E(t)}}),P&&!_,[c]);const U=l.filter((e=>!c.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${Lfe()}`),[]),Z=t.useMemo((()=>`multi-select-list-${Lfe()}`),[]),q=p?c.length>=p:void 0,G=y||!P||q,Y=()=>{const t=e.jsxs(bhe,{id:Z,expanded:P,padTop:P&&c.length>0,labeled:!!u,children:[d&&e.jsx(whe,{expanded:P,labeled:!!u,children:d}),a?a(P,!!y):c.map((t=>e.jsx(xpe,{pill:!0,iconRight:P&&!y?e.jsx(ir,{name:"close-circle",onClick:()=>E(t),pointer:!0}):void 0,disabled:y,children:t.label},t.id))),e.jsx(Jfe,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:m,backgroundColor:"transparent",restrictInput:v,options:U,fontSize:I.size.md,placeholder:y||c.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:z,onChange:B,onTextChange:H,onError:e=>A(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:D}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(mhe,{width:g,ref:$,labeled:!!u,disabled:y,collapse:F,onClick:e=>{e.stopPropagation(),K()},children:[e.jsxs(vhe,{collapse:F,id:W,expanded:P&&c.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:S,children:[u?e.jsx(yhe,{collapse:F,children:u}):Y(),e.jsxs(xhe,{children:[p&&!b&&e.jsx(She,{children:y&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(Che,{error:c.length>=p,children:c.length}),"/",p," ",f]})}),c.length>0&&e.jsx(ir,{name:P?"chevron-up":"chevron-down",color:L.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!P)}})]})]}),u&&P&&Y()]})})),mhe=N.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),vhe=N.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),yhe=N.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),bhe=N.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),whe=N.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),xhe=N.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Che=N.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),She=N.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),khe=e=>e?+e:0,Ehe=N.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),nr),Ohe=N.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),Dhe=N(Ohe)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),jhe=N(Ohe)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),Phe=N.span((({theme:e})=>({color:e.scale6}))),The=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:c})=>{const u={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:c},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs(Mhe,Object.assign({size:n},u,{children:[e.jsx(Ahe,{cx:h,cy:h,r:d,thickness:r}),e.jsx(_he,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},Mhe=N.svg((({size:e})=>({display:"block",width:e,height:e})),nr),Ahe=N.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),_he=N(Ahe)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Rhe=N.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),nr),Lhe=N.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),Ihe=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:l,options:c,placeholder:u="Select",placeholderColor:d,textOnly:f,value:p,width:h,onChange:g,afterShow:m,afterHide:v}=n,y=s(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide"]);const[b,w]=t.useState(!1),[x,C]=t.useState(p||""),{margin:S,marginTop:k,marginBottom:E,marginRight:O,marginLeft:D}=y,j={margin:S,marginTop:k,marginBottom:E,marginRight:O,marginLeft:D};t.useEffect((()=>{p&&p!==x&&C(p)}),[p,x]);const P=!x&&l;return e.jsxs(iC,Object.assign({placeholder:u,onOpenChange:e=>{w(e),m&&e&&m(),v&&!e&&v()},onSelectionChange:e=>{C(e),g&&g(e)},isDisabled:a,selectedKey:p?x:void 0},y,{children:[e.jsxs(Nhe,Object.assign({backgroundColor:r,textOnly:f,width:h,hasLabel:!!l,isDisabled:a,pointer:!0},j,{children:[e.jsxs(P2,{filled:!!x,disabled:a,children:[l,e.jsx($he,{fontSize:i,placeholderColor:d,isDisabled:a,style:({isPlaceholder:e})=>e&&P?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e.jsx(ir,{name:b?"caret-up":"caret-down",inheritColor:!0})]})),e.jsx(lw,{}),e.jsx(qw,{offset:2,children:c?e.jsx(_2,{options:c,autoWidth:f}):e.jsx(T2,{autoWidth:f,shouldFocusWrap:!0,children:o})})]}))};Ihe.Item=M2,Ihe.Section=nS;const Nhe=N(Jv)(j2),$he=N(sC)((({theme:{input:e,font:t},fontSize:n,placeholderColor:r,isDisabled:o})=>({color:o?e.color.disabled:e.color.default,fontFamily:t.family.default,fontSize:n||t.size.lg,"&[data-placeholder]":{color:r||(o?e.color.disabled:e.color.placeholder)}}))),zhe=N.div(er);var Fhe=lR,Bhe=BS;var Khe=function(e,t,n,r){return null==e?[]:(Bhe(t)||(t=null==t?[]:[t]),Bhe(n=r?void 0:n)||(n=null==n?[]:[n]),Fhe(e,t,n))},Vhe=Ki(Khe);const Hhe=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,Uhe=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(Hhe);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=Hhe(r)),void 0!==o&&(t.right=Hhe(o)),void 0!==i&&(t.bottom=Hhe(i)),void 0!==a&&(t.left=Hhe(a)),t},Whe=t.createContext({}),Zhe=n=>{var{children:r,onClick:o,disabled:i,padding:a,paddingTop:l,paddingRight:c,paddingBottom:u,paddingLeft:d}=n,f=s(n,["children","onClick","disabled","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);const{setRowPadding:p}=t.useContext(Whe);return t.useEffect((()=>{if((a||l||c||u||d)&&p){const e=Uhe({padding:a,paddingTop:l,paddingRight:c,paddingBottom:u,paddingLeft:d});p(e)}}),[a,l,c,u,d,p]),e.jsx(qhe,Object.assign({isDisabled:i,onAction:o&&!i?o:void 0,hoverEffect:!!o&&!i},f,{children:r}))},qhe=N(jC)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:void 0,backgroundColor:t,outline:"none",transition:"background-color 0.2s",position:"relative"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,emphasis:t})=>{let n;return!0===t?n=e.color.brand:"string"==typeof t&&(n=t),{height:"100%","& > td:first-of-type > div":{borderLeft:"2px solid transparent",borderLeftColor:n},"&:not(:first-of-type) > td > div":{borderTop:`1px solid ${e.table.borderColor}`},"&.fetching-row":{borderTop:`1px solid ${e.table.borderColor}`,"& > td > div":{borderTop:"none"}}}}),(({height:e})=>({height:e}))),Ghe=({spinnerSize:t})=>{const n="small"===t;return e.jsx(Zhe,{height:n?49:57,className:n?"fetching-row":void 0,children:e.jsx(Yhe,{children:e.jsx(cS,{size:t,center:!0})})})},Yhe=N(PC)((({theme:e})=>({color:e.scale6}))),Xhe=N(DC)((({theme:e})=>({"&[data-empty]":{textAlign:"center",color:e.table.color.body,fontSize:e.font.size.sm,"& > tr:first-of-type > td:first-of-type":{paddingTop:16}}}))),Jhe=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},Qhe=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:Jhe(t),alignItems:Jhe(n),flexDirection:e,width:"100%",height:"100%",gap:r}),tr],ege=N(PC)((({theme:e})=>({padding:0,outline:"none","&:focus-visible":{outline:`${e.accent} solid 1px`}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o,parentPadding:i})=>{var a,l,s,c;const{top:u,right:d,bottom:f,left:p}=i||{};return{"& > div":{paddingTop:null!==(a=null!=t?t:u)&&void 0!==a?a:16,paddingBottom:null!==(l=null!=n?n:f)&&void 0!==l?l:16,paddingLeft:o,paddingRight:r,padding:e},"&:first-of-type > div":{paddingLeft:null!==(s=null!=o?o:void 0!==p?p-2:void 0)&&void 0!==s?s:24},"&:last-of-type > div":{paddingRight:null!==(c=null!=r?r:d)&&void 0!==c?c:24}}})),tge=N.div(Qhe,(({showDefault:e})=>e&&{"& > *":{opacity:.3}})),nge=N(OC)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),rge=({sortDirection:t})=>{const{color:r,scale4:o}=n.useTheme(),i="asc"===t?r.brand:o,a="desc"===t?r.brand:o;return e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M8.71005 14.71L11.3001 17.3C11.6901 17.69 12.3201 17.69 12.7101 17.3L15.3001 14.71C15.9301 14.08 15.4801 13 14.5901 13H9.41005C8.52005 13 8.08005 14.08 8.71005 14.71Z",fill:a}),e.jsx("path",{d:"M8.71005 8.88253L11.3001 6.29253C11.6901 5.90253 12.3201 5.90253 12.7101 6.29253L15.3001 8.88253C15.9301 9.51253 15.4801 10.5925 14.5901 10.5925H9.41005C8.52005 10.5925 8.08005 9.51253 8.71005 8.88253Z",fill:i})]})},oge=N(SC)((({theme:e,maxWidth:t})=>{const n=t?`${"number"==typeof t?`${t}px`:t} !important`:void 0;return{textAlign:"left",verticalAlign:"middle",color:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,padding:0,outline:"none",maxWidth:t?n:void 0,"&:focus-visible":{outline:`${e.accent} solid 1px`}}}),(({theme:e,padding:t,paddingTop:n,paddingBottom:r,paddingRight:o,paddingLeft:i,parentPadding:a})=>{var l,s,c,u;return{"& > div":{paddingTop:null!==(l=null!=n?n:null==a?void 0:a.top)&&void 0!==l?l:8,paddingBottom:null!==(s=null!=r?r:null==a?void 0:a.bottom)&&void 0!==s?s:8,paddingLeft:i,paddingRight:o,padding:t,borderBottom:`1px solid ${e.table.borderColor}`},"&:first-of-type > div":{paddingLeft:null!==(c=null!=i?i:null==a?void 0:a.left)&&void 0!==c?c:24},"&:last-of-type > div":{paddingRight:null!==(u=null!=o?o:null==a?void 0:a.right)&&void 0!==u?u:24}}})),ige=N.div(Qhe,(({theme:e,sorting:t,active:n})=>({"& > div:first-of-type, & > span":{cursor:t?"pointer":void 0,color:n?e.scale10:e.table.color.header,"&:hover":{color:t?e.scale8:void 0}}}))),age=N(xC)((({theme:e,backgroundColor:t})=>({position:"sticky",top:0,zIndex:1,"& > tr > th":{backgroundColor:t||e.background0}}))),lge=n=>{var{children:r,data:o,onScrollEnd:i,backgroundColor:a,maxHeight:l}=n,c=s(n,["children","data","onScrollEnd","backgroundColor","maxHeight"]);const[u,d]=t.useState(o),[f,p]=t.useState(),[h,g]=t.useState(),[m,v]=t.useState(),y=o&&"function"==typeof r?r(u):r;t.useEffect((()=>{if(o){let e=o;if(f){const{key:t,dir:n}=f;e=Vhe(o,[t],[n])}kt(e,u)||d(e)}}),[o,f]);const b=t.useMemo((()=>({activeColumn:f,setActiveColumn:p,backgroundColor:a,headerPadding:h,rowPadding:m,setHeaderPadding:g,setRowPadding:v})),[f,p,a,h,m,g,v]);return e.jsx(Whe.Provider,{value:b,children:e.jsx(sge,{onScroll:i?e=>{const t=e.target,{scrollHeight:n,scrollTop:r,clientHeight:o}=t;n-r===o&&i&&i()}:void 0,backgroundColor:a,maxHeight:l,children:e.jsx(cge,Object.assign({},c,{children:y}))})})};lge.Header=({children:n,backgroundColor:r,padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s})=>{const{backgroundColor:c,setHeaderPadding:u}=t.useContext(Whe);return t.useEffect((()=>{if((o||i||a||l||s)&&u){const e=Uhe({padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s});u(e)}}),[o,i,a,l,s,u]),e.jsx(age,{backgroundColor:r||c,children:n})},lge.Column=n=>{var{children:r,sortKey:o,sorted:i,onClick:a,resize:l,direction:c,justify:u,align:d,gap:f}=n,p=s(n,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[h,g]=t.useState(i||"inactive"),{activeColumn:m,setActiveColumn:v,headerPadding:y}=t.useContext(Whe),b=o||i,w="asc"===h||"desc"===h,x={direction:c,justify:u,align:d,gap:f},C=e=>{if(g(e),v&&o){v("inactive"===e?void 0:{key:o,dir:e})}};t.useEffect((()=>{!o||"asc"!==i&&"desc"!==i||C(i)}),[]),t.useEffect((()=>{i&&g(i)}),[i]),t.useEffect((()=>{const e=!m&&i;o&&m&&m.key!==o&&"inactive"!==h&&!e&&g("inactive")}),[m,h]);const S=b||a?e=>{o?C("inactive"===h?"asc":"asc"===h?"desc":"inactive"):a&&a(e)}:void 0;return e.jsx(oge,Object.assign({parentPadding:y},p,{children:e.jsxs(ige,Object.assign({sorting:!!b,active:w},x,{children:["string"==typeof r?e.jsx(vpe,{onClick:S,children:r}):r,b&&e.jsx("span",{"aria-hidden":"true",onClick:S,children:e.jsx(ir,{svg:e.jsx(rge,{sortDirection:h}),marginLeft:-8})}),l&&e.jsx(nge,{})]}))}))},lge.Body=({children:t,emptyFallback:n,fetching:r,loading:o})=>e.jsxs(Xhe,{renderEmptyState:({isEmpty:e})=>e&&n?n:null,children:[o&&e.jsx(Ghe,{}),!o&&t,r&&e.jsx(Ghe,{spinnerSize:"small"})]}),lge.Row=Zhe,lge.Cell=n=>{var{children:r,defaultValue:o,direction:i,justify:a,align:l,gap:c,clampLines:u}=n,d=s(n,["children","defaultValue","direction","justify","align","gap","clampLines"]);const{rowPadding:f}=t.useContext(Whe),p={direction:i,justify:a,align:l,gap:c},h=r||o;return e.jsx(ege,Object.assign({parentPadding:f},d,{children:e.jsx(tge,Object.assign({showDefault:!!o&&!r},p,{children:"string"==typeof h?e.jsx(vpe,{paddingRight:2,clampLines:u,children:h}):h}))}))};const sge=N(fC)((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",borderRadius:4,backgroundColor:t||e.background0}))),cge=N(yC)({height:"fit-content"},nr,tr),uge=N.div((({gap:e=8})=>({display:"flex",gap:e})),nr),dge=N.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"})));var fge,pge="dismissableLayer.update",hge="dismissableLayer.pointerDownOutside",gge="dismissableLayer.focusOutside",mge=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vge=i.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...u}=t,d=i.useContext(mge),[f,p]=i.useState(null),h=f?.ownerDocument??globalThis?.document,[,g]=i.useState({}),m=B(n,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,S=function(e,t=globalThis?.document){const n=q(e),r=i.useRef(!1),o=i.useRef((()=>{}));return i.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){bge(hge,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(a?.(e),s?.(e),e.defaultPrevented||c?.())}),h),k=function(e,t=globalThis?.document){const n=q(e),r=i.useRef(!1);return i.useEffect((()=>{const e=e=>{if(e.target&&!r.current){bge(gge,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),s?.(e),e.defaultPrevented||c?.())}),h);return function(e,t=globalThis?.document){const n=q(e);i.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{w===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),i.useEffect((()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(fge=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yge(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=fge)}}),[f,h,r,d]),i.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yge())}),[f,d]),i.useEffect((()=>{const e=()=>g({});return document.addEventListener(pge,e),()=>document.removeEventListener(pge,e)}),[]),e.jsx(Y.div,{...u,ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:Z(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Z(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Z(t.onPointerDownCapture,S.onPointerDownCapture)})}));vge.displayName="DismissableLayer";function yge(){const e=new CustomEvent(pge);document.dispatchEvent(e)}function bge(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&a.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}i.forwardRef(((t,n)=>{const r=i.useContext(mge),o=i.useRef(null),a=B(n,o);return i.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),e.jsx(Y.div,{...t,ref:a})})).displayName="DismissableLayerBranch";const wge=["top","right","bottom","left"],xge=Math.min,Cge=Math.max,Sge=Math.round,kge=Math.floor,Ege=e=>({x:e,y:e}),Oge={left:"right",right:"left",bottom:"top",top:"bottom"},Dge={start:"end",end:"start"};function jge(e,t,n){return Cge(e,xge(t,n))}function Pge(e,t){return"function"==typeof e?e(t):e}function Tge(e){return e.split("-")[0]}function Mge(e){return e.split("-")[1]}function Age(e){return"x"===e?"y":"x"}function _ge(e){return"y"===e?"height":"width"}function Rge(e){return["top","bottom"].includes(Tge(e))?"y":"x"}function Lge(e){return Age(Rge(e))}function Ige(e){return e.replace(/start|end/g,(e=>Dge[e]))}function Nge(e){return e.replace(/left|right|bottom|top/g,(e=>Oge[e]))}function $ge(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function zge(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fge(e,t,n){let{reference:r,floating:o}=e;const i=Rge(t),a=Lge(t),l=_ge(a),s=Tge(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Mge(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Bge(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Pge(t,e),h=$ge(p),g=l[f?"floating"===d?"reference":"floating":d],m=zge(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=zge(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}function Kge(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vge(e){return wge.some((t=>e[t]>=0))}function Hge(e){return Zge(e)?(e.nodeName||"").toLowerCase():"#document"}function Uge(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wge(e){var t;return null==(t=(Zge(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zge(e){return e instanceof Node||e instanceof Uge(e).Node}function qge(e){return e instanceof Element||e instanceof Uge(e).Element}function Gge(e){return e instanceof HTMLElement||e instanceof Uge(e).HTMLElement}function Yge(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Uge(e).ShadowRoot)}function Xge(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rme(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jge(e){return["table","td","th"].includes(Hge(e))}function Qge(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function eme(e){const t=tme(),n=qge(e)?rme(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function tme(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nme(e){return["html","body","#document"].includes(Hge(e))}function rme(e){return Uge(e).getComputedStyle(e)}function ome(e){return qge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ime(e){if("html"===Hge(e))return e;const t=e.assignedSlot||e.parentNode||Yge(e)&&e.host||Wge(e);return Yge(t)?t.host:t}function ame(e){const t=ime(e);return nme(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gge(t)&&Xge(t)?t:ame(t)}function lme(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ame(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Uge(o);return i?t.concat(a,a.visualViewport||[],Xge(o)?o:[],a.frameElement&&n?lme(a.frameElement):[]):t.concat(o,lme(o,[],n))}function sme(e){const t=rme(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gge(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Sge(n)!==i||Sge(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function cme(e){return qge(e)?e:e.contextElement}function ume(e){const t=cme(e);if(!Gge(t))return Ege(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sme(t);let a=(i?Sge(n.width):n.width)/r,l=(i?Sge(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const dme=Ege(0);function fme(e){const t=Uge(e);return tme()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dme}function pme(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=cme(e);let a=Ege(1);t&&(r?qge(r)&&(a=ume(r)):a=ume(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Uge(e))&&t}(i,n,r)?fme(i):Ege(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Uge(i),t=r&&qge(r)?Uge(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=ume(o),t=o.getBoundingClientRect(),r=rme(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=Uge(o),o=n.frameElement}}return zge({width:u,height:d,x:s,y:c})}function hme(e){return pme(Wge(e)).left+ome(e).scrollLeft}function gme(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Uge(e),r=Wge(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=tme();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Wge(e),n=ome(e),r=e.ownerDocument.body,o=Cge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Cge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hme(e);const l=-n.scrollTop;return"rtl"===rme(r).direction&&(a+=Cge(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Wge(e));else if(qge(t))r=function(e,t){const n=pme(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Gge(e)?ume(e):Ege(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=fme(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return zge(r)}function mme(e,t){const n=ime(e);return!(n===t||!qge(n)||nme(n))&&("fixed"===rme(n).position||mme(n,t))}function vme(e,t,n){const r=Gge(t),o=Wge(t),i="fixed"===n,a=pme(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Ege(0);if(r||!r&&!i)if(("body"!==Hge(t)||Xge(o))&&(l=ome(t)),r){const e=pme(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=hme(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function yme(e){return"static"===rme(e).position}function bme(e,t){return Gge(e)&&"fixed"!==rme(e).position?t?t(e):e.offsetParent:null}function wme(e,t){const n=Uge(e);if(Qge(e))return n;if(!Gge(e)){let t=ime(e);for(;t&&!nme(t);){if(qge(t)&&!yme(t))return t;t=ime(t)}return n}let r=bme(e,t);for(;r&&Jge(r)&&yme(r);)r=bme(r,t);return r&&nme(r)&&yme(r)&&!eme(r)?n:r||function(e){let t=ime(e);for(;Gge(t)&&!nme(t);){if(eme(t))return t;if(Qge(t))return null;t=ime(t)}return null}(e)||n}const xme={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Wge(r),l=!!t&&Qge(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Ege(1);const u=Ege(0),d=Gge(r);if((d||!d&&!i)&&(("body"!==Hge(r)||Xge(a))&&(s=ome(r)),Gge(r))){const e=pme(r);c=ume(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:Wge,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Qge(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=lme(e,[],!1).filter((e=>qge(e)&&"body"!==Hge(e))),o=null;const i="fixed"===rme(e).position;let a=i?ime(e):e;for(;qge(a)&&!nme(a);){const t=rme(a),n=eme(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Xge(a)&&!n&&mme(e,a))?r=r.filter((e=>e!==a)):o=t,a=ime(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=gme(t,n,o);return e.top=Cge(r.top,e.top),e.right=xge(r.right,e.right),e.bottom=xge(r.bottom,e.bottom),e.left=Cge(r.left,e.left),e}),gme(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wme,getElementRects:async function(e){const t=this.getOffsetParent||wme,n=this.getDimensions,r=await n(e.floating);return{reference:vme(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=sme(e);return{width:t,height:n}},getScale:ume,isElement:qge,isRTL:function(e){return"rtl"===rme(e).direction}};function Cme(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=cme(e),u=o||i?[...c?lme(c):[],...lme(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=Wge(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-kge(u)+"px "+-kge(o.clientWidth-(c+d))+"px "+-kge(o.clientHeight-(u+f))+"px "+-kge(c)+"px",threshold:Cge(0,xge(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let g=s?pme(e):null;return s&&function t(){const r=pme(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const Sme=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Tge(n),l=Mge(n),s="y"===Rge(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Pge(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},kme=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Pge(e,t),c={x:n,y:r},u=await Bge(t,s),d=Rge(Tge(o)),f=Age(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=jge(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=jge(h+u["y"===d?"top":"left"],h,h-u[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Eme=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=Pge(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Tge(o),y=Rge(l),b=Tge(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=f||(b||!g?[Nge(l)]:function(e){const t=Nge(e);return[Ige(e),t,Ige(t)]}(l)),C="none"!==h;!f&&C&&x.push(...function(e,t,n,r){const o=Mge(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Tge(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ige)))),i}(l,g,h,w));const S=[l,...x],k=await Bge(t,m),E=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(k[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Mge(e),o=Lge(e),i=_ge(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Nge(a)),[a,Nge(a)]}(o,a,w);E.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:o,overflows:E}],!E.every((e=>e<=0))){var D,j;const e=((null==(D=i.flip)?void 0:D.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(j=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=O.filter((e=>{if(C){const t=Rge(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Ome=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=Pge(e,t),s=await Bge(t,l),c=Tge(n),u=Mge(n),d="y"===Rge(n),{width:f,height:p}=r.floating;let h,g;"top"===c||"bottom"===c?(h=c,g=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,h="end"===u?"top":"bottom");const m=p-s.top-s.bottom,v=f-s.left-s.right,y=xge(p-s[h],m),b=xge(f-s[g],v),w=!t.middlewareData.shift;let x=y,C=b;if(d?C=u||w?xge(b,v):v:x=u||w?xge(y,m):m,w&&!u){const e=Cge(s.left,0),t=Cge(s.right,0),n=Cge(s.top,0),r=Cge(s.bottom,0);d?C=f-2*(0!==e||0!==t?e+t:Cge(s.left,s.right)):x=p-2*(0!==n||0!==r?n+r:Cge(s.top,s.bottom))}await a({...t,availableWidth:C,availableHeight:x});const S=await o.getDimensions(i.floating);return f!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},Dme=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pge(e,t);switch(r){case"referenceHidden":{const e=Kge(await Bge(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vge(e)}}}case"escaped":{const e=Kge(await Bge(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vge(e)}}}default:return{}}}}},jme=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=Pge(e,t)||{};if(null==c)return{};const d=$ge(u),f={x:n,y:r},p=Lge(o),h=_ge(p),g=await a.getDimensions(c),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=C?C[b]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=l.floating[b]||i.floating[h]);const k=w/2-x/2,E=S/2-g[h]/2-1,O=xge(d[v],E),D=xge(d[y],E),j=O,P=S-g[h]-D,T=S/2-g[h]/2+k,M=jge(j,T,P),A=!s.arrow&&null!=Mge(o)&&T!==M&&i.reference[h]/2-(T<j?O:D)-g[h]/2<0,_=A?T<j?T-j:T-P:0;return{[p]:f[p]+_,data:{[p]:M,centerOffset:T-M-_,...A&&{alignmentOffset:_}},reset:A}}}),Pme=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=Pge(e,t),u={x:n,y:r},d=Rge(o),f=Age(d);let p=u[f],h=u[d];const g=Pge(l,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Tge(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Tme=(e,t,n)=>{const r=new Map,o={platform:xme,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fge(c,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:v,data:y,reset:b}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Fge(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Mme="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Ame(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ame(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ame(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _me(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rme(e,t){const n=_me(e);return Math.round(t*n)/n}function Lme(e){const t=i.useRef(e);return Mme((()=>{t.current=e})),t}const Ime=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?jme({element:n.current,padding:r}).fn(t):{}:n?jme({element:n,padding:r}).fn(t):{};var o}}),Nme=(e,t)=>({...Sme(e),options:[e,t]}),$me=(e,t)=>({...kme(e),options:[e,t]}),zme=(e,t)=>({...Pme(e),options:[e,t]}),Fme=(e,t)=>({...Eme(e),options:[e,t]}),Bme=(e,t)=>({...Ome(e),options:[e,t]}),Kme=(e,t)=>({...Dme(e),options:[e,t]}),Vme=(e,t)=>({...Ime(e),options:[e,t]});var Hme=i.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.jsx(Y.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Hme.displayName="Arrow";var Ume=Hme;var Wme="Popper",[Zme,qme]=$(Wme),[Gme,Yme]=Zme(Wme),Xme=t=>{const{__scopePopper:n,children:r}=t,[o,a]=i.useState(null);return e.jsx(Gme,{scope:n,anchor:o,onAnchorChange:a,children:r})};Xme.displayName=Wme;var Jme="PopperAnchor",Qme=i.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...a}=t,l=Yme(Jme,r),s=i.useRef(null),c=B(n,s);return i.useEffect((()=>{l.onAnchorChange(o?.current||s.current)})),o?null:e.jsx(Y.div,{...a,ref:c})}));Qme.displayName=Jme;var eve="PopperContent",[tve,nve]=Zme(eve),rve=i.forwardRef(((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:v,...y}=t,b=Yme(eve,r),[w,x]=i.useState(null),C=B(n,(e=>x(e))),[S,k]=i.useState(null),E=function(e){const[t,n]=i.useState(void 0);return X((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(S),O=E?.width??0,D=E?.height??0,j=o+("center"!==s?"-"+s:""),P="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(f)?f:[f],M=T.length>0,A={padding:P,boundary:T.filter(lve),altBoundary:M},{refs:_,floatingStyles:R,placement:L,isPositioned:I,middlewareData:N}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(r);Ame(h,r)||g(r);const[m,v]=i.useState(null),[y,b]=i.useState(null),w=i.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),x=i.useCallback((e=>{e!==E.current&&(E.current=e,b(e))}),[]),C=l||m,S=s||y,k=i.useRef(null),E=i.useRef(null),O=i.useRef(f),D=null!=u,j=Lme(u),P=Lme(o),T=i.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),Tme(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};M.current&&!Ame(O.current,t)&&(O.current=t,a.flushSync((()=>{p(t)})))}))}),[h,t,n,P]);Mme((()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const M=i.useRef(!1);Mme((()=>(M.current=!0,()=>{M.current=!1})),[]),Mme((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(j.current)return j.current(C,S,T);T()}}),[C,S,T,j,D]);const A=i.useMemo((()=>({reference:k,floating:E,setReference:w,setFloating:x})),[w,x]),_=i.useMemo((()=>({reference:C,floating:S})),[C,S]),R=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=Rme(_.floating,f.x),r=Rme(_.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",..._me(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,_.floating,f.x,f.y]);return i.useMemo((()=>({...f,update:T,refs:A,elements:_,floatingStyles:R})),[f,T,A,_,R])}({strategy:"fixed",placement:j,whileElementsMounted:(...e)=>Cme(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[Nme({mainAxis:l+D,alignmentAxis:c}),d&&$me({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?zme():void 0,...A}),d&&Fme({...A}),Bme({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),S&&Vme({element:S,padding:u}),sve({arrowWidth:O,arrowHeight:D}),g&&Kme({strategy:"referenceHidden",...A})]}),[$,z]=cve(L),F=q(v);X((()=>{I&&F?.()}),[I,F]);const K=N.arrow?.x,V=N.arrow?.y,H=0!==N.arrow?.centerOffset,[U,W]=i.useState();return X((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:I?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(tve,{scope:r,placedSide:$,onArrowChange:k,arrowX:K,arrowY:V,shouldHideArrow:H,children:e.jsx(Y.div,{"data-side":$,"data-align":z,...y,ref:C,style:{...y.style,animation:I?void 0:"none"}})})})}));rve.displayName=eve;var ove="PopperArrow",ive={top:"bottom",right:"left",bottom:"top",left:"right"},ave=i.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=nve(ove,r),a=ive[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(Ume,{...o,ref:n,style:{...o.style,display:"block"}})})}));function lve(e){return null!==e}ave.displayName=ove;var sve=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,c]=cve(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2;let p="",h="";return"bottom"===s?(p=i?u:`${d}px`,h=-l+"px"):"top"===s?(p=i?u:`${d}px`,h=`${r.floating.height+l}px`):"right"===s?(p=-l+"px",h=i?u:`${f}px`):"left"===s&&(p=`${r.floating.width+l}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}});function cve(e){const[t,n="center"]=e.split("-");return[t,n]}var uve=Xme,dve=Qme,fve=rve,pve=ave,hve=i.forwardRef(((t,n)=>{const{container:o,...a}=t,[l,s]=i.useState(!1);X((()=>s(!0)),[]);const c=o||l&&globalThis?.document?.body;return c?r.createPortal(e.jsx(Y.div,{...a,ref:n}),c):null}));hve.displayName="Portal";var gve=i.forwardRef(((t,n)=>e.jsx(Y.span,{...t,ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})));gve.displayName="VisuallyHidden";var mve=gve,[vve,yve]=$("Tooltip",[qme]),bve=qme(),wve="TooltipProvider",xve=700,Cve="tooltip.open",[Sve,kve]=vve(wve),Eve=t=>{const{__scopeTooltip:n,delayDuration:r=xve,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:l}=t,[s,c]=i.useState(!0),u=i.useRef(!1),d=i.useRef(0);return i.useEffect((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),e.jsx(Sve,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:i.useCallback((()=>{window.clearTimeout(d.current),c(!1)}),[]),onClose:i.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:i.useCallback((e=>{u.current=e}),[]),disableHoverableContent:a,children:l})};Eve.displayName=wve;var Ove="Tooltip",[Dve,jve]=vve(Ove),Pve=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=t,u=kve(Ove,t.__scopeTooltip),d=bve(n),[f,p]=i.useState(null),h=ne(),g=i.useRef(0),m=s??u.disableHoverableContent,v=c??u.delayDuration,y=i.useRef(!1),[b=!1,w]=G({prop:o,defaultProp:a,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(Cve))):u.onClose(),l?.(e)}}),x=i.useMemo((()=>b?y.current?"delayed-open":"instant-open":"closed"),[b]),C=i.useCallback((()=>{window.clearTimeout(g.current),y.current=!1,w(!0)}),[w]),S=i.useCallback((()=>{window.clearTimeout(g.current),w(!1)}),[w]),k=i.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{y.current=!0,w(!0)}),v)}),[v,w]);return i.useEffect((()=>()=>window.clearTimeout(g.current)),[]),e.jsx(uve,{...d,children:e.jsx(Dve,{scope:n,contentId:h,open:b,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:i.useCallback((()=>{u.isOpenDelayed?k():C()}),[u.isOpenDelayed,k,C]),onTriggerLeave:i.useCallback((()=>{m?S():window.clearTimeout(g.current)}),[S,m]),onOpen:C,onClose:S,disableHoverableContent:m,children:r})})};Pve.displayName=Ove;var Tve="TooltipTrigger",Mve=i.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,a=jve(Tve,r),l=kve(Tve,r),s=bve(r),c=B(n,i.useRef(null),a.onTriggerChange),u=i.useRef(!1),d=i.useRef(!1),f=i.useCallback((()=>u.current=!1),[]);return i.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),e.jsx(dve,{asChild:!0,...s,children:e.jsx(Y.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:c,onPointerMove:Z(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||l.isPointerInTransitRef.current||(a.onTriggerEnter(),d.current=!0))})),onPointerLeave:Z(t.onPointerLeave,(()=>{a.onTriggerLeave(),d.current=!1})),onPointerDown:Z(t.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:Z(t.onFocus,(()=>{u.current||a.onOpen()})),onBlur:Z(t.onBlur,a.onClose),onClick:Z(t.onClick,a.onClose)})})}));Mve.displayName=Tve;var Ave="TooltipPortal",[_ve,Rve]=vve(Ave,{forceMount:void 0}),Lve=t=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=t,a=jve(Ave,n);return e.jsx(_ve,{scope:n,forceMount:r,children:e.jsx(J,{present:r||a.open,children:e.jsx(hve,{asChild:!0,container:i,children:o})})})};Lve.displayName=Ave;var Ive="TooltipContent",Nve=i.forwardRef(((t,n)=>{const r=Rve(Ive,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=t,l=jve(Ive,t.__scopeTooltip);return e.jsx(J,{present:o||l.open,children:l.disableHoverableContent?e.jsx(Bve,{side:i,...a,ref:n}):e.jsx($ve,{side:i,...a,ref:n})})})),$ve=i.forwardRef(((t,n)=>{const r=jve(Ive,t.__scopeTooltip),o=kve(Ive,t.__scopeTooltip),a=i.useRef(null),l=B(n,a),[s,c]=i.useState(null),{trigger:u,onClose:d}=r,f=a.current,{onPointerInTransitChange:p}=o,h=i.useCallback((()=>{c(null),p(!1)}),[p]),g=i.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),p(!0)}),[p]);return i.useEffect((()=>()=>h()),[h]),i.useEffect((()=>{if(u&&f){const e=e=>g(e,f),t=e=>g(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[u,f,g,h]),i.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,c=t[i].y;l>r!=c>r&&n<(s-a)*(r-l)/(c-l)+a&&(o=!o)}return o}(n,s);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,f,s,d,h]),e.jsx(Bve,{...t,ref:l})})),[zve,Fve]=vve(Ove,{isInside:!1}),Bve=i.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=t,u=jve(Ive,r),d=bve(r),{onClose:f}=u;return i.useEffect((()=>(document.addEventListener(Cve,f),()=>document.removeEventListener(Cve,f))),[f]),i.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,f]),e.jsx(vge,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:e.jsxs(fve,{"data-state":u.stateAttribute,...d,...c,ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[e.jsx(H,{children:o}),e.jsx(zve,{scope:r,isInside:!0,children:e.jsx(mve,{id:u.contentId,role:"tooltip",children:a||o})})]})})}));Nve.displayName=Ive;var Kve="TooltipArrow",Vve=i.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=bve(r);return Fve(Kve,r).isInside?null:e.jsx(pve,{...i,...o,ref:n})}));Vve.displayName=Kve;var Hve=Eve,Uve=Pve,Wve=Mve,Zve=Lve,qve=Vve;const Gve=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},Yve=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:l,width:c,maxWidth:u,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=t,w=s(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(Hve,{children:e.jsxs(Uve,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e.jsx(Wve,{asChild:!0,children:e.jsx(Jve,Object.assign({},w,{children:n}))}),e.jsx(Zve,{container:v,children:!p&&e.jsxs(Xve,{side:Gve(i).side,align:Gve(i).align,sideOffset:a,zIndex:l,width:c,maxWidth:u,textAlign:d,id:h,bgColor:g,textColor:m,children:[o||r,e.jsx(qve,{className:"tooltip-arrow",width:12,height:8})]})})]})})},Xve=N(Nve,{shouldForwardProp:e=>$C(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,c=l.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),Jve=N.div({display:"inline-flex"}),Qve=N.div((({theme:e})=>({color:e.tooltip.color.default}))),eye=N.div((({theme:e})=>({color:e.tooltip.color.subtext})));Yve.Header=Qve,Yve.Body=eye;const tye=N.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),nr),nye=N.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),rye=N.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),oye=N.div({display:"flex",flexDirection:"column"}),iye=N.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),aye=N.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),lye=N.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),sye=N.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),cye=N.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var uye,dye={exports:{}};uye=dye,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function s(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){u&&o&&s&&(u(c),u=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,c=null,u=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),l(e,"head",t)}function f(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),l=!1;return i.onload=i.onreadystatechange=function(){l||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(l=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){l||(l=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,m(e)}}function g(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function v(e){this.a=e||"-"}function y(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new v("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=u(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),c(e.f,n,r)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function O(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){l(e.c,"body",e.a)}function P(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=P(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=P(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=P(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=P(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}v.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var A={D:"serif",C:"sans-serif"},_=null;function R(){if(null===_){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);_=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return _}function L(e,t,n){for(var r in A)if(A.hasOwnProperty(r)&&t===e.f[A[r]]&&n===e.f[A[r]])return!0;return!1}function I(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&L(e,o,i)),t?r()-e.A>=e.w?R()&&L(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){I(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),t(this.a)}),e),0)}function $(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var z=null;function F(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&c(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function B(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function K(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===r.length&&a)k(t.a);else{t.f+=r.length,a&&(t.j=a);var s,u=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&c(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new T(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new M(n(t.g,t),n(t.h,t),t.c,d,t.s,e,f),u.push(p)}for(s=0;s<u.length;s++)u[s].start()}}),0)}function V(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}$.prototype.g=function(e){var t=this.a;t.g&&c(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,F(this)},$.prototype.h=function(e){var t=this.a;if(t.g){var n=u(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),c(t.f,r,o)}E(t,"fontinactive",e),F(this)},B.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&c(e.f,[e.a.c("wf","loading")]),E(e,"loading")}(t),r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new $(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new y(s,n))):a.push(new y(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;f(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],h(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),c=0;c<s.length;c+=1)l.push(new y(r[0],s[c]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,c=0;c<s;c++){var u;if((u=l[c]).match(/^[\w-]+$/))if(null==(d=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":Y[u],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new y(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new y(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},f(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ne=new B(window);ne.a.c.custom=function(e,t){return new H(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new V(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};uye.exports?uye.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var fye=Ki(dye.exports);const pye="#0074F4",hye="#FF6068",gye="#FF9900",mye="#F0BB00",vye="#00C242",yye="#001D32",bye="#FFFFFF",wye={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:pye,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:ao(.95,pye),brandTint1:ao(.9,pye),brandTint2:ao(.8,pye),brandTint3:ao(.7,pye),brandTint4:ao(.6,pye),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:hye,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:ao(.95,hye),errorTint1:ao(.9,hye),errorTint2:ao(.8,hye),warning:gye,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:ao(.95,gye),warningTint1:ao(.9,gye),warningTint2:ao(.8,gye),alert:mye,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:ao(.95,mye),alertTint1:ao(.9,mye),alertTint2:ao(.8,mye),success:vye,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:ao(.95,vye),successTint1:ao(.9,vye),successTint2:ao(.8,vye),grayscale0:ao(.95,yye),grayscale1:ao(.9,yye),grayscale2:ao(.8,yye),grayscale3:ao(.7,yye),grayscale4:ao(.6,yye),grayscale5:ao(.5,yye),grayscale6:ao(.4,yye),grayscale7:ao(.3,yye),grayscale8:ao(.2,yye),grayscale9:ao(.1,yye),grayscale10:yye,contrast0:ao(.95,bye),contrast1:ao(.9,bye),contrast2:ao(.8,bye),contrast3:ao(.7,bye),contrast4:ao(.6,bye),contrast5:ao(.5,bye),contrast6:ao(.4,bye),contrast7:ao(.3,bye),contrast8:ao(.2,bye),contrast9:ao(.1,bye),contrast10:bye};var xye={color:wye,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:Cye}=xye;var Sye={small:{height:28,iconSize:18,font:Cye.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:Cye.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:Cye.size.lg,padding:14,iconOnlyPadding:6}};const kye="#FFFFFF",Eye={scale0:wye.grayscale0,scale1:wye.grayscale1,scale2:wye.grayscale2,scale3:wye.grayscale3,scale4:wye.grayscale4,scale5:wye.grayscale5,scale6:wye.grayscale6,scale7:wye.grayscale7,scale8:wye.grayscale8,scale9:wye.grayscale9,scale10:wye.grayscale10,accent:wye.brand,accentShade:wye.brandShade1,background0:kye,background1:kye,background2:kye,background3:kye,background4:kye,background5:kye},Oye="#FFFFFF",Dye=wye.grayscale0,jye=wye.grayscale1,Pye=wye.grayscale2,Tye=wye.grayscale3,Mye=wye.grayscale4,Aye=wye.grayscale6,_ye=wye.grayscale8,Rye=wye.grayscale9,Lye=wye.grayscale10,Iye=Object.assign(Object.assign(Object.assign({},xye),Eye),{name:"light",button:Object.assign(Object.assign({},Sye),{primary:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},outlineBackground:{default:wye.brandTint0,hover:wye.brandTint1,active:wye.brandTint2},border:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},divider:Pye},secondary:{color:{default:Lye,hover:Lye,active:Lye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:jye,hover:Pye,active:Tye},outlineBackground:{default:jye,hover:Pye,active:Tye},border:{default:Pye,hover:Pye,active:Pye},divider:Pye},positive:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},outlineBackground:{default:wye.successTint0,hover:wye.successTint1,active:wye.successTint2},border:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},divider:Pye},negative:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},outlineBackground:{default:wye.errorTint0,hover:wye.errorTint1,active:wye.errorTint2},border:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},divider:Pye},caution:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},outlineBackground:{default:wye.warningTint0,hover:wye.warningTint1,active:wye.warningTint2},border:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},divider:Pye},subtle:{color:{default:wye.brand,hover:wye.brand,active:wye.brand},outlineColor:{default:wye.brand,hover:wye.brand,active:wye.brand},secondaryColor:{default:Lye,hover:Lye,active:Lye},positiveColor:{default:wye.success,hover:wye.success,active:wye.success},negativeColor:{default:wye.error,hover:wye.error,active:wye.error},cautionColor:{default:wye.warning,hover:wye.warning,active:wye.warning},background:{default:"transparent",hover:jye,active:Pye},outlineBackground:{default:"transparent",hover:jye,active:Pye},border:{default:"transparent",hover:Pye,active:Pye},divider:Pye},link:{color:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},outlineColor:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},secondaryColor:{default:_ye,hover:Rye,active:Lye},positiveColor:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},negativeColor:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},cautionColor:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Mye,hover:Mye,active:Mye},outlineColor:{default:Mye,hover:Mye,active:Mye},background:{default:jye,hover:jye,active:jye},outlineBackground:{default:Dye,hover:Dye,active:Dye},border:{default:jye,hover:jye,active:jye},divider:jye},color:{default:Oye}}),calendar:{background:{container:wye.contrast10,hover:jye,active:wye.brand,activeHover:wye.brandShade1,activeRange:wye.brandTint4},color:{disabled:Mye,default:Lye,active:wye.contrast10,current:wye.brand,outside:Aye,weekday:_ye,monthYear:_ye,iconDefault:Aye,iconDisabled:Pye,iconHover:Lye}},defaultBorder:`1px solid ${jye}`,formControl:{color:{default:_ye,hover:Lye,active:wye.brand,activeHover:wye.brandShade1,disabled:Mye}},input:{borderRadius:4,background:{default:Dye,hover:jye,focused:jye,disabled:Dye},color:{default:Lye,disabled:Mye,placeholder:Aye,description:Aye,descriptionError:wye.error},borderColor:{default:Aye,hover:_ye,focused:wye.brand,disabled:Mye,error:wye.error},labelColor:{default:_ye,hover:_ye,filled:Aye,focused:wye.brand,disabled:Mye}},menu:{background:Oye},menuItem:{borderColor:wye.brand,background:{active:Dye,hover:jye,inactive:"transparent"},color:{active:Lye,hover:Lye,inactive:Aye}},modal:{background:wye.contrast10,color:{header:Lye,body:Aye}},options:{background:wye.contrast10},optionItem:{background:{active:jye,inactive:"transparent"},color:{active:Lye,inactive:Lye,accent:wye.brand}},table:{color:{header:Aye,body:Lye},borderColor:jye},toast:{color:Lye,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:_ye,info:wye.brand,success:wye.success,warning:wye.warning,error:wye.error}},toggle:{slider:wye.contrast10},tooltip:{background:"#FFF",color:{default:Lye,subtext:Aye}}}),Nye={scale0:wye.contrast0,scale1:wye.contrast1,scale2:wye.contrast2,scale3:wye.contrast3,scale4:wye.contrast4,scale5:wye.contrast5,scale6:wye.contrast6,scale7:wye.contrast7,scale8:wye.contrast8,scale9:wye.contrast9,scale10:wye.contrast10,accent:wye.brandDark,accentShade:wye.brandDarkShade1,background0:wye.brandBackground0,background1:wye.brandBackground1,background2:wye.brandBackground2,background3:wye.brandBackground3,background4:wye.brandBackground4,background5:wye.brandBackground5},$ye=wye.contrast0,zye=wye.contrast1,Fye=wye.contrast2,Bye=wye.contrast3,Kye=wye.contrast4,Vye=wye.contrast6,Hye=wye.contrast8,Uye=wye.contrast9,Wye=wye.contrast10,Zye=wye.brandDark,qye={light:Iye,dark:Object.assign(Object.assign(Object.assign({},xye),Nye),{name:"dark",button:Object.assign(Object.assign({},Sye),{primary:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},outlineBackground:{default:wye.brandTint0,hover:wye.brandTint1,active:wye.brandTint2},border:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},divider:Fye},secondary:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:zye,hover:Fye,active:Bye},outlineBackground:{default:zye,hover:Fye,active:Bye},border:{default:Fye,hover:Fye,active:Fye},divider:Fye},positive:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},outlineBackground:{default:wye.successTint0,hover:wye.successTint1,active:wye.successTint2},border:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},divider:Fye},negative:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},outlineBackground:{default:wye.errorTint0,hover:wye.errorTint1,active:wye.errorTint2},border:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},divider:Fye},caution:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},outlineBackground:{default:wye.warningTint0,hover:wye.warningTint1,active:wye.warningTint2},border:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},divider:Fye},subtle:{color:{default:wye.brand,hover:wye.brand,active:wye.brand},outlineColor:{default:wye.brand,hover:wye.brand,active:wye.brand},secondaryColor:{default:Wye,hover:Wye,active:Wye},positiveColor:{default:wye.success,hover:wye.success,active:wye.success},negativeColor:{default:wye.error,hover:wye.error,active:wye.error},cautionColor:{default:wye.warning,hover:wye.warning,active:wye.warning},background:{default:"transparent",hover:zye,active:Fye},outlineBackground:{default:"transparent",hover:zye,active:Fye},border:{default:"transparent",hover:Fye,active:Fye},divider:Fye},link:{color:{default:wye.brandShade2,hover:wye.brandShade1,active:wye.brand},outlineColor:{default:wye.brandShade2,hover:wye.brandShade1,active:wye.brand},secondaryColor:{default:Hye,hover:Uye,active:Wye},positiveColor:{default:wye.successShade2,hover:wye.successShade1,active:wye.success},negativeColor:{default:wye.errorShade2,hover:wye.errorShade1,active:wye.error},cautionColor:{default:wye.warningShade2,hover:wye.warningShade1,active:wye.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Kye,hover:Kye,active:Kye},outlineColor:{default:Kye,hover:Kye,active:Kye},background:{default:zye,hover:zye,active:zye},outlineBackground:{default:$ye,hover:$ye,active:$ye},border:{default:zye,hover:zye,active:zye},divider:zye},color:{default:"#FFFFFF"}}),calendar:{background:{container:wye.brandBackground3,hover:zye,active:wye.brand,activeHover:wye.brandShade1,activeRange:wye.brandTint4},color:{disabled:Kye,default:Wye,active:Wye,current:Zye,outside:Vye,weekday:Hye,monthYear:Hye,iconDefault:Vye,iconDisabled:Fye,iconHover:Wye}},defaultBorder:`1px solid ${zye}`,formControl:{color:{default:Hye,hover:Wye,active:wye.brand,activeHover:wye.brandShade1,disabled:Kye}},input:{borderRadius:4,background:{default:$ye,hover:zye,focused:zye,disabled:$ye},color:{default:Wye,disabled:Kye,placeholder:Vye,description:Vye,descriptionError:wye.error},borderColor:{default:Vye,hover:Hye,focused:Zye,disabled:Kye,error:wye.error},labelColor:{default:Hye,hover:Hye,filled:Vye,focused:Zye,disabled:Kye}},menu:{background:wye.brandBackground2},menuItem:{borderColor:wye.brand,background:{active:$ye,hover:zye,inactive:"transparent"},color:{active:Wye,hover:Wye,inactive:Vye}},modal:{background:wye.brandBackground3,color:{header:Wye,body:Vye}},options:{background:wye.brandBackground2},optionItem:{background:{active:zye,inactive:"transparent"},color:{active:Wye,inactive:Wye,accent:Zye}},table:{color:{header:Vye,body:Wye},borderColor:zye},toast:{color:Wye,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:Hye,info:wye.brand,success:wye.success,warning:wye.warning,error:wye.error}},toggle:{slider:wye.brandBackground0},tooltip:{background:wye.brandBackground4,color:{default:Wye,subtext:Vye}}})};exports.Accordion=sr,exports.Audio=DS,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:l,barCategoryGap:c,barSize:u=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=s(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(X1,Object.assign({},v,{children:[e.jsx(Y1,{}),e.jsx(YL,{width:"100%",height:"100%",children:e.jsxs($Q,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:u,maxBarSize:d,barGap:l,barCategoryGap:c,children:[e.jsx(vJ,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(IJ,{stroke:y,tickMargin:4,tickFormatter:e=>f?FS(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx($J,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:FS(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),Q1(),o&&e.jsx(M_,{content:e.jsx(e0,{})}),i.map((({key:t,color:n},r)=>e.jsx(DY,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=SS,exports.Calendar=w0,exports.Checkbox=UC,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:c,marginTop:u,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:c,marginTop:u,marginBottom:d,marginRight:f,marginLeft:p},m=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,y,b]=m;v=v||a||"",y=y||l||"",b=b||s?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(y){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Ht(r,o+1):Ht(o,r+1)}return null}));return Fn(t.flat())})(y);return t.some((t=>e===t))}return!1},k=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(y2,{method:x,url:k}):e.jsx(g2,{code:k,language:w,theme:"dark"===h?K0.oceanicNext:K0.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(C2,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(S2,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(k2,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(m2,{content:k})]}))})},exports.ComboBox=L2,exports.CommandMenu=t=>{var{onChange:n,options:r,inputProps:o,modalProps:i,triggerRef:a,position:l,offset:c,open:u,setOpen:d}=t,f=s(t,["onChange","options","inputProps","modalProps","triggerRef","position","offset","open","setOpen"]);const{"aria-label":p}=f,h=s(f,["aria-label"]),g=e.jsx(Qw,{"aria-label":p,children:e.jsxs(R3,Object.assign({},h,{children:[e.jsxs(L3,{margin:8,children:[e.jsx(ir,{name:"search",inheritColor:!0,marginRight:8}),e.jsx(I3,Object.assign({placeholder:"Search",autoFocus:!0},o))]}),e.jsxs(N3,{children:[e.jsx($3,{children:"No results found."}),r&&e.jsx(_3,{options:r,onItemSelect:e=>{n(e),d(!1)}})]})]}))});return a?e.jsx(qw,{triggerRef:a,isOpen:u,onOpenChange:d,placement:l,offset:c,children:g}):e.jsx(z3,Object.assign({isDismissable:!0,isOpen:u,onOpenChange:d},i,{children:e.jsx(Vx,{children:g})}))},exports.DatePicker=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:l,isLoading:c,fontSize:u,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,onChange:v,afterShow:y,afterHide:b}=n,w=s(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[x,C]=t.useState(!1),{current:S}=t.useRef(r?v0(r):void 0),[k,E]=t.useState(S),O=t.useRef(null),{min:D,max:j}=y0({past:g,future:m,rel:S||Rpe}),P=e=>{const{year:t,month:n,day:r}=e,o=new Fc(t,n,r);E(o);const i=m0(e);v&&v(i)},T=!(k||!o);return e.jsxs(Lpe,Object.assign({value:k,hasLabel:!!o,isDisabled:f,minValue:D,maxValue:j,onChange:P,onOpenChange:e=>{C(e),y&&e&&y(),b&&!e&&b()},ref:O},w,{children:[a&&R2(a,{marginRight:8}),e.jsxs(P2,{filled:!!k,disabled:f,children:[o,e.jsx(Ipe,{ref:i,hide:T,fontSize:u,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Ape,{placeholderColor:d,segment:t})})]}),e.jsx(_pe,{isDisabled:f,children:e.jsx(ir,{name:x?"caret-up":"caret-down",inheritColor:!0})}),l&&R2(l),c&&e.jsx(cS,{}),e.jsx(ope,{description:p,errorMessage:h}),e.jsx(qw,{triggerRef:O,children:e.jsx(Qw,{children:e.jsx(w0,{date:k?m0(k):void 0,onChange:e=>{P(v0(e))},preventPast:g,preventFuture:m})})})]}))},exports.DateRangePicker=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=n,x=s(n,["startValue","endValue","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[C,S]=t.useState(!1),{current:k}=t.useRef(r?v0(r):void 0),{current:E}=t.useRef(o?v0(o):void 0),[O,D]=t.useState(k),[j,P]=t.useState(E),T=t.useRef(null),{min:M,max:A}=y0({past:m,future:v,rel:k||Fpe}),_=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,c=new Fc(r,o,i);D(c);const u=new Fc(a,l,s);P(u);const d=m0(t),f=m0(n);y&&y(d,f)},R=!(!O&&!j),L=!(R||!i);return e.jsxs(Bpe,Object.assign({value:O&&j?{start:O,end:j}:void 0,hasLabel:!!i,isDisabled:p,minValue:M,maxValue:A,onChange:_,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:T},x,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:R,disabled:p,children:[i,e.jsxs(Vpe,{fontSize:d,hide:L,isDisabled:p,children:[e.jsx(Kpe,{slot:"start",ref:a,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Ape,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(Kpe,{slot:"end",fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Ape,{placeholderColor:f,segment:t})})]})]}),e.jsx(_pe,{isDisabled:p,children:e.jsx(ir,{name:C?"caret-up":"caret-down",inheritColor:!0})}),c&&R2(c),u&&e.jsx(cS,{}),e.jsx(ope,{description:h,errorMessage:g}),e.jsx(qw,{triggerRef:T,children:e.jsx(Qw,{children:e.jsx($pe,{startDate:O?m0(O):void 0,endDate:j?m0(j):void 0,onChange:(e,t)=>{const n=v0(e),r=v0(t);_({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))},exports.DocTable=F3,exports.DraftEditor=wfe,exports.Dropdown=Jfe,exports.DropdownMenu=iS,exports.DropdownSelect=n=>{var r,{label:o,options:i,width:a,search:l,onChange:c}=n,u=s(n,["label","options","width","search","onChange"]);const[d,f]=t.useState(new Set),[p,h]=t.useState(!1),[g,m]=t.useState(""),[v,y]=t.useState(!1),[b,w]=t.useState(!1),[x,C]=t.useState(0),[S,k]=t.useState("menu"),E=t.useRef(null),O=t.useRef(null),D=(e=>e.map((e=>"options"in e?e.options:e)).flat())(i),j=upe(i,g),P=e=>{f(e);const t=D.length,n="all"===e||e.size===t,r=!n&&e.size>0;y(n),w(r),C(n?t:e.size);const o=n?D:D.filter((t=>e.has(t.id)));c&&c(o)};return e.jsxs(dpe,Object.assign({width:a,ref:E,tabIndex:-1},u,{children:[e.jsxs(hpe,{children:[e.jsx(UC,{partial:b,checked:v,onChange:()=>P(v?new Set:"all")}),e.jsx(ppe,{children:o})]}),e.jsxs(hpe,{gap:8,children:[(b||v)&&e.jsx(gpe,{children:b?x:"All"}),e.jsxs(Mx,{onOpenChange:e=>{h(e),e||(m(""),k("menu"))},children:[e.jsx(oS,{children:e.jsx(ir,{name:p?"caret-up":"caret-down",inheritColor:!0})}),e.jsx(qw,{triggerRef:E,offset:2,children:e.jsxs(fpe,{width:a||(null===(r=null==E?void 0:E.current)||void 0===r?void 0:r.offsetWidth),children:[l&&e.jsx(spe,{value:g,onChange:m,placeholder:"Search",padding:"2px 4px",margin:8,minHeight:"unset",height:"auto",onFocus:()=>k("input"),onKeyDown:e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||null===(t=O.current)||void 0===t||t.focus()}}),g&&0===j.length&&e.jsx(mpe,{children:"No results found"}),e.jsx(rS,{options:j,selectionMode:"multiple",width:"100%",selectedKeys:d,onSelectionChange:P,autoFocus:"menu"===S,menuRef:O,itemProps:{checkbox:!0}})]})})]})]})]}))},exports.Ellipsis=vpe,exports.Form=Spe,exports.Grid=ype,exports.Icon=ir,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:c})=>{const[u,d]=t.useState(i),f=et(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(u>0?u-1:o.length-1),h=()=>u<o.length-1?d(u+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(Dpe,{opacity:c,prevNext:o.length>1,children:[e.jsx(jpe,{onClick:r,children:e.jsx(ir,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(Ppe,{id:"prev",onClick:p,children:e.jsx(ir,{name:"chevron-left",size:35,color:"white"})}),e.jsx(Tpe,{ref:f,src:o[u],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(Ppe,{next:!0,id:"next",onClick:h,children:e.jsx(ir,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=Mpe,exports.Input=$fe,exports.InputUtils=Wde,exports.Label=xpe,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,l=s(r,["data","legend","keys"]);const[c,u]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(X1,Object.assign({},l,{children:[e.jsx(Y1,{}),e.jsx(YL,{width:"100%",height:"100%",children:e.jsxs(NQ,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(vJ,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(IJ,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx($J,{stroke:d,tickMargin:4,tickFormatter:e=>FS(e)}),Q1(),i&&e.jsx(M_,{content:e.jsx(e0,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),c.map((({key:t,color:n,hidden:r},o)=>e.jsx(RJ,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=Jpe,exports.Message=rhe,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(uhe,{children:[e.jsx(che,{}),e.jsx(she,{color:n,style:r,children:t}),e.jsx(che,{})]}),exports.Modal=dhe,exports.MultiSelect=ghe,exports.Notification=FQ,exports.NumberInput=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,description:g,errorMessage:m,onChange:v}=n,y=s(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[b,w]=t.useState(NaN);t.useEffect((()=>{null!=r&&b!==r&&w(r)}),[r]);const x=!Number.isNaN(b)&&null!=b;return e.jsxs(Hpe,Object.assign({value:b,onChange:e=>{w(e),v&&v(e)},hasLabel:!!o,paddingRight:0,isDisabled:p,isReadOnly:h},y,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:x,disabled:p,children:[o,e.jsx(D2,{ref:a,placeholder:i,hide:!(x||!o),fontSize:d,placeholderColor:f,isDisabled:p})]}),c&&R2(c),u&&e.jsx(cS,{}),e.jsxs(Upe,{children:[e.jsx(Wpe,{slot:"increment",isDisabled:p||h,children:e.jsx(ir,{size:o?23.5:19.5,name:"caret-up",inheritColor:!0})}),e.jsx(Zpe,{}),e.jsx(Wpe,{slot:"decrement",isDisabled:p||h,children:e.jsx(ir,{size:o?23.5:19.5,name:"caret-down",inheritColor:!0})})]}),e.jsx(ope,{description:g,errorMessage:m})]}))},exports.Options=Hfe,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:l}=n,c=s(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,d]=t.useState(khe(o)||1),[f,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,khe(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},v=0!==f,y=f!==g.length-1;return e.jsxs(Ehe,Object.assign({width:l},c,{children:[e.jsx(Dhe,{disabled:1===u,onClick:()=>m(1),children:e.jsx(ir,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(Dhe,{disabled:1===u,onClick:()=>m(u-1),children:e.jsx(ir,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(Phe,{children:"... "}):"",e.jsx(jhe,{selected:n===u,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(Phe,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(Dhe,{disabled:u===i,onClick:()=>m(u+1),children:e.jsx(ir,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(Dhe,{disabled:u===i,onClick:()=>m(i),children:e.jsx(ir,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PhoneInput=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,description:g,errorMessage:m,onChange:v}=n,y=s(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[b,w]=t.useState(""),x=t.useRef(null);t.useEffect((()=>{var e,t;if(null!=r&&b!==r){const n=Nfe.normalize(r),o=Nfe.format(n);w(o);const{current:i}=a||x;if(i&&r===Nfe.normalize(r)){const n=new Event("change",{bubbles:!0}),{prototype:r}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(r,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(i,o),i.dispatchEvent(n)}}}),[r]);return e.jsxs(qpe,Object.assign({value:b,hasLabel:!!o,isDisabled:p,isReadOnly:h,onChange:e=>{const t=Nfe.normalize(e);if(t.length>10||e&&!t)return;const n=Nfe.format(t);b!==n&&(w(n),v&&v(n,t))},type:"tel"},y,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:!!b,disabled:p,children:[o,e.jsx(D2,{ref:a||x,placeholder:i,hide:!(b||!o),fontSize:d,placeholderColor:f,isDisabled:p})]}),c&&R2(c),u&&e.jsx(cS,{}),e.jsx(ope,{description:g,errorMessage:m})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=s(t,["size","data","innerRadius","showWhenEmpty"]);const l=(null==r?void 0:r.length)>0,c=l?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(X1,Object.assign({width:n,height:n},a,{children:e.jsxs(zQ,{width:n,height:n,children:[e.jsx(eG,{dataKey:"value",data:c,innerRadius:o,outerRadius:u,children:null==c?void 0:c.map((t=>e.jsx(XL,{fill:t.color||"#999"},t.name)))}),l&&Q1()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(The,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(Rhe,Object.assign({width:o,height:i||l},p,{children:e.jsx(Lhe,{color:n,width:h})}))},exports.Radio=bpe,exports.RangeCalendar=$pe,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,fye.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.SearchInput=spe,exports.Select=Ihe,exports.Slider=kS,exports.Spacer=zhe,exports.Spinner=cS,exports.Table=lge,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,l=s(t,["items","activeItem","itemWidth","itemGap","onChange"]);const c=n.filter((e=>!1!==e.visible));return e.jsx(uge,Object.assign({gap:i},l,{children:c.map((t=>{const{id:n,label:i,icon:l,iconColor:c,iconPosition:u}=t,d=s(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(dge,Object.assign({active:n===r,itemWidth:o,reverse:"right"===u,onClick:()=>(e=>{a(e)})(t),gap:l?4:void 0},d,{children:[l&&e.jsx(ir,{name:l,size:"small",color:c,inheritColor:!c}),i]}),n)}))}))},exports.TextInput=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,description:g,errorMessage:m,onChange:v}=n,y=s(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[b,w]=t.useState("");t.useEffect((()=>{null!=r&&b!==r&&w(r)}),[r]);return e.jsxs(Gpe,Object.assign({value:b,hasLabel:!!o,isDisabled:p,isReadOnly:h,onChange:e=>{w(e),v&&v(e)}},y,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:!!b,disabled:p,children:[o,e.jsx(D2,{ref:a,placeholder:i,hide:!(b||!o),fontSize:d,placeholderColor:f,isDisabled:p})]}),c&&R2(c),u&&e.jsx(cS,{}),e.jsx(ope,{description:g,errorMessage:m})]}))},exports.TimeInput=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:l,isLoading:c,fontSize:u,placeholderColor:d,disabled:f,readOnly:p,description:h,errorMessage:g,onChange:m}=n,v=s(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[y,b]=t.useState(r?Ac(r):null);t.useEffect((()=>{if(r){`${null==y?void 0:y.hour}:${null==y?void 0:y.minute}`!==r&&b(Ac(r))}}),[r]);const w=!(y||!o);return e.jsxs(Ype,Object.assign({value:y,hasLabel:!!o,isDisabled:f,isReadOnly:p,onChange:e=>{const{hour:t,minute:n,second:r}=e,o=new Kc(t,n,r);b(o),m&&m(e.toString())}},v,{children:[a&&R2(a,{marginRight:8}),e.jsxs(P2,{filled:!!y,disabled:f,children:[o,e.jsx(Xpe,{ref:i,hide:w,fontSize:u,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Ape,{placeholderColor:d,segment:t})})]}),l&&R2(l),c&&e.jsx(cS,{}),e.jsx(ope,{description:h,errorMessage:g})]}))},exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=wpe,exports.Tooltip=Yve,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:c,width:u,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g})=>{const m=t.useRef(),[v,y]=t.useState([]),[b,w]=t.useState([]),x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!kt(n,m.current)){m.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),y(t)}}),[n,m]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:y;(n?y:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},k=e=>{const t="select"===e?y:w,n="select"===e?v:b;("select"===e?w:y)((e=>[...e,...n])),t([])},E=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(sye,{children:t.header}),e.jsx(cye,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(tye,Object.assign({width:u,readOnly:c},x,{children:[i&&e.jsx(nye,{children:i}),e.jsxs(rye,{children:[!c&&e.jsxs(oye,{children:[O&&e.jsx(iye,{children:v.length>0&&!l&&e.jsx(SS,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(aye,{children:v.map((t=>e.jsxs(lye,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(ir,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(oye,{children:[O&&!c&&e.jsx(iye,{children:b.length>0&&!s&&!c&&e.jsx(SS,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),c&&0===b.length?e.jsx("div",{children:a}):e.jsx(aye,{children:b.map((t=>e.jsxs(lye,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(ir,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=wye,exports.copyToClipboard=q1,exports.darkScale=Nye,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,l="relative"===r||!1,s=new Date,c=H1(n,"EEEE"),u=H1(n,"MMM d"),d=H1(n,"MMM d, y"),f=H1(n,"h:mm aaa"),p=W1(n),h=function(e){return+BQ(e)>Date.now()}(n),g=function(e){return t1(e,e1(e))}(n),m=Z1(n),v=function(e){return t1(e,VQ(e1(e),1))}(n),y=i1(s,n),b=a1(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${d}${x}`:`${c}${x}`)},exports.lightScale=Eye,exports.marginProps=nr,exports.numberWithCommas=G1,exports.paddingProps=tr,exports.positionProps=rr,exports.theme=qye,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:c,inputValue:u}={})=>{const[d,f]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof u&&d!==u&&f(u)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};Qe(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":v()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(dhe,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(dhe.Header,{children:n}),r&&e.jsx(dhe.Text,{children:r}),l&&e.jsx(dhe.Body,{marginTop:4,marginBottom:8,children:e.jsx($fe,{autoFocus:!0,label:s,placeholder:c,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(dhe.Footer,{children:[e.jsx(SS,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx(SS,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=Qn,exports.useEventListener=Qe,exports.useOnClickOutside=et,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=Zn,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1),[c,u]=t.useState(0);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(s(!1),a(!0),u(r.length)):t?(s(!0),a(!1),u(r.filter((e=>e.selected)).length)):(s(!1),a(!1),u(0))}),[r]),{list:r,partial:l,allSelected:i,count:c,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=er;
45
+ var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(l[c]=n[c]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(l[a[u]]=n[a[u]])}}return l}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,l,s,c){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,u,typeof e[u]),d=e[u](n,u,s,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",l,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=c?c():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?l(e,t):function(e,t,n){return!(10===c(e).length&&!n||i(t))}(e,n,r)?s(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var l=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var l=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+l+i.substring(r)}var s=f(e,i,t,o);return{phoneNumber:d(i),cursorPosition:s}},s=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},c=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=c(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},f=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return d(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var l=/[^0-9]/g;if(a(n)&&l.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&l.test(e[n.start-1]))return n.start-1}var s=e.substring(n.end).match(/[0-9]/g),c=s?s.length:0,u=d(t),f=p(u,c);return u.length-f},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var Nfe=Ife.exports;const $fe=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:l,placeholderColor:c,description:u,isLoading:d,search:f,phone:p,textOnly:h,iconLeft:g,iconRight:m,invalid:v,borderRadius:y,borderColor:b,backgroundColor:w,fontSize:x,width:C,height:S,margin:k,marginLeft:E,marginRight:O,marginTop:D,marginBottom:j,padding:P,paddingLeft:T,paddingRight:M,paddingTop:A,paddingBottom:_,containerRef:R,value:L,disabled:I,readOnly:N,preventFocus:$,pointer:z,hideControls:F,onChange:B,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,W=s(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:Z,handleFocus:q,handleBlur:G}=Fde(H,U,!$&&!N),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:D,marginBottom:j,marginRight:O,marginLeft:E},ne={padding:P,paddingTop:A,paddingBottom:_,paddingRight:M,paddingLeft:T};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;L&&(e.innerHTML=L.toString().replace(/ /g,"&nbsp;"));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,L,l,ee]);const re=h?L||l:L,oe=(!!L||"number"==typeof L)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof L&&10===L.length&&L===Nfe.normalize(L)){const{current:n}=Y;if(n){const r=Nfe.format(L),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[L]);const ie=()=>{Z||q()},ae=()=>{Z&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:Z,select:le}))),t.useEffect((()=>{var e;Z&&(null===(e=Y.current)||void 0===e||e.focus())}),[Z]);return e.jsxs(Kde,Object.assign({ref:R,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:Z,disabled:I,hasLabel:!!a,onClick:e=>{$||N||ie(),K&&K(e)},pointer:z,readOnly:N},te,ne,{children:[f&&e.jsx(ir,{name:"search",marginRight:8,inheritColor:!0}),g&&R2(g,{marginRight:8}),e.jsxs(Vde,{readOnly:N||$,children:[h&&e.jsx(Bfe,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(Hde,{htmlFor:i||a,filled:Bde(L),focused:Z,disabled:I,children:a}),e.jsx(zfe,Object.assign({id:i||a,ref:Y,value:L,placeholder:l,placeholderColor:c,onChange:e=>{if(p){const{value:t}=e.target,n=Nfe.normalize(t);if(n.length>10)return;const r=Nfe.format(n);B&&B(e,r,n)}else B&&B(e)},onFocus:q,onBlur:G,disabled:I,hide:!(Bde(L)||!a||Z||h),width:J,fontSize:x,hideControls:F},W))]}),m&&R2(m),d&&e.jsx(cS,{}),oe&&e.jsx(Ffe,{onClick:V,children:e.jsx(ir,{name:"close-circle-outline",color:X.brand})}),u&&e.jsx(Ude,{invalid:v,children:u})]}))})),zfe=N.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),Ffe=N.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),Bfe=N.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Kfe=N("div",{shouldForwardProp:e=>$C(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Vfe=N("div",{shouldForwardProp:e=>$C(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),Hfe=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:c,offsetX:u,centerY:d,centerX:f,direction:p})=>{const[h,g]=t.useState(),m=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?u:c)||4))}}),[i,p]);const v=e.jsx(Ufe,{id:n,ref:i||m,offsetX:u,offsetY:c,width:l,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};Hfe.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:c,accented:u,section:d}=t,f=s(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(Vfe,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:l,color:c,accented:u,tabIndex:a?-1:0},f,{children:n}))};const Ufe=N(Kfe)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Wfe=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Zfe=t=>e.jsxs(e.Fragment,{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Gfe,{children:t.header}),e.jsx(Yfe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),qfe=(n,r,o,i,a)=>{const{selected:l}=a,c=((t,n,r,o)=>{if(t&&t.length>0)return Wfe(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(Hfe.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Zfe(t)},t.id)}));return[]})(n,o,i,s(a,["selected"])),u=((e,n,r)=>e?jfe(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return jfe([...c,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:l===n}):null))},Gfe=N.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Yfe=N.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Xfe=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Jfe=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:l,onFocus:c,onBlur:u,onError:d,placeholder:f,placeholderColor:p,value:h,options:g,children:m,borderColor:v,backgroundColor:y,hideIcon:b,clearOnSelect:w,textOnly:x,width:C,height:S,isLoading:k,margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P,label:T,id:M,name:A,trigger:_,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,fontSize:z,description:F,disabled:B,invalid:K,search:V,filter:H,restrictInput:U,inputRef:W,optionsParent:Z}=r,q=s(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[G,Y]=t.useState(""),[X,J]=t.useState(""),[Q,ee]=t.useState(!1),[te,ne]=t.useState(!1),[re,oe]=t.useState(!1),ie=t.useRef(null),{input:ae}=n.useTheme(),le={margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&l&&l(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(W||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ce=et(se,Q,Z?[Z,`${Z} *`]:void 0),ue=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ue(t.label,e);return!n&&"id"in t&&(n=ue(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ue(t.value,e)),n}));return t},fe=e=>"function"==typeof U?!U(e):U,pe=e=>he(null,e),he=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(fe(e))return de(e)||null;return{id:Lfe(),label:e,value:e}})(e);const t=fe(e);null===n&&t&&(r=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}Q&&se(t),Y((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?oe(!0):(re&&oe(!1),w&&Y(""),J(""))};t.useEffect((()=>{""!==h&&null!=h||pe()}),[h]);const ge=()=>{const e=jfe(m).map((e=>{const t=e;let n=t.props.displayText||"";return!T&&t.props.children&&(n=Xfe(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Wfe(g||[],{search:V,filter:H,inputText:X}),...e]},me={options:ge(),select:he,open:se,close:se,searchText:V?X:void 0,isOpen:Q,isFocused:te},[ve,ye]=Zn(me),be=qfe(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!B?p||ae.color.default:void 0,Ce=s(q,["onClear","phone"]);return e.jsx(Qfe,Object.assign({textOnly:x,altTrigger:!!_,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(epe,{ref:ce,children:[_?e.jsx(tpe,{id:M,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:_}):e.jsx(rpe,{shake:re,children:e.jsx($fe,Object.assign({},Ce,{ref:W||ie,id:M,name:A,label:T,fontSize:z,pointer:!0,preventFocus:!V,value:X||h||G,placeholder:f||"Select",placeholderColor:xe,iconRight:b||k?void 0:we,borderColor:v,backgroundColor:y,isLoading:k,textOnly:x,description:F,disabled:B,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(W||ie).current)||void 0===t?void 0:t.hasFocus;V?(J(n),!Q&&r&&ee(!0),re&&oe(!1)):n||pe(e);const o=de(n),i=fe(n),a=""===n||i&&!r;o&&!(V&&(!i||r))?he(o,e):V&&!a||pe(e)},onFocus:e=>{ne(!0),c&&c(e)},onBlur:e=>{var t;if(ne(!1),u&&u(e),V&&X&&e){const{relatedTarget:n}=e;(null===(t=null==ye?void 0:ye.current)||void 0===t?void 0:t.contains(n))||he(X,e)}}}))}),Q&&be.length>0&&e.jsx(Hfe,{containerRef:ye,parentSelector:Z,width:!_&&!x||Z?"100%":void 0,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,children:be})]})}))};Jfe.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:c,id:u,section:d})=>{const f=c?e=>{c&&c(e),o&&o()}:e=>{const o={id:u,label:n||Xfe(i)||"",value:t};r&&r(o,e)};return e.jsx(Hfe.Item,{id:u,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const Qfe=N.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),er,nr),epe=N.div({position:"relative",width:"100%",height:"inherit"}),tpe=N.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),npe=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),rpe=N.div((({shake:e})=>({"& input":{animation:e?`${npe} .5s linear`:void 0}}))),ope=({description:t,errorMessage:n})=>t||n?e.jsxs(ipe,{children:[t&&!n&&e.jsx(ape,{slot:"description",children:t}),n&&e.jsx(lpe,{children:n})]}):null,ipe=N.div({position:"absolute",left:0,top:"100%"}),ape=N(ty)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),lpe=N(lw)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),spe=r=>{var{value:o,label:i,placeholder:a,inputRef:l,iconLeft:c,iconRight:u,isLoading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,description:m,errorMessage:v,onChange:y}=r,b=s(r,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const{color:w}=n.useTheme(),[x,C]=t.useState("");t.useEffect((()=>{null!=o&&x!==o&&C(o)}),[o]);return e.jsxs(cpe,Object.assign({value:x,hasLabel:!!i,isDisabled:h,isReadOnly:g,onChange:e=>{C(e),y&&y(e)}},b,{children:[c&&R2(c,{marginRight:8}),e.jsx(ir,{name:"search",inheritColor:!0,marginRight:8}),e.jsxs(P2,{filled:!!x,disabled:h,children:[i,e.jsx(D2,{ref:l,placeholder:a,hide:!(x||!i),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e.jsx(cS,{}),!!x&&!d&&e.jsx(oS,{children:e.jsx(ir,{name:"close-circle-outline",color:w.brand})}),e.jsx(ope,{description:m,errorMessage:v})]}))},cpe=N(eC)(j2),upe=(e,t)=>{const n=e=>{if(!e)return!1;const n=t.toLowerCase();return e.toString().toLowerCase().includes(n)};return e.reduce(((e,r)=>{if("options"in r){const n=upe(r.options,t);n.length>0&&e.push(Object.assign(Object.assign({},r),{options:n}))}else{let t=n(r.value);!t&&"id"in r&&(t=n(r.id)),!t&&"body"in r&&(t=n(r.body)),!t&&"header"in r&&(t=n(r.header)),t&&e.push(r)}return e}),[])},dpe=N.div(j2),fpe=N.div(FC),ppe=N.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t}))),hpe=N.div((({gap:e})=>({display:"flex",alignItems:"center",gap:e||4}))),gpe=N.div((({theme:e})=>({color:e.scale10}))),mpe=N.div((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),vpe=N.div((({clampLines:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:e?void 0:"nowrap",WebkitLineClamp:e,display:e?"-webkit-box":void 0,WebkitBoxOrient:e?"vertical":void 0,wordBreak:e?"break-word":void 0})),(({width:e})=>({width:e||"auto"})),tr,nr),ype=N.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:c,width:u,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:c,alignContent:a,justifyContent:s,width:u,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),tr,nr);ype.Item=N.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})),tr,nr);const bpe=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:l,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f}=t,p=s(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:l,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};return e.jsxs(KC,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(HC,{children:r}),e.jsx(VC,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(ir,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},wpe=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,onChange:c,margin:u,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=s(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[m,v]=t.useState("toggle-off"),[y,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(y?"toggle-on":"toggle-off")}),[y]),t.useEffect((()=>{b("boolean"==typeof a?a:y)}),[a,y]),e.jsxs(KC,Object.assign({htmlFor:r,labelRight:w,disabled:l},x,{children:[o&&e.jsx(HC,{children:o}),e.jsx(VC,Object.assign({id:r,type:"checkbox",checked:y,disabled:l,onChange:()=>{const e=!y;b(e),c(e)}},g)),e.jsx(ir,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!l,size:40})]}))},xpe=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,l=s(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(Cpe,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&R2(r,{marginRight:4,size:"small"}),n,o&&R2(o,{marginLeft:4,size:"small"})]}))},Cpe=N.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),nr),Spe=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,c=s(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(kpe,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{l?l(e):e.preventDefault()}},c,{children:n}))};Spe.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,c=s(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(Epe,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},c,{children:n}))},Spe.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=s(t,["children","inline","align","disabled"]);return e.jsx(Ope,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Spe.Input=$fe,Spe.Dropdown=Jfe,Spe.Radio=bpe,Spe.Toggle=wpe,Spe.Checkbox=UC,Spe.Label=xpe;const kpe=N(ype)({boxSizing:"border-box"}),Epe=N(ype)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Ope=N.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),nr),Dpe=N.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),jpe=N.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Ppe=N.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),Tpe=N.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Mpe=N.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),Ape=N(mx)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder},'&[data-type="literal"]':{padding:0,color:t||e.input.color.placeholder},'&[data-type="dayPeriod"]':{textTransform:"lowercase"}}))),_pe=N(oS)((({theme:{input:e},isDisabled:t})=>({color:t?e.labelColor.disabled:e.labelColor.default}))),Rpe=g0(),Lpe=N(Cx)(j2),Ipe=N(hx,E2)({display:"flex"},O2),Npe=g0(),$pe=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:l,noShadow:c}=n,u=s(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?v0(r):Npe),{current:f}=t.useRef(o?v0(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),{min:v,max:y}=y0({past:a,future:l,rel:d});return e.jsxs(zpe,Object.assign({value:{start:p,end:g},onChange:e=>{const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:c}=n,u=new Fc(r,o,a);h(u);const d=new Fc(l,s,c);m(d);const f=m0(t),p=m0(n);i&&i(f,p)},minValue:v,maxValue:y,noShadow:c},u,{children:[e.jsx(d0,{}),e.jsx(a0,{range:!0})]}))},zpe=N(Zb)(i0),Fpe=g0(),Bpe=N(kx)(j2),Kpe=N(hx,E2)(O2,{display:"flex","&:first-of-type":{marginRight:0}}),Vpe=N(Hw,E2)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),Hpe=N(Xx)(j2),Upe=N.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder,overflow:"hidden",borderTopRightRadius:4,borderBottomRightRadius:4}))),Wpe=N(oS)((({theme:e,isDisabled:t})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",borderRadius:0,color:t?e.scale4:void 0,pointerEvents:t?"none":void 0,"&:hover":{backgroundColor:t?void 0:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Zpe=N.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),qpe=N(NC)(j2),Gpe=N(NC)(j2),Ype=N(ux)(j2),Xpe=N(hx,E2)({display:"flex"},O2),Jpe=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:c,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(Qpe,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:c,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?jfe(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),Qpe=N.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})),tr),ehe=N.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),the=N.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),nhe=N.div({marginLeft:"auto",marginRight:8});Jpe.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(ehe,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),Jpe.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:c,children:u,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>jfe(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:f})}return null})),m=g(u),v=()=>h((e=>!e));return e.jsxs(the,{backgroundColor:f,children:[e.jsxs(ehe,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:c,role:"menuitem",indent:d,children:[n,e.jsx(nhe,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(ir,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const rhe=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d,children:f})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d};return e.jsxs(ahe,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(ir,{name:h,style:{marginRight:10},color:g}),e.jsx(lhe,{children:r||f}),o&&e.jsx(ir,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},ohe=N.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),ihe=N.div((({theme:e})=>({fontWeight:e.font.weight.default})));rhe.Header=ohe,rhe.Body=ihe;const ahe=N.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),nr),lhe=N.div({width:"100%"}),she=N.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),che=N.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),uhe=N.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),dhe=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:c,preventOverlayClose:u,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:j})=>{const P=et(u?()=>null:s,i),T={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},M=jfe(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),A=e.jsx(hhe,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:j,blur:d,children:e.jsxs(fhe,Object.assign({ref:P,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},T,{children:[M,c&&e.jsx(phe,{inline:h,children:e.jsx(ir,{name:"close",onClick:s,pointer:!0})})]}))}),_=document.querySelector(o||"#root");return i&&_?r.createPortal(A,_):null};dhe.Header=N.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),dhe.Text=N.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),dhe.Body=N.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),nr),dhe.Footer=N.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),nr);const fhe=N.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),tr),phe=N.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),hhe=N.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:c,zIndex:u})=>({position:i||"absolute",top:a||(c||l||s?void 0:0),left:c||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:u||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),ghe=t.forwardRef(((o,i)=>{var{children:a,options:l,items:c,listLabel:u,listText:d,itemsTitle:f,maxItems:p,placeholder:h,width:g,filter:m,restrictInput:v,disabled:y,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:k,removeItem:E,onTextChange:O,autoFocus:D}=o,j=s(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[P,T]=t.useState(D||!1),[M,A]=t.useState(!1),[_,R]=t.useState(""),{color:L,font:I,input:N}=n.useTheme(),$=et((()=>T(!1)),P,w?[w,`${w} *`]:void 0),z=t.useRef(null),F=x&&!!u,B=e=>{e&&k(e)},K=()=>{const{current:e}=z;P||u||T(!0),null==e||e.focus()},V=()=>{const{current:e}=z;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:K,blur:V})));const H=e=>{R(e),O&&O(e)};t.useEffect((()=>{P||V()}),[P]);Qe(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];E(t)}}),P&&!_,[c]);const U=l.filter((e=>!c.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${Lfe()}`),[]),Z=t.useMemo((()=>`multi-select-list-${Lfe()}`),[]),q=p?c.length>=p:void 0,G=y||!P||q,Y=()=>{const t=e.jsxs(bhe,{id:Z,expanded:P,padTop:P&&c.length>0,labeled:!!u,children:[d&&e.jsx(whe,{expanded:P,labeled:!!u,children:d}),a?a(P,!!y):c.map((t=>e.jsx(xpe,{pill:!0,iconRight:P&&!y?e.jsx(ir,{name:"close-circle",onClick:()=>E(t),pointer:!0}):void 0,disabled:y,children:t.label},t.id))),e.jsx(Jfe,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:m,backgroundColor:"transparent",restrictInput:v,options:U,fontSize:I.size.md,placeholder:y||c.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:z,onChange:B,onTextChange:H,onError:e=>A(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:D}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(mhe,{width:g,ref:$,labeled:!!u,disabled:y,collapse:F,onClick:e=>{e.stopPropagation(),K()},children:[e.jsxs(vhe,{collapse:F,id:W,expanded:P&&c.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:S,children:[u?e.jsx(yhe,{collapse:F,children:u}):Y(),e.jsxs(xhe,{children:[p&&!b&&e.jsx(She,{children:y&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(Che,{error:c.length>=p,children:c.length}),"/",p," ",f]})}),c.length>0&&e.jsx(ir,{name:P?"chevron-up":"chevron-down",color:L.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!P)}})]})]}),u&&P&&Y()]})})),mhe=N.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),vhe=N.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),yhe=N.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),bhe=N.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),whe=N.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),xhe=N.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Che=N.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),She=N.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),khe=e=>e?+e:0,Ehe=N.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),nr),Ohe=N.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),Dhe=N(Ohe)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),jhe=N(Ohe)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),Phe=N.span((({theme:e})=>({color:e.scale6}))),The=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:c})=>{const u={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:c},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs(Mhe,Object.assign({size:n},u,{children:[e.jsx(Ahe,{cx:h,cy:h,r:d,thickness:r}),e.jsx(_he,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},Mhe=N.svg((({size:e})=>({display:"block",width:e,height:e})),nr),Ahe=N.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),_he=N(Ahe)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Rhe=N.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),nr),Lhe=N.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),Ihe=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:l,options:c,placeholder:u="Select",placeholderColor:d,textOnly:f,value:p,width:h,allowRepeatSelection:g,onChange:m,afterShow:v,afterHide:y}=n,b=s(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","allowRepeatSelection","onChange","afterShow","afterHide"]);const[w,x]=t.useState(!1),[C,S]=t.useState(p||""),{margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:j}=b,P={margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:j};t.useEffect((()=>{p&&p!==C&&S(p)}),[p,C]);const T=!C&&l;return e.jsxs(iC,Object.assign({placeholder:u,onOpenChange:e=>{x(e),v&&e&&v(),y&&!e&&y()},onSelectionChange:e=>{(g||e!==C)&&(S(e),m&&m(e))},isDisabled:a,selectedKey:p?C:void 0},b,{children:[e.jsxs(Nhe,Object.assign({backgroundColor:r,textOnly:f,width:h,hasLabel:!!l,isDisabled:a,pointer:!0},P,{children:[e.jsxs(P2,{filled:!!C,disabled:a,children:[l,e.jsx($he,{fontSize:i,placeholderColor:d,isDisabled:a,style:({isPlaceholder:e})=>e&&T?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e.jsx(ir,{name:w?"caret-up":"caret-down",inheritColor:!0})]})),e.jsx(lw,{}),e.jsx(qw,{offset:2,children:c?e.jsx(_2,{options:c,autoWidth:f}):e.jsx(T2,{autoWidth:f,shouldFocusWrap:!0,children:o})})]}))};Ihe.Item=M2,Ihe.Section=nS;const Nhe=N(Jv)(j2),$he=N(sC)((({theme:{input:e,font:t},fontSize:n,placeholderColor:r,isDisabled:o})=>({color:o?e.color.disabled:e.color.default,fontFamily:t.family.default,fontSize:n||t.size.lg,"&[data-placeholder]":{color:r||(o?e.color.disabled:e.color.placeholder)}}))),zhe=N.div(er);var Fhe=lR,Bhe=BS;var Khe=function(e,t,n,r){return null==e?[]:(Bhe(t)||(t=null==t?[]:[t]),Bhe(n=r?void 0:n)||(n=null==n?[]:[n]),Fhe(e,t,n))},Vhe=Ki(Khe);const Hhe=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,Uhe=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(Hhe);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=Hhe(r)),void 0!==o&&(t.right=Hhe(o)),void 0!==i&&(t.bottom=Hhe(i)),void 0!==a&&(t.left=Hhe(a)),t},Whe=t.createContext({}),Zhe=n=>{var{children:r,onClick:o,disabled:i,padding:a,paddingTop:l,paddingRight:c,paddingBottom:u,paddingLeft:d}=n,f=s(n,["children","onClick","disabled","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);const{setRowPadding:p}=t.useContext(Whe);return t.useEffect((()=>{if((a||l||c||u||d)&&p){const e=Uhe({padding:a,paddingTop:l,paddingRight:c,paddingBottom:u,paddingLeft:d});p(e)}}),[a,l,c,u,d,p]),e.jsx(qhe,Object.assign({isDisabled:i,onAction:o&&!i?o:void 0,hoverEffect:!!o&&!i},f,{children:r}))},qhe=N(jC)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:void 0,backgroundColor:t,outline:"none",transition:"background-color 0.2s",position:"relative"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,emphasis:t})=>{let n;return!0===t?n=e.color.brand:"string"==typeof t&&(n=t),{height:"100%","& > td:first-of-type > div":{borderLeft:"2px solid transparent",borderLeftColor:n},"&:not(:first-of-type) > td > div":{borderTop:`1px solid ${e.table.borderColor}`},"&.fetching-row":{borderTop:`1px solid ${e.table.borderColor}`,"& > td > div":{borderTop:"none"}}}}),(({height:e})=>({height:e}))),Ghe=({spinnerSize:t})=>{const n="small"===t;return e.jsx(Zhe,{height:n?49:57,className:n?"fetching-row":void 0,children:e.jsx(Yhe,{children:e.jsx(cS,{size:t,center:!0})})})},Yhe=N(PC)((({theme:e})=>({color:e.scale6}))),Xhe=N(DC)((({theme:e})=>({"&[data-empty]":{textAlign:"center",color:e.table.color.body,fontSize:e.font.size.sm,"& > tr:first-of-type > td:first-of-type":{paddingTop:16}}}))),Jhe=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},Qhe=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:Jhe(t),alignItems:Jhe(n),flexDirection:e,width:"100%",height:"100%",gap:r}),tr],ege=N(PC)((({theme:e})=>({padding:0,outline:"none","&:focus-visible":{outline:`${e.accent} solid 1px`}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o,parentPadding:i})=>{var a,l,s,c;const{top:u,right:d,bottom:f,left:p}=i||{};return{"& > div":{paddingTop:null!==(a=null!=t?t:u)&&void 0!==a?a:16,paddingBottom:null!==(l=null!=n?n:f)&&void 0!==l?l:16,paddingLeft:o,paddingRight:r,padding:e},"&:first-of-type > div":{paddingLeft:null!==(s=null!=o?o:void 0!==p?p-2:void 0)&&void 0!==s?s:24},"&:last-of-type > div":{paddingRight:null!==(c=null!=r?r:d)&&void 0!==c?c:24}}})),tge=N.div(Qhe,(({showDefault:e})=>e&&{"& > *":{opacity:.3}})),nge=N(OC)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),rge=({sortDirection:t})=>{const{color:r,scale4:o}=n.useTheme(),i="asc"===t?r.brand:o,a="desc"===t?r.brand:o;return e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M8.71005 14.71L11.3001 17.3C11.6901 17.69 12.3201 17.69 12.7101 17.3L15.3001 14.71C15.9301 14.08 15.4801 13 14.5901 13H9.41005C8.52005 13 8.08005 14.08 8.71005 14.71Z",fill:a}),e.jsx("path",{d:"M8.71005 8.88253L11.3001 6.29253C11.6901 5.90253 12.3201 5.90253 12.7101 6.29253L15.3001 8.88253C15.9301 9.51253 15.4801 10.5925 14.5901 10.5925H9.41005C8.52005 10.5925 8.08005 9.51253 8.71005 8.88253Z",fill:i})]})},oge=N(SC)((({theme:e,maxWidth:t})=>{const n=t?`${"number"==typeof t?`${t}px`:t} !important`:void 0;return{textAlign:"left",verticalAlign:"middle",color:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,padding:0,outline:"none",maxWidth:t?n:void 0,"&:focus-visible":{outline:`${e.accent} solid 1px`}}}),(({theme:e,padding:t,paddingTop:n,paddingBottom:r,paddingRight:o,paddingLeft:i,parentPadding:a})=>{var l,s,c,u;return{"& > div":{paddingTop:null!==(l=null!=n?n:null==a?void 0:a.top)&&void 0!==l?l:8,paddingBottom:null!==(s=null!=r?r:null==a?void 0:a.bottom)&&void 0!==s?s:8,paddingLeft:i,paddingRight:o,padding:t,borderBottom:`1px solid ${e.table.borderColor}`},"&:first-of-type > div":{paddingLeft:null!==(c=null!=i?i:null==a?void 0:a.left)&&void 0!==c?c:24},"&:last-of-type > div":{paddingRight:null!==(u=null!=o?o:null==a?void 0:a.right)&&void 0!==u?u:24}}})),ige=N.div(Qhe,(({theme:e,sorting:t,active:n})=>({"& > div:first-of-type, & > span":{cursor:t?"pointer":void 0,color:n?e.scale10:e.table.color.header,"&:hover":{color:t?e.scale8:void 0}}}))),age=N(xC)((({theme:e,backgroundColor:t})=>({position:"sticky",top:0,zIndex:1,"& > tr > th":{backgroundColor:t||e.background0}}))),lge=n=>{var{children:r,data:o,onScrollEnd:i,backgroundColor:a,maxHeight:l}=n,c=s(n,["children","data","onScrollEnd","backgroundColor","maxHeight"]);const[u,d]=t.useState(o),[f,p]=t.useState(),[h,g]=t.useState(),[m,v]=t.useState(),y=o&&"function"==typeof r?r(u):r;t.useEffect((()=>{if(o){let e=o;if(f){const{key:t,dir:n}=f;e=Vhe(o,[t],[n])}kt(e,u)||d(e)}}),[o,f]);const b=t.useMemo((()=>({activeColumn:f,setActiveColumn:p,backgroundColor:a,headerPadding:h,rowPadding:m,setHeaderPadding:g,setRowPadding:v})),[f,p,a,h,m,g,v]);return e.jsx(Whe.Provider,{value:b,children:e.jsx(sge,{onScroll:i?e=>{const t=e.target,{scrollHeight:n,scrollTop:r,clientHeight:o}=t;n-r===o&&i&&i()}:void 0,backgroundColor:a,maxHeight:l,children:e.jsx(cge,Object.assign({},c,{children:y}))})})};lge.Header=({children:n,backgroundColor:r,padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s})=>{const{backgroundColor:c,setHeaderPadding:u}=t.useContext(Whe);return t.useEffect((()=>{if((o||i||a||l||s)&&u){const e=Uhe({padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s});u(e)}}),[o,i,a,l,s,u]),e.jsx(age,{backgroundColor:r||c,children:n})},lge.Column=n=>{var{children:r,sortKey:o,sorted:i,onClick:a,resize:l,direction:c,justify:u,align:d,gap:f}=n,p=s(n,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[h,g]=t.useState(i||"inactive"),{activeColumn:m,setActiveColumn:v,headerPadding:y}=t.useContext(Whe),b=o||i,w="asc"===h||"desc"===h,x={direction:c,justify:u,align:d,gap:f},C=e=>{if(g(e),v&&o){v("inactive"===e?void 0:{key:o,dir:e})}};t.useEffect((()=>{!o||"asc"!==i&&"desc"!==i||C(i)}),[]),t.useEffect((()=>{i&&g(i)}),[i]),t.useEffect((()=>{const e=!m&&i;o&&m&&m.key!==o&&"inactive"!==h&&!e&&g("inactive")}),[m,h]);const S=b||a?e=>{o?C("inactive"===h?"asc":"asc"===h?"desc":"inactive"):a&&a(e)}:void 0;return e.jsx(oge,Object.assign({parentPadding:y},p,{children:e.jsxs(ige,Object.assign({sorting:!!b,active:w},x,{children:["string"==typeof r?e.jsx(vpe,{onClick:S,children:r}):r,b&&e.jsx("span",{"aria-hidden":"true",onClick:S,children:e.jsx(ir,{svg:e.jsx(rge,{sortDirection:h}),marginLeft:-8})}),l&&e.jsx(nge,{})]}))}))},lge.Body=({children:t,emptyFallback:n,fetching:r,loading:o})=>e.jsxs(Xhe,{renderEmptyState:({isEmpty:e})=>e&&n?n:null,children:[o&&e.jsx(Ghe,{}),!o&&t,r&&e.jsx(Ghe,{spinnerSize:"small"})]}),lge.Row=Zhe,lge.Cell=n=>{var{children:r,defaultValue:o,direction:i,justify:a,align:l,gap:c,clampLines:u}=n,d=s(n,["children","defaultValue","direction","justify","align","gap","clampLines"]);const{rowPadding:f}=t.useContext(Whe),p={direction:i,justify:a,align:l,gap:c},h=r||o;return e.jsx(ege,Object.assign({parentPadding:f},d,{children:e.jsx(tge,Object.assign({showDefault:!!o&&!r},p,{children:"string"==typeof h?e.jsx(vpe,{paddingRight:2,clampLines:u,children:h}):h}))}))};const sge=N(fC)((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",borderRadius:4,backgroundColor:t||e.background0}))),cge=N(yC)({height:"fit-content"},nr,tr),uge=N.div((({gap:e=8})=>({display:"flex",gap:e})),nr),dge=N.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"})));var fge,pge="dismissableLayer.update",hge="dismissableLayer.pointerDownOutside",gge="dismissableLayer.focusOutside",mge=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vge=i.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...u}=t,d=i.useContext(mge),[f,p]=i.useState(null),h=f?.ownerDocument??globalThis?.document,[,g]=i.useState({}),m=B(n,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,S=function(e,t=globalThis?.document){const n=q(e),r=i.useRef(!1),o=i.useRef((()=>{}));return i.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){bge(hge,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(a?.(e),s?.(e),e.defaultPrevented||c?.())}),h),k=function(e,t=globalThis?.document){const n=q(e),r=i.useRef(!1);return i.useEffect((()=>{const e=e=>{if(e.target&&!r.current){bge(gge,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),s?.(e),e.defaultPrevented||c?.())}),h);return function(e,t=globalThis?.document){const n=q(e);i.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{w===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),i.useEffect((()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(fge=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yge(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=fge)}}),[f,h,r,d]),i.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yge())}),[f,d]),i.useEffect((()=>{const e=()=>g({});return document.addEventListener(pge,e),()=>document.removeEventListener(pge,e)}),[]),e.jsx(Y.div,{...u,ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:Z(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Z(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Z(t.onPointerDownCapture,S.onPointerDownCapture)})}));vge.displayName="DismissableLayer";function yge(){const e=new CustomEvent(pge);document.dispatchEvent(e)}function bge(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&a.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}i.forwardRef(((t,n)=>{const r=i.useContext(mge),o=i.useRef(null),a=B(n,o);return i.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),e.jsx(Y.div,{...t,ref:a})})).displayName="DismissableLayerBranch";const wge=["top","right","bottom","left"],xge=Math.min,Cge=Math.max,Sge=Math.round,kge=Math.floor,Ege=e=>({x:e,y:e}),Oge={left:"right",right:"left",bottom:"top",top:"bottom"},Dge={start:"end",end:"start"};function jge(e,t,n){return Cge(e,xge(t,n))}function Pge(e,t){return"function"==typeof e?e(t):e}function Tge(e){return e.split("-")[0]}function Mge(e){return e.split("-")[1]}function Age(e){return"x"===e?"y":"x"}function _ge(e){return"y"===e?"height":"width"}function Rge(e){return["top","bottom"].includes(Tge(e))?"y":"x"}function Lge(e){return Age(Rge(e))}function Ige(e){return e.replace(/start|end/g,(e=>Dge[e]))}function Nge(e){return e.replace(/left|right|bottom|top/g,(e=>Oge[e]))}function $ge(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function zge(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fge(e,t,n){let{reference:r,floating:o}=e;const i=Rge(t),a=Lge(t),l=_ge(a),s=Tge(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Mge(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Bge(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Pge(t,e),h=$ge(p),g=l[f?"floating"===d?"reference":"floating":d],m=zge(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=zge(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}function Kge(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vge(e){return wge.some((t=>e[t]>=0))}function Hge(e){return Zge(e)?(e.nodeName||"").toLowerCase():"#document"}function Uge(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wge(e){var t;return null==(t=(Zge(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zge(e){return e instanceof Node||e instanceof Uge(e).Node}function qge(e){return e instanceof Element||e instanceof Uge(e).Element}function Gge(e){return e instanceof HTMLElement||e instanceof Uge(e).HTMLElement}function Yge(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Uge(e).ShadowRoot)}function Xge(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rme(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jge(e){return["table","td","th"].includes(Hge(e))}function Qge(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function eme(e){const t=tme(),n=qge(e)?rme(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function tme(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nme(e){return["html","body","#document"].includes(Hge(e))}function rme(e){return Uge(e).getComputedStyle(e)}function ome(e){return qge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ime(e){if("html"===Hge(e))return e;const t=e.assignedSlot||e.parentNode||Yge(e)&&e.host||Wge(e);return Yge(t)?t.host:t}function ame(e){const t=ime(e);return nme(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gge(t)&&Xge(t)?t:ame(t)}function lme(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ame(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Uge(o);return i?t.concat(a,a.visualViewport||[],Xge(o)?o:[],a.frameElement&&n?lme(a.frameElement):[]):t.concat(o,lme(o,[],n))}function sme(e){const t=rme(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gge(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Sge(n)!==i||Sge(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function cme(e){return qge(e)?e:e.contextElement}function ume(e){const t=cme(e);if(!Gge(t))return Ege(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sme(t);let a=(i?Sge(n.width):n.width)/r,l=(i?Sge(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const dme=Ege(0);function fme(e){const t=Uge(e);return tme()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dme}function pme(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=cme(e);let a=Ege(1);t&&(r?qge(r)&&(a=ume(r)):a=ume(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Uge(e))&&t}(i,n,r)?fme(i):Ege(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Uge(i),t=r&&qge(r)?Uge(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=ume(o),t=o.getBoundingClientRect(),r=rme(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=Uge(o),o=n.frameElement}}return zge({width:u,height:d,x:s,y:c})}function hme(e){return pme(Wge(e)).left+ome(e).scrollLeft}function gme(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Uge(e),r=Wge(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=tme();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Wge(e),n=ome(e),r=e.ownerDocument.body,o=Cge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Cge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hme(e);const l=-n.scrollTop;return"rtl"===rme(r).direction&&(a+=Cge(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Wge(e));else if(qge(t))r=function(e,t){const n=pme(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Gge(e)?ume(e):Ege(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=fme(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return zge(r)}function mme(e,t){const n=ime(e);return!(n===t||!qge(n)||nme(n))&&("fixed"===rme(n).position||mme(n,t))}function vme(e,t,n){const r=Gge(t),o=Wge(t),i="fixed"===n,a=pme(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Ege(0);if(r||!r&&!i)if(("body"!==Hge(t)||Xge(o))&&(l=ome(t)),r){const e=pme(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=hme(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function yme(e){return"static"===rme(e).position}function bme(e,t){return Gge(e)&&"fixed"!==rme(e).position?t?t(e):e.offsetParent:null}function wme(e,t){const n=Uge(e);if(Qge(e))return n;if(!Gge(e)){let t=ime(e);for(;t&&!nme(t);){if(qge(t)&&!yme(t))return t;t=ime(t)}return n}let r=bme(e,t);for(;r&&Jge(r)&&yme(r);)r=bme(r,t);return r&&nme(r)&&yme(r)&&!eme(r)?n:r||function(e){let t=ime(e);for(;Gge(t)&&!nme(t);){if(eme(t))return t;if(Qge(t))return null;t=ime(t)}return null}(e)||n}const xme={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Wge(r),l=!!t&&Qge(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Ege(1);const u=Ege(0),d=Gge(r);if((d||!d&&!i)&&(("body"!==Hge(r)||Xge(a))&&(s=ome(r)),Gge(r))){const e=pme(r);c=ume(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:Wge,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Qge(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=lme(e,[],!1).filter((e=>qge(e)&&"body"!==Hge(e))),o=null;const i="fixed"===rme(e).position;let a=i?ime(e):e;for(;qge(a)&&!nme(a);){const t=rme(a),n=eme(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Xge(a)&&!n&&mme(e,a))?r=r.filter((e=>e!==a)):o=t,a=ime(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=gme(t,n,o);return e.top=Cge(r.top,e.top),e.right=xge(r.right,e.right),e.bottom=xge(r.bottom,e.bottom),e.left=Cge(r.left,e.left),e}),gme(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wme,getElementRects:async function(e){const t=this.getOffsetParent||wme,n=this.getDimensions,r=await n(e.floating);return{reference:vme(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=sme(e);return{width:t,height:n}},getScale:ume,isElement:qge,isRTL:function(e){return"rtl"===rme(e).direction}};function Cme(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=cme(e),u=o||i?[...c?lme(c):[],...lme(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=Wge(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-kge(u)+"px "+-kge(o.clientWidth-(c+d))+"px "+-kge(o.clientHeight-(u+f))+"px "+-kge(c)+"px",threshold:Cge(0,xge(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let g=s?pme(e):null;return s&&function t(){const r=pme(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const Sme=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Tge(n),l=Mge(n),s="y"===Rge(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Pge(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},kme=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Pge(e,t),c={x:n,y:r},u=await Bge(t,s),d=Rge(Tge(o)),f=Age(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=jge(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=jge(h+u["y"===d?"top":"left"],h,h-u[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Eme=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=Pge(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Tge(o),y=Rge(l),b=Tge(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=f||(b||!g?[Nge(l)]:function(e){const t=Nge(e);return[Ige(e),t,Ige(t)]}(l)),C="none"!==h;!f&&C&&x.push(...function(e,t,n,r){const o=Mge(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Tge(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ige)))),i}(l,g,h,w));const S=[l,...x],k=await Bge(t,m),E=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(k[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Mge(e),o=Lge(e),i=_ge(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Nge(a)),[a,Nge(a)]}(o,a,w);E.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:o,overflows:E}],!E.every((e=>e<=0))){var D,j;const e=((null==(D=i.flip)?void 0:D.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(j=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=O.filter((e=>{if(C){const t=Rge(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Ome=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=Pge(e,t),s=await Bge(t,l),c=Tge(n),u=Mge(n),d="y"===Rge(n),{width:f,height:p}=r.floating;let h,g;"top"===c||"bottom"===c?(h=c,g=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,h="end"===u?"top":"bottom");const m=p-s.top-s.bottom,v=f-s.left-s.right,y=xge(p-s[h],m),b=xge(f-s[g],v),w=!t.middlewareData.shift;let x=y,C=b;if(d?C=u||w?xge(b,v):v:x=u||w?xge(y,m):m,w&&!u){const e=Cge(s.left,0),t=Cge(s.right,0),n=Cge(s.top,0),r=Cge(s.bottom,0);d?C=f-2*(0!==e||0!==t?e+t:Cge(s.left,s.right)):x=p-2*(0!==n||0!==r?n+r:Cge(s.top,s.bottom))}await a({...t,availableWidth:C,availableHeight:x});const S=await o.getDimensions(i.floating);return f!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},Dme=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pge(e,t);switch(r){case"referenceHidden":{const e=Kge(await Bge(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vge(e)}}}case"escaped":{const e=Kge(await Bge(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vge(e)}}}default:return{}}}}},jme=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=Pge(e,t)||{};if(null==c)return{};const d=$ge(u),f={x:n,y:r},p=Lge(o),h=_ge(p),g=await a.getDimensions(c),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=C?C[b]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=l.floating[b]||i.floating[h]);const k=w/2-x/2,E=S/2-g[h]/2-1,O=xge(d[v],E),D=xge(d[y],E),j=O,P=S-g[h]-D,T=S/2-g[h]/2+k,M=jge(j,T,P),A=!s.arrow&&null!=Mge(o)&&T!==M&&i.reference[h]/2-(T<j?O:D)-g[h]/2<0,_=A?T<j?T-j:T-P:0;return{[p]:f[p]+_,data:{[p]:M,centerOffset:T-M-_,...A&&{alignmentOffset:_}},reset:A}}}),Pme=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=Pge(e,t),u={x:n,y:r},d=Rge(o),f=Age(d);let p=u[f],h=u[d];const g=Pge(l,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Tge(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Tme=(e,t,n)=>{const r=new Map,o={platform:xme,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fge(c,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:v,data:y,reset:b}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Fge(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Mme="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Ame(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ame(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ame(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _me(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rme(e,t){const n=_me(e);return Math.round(t*n)/n}function Lme(e){const t=i.useRef(e);return Mme((()=>{t.current=e})),t}const Ime=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?jme({element:n.current,padding:r}).fn(t):{}:n?jme({element:n,padding:r}).fn(t):{};var o}}),Nme=(e,t)=>({...Sme(e),options:[e,t]}),$me=(e,t)=>({...kme(e),options:[e,t]}),zme=(e,t)=>({...Pme(e),options:[e,t]}),Fme=(e,t)=>({...Eme(e),options:[e,t]}),Bme=(e,t)=>({...Ome(e),options:[e,t]}),Kme=(e,t)=>({...Dme(e),options:[e,t]}),Vme=(e,t)=>({...Ime(e),options:[e,t]});var Hme=i.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.jsx(Y.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Hme.displayName="Arrow";var Ume=Hme;var Wme="Popper",[Zme,qme]=$(Wme),[Gme,Yme]=Zme(Wme),Xme=t=>{const{__scopePopper:n,children:r}=t,[o,a]=i.useState(null);return e.jsx(Gme,{scope:n,anchor:o,onAnchorChange:a,children:r})};Xme.displayName=Wme;var Jme="PopperAnchor",Qme=i.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...a}=t,l=Yme(Jme,r),s=i.useRef(null),c=B(n,s);return i.useEffect((()=>{l.onAnchorChange(o?.current||s.current)})),o?null:e.jsx(Y.div,{...a,ref:c})}));Qme.displayName=Jme;var eve="PopperContent",[tve,nve]=Zme(eve),rve=i.forwardRef(((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:v,...y}=t,b=Yme(eve,r),[w,x]=i.useState(null),C=B(n,(e=>x(e))),[S,k]=i.useState(null),E=function(e){const[t,n]=i.useState(void 0);return X((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(S),O=E?.width??0,D=E?.height??0,j=o+("center"!==s?"-"+s:""),P="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(f)?f:[f],M=T.length>0,A={padding:P,boundary:T.filter(lve),altBoundary:M},{refs:_,floatingStyles:R,placement:L,isPositioned:I,middlewareData:N}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(r);Ame(h,r)||g(r);const[m,v]=i.useState(null),[y,b]=i.useState(null),w=i.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),x=i.useCallback((e=>{e!==E.current&&(E.current=e,b(e))}),[]),C=l||m,S=s||y,k=i.useRef(null),E=i.useRef(null),O=i.useRef(f),D=null!=u,j=Lme(u),P=Lme(o),T=i.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),Tme(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};M.current&&!Ame(O.current,t)&&(O.current=t,a.flushSync((()=>{p(t)})))}))}),[h,t,n,P]);Mme((()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const M=i.useRef(!1);Mme((()=>(M.current=!0,()=>{M.current=!1})),[]),Mme((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(j.current)return j.current(C,S,T);T()}}),[C,S,T,j,D]);const A=i.useMemo((()=>({reference:k,floating:E,setReference:w,setFloating:x})),[w,x]),_=i.useMemo((()=>({reference:C,floating:S})),[C,S]),R=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=Rme(_.floating,f.x),r=Rme(_.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",..._me(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,_.floating,f.x,f.y]);return i.useMemo((()=>({...f,update:T,refs:A,elements:_,floatingStyles:R})),[f,T,A,_,R])}({strategy:"fixed",placement:j,whileElementsMounted:(...e)=>Cme(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[Nme({mainAxis:l+D,alignmentAxis:c}),d&&$me({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?zme():void 0,...A}),d&&Fme({...A}),Bme({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),S&&Vme({element:S,padding:u}),sve({arrowWidth:O,arrowHeight:D}),g&&Kme({strategy:"referenceHidden",...A})]}),[$,z]=cve(L),F=q(v);X((()=>{I&&F?.()}),[I,F]);const K=N.arrow?.x,V=N.arrow?.y,H=0!==N.arrow?.centerOffset,[U,W]=i.useState();return X((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:I?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(tve,{scope:r,placedSide:$,onArrowChange:k,arrowX:K,arrowY:V,shouldHideArrow:H,children:e.jsx(Y.div,{"data-side":$,"data-align":z,...y,ref:C,style:{...y.style,animation:I?void 0:"none"}})})})}));rve.displayName=eve;var ove="PopperArrow",ive={top:"bottom",right:"left",bottom:"top",left:"right"},ave=i.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=nve(ove,r),a=ive[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(Ume,{...o,ref:n,style:{...o.style,display:"block"}})})}));function lve(e){return null!==e}ave.displayName=ove;var sve=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,c]=cve(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2;let p="",h="";return"bottom"===s?(p=i?u:`${d}px`,h=-l+"px"):"top"===s?(p=i?u:`${d}px`,h=`${r.floating.height+l}px`):"right"===s?(p=-l+"px",h=i?u:`${f}px`):"left"===s&&(p=`${r.floating.width+l}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}});function cve(e){const[t,n="center"]=e.split("-");return[t,n]}var uve=Xme,dve=Qme,fve=rve,pve=ave,hve=i.forwardRef(((t,n)=>{const{container:o,...a}=t,[l,s]=i.useState(!1);X((()=>s(!0)),[]);const c=o||l&&globalThis?.document?.body;return c?r.createPortal(e.jsx(Y.div,{...a,ref:n}),c):null}));hve.displayName="Portal";var gve=i.forwardRef(((t,n)=>e.jsx(Y.span,{...t,ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})));gve.displayName="VisuallyHidden";var mve=gve,[vve,yve]=$("Tooltip",[qme]),bve=qme(),wve="TooltipProvider",xve=700,Cve="tooltip.open",[Sve,kve]=vve(wve),Eve=t=>{const{__scopeTooltip:n,delayDuration:r=xve,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:l}=t,[s,c]=i.useState(!0),u=i.useRef(!1),d=i.useRef(0);return i.useEffect((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),e.jsx(Sve,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:i.useCallback((()=>{window.clearTimeout(d.current),c(!1)}),[]),onClose:i.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:i.useCallback((e=>{u.current=e}),[]),disableHoverableContent:a,children:l})};Eve.displayName=wve;var Ove="Tooltip",[Dve,jve]=vve(Ove),Pve=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=t,u=kve(Ove,t.__scopeTooltip),d=bve(n),[f,p]=i.useState(null),h=ne(),g=i.useRef(0),m=s??u.disableHoverableContent,v=c??u.delayDuration,y=i.useRef(!1),[b=!1,w]=G({prop:o,defaultProp:a,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(Cve))):u.onClose(),l?.(e)}}),x=i.useMemo((()=>b?y.current?"delayed-open":"instant-open":"closed"),[b]),C=i.useCallback((()=>{window.clearTimeout(g.current),y.current=!1,w(!0)}),[w]),S=i.useCallback((()=>{window.clearTimeout(g.current),w(!1)}),[w]),k=i.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{y.current=!0,w(!0)}),v)}),[v,w]);return i.useEffect((()=>()=>window.clearTimeout(g.current)),[]),e.jsx(uve,{...d,children:e.jsx(Dve,{scope:n,contentId:h,open:b,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:i.useCallback((()=>{u.isOpenDelayed?k():C()}),[u.isOpenDelayed,k,C]),onTriggerLeave:i.useCallback((()=>{m?S():window.clearTimeout(g.current)}),[S,m]),onOpen:C,onClose:S,disableHoverableContent:m,children:r})})};Pve.displayName=Ove;var Tve="TooltipTrigger",Mve=i.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,a=jve(Tve,r),l=kve(Tve,r),s=bve(r),c=B(n,i.useRef(null),a.onTriggerChange),u=i.useRef(!1),d=i.useRef(!1),f=i.useCallback((()=>u.current=!1),[]);return i.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),e.jsx(dve,{asChild:!0,...s,children:e.jsx(Y.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:c,onPointerMove:Z(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||l.isPointerInTransitRef.current||(a.onTriggerEnter(),d.current=!0))})),onPointerLeave:Z(t.onPointerLeave,(()=>{a.onTriggerLeave(),d.current=!1})),onPointerDown:Z(t.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:Z(t.onFocus,(()=>{u.current||a.onOpen()})),onBlur:Z(t.onBlur,a.onClose),onClick:Z(t.onClick,a.onClose)})})}));Mve.displayName=Tve;var Ave="TooltipPortal",[_ve,Rve]=vve(Ave,{forceMount:void 0}),Lve=t=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=t,a=jve(Ave,n);return e.jsx(_ve,{scope:n,forceMount:r,children:e.jsx(J,{present:r||a.open,children:e.jsx(hve,{asChild:!0,container:i,children:o})})})};Lve.displayName=Ave;var Ive="TooltipContent",Nve=i.forwardRef(((t,n)=>{const r=Rve(Ive,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=t,l=jve(Ive,t.__scopeTooltip);return e.jsx(J,{present:o||l.open,children:l.disableHoverableContent?e.jsx(Bve,{side:i,...a,ref:n}):e.jsx($ve,{side:i,...a,ref:n})})})),$ve=i.forwardRef(((t,n)=>{const r=jve(Ive,t.__scopeTooltip),o=kve(Ive,t.__scopeTooltip),a=i.useRef(null),l=B(n,a),[s,c]=i.useState(null),{trigger:u,onClose:d}=r,f=a.current,{onPointerInTransitChange:p}=o,h=i.useCallback((()=>{c(null),p(!1)}),[p]),g=i.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),p(!0)}),[p]);return i.useEffect((()=>()=>h()),[h]),i.useEffect((()=>{if(u&&f){const e=e=>g(e,f),t=e=>g(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[u,f,g,h]),i.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,c=t[i].y;l>r!=c>r&&n<(s-a)*(r-l)/(c-l)+a&&(o=!o)}return o}(n,s);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,f,s,d,h]),e.jsx(Bve,{...t,ref:l})})),[zve,Fve]=vve(Ove,{isInside:!1}),Bve=i.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=t,u=jve(Ive,r),d=bve(r),{onClose:f}=u;return i.useEffect((()=>(document.addEventListener(Cve,f),()=>document.removeEventListener(Cve,f))),[f]),i.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,f]),e.jsx(vge,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:e.jsxs(fve,{"data-state":u.stateAttribute,...d,...c,ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[e.jsx(H,{children:o}),e.jsx(zve,{scope:r,isInside:!0,children:e.jsx(mve,{id:u.contentId,role:"tooltip",children:a||o})})]})})}));Nve.displayName=Ive;var Kve="TooltipArrow",Vve=i.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=bve(r);return Fve(Kve,r).isInside?null:e.jsx(pve,{...i,...o,ref:n})}));Vve.displayName=Kve;var Hve=Eve,Uve=Pve,Wve=Mve,Zve=Lve,qve=Vve;const Gve=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},Yve=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:l,width:c,maxWidth:u,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=t,w=s(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(Hve,{children:e.jsxs(Uve,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e.jsx(Wve,{asChild:!0,children:e.jsx(Jve,Object.assign({},w,{children:n}))}),e.jsx(Zve,{container:v,children:!p&&e.jsxs(Xve,{side:Gve(i).side,align:Gve(i).align,sideOffset:a,zIndex:l,width:c,maxWidth:u,textAlign:d,id:h,bgColor:g,textColor:m,children:[o||r,e.jsx(qve,{className:"tooltip-arrow",width:12,height:8})]})})]})})},Xve=N(Nve,{shouldForwardProp:e=>$C(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,c=l.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),Jve=N.div({display:"inline-flex"}),Qve=N.div((({theme:e})=>({color:e.tooltip.color.default}))),eye=N.div((({theme:e})=>({color:e.tooltip.color.subtext})));Yve.Header=Qve,Yve.Body=eye;const tye=N.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),nr),nye=N.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),rye=N.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),oye=N.div({display:"flex",flexDirection:"column"}),iye=N.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),aye=N.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),lye=N.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),sye=N.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),cye=N.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var uye,dye={exports:{}};uye=dye,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function s(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){u&&o&&s&&(u(c),u=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,c=null,u=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),l(e,"head",t)}function f(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),l=!1;return i.onload=i.onreadystatechange=function(){l||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(l=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){l||(l=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,m(e)}}function g(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function v(e){this.a=e||"-"}function y(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new v("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=u(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),c(e.f,n,r)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function O(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){l(e.c,"body",e.a)}function P(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=P(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=P(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=P(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=P(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}v.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var A={D:"serif",C:"sans-serif"},_=null;function R(){if(null===_){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);_=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return _}function L(e,t,n){for(var r in A)if(A.hasOwnProperty(r)&&t===e.f[A[r]]&&n===e.f[A[r]])return!0;return!1}function I(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&L(e,o,i)),t?r()-e.A>=e.w?R()&&L(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){I(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),t(this.a)}),e),0)}function $(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var z=null;function F(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&c(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function B(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function K(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===r.length&&a)k(t.a);else{t.f+=r.length,a&&(t.j=a);var s,u=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&c(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new T(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new M(n(t.g,t),n(t.h,t),t.c,d,t.s,e,f),u.push(p)}for(s=0;s<u.length;s++)u[s].start()}}),0)}function V(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}$.prototype.g=function(e){var t=this.a;t.g&&c(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,F(this)},$.prototype.h=function(e){var t=this.a;if(t.g){var n=u(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),c(t.f,r,o)}E(t,"fontinactive",e),F(this)},B.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&c(e.f,[e.a.c("wf","loading")]),E(e,"loading")}(t),r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new $(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new y(s,n))):a.push(new y(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;f(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],h(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),c=0;c<s.length;c+=1)l.push(new y(r[0],s[c]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,c=0;c<s;c++){var u;if((u=l[c]).match(/^[\w-]+$/))if(null==(d=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":Y[u],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new y(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new y(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},f(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ne=new B(window);ne.a.c.custom=function(e,t){return new H(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new V(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};uye.exports?uye.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var fye=Ki(dye.exports);const pye="#0074F4",hye="#FF6068",gye="#FF9900",mye="#F0BB00",vye="#00C242",yye="#001D32",bye="#FFFFFF",wye={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:pye,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:ao(.95,pye),brandTint1:ao(.9,pye),brandTint2:ao(.8,pye),brandTint3:ao(.7,pye),brandTint4:ao(.6,pye),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:hye,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:ao(.95,hye),errorTint1:ao(.9,hye),errorTint2:ao(.8,hye),warning:gye,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:ao(.95,gye),warningTint1:ao(.9,gye),warningTint2:ao(.8,gye),alert:mye,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:ao(.95,mye),alertTint1:ao(.9,mye),alertTint2:ao(.8,mye),success:vye,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:ao(.95,vye),successTint1:ao(.9,vye),successTint2:ao(.8,vye),grayscale0:ao(.95,yye),grayscale1:ao(.9,yye),grayscale2:ao(.8,yye),grayscale3:ao(.7,yye),grayscale4:ao(.6,yye),grayscale5:ao(.5,yye),grayscale6:ao(.4,yye),grayscale7:ao(.3,yye),grayscale8:ao(.2,yye),grayscale9:ao(.1,yye),grayscale10:yye,contrast0:ao(.95,bye),contrast1:ao(.9,bye),contrast2:ao(.8,bye),contrast3:ao(.7,bye),contrast4:ao(.6,bye),contrast5:ao(.5,bye),contrast6:ao(.4,bye),contrast7:ao(.3,bye),contrast8:ao(.2,bye),contrast9:ao(.1,bye),contrast10:bye};var xye={color:wye,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:Cye}=xye;var Sye={small:{height:28,iconSize:18,font:Cye.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:Cye.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:Cye.size.lg,padding:14,iconOnlyPadding:6}};const kye="#FFFFFF",Eye={scale0:wye.grayscale0,scale1:wye.grayscale1,scale2:wye.grayscale2,scale3:wye.grayscale3,scale4:wye.grayscale4,scale5:wye.grayscale5,scale6:wye.grayscale6,scale7:wye.grayscale7,scale8:wye.grayscale8,scale9:wye.grayscale9,scale10:wye.grayscale10,accent:wye.brand,accentShade:wye.brandShade1,background0:kye,background1:kye,background2:kye,background3:kye,background4:kye,background5:kye},Oye="#FFFFFF",Dye=wye.grayscale0,jye=wye.grayscale1,Pye=wye.grayscale2,Tye=wye.grayscale3,Mye=wye.grayscale4,Aye=wye.grayscale6,_ye=wye.grayscale8,Rye=wye.grayscale9,Lye=wye.grayscale10,Iye=Object.assign(Object.assign(Object.assign({},xye),Eye),{name:"light",button:Object.assign(Object.assign({},Sye),{primary:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},outlineBackground:{default:wye.brandTint0,hover:wye.brandTint1,active:wye.brandTint2},border:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},divider:Pye},secondary:{color:{default:Lye,hover:Lye,active:Lye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:jye,hover:Pye,active:Tye},outlineBackground:{default:jye,hover:Pye,active:Tye},border:{default:Pye,hover:Pye,active:Pye},divider:Pye},positive:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},outlineBackground:{default:wye.successTint0,hover:wye.successTint1,active:wye.successTint2},border:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},divider:Pye},negative:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},outlineBackground:{default:wye.errorTint0,hover:wye.errorTint1,active:wye.errorTint2},border:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},divider:Pye},caution:{color:{default:Oye,hover:Oye,active:Oye},outlineColor:{default:Lye,hover:Lye,active:Lye},background:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},outlineBackground:{default:wye.warningTint0,hover:wye.warningTint1,active:wye.warningTint2},border:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},divider:Pye},subtle:{color:{default:wye.brand,hover:wye.brand,active:wye.brand},outlineColor:{default:wye.brand,hover:wye.brand,active:wye.brand},secondaryColor:{default:Lye,hover:Lye,active:Lye},positiveColor:{default:wye.success,hover:wye.success,active:wye.success},negativeColor:{default:wye.error,hover:wye.error,active:wye.error},cautionColor:{default:wye.warning,hover:wye.warning,active:wye.warning},background:{default:"transparent",hover:jye,active:Pye},outlineBackground:{default:"transparent",hover:jye,active:Pye},border:{default:"transparent",hover:Pye,active:Pye},divider:Pye},link:{color:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},outlineColor:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},secondaryColor:{default:_ye,hover:Rye,active:Lye},positiveColor:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},negativeColor:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},cautionColor:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Mye,hover:Mye,active:Mye},outlineColor:{default:Mye,hover:Mye,active:Mye},background:{default:jye,hover:jye,active:jye},outlineBackground:{default:Dye,hover:Dye,active:Dye},border:{default:jye,hover:jye,active:jye},divider:jye},color:{default:Oye}}),calendar:{background:{container:wye.contrast10,hover:jye,active:wye.brand,activeHover:wye.brandShade1,activeRange:wye.brandTint4},color:{disabled:Mye,default:Lye,active:wye.contrast10,current:wye.brand,outside:Aye,weekday:_ye,monthYear:_ye,iconDefault:Aye,iconDisabled:Pye,iconHover:Lye}},defaultBorder:`1px solid ${jye}`,formControl:{color:{default:_ye,hover:Lye,active:wye.brand,activeHover:wye.brandShade1,disabled:Mye}},input:{borderRadius:4,background:{default:Dye,hover:jye,focused:jye,disabled:Dye},color:{default:Lye,disabled:Mye,placeholder:Aye,description:Aye,descriptionError:wye.error},borderColor:{default:Aye,hover:_ye,focused:wye.brand,disabled:Mye,error:wye.error},labelColor:{default:_ye,hover:_ye,filled:Aye,focused:wye.brand,disabled:Mye}},menu:{background:Oye},menuItem:{borderColor:wye.brand,background:{active:Dye,hover:jye,inactive:"transparent"},color:{active:Lye,hover:Lye,inactive:Aye}},modal:{background:wye.contrast10,color:{header:Lye,body:Aye}},options:{background:wye.contrast10},optionItem:{background:{active:jye,inactive:"transparent"},color:{active:Lye,inactive:Lye,accent:wye.brand}},table:{color:{header:Aye,body:Lye},borderColor:jye},toast:{color:Lye,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:_ye,info:wye.brand,success:wye.success,warning:wye.warning,error:wye.error}},toggle:{slider:wye.contrast10},tooltip:{background:"#FFF",color:{default:Lye,subtext:Aye}}}),Nye={scale0:wye.contrast0,scale1:wye.contrast1,scale2:wye.contrast2,scale3:wye.contrast3,scale4:wye.contrast4,scale5:wye.contrast5,scale6:wye.contrast6,scale7:wye.contrast7,scale8:wye.contrast8,scale9:wye.contrast9,scale10:wye.contrast10,accent:wye.brandDark,accentShade:wye.brandDarkShade1,background0:wye.brandBackground0,background1:wye.brandBackground1,background2:wye.brandBackground2,background3:wye.brandBackground3,background4:wye.brandBackground4,background5:wye.brandBackground5},$ye=wye.contrast0,zye=wye.contrast1,Fye=wye.contrast2,Bye=wye.contrast3,Kye=wye.contrast4,Vye=wye.contrast6,Hye=wye.contrast8,Uye=wye.contrast9,Wye=wye.contrast10,Zye=wye.brandDark,qye={light:Iye,dark:Object.assign(Object.assign(Object.assign({},xye),Nye),{name:"dark",button:Object.assign(Object.assign({},Sye),{primary:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},outlineBackground:{default:wye.brandTint0,hover:wye.brandTint1,active:wye.brandTint2},border:{default:wye.brand,hover:wye.brandShade1,active:wye.brandShade2},divider:Fye},secondary:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:zye,hover:Fye,active:Bye},outlineBackground:{default:zye,hover:Fye,active:Bye},border:{default:Fye,hover:Fye,active:Fye},divider:Fye},positive:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},outlineBackground:{default:wye.successTint0,hover:wye.successTint1,active:wye.successTint2},border:{default:wye.success,hover:wye.successShade1,active:wye.successShade2},divider:Fye},negative:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},outlineBackground:{default:wye.errorTint0,hover:wye.errorTint1,active:wye.errorTint2},border:{default:wye.error,hover:wye.errorShade1,active:wye.errorShade2},divider:Fye},caution:{color:{default:Wye,hover:Wye,active:Wye},outlineColor:{default:Wye,hover:Wye,active:Wye},background:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},outlineBackground:{default:wye.warningTint0,hover:wye.warningTint1,active:wye.warningTint2},border:{default:wye.warning,hover:wye.warningShade1,active:wye.warningShade2},divider:Fye},subtle:{color:{default:wye.brand,hover:wye.brand,active:wye.brand},outlineColor:{default:wye.brand,hover:wye.brand,active:wye.brand},secondaryColor:{default:Wye,hover:Wye,active:Wye},positiveColor:{default:wye.success,hover:wye.success,active:wye.success},negativeColor:{default:wye.error,hover:wye.error,active:wye.error},cautionColor:{default:wye.warning,hover:wye.warning,active:wye.warning},background:{default:"transparent",hover:zye,active:Fye},outlineBackground:{default:"transparent",hover:zye,active:Fye},border:{default:"transparent",hover:Fye,active:Fye},divider:Fye},link:{color:{default:wye.brandShade2,hover:wye.brandShade1,active:wye.brand},outlineColor:{default:wye.brandShade2,hover:wye.brandShade1,active:wye.brand},secondaryColor:{default:Hye,hover:Uye,active:Wye},positiveColor:{default:wye.successShade2,hover:wye.successShade1,active:wye.success},negativeColor:{default:wye.errorShade2,hover:wye.errorShade1,active:wye.error},cautionColor:{default:wye.warningShade2,hover:wye.warningShade1,active:wye.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Kye,hover:Kye,active:Kye},outlineColor:{default:Kye,hover:Kye,active:Kye},background:{default:zye,hover:zye,active:zye},outlineBackground:{default:$ye,hover:$ye,active:$ye},border:{default:zye,hover:zye,active:zye},divider:zye},color:{default:"#FFFFFF"}}),calendar:{background:{container:wye.brandBackground3,hover:zye,active:wye.brand,activeHover:wye.brandShade1,activeRange:wye.brandTint4},color:{disabled:Kye,default:Wye,active:Wye,current:Zye,outside:Vye,weekday:Hye,monthYear:Hye,iconDefault:Vye,iconDisabled:Fye,iconHover:Wye}},defaultBorder:`1px solid ${zye}`,formControl:{color:{default:Hye,hover:Wye,active:wye.brand,activeHover:wye.brandShade1,disabled:Kye}},input:{borderRadius:4,background:{default:$ye,hover:zye,focused:zye,disabled:$ye},color:{default:Wye,disabled:Kye,placeholder:Vye,description:Vye,descriptionError:wye.error},borderColor:{default:Vye,hover:Hye,focused:Zye,disabled:Kye,error:wye.error},labelColor:{default:Hye,hover:Hye,filled:Vye,focused:Zye,disabled:Kye}},menu:{background:wye.brandBackground2},menuItem:{borderColor:wye.brand,background:{active:$ye,hover:zye,inactive:"transparent"},color:{active:Wye,hover:Wye,inactive:Vye}},modal:{background:wye.brandBackground3,color:{header:Wye,body:Vye}},options:{background:wye.brandBackground2},optionItem:{background:{active:zye,inactive:"transparent"},color:{active:Wye,inactive:Wye,accent:Zye}},table:{color:{header:Vye,body:Wye},borderColor:zye},toast:{color:Wye,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:Hye,info:wye.brand,success:wye.success,warning:wye.warning,error:wye.error}},toggle:{slider:wye.brandBackground0},tooltip:{background:wye.brandBackground4,color:{default:Wye,subtext:Vye}}})};exports.Accordion=sr,exports.Audio=DS,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:l,barCategoryGap:c,barSize:u=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=s(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(X1,Object.assign({},v,{children:[e.jsx(Y1,{}),e.jsx(YL,{width:"100%",height:"100%",children:e.jsxs($Q,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:u,maxBarSize:d,barGap:l,barCategoryGap:c,children:[e.jsx(vJ,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(IJ,{stroke:y,tickMargin:4,tickFormatter:e=>f?FS(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx($J,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:FS(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),Q1(),o&&e.jsx(M_,{content:e.jsx(e0,{})}),i.map((({key:t,color:n},r)=>e.jsx(DY,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=SS,exports.Calendar=w0,exports.Checkbox=UC,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:c,marginTop:u,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:c,marginTop:u,marginBottom:d,marginRight:f,marginLeft:p},m=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,y,b]=m;v=v||a||"",y=y||l||"",b=b||s?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(y){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Ht(r,o+1):Ht(o,r+1)}return null}));return Fn(t.flat())})(y);return t.some((t=>e===t))}return!1},k=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(y2,{method:x,url:k}):e.jsx(g2,{code:k,language:w,theme:"dark"===h?K0.oceanicNext:K0.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(C2,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(S2,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(k2,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(m2,{content:k})]}))})},exports.ComboBox=L2,exports.CommandMenu=t=>{var{onChange:n,options:r,inputProps:o,modalProps:i,triggerRef:a,position:l,offset:c,open:u,setOpen:d}=t,f=s(t,["onChange","options","inputProps","modalProps","triggerRef","position","offset","open","setOpen"]);const{"aria-label":p}=f,h=s(f,["aria-label"]),g=e.jsx(Qw,{"aria-label":p,children:e.jsxs(R3,Object.assign({},h,{children:[e.jsxs(L3,{margin:8,children:[e.jsx(ir,{name:"search",inheritColor:!0,marginRight:8}),e.jsx(I3,Object.assign({placeholder:"Search",autoFocus:!0},o))]}),e.jsxs(N3,{children:[e.jsx($3,{children:"No results found."}),r&&e.jsx(_3,{options:r,onItemSelect:e=>{n(e),d(!1)}})]})]}))});return a?e.jsx(qw,{triggerRef:a,isOpen:u,onOpenChange:d,placement:l,offset:c,children:g}):e.jsx(z3,Object.assign({isDismissable:!0,isOpen:u,onOpenChange:d},i,{children:e.jsx(Vx,{children:g})}))},exports.DatePicker=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:l,isLoading:c,fontSize:u,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,onChange:v,afterShow:y,afterHide:b}=n,w=s(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[x,C]=t.useState(!1),{current:S}=t.useRef(r?v0(r):void 0),[k,E]=t.useState(S),O=t.useRef(null),{min:D,max:j}=y0({past:g,future:m,rel:S||Rpe}),P=e=>{const{year:t,month:n,day:r}=e,o=new Fc(t,n,r);E(o);const i=m0(e);v&&v(i)},T=!(k||!o);return e.jsxs(Lpe,Object.assign({value:k,hasLabel:!!o,isDisabled:f,minValue:D,maxValue:j,onChange:P,onOpenChange:e=>{C(e),y&&e&&y(),b&&!e&&b()},ref:O},w,{children:[a&&R2(a,{marginRight:8}),e.jsxs(P2,{filled:!!k,disabled:f,children:[o,e.jsx(Ipe,{ref:i,hide:T,fontSize:u,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Ape,{placeholderColor:d,segment:t})})]}),e.jsx(_pe,{isDisabled:f,children:e.jsx(ir,{name:x?"caret-up":"caret-down",inheritColor:!0})}),l&&R2(l),c&&e.jsx(cS,{}),e.jsx(ope,{description:p,errorMessage:h}),e.jsx(qw,{triggerRef:O,children:e.jsx(Qw,{children:e.jsx(w0,{date:k?m0(k):void 0,onChange:e=>{P(v0(e))},preventPast:g,preventFuture:m})})})]}))},exports.DateRangePicker=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=n,x=s(n,["startValue","endValue","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[C,S]=t.useState(!1),{current:k}=t.useRef(r?v0(r):void 0),{current:E}=t.useRef(o?v0(o):void 0),[O,D]=t.useState(k),[j,P]=t.useState(E),T=t.useRef(null),{min:M,max:A}=y0({past:m,future:v,rel:k||Fpe}),_=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,c=new Fc(r,o,i);D(c);const u=new Fc(a,l,s);P(u);const d=m0(t),f=m0(n);y&&y(d,f)},R=!(!O&&!j),L=!(R||!i);return e.jsxs(Bpe,Object.assign({value:O&&j?{start:O,end:j}:void 0,hasLabel:!!i,isDisabled:p,minValue:M,maxValue:A,onChange:_,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:T},x,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:R,disabled:p,children:[i,e.jsxs(Vpe,{fontSize:d,hide:L,isDisabled:p,children:[e.jsx(Kpe,{slot:"start",ref:a,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Ape,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(Kpe,{slot:"end",fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Ape,{placeholderColor:f,segment:t})})]})]}),e.jsx(_pe,{isDisabled:p,children:e.jsx(ir,{name:C?"caret-up":"caret-down",inheritColor:!0})}),c&&R2(c),u&&e.jsx(cS,{}),e.jsx(ope,{description:h,errorMessage:g}),e.jsx(qw,{triggerRef:T,children:e.jsx(Qw,{children:e.jsx($pe,{startDate:O?m0(O):void 0,endDate:j?m0(j):void 0,onChange:(e,t)=>{const n=v0(e),r=v0(t);_({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))},exports.DocTable=F3,exports.DraftEditor=wfe,exports.Dropdown=Jfe,exports.DropdownMenu=iS,exports.DropdownSelect=n=>{var r,{label:o,options:i,width:a,search:l,onChange:c}=n,u=s(n,["label","options","width","search","onChange"]);const[d,f]=t.useState(new Set),[p,h]=t.useState(!1),[g,m]=t.useState(""),[v,y]=t.useState(!1),[b,w]=t.useState(!1),[x,C]=t.useState(0),[S,k]=t.useState("menu"),E=t.useRef(null),O=t.useRef(null),D=(e=>e.map((e=>"options"in e?e.options:e)).flat())(i),j=upe(i,g),P=e=>{f(e);const t=D.length,n="all"===e||e.size===t,r=!n&&e.size>0;y(n),w(r),C(n?t:e.size);const o=n?D:D.filter((t=>e.has(t.id)));c&&c(o)};return e.jsxs(dpe,Object.assign({width:a,ref:E,tabIndex:-1},u,{children:[e.jsxs(hpe,{children:[e.jsx(UC,{partial:b,checked:v,onChange:()=>P(v?new Set:"all")}),e.jsx(ppe,{children:o})]}),e.jsxs(hpe,{gap:8,children:[(b||v)&&e.jsx(gpe,{children:b?x:"All"}),e.jsxs(Mx,{onOpenChange:e=>{h(e),e||(m(""),k("menu"))},children:[e.jsx(oS,{children:e.jsx(ir,{name:p?"caret-up":"caret-down",inheritColor:!0})}),e.jsx(qw,{triggerRef:E,offset:2,children:e.jsxs(fpe,{width:a||(null===(r=null==E?void 0:E.current)||void 0===r?void 0:r.offsetWidth),children:[l&&e.jsx(spe,{value:g,onChange:m,placeholder:"Search",padding:"2px 4px",margin:8,minHeight:"unset",height:"auto",onFocus:()=>k("input"),onKeyDown:e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||null===(t=O.current)||void 0===t||t.focus()}}),g&&0===j.length&&e.jsx(mpe,{children:"No results found"}),e.jsx(rS,{options:j,selectionMode:"multiple",width:"100%",selectedKeys:d,onSelectionChange:P,autoFocus:"menu"===S,menuRef:O,itemProps:{checkbox:!0}})]})})]})]})]}))},exports.Ellipsis=vpe,exports.Form=Spe,exports.Grid=ype,exports.Icon=ir,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:c})=>{const[u,d]=t.useState(i),f=et(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(u>0?u-1:o.length-1),h=()=>u<o.length-1?d(u+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(Dpe,{opacity:c,prevNext:o.length>1,children:[e.jsx(jpe,{onClick:r,children:e.jsx(ir,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(Ppe,{id:"prev",onClick:p,children:e.jsx(ir,{name:"chevron-left",size:35,color:"white"})}),e.jsx(Tpe,{ref:f,src:o[u],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(Ppe,{next:!0,id:"next",onClick:h,children:e.jsx(ir,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=Mpe,exports.Input=$fe,exports.InputUtils=Wde,exports.Label=xpe,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,l=s(r,["data","legend","keys"]);const[c,u]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(X1,Object.assign({},l,{children:[e.jsx(Y1,{}),e.jsx(YL,{width:"100%",height:"100%",children:e.jsxs(NQ,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(vJ,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(IJ,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx($J,{stroke:d,tickMargin:4,tickFormatter:e=>FS(e)}),Q1(),i&&e.jsx(M_,{content:e.jsx(e0,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),c.map((({key:t,color:n,hidden:r},o)=>e.jsx(RJ,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=Jpe,exports.Message=rhe,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(uhe,{children:[e.jsx(che,{}),e.jsx(she,{color:n,style:r,children:t}),e.jsx(che,{})]}),exports.Modal=dhe,exports.MultiSelect=ghe,exports.Notification=FQ,exports.NumberInput=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,description:g,errorMessage:m,onChange:v}=n,y=s(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[b,w]=t.useState(NaN);t.useEffect((()=>{null!=r&&b!==r&&w(r)}),[r]);const x=!Number.isNaN(b)&&null!=b;return e.jsxs(Hpe,Object.assign({value:b,onChange:e=>{w(e),v&&v(e)},hasLabel:!!o,paddingRight:0,isDisabled:p,isReadOnly:h},y,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:x,disabled:p,children:[o,e.jsx(D2,{ref:a,placeholder:i,hide:!(x||!o),fontSize:d,placeholderColor:f,isDisabled:p})]}),c&&R2(c),u&&e.jsx(cS,{}),e.jsxs(Upe,{children:[e.jsx(Wpe,{slot:"increment",isDisabled:p||h,children:e.jsx(ir,{size:o?23.5:19.5,name:"caret-up",inheritColor:!0})}),e.jsx(Zpe,{}),e.jsx(Wpe,{slot:"decrement",isDisabled:p||h,children:e.jsx(ir,{size:o?23.5:19.5,name:"caret-down",inheritColor:!0})})]}),e.jsx(ope,{description:g,errorMessage:m})]}))},exports.Options=Hfe,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:l}=n,c=s(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,d]=t.useState(khe(o)||1),[f,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,khe(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},v=0!==f,y=f!==g.length-1;return e.jsxs(Ehe,Object.assign({width:l},c,{children:[e.jsx(Dhe,{disabled:1===u,onClick:()=>m(1),children:e.jsx(ir,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(Dhe,{disabled:1===u,onClick:()=>m(u-1),children:e.jsx(ir,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(Phe,{children:"... "}):"",e.jsx(jhe,{selected:n===u,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(Phe,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(Dhe,{disabled:u===i,onClick:()=>m(u+1),children:e.jsx(ir,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(Dhe,{disabled:u===i,onClick:()=>m(i),children:e.jsx(ir,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PhoneInput=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,description:g,errorMessage:m,onChange:v}=n,y=s(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[b,w]=t.useState(""),x=t.useRef(null);t.useEffect((()=>{var e,t;if(null!=r&&b!==r){const n=Nfe.normalize(r),o=Nfe.format(n);w(o);const{current:i}=a||x;if(i&&r===Nfe.normalize(r)){const n=new Event("change",{bubbles:!0}),{prototype:r}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(r,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(i,o),i.dispatchEvent(n)}}}),[r]);return e.jsxs(qpe,Object.assign({value:b,hasLabel:!!o,isDisabled:p,isReadOnly:h,onChange:e=>{const t=Nfe.normalize(e);if(t.length>10||e&&!t)return;const n=Nfe.format(t);b!==n&&(w(n),v&&v(n,t))},type:"tel"},y,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:!!b,disabled:p,children:[o,e.jsx(D2,{ref:a||x,placeholder:i,hide:!(b||!o),fontSize:d,placeholderColor:f,isDisabled:p})]}),c&&R2(c),u&&e.jsx(cS,{}),e.jsx(ope,{description:g,errorMessage:m})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=s(t,["size","data","innerRadius","showWhenEmpty"]);const l=(null==r?void 0:r.length)>0,c=l?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(X1,Object.assign({width:n,height:n},a,{children:e.jsxs(zQ,{width:n,height:n,children:[e.jsx(eG,{dataKey:"value",data:c,innerRadius:o,outerRadius:u,children:null==c?void 0:c.map((t=>e.jsx(XL,{fill:t.color||"#999"},t.name)))}),l&&Q1()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(The,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(Rhe,Object.assign({width:o,height:i||l},p,{children:e.jsx(Lhe,{color:n,width:h})}))},exports.Radio=bpe,exports.RangeCalendar=$pe,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,fye.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.SearchInput=spe,exports.Select=Ihe,exports.Slider=kS,exports.Spacer=zhe,exports.Spinner=cS,exports.Table=lge,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,l=s(t,["items","activeItem","itemWidth","itemGap","onChange"]);const c=n.filter((e=>!1!==e.visible));return e.jsx(uge,Object.assign({gap:i},l,{children:c.map((t=>{const{id:n,label:i,icon:l,iconColor:c,iconPosition:u}=t,d=s(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(dge,Object.assign({active:n===r,itemWidth:o,reverse:"right"===u,onClick:()=>(e=>{a(e)})(t),gap:l?4:void 0},d,{children:[l&&e.jsx(ir,{name:l,size:"small",color:c,inheritColor:!c}),i]}),n)}))}))},exports.TextInput=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:c,isLoading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,description:g,errorMessage:m,onChange:v}=n,y=s(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[b,w]=t.useState("");t.useEffect((()=>{null!=r&&b!==r&&w(r)}),[r]);return e.jsxs(Gpe,Object.assign({value:b,hasLabel:!!o,isDisabled:p,isReadOnly:h,onChange:e=>{w(e),v&&v(e)}},y,{children:[l&&R2(l,{marginRight:8}),e.jsxs(P2,{filled:!!b,disabled:p,children:[o,e.jsx(D2,{ref:a,placeholder:i,hide:!(b||!o),fontSize:d,placeholderColor:f,isDisabled:p})]}),c&&R2(c),u&&e.jsx(cS,{}),e.jsx(ope,{description:g,errorMessage:m})]}))},exports.TimeInput=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:l,isLoading:c,fontSize:u,placeholderColor:d,disabled:f,readOnly:p,description:h,errorMessage:g,onChange:m}=n,v=s(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","readOnly","description","errorMessage","onChange"]);const[y,b]=t.useState(r?Ac(r):null);t.useEffect((()=>{if(r){`${null==y?void 0:y.hour}:${null==y?void 0:y.minute}`!==r&&b(Ac(r))}}),[r]);const w=!(y||!o);return e.jsxs(Ype,Object.assign({value:y,hasLabel:!!o,isDisabled:f,isReadOnly:p,onChange:e=>{const{hour:t,minute:n,second:r}=e,o=new Kc(t,n,r);b(o),m&&m(e.toString())}},v,{children:[a&&R2(a,{marginRight:8}),e.jsxs(P2,{filled:!!y,disabled:f,children:[o,e.jsx(Xpe,{ref:i,hide:w,fontSize:u,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Ape,{placeholderColor:d,segment:t})})]}),l&&R2(l),c&&e.jsx(cS,{}),e.jsx(ope,{description:h,errorMessage:g})]}))},exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=wpe,exports.Tooltip=Yve,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:c,width:u,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g})=>{const m=t.useRef(),[v,y]=t.useState([]),[b,w]=t.useState([]),x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!kt(n,m.current)){m.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),y(t)}}),[n,m]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:y;(n?y:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},k=e=>{const t="select"===e?y:w,n="select"===e?v:b;("select"===e?w:y)((e=>[...e,...n])),t([])},E=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(sye,{children:t.header}),e.jsx(cye,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(tye,Object.assign({width:u,readOnly:c},x,{children:[i&&e.jsx(nye,{children:i}),e.jsxs(rye,{children:[!c&&e.jsxs(oye,{children:[O&&e.jsx(iye,{children:v.length>0&&!l&&e.jsx(SS,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(aye,{children:v.map((t=>e.jsxs(lye,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(ir,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(oye,{children:[O&&!c&&e.jsx(iye,{children:b.length>0&&!s&&!c&&e.jsx(SS,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),c&&0===b.length?e.jsx("div",{children:a}):e.jsx(aye,{children:b.map((t=>e.jsxs(lye,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(ir,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=wye,exports.copyToClipboard=q1,exports.darkScale=Nye,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,l="relative"===r||!1,s=new Date,c=H1(n,"EEEE"),u=H1(n,"MMM d"),d=H1(n,"MMM d, y"),f=H1(n,"h:mm aaa"),p=W1(n),h=function(e){return+BQ(e)>Date.now()}(n),g=function(e){return t1(e,e1(e))}(n),m=Z1(n),v=function(e){return t1(e,VQ(e1(e),1))}(n),y=i1(s,n),b=a1(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${d}${x}`:`${c}${x}`)},exports.lightScale=Eye,exports.marginProps=nr,exports.numberWithCommas=G1,exports.paddingProps=tr,exports.positionProps=rr,exports.theme=qye,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:c,inputValue:u}={})=>{const[d,f]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof u&&d!==u&&f(u)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};Qe(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":v()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(dhe,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(dhe.Header,{children:n}),r&&e.jsx(dhe.Text,{children:r}),l&&e.jsx(dhe.Body,{marginTop:4,marginBottom:8,children:e.jsx($fe,{autoFocus:!0,label:s,placeholder:c,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(dhe.Footer,{children:[e.jsx(SS,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx(SS,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=Qn,exports.useEventListener=Qe,exports.useOnClickOutside=et,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=Zn,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1),[c,u]=t.useState(0);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(s(!1),a(!0),u(r.length)):t?(s(!0),a(!1),u(r.filter((e=>e.selected)).length)):(s(!1),a(!1),u(0))}),[r]),{list:r,partial:l,allSelected:i,count:c,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=er;
46
46
  //# sourceMappingURL=index.js.map