@wavv/ui 2.0.0-alpha.4 → 2.0.0-alpha.6
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.
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/Button/ButtonTypes.d.ts +1 -1
- package/build/cjs/types/components/ComboBox.d.ts +3 -3
- package/build/cjs/types/components/DropdownMenu.d.ts +5 -5
- package/build/cjs/types/components/DropdownMenuParts/MenuItem.d.ts +2 -2
- package/build/cjs/types/components/Inputs/DatePicker.d.ts +2 -2
- package/build/cjs/types/components/Inputs/DateRangePicker.d.ts +2 -2
- package/build/cjs/types/components/Inputs/NumberInput.d.ts +2 -2
- package/build/cjs/types/components/Inputs/TextInput.d.ts +2 -2
- package/build/cjs/types/components/ListBoxParts/ListBoxItem.d.ts +2 -2
- package/build/cjs/types/components/Select.d.ts +3 -3
- package/build/cjs/types/components/componentTypes.d.ts +14 -9
- package/build/cjs/types/components/types.d.ts +3 -1
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/Button/ButtonTypes.d.ts +1 -1
- package/build/esm/types/components/ComboBox.d.ts +3 -3
- package/build/esm/types/components/DropdownMenu.d.ts +5 -5
- package/build/esm/types/components/DropdownMenuParts/MenuItem.d.ts +2 -2
- package/build/esm/types/components/Inputs/DatePicker.d.ts +2 -2
- package/build/esm/types/components/Inputs/DateRangePicker.d.ts +2 -2
- package/build/esm/types/components/Inputs/NumberInput.d.ts +2 -2
- package/build/esm/types/components/Inputs/TextInput.d.ts +2 -2
- package/build/esm/types/components/ListBoxParts/ListBoxItem.d.ts +2 -2
- package/build/esm/types/components/Select.d.ts +3 -3
- package/build/esm/types/components/componentTypes.d.ts +14 -9
- package/build/esm/types/components/types.d.ts +3 -1
- package/build/index.d.ts +37 -30
- package/build/types/components/Button/ButtonTypes.d.ts +1 -1
- package/build/types/components/ComboBox.d.ts +3 -3
- package/build/types/components/DropdownMenu.d.ts +5 -5
- package/build/types/components/DropdownMenuParts/MenuItem.d.ts +2 -2
- package/build/types/components/Inputs/DatePicker.d.ts +2 -2
- package/build/types/components/Inputs/DateRangePicker.d.ts +2 -2
- package/build/types/components/Inputs/NumberInput.d.ts +2 -2
- package/build/types/components/Inputs/TextInput.d.ts +2 -2
- package/build/types/components/ListBoxParts/ListBoxItem.d.ts +2 -2
- package/build/types/components/Select.d.ts +3 -3
- package/build/types/components/componentTypes.d.ts +14 -9
- package/build/types/components/types.d.ts +3 -1
- package/package.json +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/"production"===process.env.NODE_ENV?oh.exports=function(){if(rh)return ih;rh=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=r({inst:{value:n,getSnapshot:t}}),u=s[0].inst,c=s[1];return i((function(){u.value=n,u.getSnapshot=t,l(u)&&c({inst:u})}),[e,n,t]),o((function(){return l(u)&&c({inst:u}),e((function(){l(u)&&c({inst:u})}))}),[e]),a(n),n};return ih.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,ih}():oh.exports=(ah||(ah=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue,u=!1,c=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(t,n,f){u||void 0!==e.startTransition&&(u=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=n();if(!c){var h=n();o(p,h)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var g=i({inst:{value:p,getSnapshot:n}}),m=g[0].inst,v=g[1];return l((function(){m.value=p,m.getSnapshot=n,d(m)&&v({inst:m})}),[t,p,n]),a((function(){return d(m)&&v({inst:m}),t((function(){d(m)&&v({inst:m})}))}),[t]),s(p),p},p=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:f;lh.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),lh);var sh=oh.exports;class uh{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new uh(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=t}}class ch{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let n=t;for(;n;)n.index++,n=n.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class dh extends ch{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof dh?this.parentNode.level+("item"===this.node.type?1:0):0}updateNode(){var e,t,n,r;let o=this.ownerDocument.getMutableNode(this);var i,a,l,s;o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof dh?this.parentNode.node.key:null,o.prevKey=null!==(i=null===(e=this.previousSibling)||void 0===e?void 0:e.node.key)&&void 0!==i?i:null,o.nextKey=null!==(a=null===(t=this.nextSibling)||void 0===t?void 0:t.node.key)&&void 0!==a?a:null,o.hasChildNodes=!!this.firstChild,o.firstChildKey=null!==(l=null===(n=this.firstChild)||void 0===n?void 0:n.node.key)&&void 0!==l?l:null,o.lastChildKey=null!==(s=null===(r=this.lastChild)||void 0===r?void 0:r.node.key)&&void 0!==s?s:null}setProps(e,t,n){let r=this.ownerDocument.getMutableNode(this),{value:o,textValue:i,id:a,...l}=e;if(l.ref=t,r.props=l,r.rendered=n,r.value=o,r.textValue=i||("string"==typeof n?n:"")||e["aria-label"]||"",null!=a&&a!==r.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");r.key=a}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new uh(e,"react-aria-"+ ++t.nodeId),this.ownerDocument.startTransaction()}}class fh{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=null!=(null==n?void 0:n.firstChildKey)?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);var n;return null!==(n=null==t?void 0:t.key)&&void 0!==n?n:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null==t.parentKey)return null;t=this.keyMap.get(t.parentKey)}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;null!=(null==e?void 0:e.lastChildKey);)e=this.keyMap.get(e.lastChildKey);var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(){throw new Error("Not implemented")}clone(){let e=new(0,this.constructor);return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class ph extends ch{get isConnected(){return!0}createElement(e){return new dh(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return this.isSSR||this.collectionMutated||(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key)){t.addNode(e.node);for(let t of e)this.addNode(t)}this.markDirty(e)}removeNode(e){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0||this.updateCollection(),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof dh&&e.isConnected&&e.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t;let o=this.getMutableCollection();for(let e of this.mutatedNodes)e.isConnected&&o.addNode(e.node);var n,r;o.commit(null!==(n=null===(e=this.firstChild)||void 0===e?void 0:e.node.key)&&void 0!==n?n:null,null!==(r=null===(t=this.lastChild)||void 0===t?void 0:t.node.key)&&void 0!==r?r:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(0===this.dirtyNodes.size||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function hh(e){let{children:n,items:r,idScope:o,addIdAndValue:i,dependencies:a=[]}=e,l=t.useMemo((()=>new WeakMap),a);return t.useMemo((()=>{if(r&&"function"==typeof n){let s=[];for(let u of r){let r=l.get(u);if(!r){var e,a;r=n(u);let s=null!==(a=null!==(e=r.props.id)&&void 0!==e?e:u.key)&&void 0!==a?a:u.id;if(null==s)throw new Error("Could not determine key for item");o&&(s=o+":"+s),r=t.cloneElement(r,i?{key:s,id:s,value:u}:{key:s}),l.set(u,r)}s.push(r)}return s}if("function"!=typeof n)return n}),[n,r,l,o,i])}function gh(e){return hh({...e,addIdAndValue:!0})}const mh=t.createContext(!1);function vh(e,t){let{collection:n,document:r}=bh(t);return{portal:Ch(e,r),collection:n}}const yh="function"==typeof t.useSyncExternalStore?t.useSyncExternalStore:function(e,n,r){let o=xr(),i=t.useRef(o);i.current=o;let a=t.useCallback((()=>i.current?r():n()),[n,r]);return sh.useSyncExternalStore(e,a)};function bh(e){let n=t.useMemo((()=>new ph(e||new fh)),[e]),r=t.useCallback((e=>n.subscribe(e)),[n]),o=t.useCallback((()=>{let e=n.getCollection();return n.isSSR&&n.resetAfterSSR(),e}),[n]),i=t.useCallback((()=>(n.isSSR=!0,n.getCollection())),[n]);return{collection:yh(r,o,i),document:n}}const wh=t.createContext(null),xh=t.createContext(null);function Ch(e,n){let o=t.useContext(xh),i=null!=n?n:o,a=gh(e),l=t.useMemo((()=>t.createElement(mh.Provider,{value:!0},a)),[a]);return xr()?t.createElement(wh.Provider,{value:i},l):r.createPortal(l,i)}function Sh(e){return t.createElement(t.Fragment,null,Ch(e))}function kh(e,n,r){var o;return t.useContext(mh)?null!==(o=Eh(e,n,r,"children"in n?n.children:null))&&void 0!==o?o:t.createElement(t.Fragment,null):null}function Eh(e,n,r,o,i){let a=function(e,n,r){return t.useCallback((t=>{null==t||t.setProps(e,n,r)}),[e,n,r])}(n,r,o),l=t.useContext(wh);if(l){let a=l.ownerDocument.nodesByProps.get(n);return a||(a=l.ownerDocument.createElement(e),a.setProps(n,r,o),l.appendChild(a),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(n,a)),i?t.createElement(wh.Provider,{value:a},i):null}return t.createElement(e,{ref:a},i)}function Oh(e,t){return Eh("section",e,t,null,gh(e))}const Dh=t.forwardRef(Oh),_h=Symbol("default");function jh({values:e,children:n}){for(let[r,o]of e)n=t.createElement(r.Provider,{value:o},n);return n}function Ph(e){let{className:n,style:r,children:o,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:s}=e;return t.useMemo((()=>{let e,t,u;return e="function"==typeof n?n({...s,defaultClassName:i}):n,t="function"==typeof r?r({...s,defaultStyle:l||{}}):r,u="function"==typeof o?o({...s,defaultChildren:a}):null==o?a:o,{className:null!=e?e:i,style:t||l?{...l,...t}:void 0,children:null!=u?u:a,"data-rac":""}}),[n,r,o,i,a,l,s])}function Th(e,n){let r=t.useContext(e);if(null===n)return null;if(r&&"object"==typeof r&&"slots"in r&&r.slots){let e=(new Intl.ListFormat).format(Object.keys(r.slots).map((e=>`"${e}"`)));if(!n&&!r.slots[_h])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let t=n||_h;if(!r.slots[t])throw new Error(`Invalid slot "${n}". Valid slot names are ${e}.`);return r.slots[t]}return r}function Mh(e,n,r){let o=Th(r,e.slot)||{},{ref:i,...a}=o,l=ao(t.useMemo((()=>Ar(n,i)),[n,i])),s=Mr(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?s.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},o="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...o}}:s.style={...a.style,...e.style}),[s,l]}function Ah(){let[e,n]=t.useState(!0),r=t.useRef(!1),o=t.useCallback((e=>{r.current=!0,n(!!e)}),[]);return cr((()=>{r.current||n(!1)}),[]),[o,e]}function Lh(e,n,o){let i=t.useRef(null);n&&e.current&&(i.current=window.getComputedStyle(e.current).animation),cr((()=>{if(n&&e.current){let t=window.getComputedStyle(e.current);if(t.animationName&&"none"!==t.animationName&&t.animation!==i.current){let t=i=>{i.target===e.current&&(n.removeEventListener("animationend",t),r.flushSync((()=>{o()})))},n=e.current;return n.addEventListener("animationend",t),()=>{n.removeEventListener("animationend",t)}}o()}}),[e,n,o])}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Rh=t.createContext(!1),Ih="undefined"!=typeof DocumentFragment?new DocumentFragment:null;function Nh(e){let n=t.useContext(Rh),o=xr();if(n)return t.createElement(t.Fragment,null,e.children);let i=t.createElement(Rh.Provider,{value:!0},e.children);return o?t.createElement("template",{"data-react-aria-hidden":!0},i):r.createPortal(i,Ih)}function Bh(e){let n=(n,r)=>t.useContext(Rh)?null:e(n,r);return n.displayName=e.displayName||e.name,t.forwardRef(n)}function Fh(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const $h=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),zh=t.createContext({});function Kh(e,n){[e,n]=Mh(e,n,zh);let r=e,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:s,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:g,type:m="button"}=e;n="button"===r?{type:m,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===r&&o?void 0:p,target:"a"===r?h:void 0,type:"input"===r?m:void 0,disabled:"input"===r?o:void 0,"aria-disabled":o&&"input"!==r?o:void 0,rel:"a"===r?g:void 0};let{pressProps:v,isPressed:y}=Fo({onPressStart:a,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:s,isDisabled:o,preventFocusOnPress:c,ref:t}),{focusableProps:b}=ra(e,t);d&&(b.tabIndex=o?-1:b.tabIndex);let w=Mr(b,v,Br(e,{labelable:!0}));return{isPressed:y,buttonProps:Mr(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,n),{focusProps:a,isFocused:l,isFocusVisible:s}=ta(e),{hoverProps:u,isHovered:c}=Oi(e),d=Ph({...e,values:{isHovered:c,isPressed:i,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return t.createElement("button",{...Br(e,{propNames:$h}),...Mr(o,a,u),...d,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":r.isPressed||i||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-focus-visible":s||void 0})}const Vh=Bh(Kh),Hh=t.createContext({});function Uh(e,n){[e,n]=Mh(e,n,Hh);let{elementType:r="span",...o}=e;return t.createElement(r,{className:"react-aria-Text",...o,ref:n})}const Zh=t.forwardRef(Uh);function Wh(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function qh(e,t,n,r,o){let i={};for(let e in t)i[e]=Math.floor(t[e]/2),i[e]>0&&t[e]%2==0&&i[e]--;return Xh(e,Gh(e,t,n).subtract(i),t,n,r,o)}function Gh(e,t,n,r,o){let i=e;return t.years?i=function(e){return Va(e.subtract({months:e.month-1}))}(e):t.months?i=Va(e):t.weeks&&(i=Wa(e,n)),Xh(e,i,t,n,r,o)}function Yh(e,t,n,r,o){let i={...t};return t.days?i.days--:t.weeks?i.weeks--:t.months?i.months--:t.years&&i.years--,Xh(e,Gh(e,t,n).subtract(i),t,n,r,o)}function Xh(e,t,n,r,o,i){return o&&e.compare(o)>=0&&(t=Ya(t,Gh(ll(o),n,r))),i&&e.compare(i)<=0&&(t=Ga(t,Yh(ll(i),n,r))),t}function Jh(e,t,n){return t&&(e=Ya(e,ll(t))),n&&(e=Ga(e,ll(n))),e}function Qh(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:void 0}function eg(e){let n=t.useMemo((()=>new Us(e.locale)),[e.locale]),r=t.useMemo((()=>n.resolvedOptions()),[n]),{locale:o,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:s,selectionAlignment:u,isDateUnavailable:c,pageBehavior:d="visible"}=e,f=t.useMemo((()=>i(r.calendar)),[i,r.calendar]),[p,h]=So(e.value,e.defaultValue,e.onChange),g=t.useMemo((()=>p?ul(ll(p),f):null),[p,f]),m=t.useMemo((()=>p&&"timeZone"in p?p.timeZone:r.timeZone),[p,r.timeZone]),v=t.useMemo((()=>e.focusedValue?Jh(ul(ll(e.focusedValue),f),l,s):void 0),[e.focusedValue,f,l,s]),y=t.useMemo((()=>Jh(e.defaultFocusedValue?ul(ll(e.defaultFocusedValue),f):g||ul(Na(m),f),l,s)),[e.defaultFocusedValue,g,m,f,l,s]),[b,w]=So(v,y,e.onFocusChange),[x,C]=t.useState((()=>{switch(u){case"start":return Gh(b,a,o,l,s);case"end":return Yh(b,a,o,l,s);default:return qh(b,a,o,l,s)}})),[S,k]=t.useState(e.autoFocus||!1),E=t.useMemo((()=>{let e={...a};return e.days?e.days--:e.days=-1,x.add(e)}),[x,a]),[O,D]=t.useState(f.identifier);if(f.identifier!==O){let e=ul(b,f);C(qh(e,a,o,l,s)),w(e),D(f.identifier)}function _(e){e=Jh(e,l,s),w(e)}function j(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void h(null);if(!(t=Qh(t=Jh(t,l,s),x,c)))return;t=ul(t,(null==p?void 0:p.calendar)||new Ta),h(p&&"hour"in p?p.set(t):t)}}Wh(b,l,s)?w(Jh(b,l,s)):b.compare(x)<0?C(Yh(b,a,o,l,s)):b.compare(E)>0&&C(Gh(b,a,o,l,s));let P=t.useMemo((()=>!!g&&(!(!c||!c(g))||Wh(g,l,s))),[g,c,l,s]),T=e.isInvalid||"invalid"===e.validationState||P,M=T?"invalid":null,A=t.useMemo((()=>"visible"===d?a:tg(a)),[d,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:j,visibleRange:{start:x,end:E},minValue:l,maxValue:s,focusedDate:b,timeZone:m,validationState:M,isValueInvalid:T,setFocusedDate(e){_(e),k(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&_(b.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let e=x.add(A);w(Jh(b.add(A),l,s)),C(Gh(Xh(b,e,A,o,l,s),A,o))},focusPreviousPage(){let e=x.subtract(A);w(Jh(b.subtract(A),l,s)),C(Gh(Xh(b,e,A,o,l,s),A,o))},focusSectionStart(){a.days?_(x):a.weeks?_(Wa(b,o)):(a.months||a.years)&&_(Va(b))},focusSectionEnd(){a.days?_(E):a.weeks?_(function(e,t){return Wa(e,t).add({days:6})}(b,o)):(a.months||a.years)&&_(Ha(b))},focusNextSection(e){e||a.days?a.days?this.focusNextPage():a.weeks?_(b.add({months:1})):(a.months||a.years)&&_(b.add({years:1})):_(b.add(tg(a)))},focusPreviousSection(e){e||a.days?a.days?this.focusPreviousPage():a.weeks?_(b.subtract({months:1})):(a.months||a.years)&&_(b.subtract({years:1})):_(b.subtract(tg(a)))},selectFocusedDate(){j(b)},selectDate(e){j(e)},isFocused:S,setFocused:k,isInvalid:e=>Wh(e,l,s),isSelected(e){return null!=g&&Aa(e,g)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>S&&b&&Aa(e,b),isCellDisabled(t){return e.isDisabled||t.compare(x)<0||t.compare(E)>0||this.isInvalid(t,l,s)},isCellUnavailable:t=>e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=x.subtract({days:1});return Aa(e,x)||this.isInvalid(e,l,s)},isNextVisibleRangeInvalid(){let e=E.add({days:1});return Aa(e,E)||this.isInvalid(e,l,s)},getDatesInWeek(e,t=x){let n=t.add({weeks:e}),r=[];n=Wa(n,o);let i=Ra(n,o);for(let e=0;e<i;e++)r.push(null);for(;r.length<7;){r.push(n);let e=n.add({days:1});if(Aa(n,e))break;n=e}for(;r.length<7;)r.push(null);return r}}}function tg(e){let t={...e};for(let n in e)t[n]=1;return t}function ng(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:ll(e),end:ll(t)}):null}function rg(e,t){return e=ul(e,(null==t?void 0:t.calendar)||new Ta),t&&"hour"in t?t.set(e):e}function og(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}class ig{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let t,n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=0;for(let[e,n]of this.keyMap)t?(t.nextKey=e,n.prevKey=t.key):(this.firstKey=e,n.prevKey=void 0),"item"===n.type&&(n.index=r++),t=n,t.nextKey=void 0;this.lastKey=null==t?void 0:t.key}}class ag extends Set{constructor(e,t,n){super(e),e instanceof ag?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function lg(e){let{selectionMode:n="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=t.useRef(!1),[,s]=t.useState(!1),u=t.useRef(null),c=t.useRef(null),[,d]=t.useState(null),f=t.useMemo((()=>sg(e.selectedKeys)),[e.selectedKeys]),p=t.useMemo((()=>sg(e.defaultSelectedKeys,new ag)),[e.defaultSelectedKeys]),[h,g]=So(f,p,e.onSelectionChange),m=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[v,y]=t.useState(i);"replace"===i&&"toggle"===v&&"object"==typeof h&&0===h.size&&y("replace");let b=t.useRef(i);return t.useEffect((()=>{i!==b.current&&(y(i),b.current=i)}),[i]),{selectionMode:n,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(e){l.current=e,s(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e,c.current=t,d(e)},selectedKeys:h,setSelectedKeys(e){!o&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||g(e)},disabledKeys:m,disabledBehavior:a}}function sg(e,t){return e?"all"===e?"all":new ag(e):t}class ug{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&hf(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&hf(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new ag([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new ag(n,r,e);for(let o of this.getKeyRange(r,n.currentKey||e))t.delete(o);for(let n of this.getKeyRange(e,r))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?hf(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new ag("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new ag([e],e,e):new ag;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new ag;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t(pf(ff(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ag)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}function cg(e){let{filter:n}=e,r=lg(e),o=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=t.useCallback((e=>new ig(n?n(e):e)),[n]),a=t.useMemo((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),l=df(e,i,a),s=t.useMemo((()=>new ug(l,r)),[l,r]);const u=t.useRef(null);return t.useEffect((()=>{if(null!=r.focusedKey&&!l.getItem(r.focusedKey)){const e=u.current.getItem(r.focusedKey),t=[...u.current.getKeys()].map((e=>{const t=u.current.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),n=[...l.getKeys()].map((e=>{const t=l.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),o=t.length-n.length;let i,a=Math.min(o>1?Math.max(e.index-o+1,0):e.index,n.length-1);for(;a>=0;){if(!s.isDisabled(n[a].key)){i=n[a];break}a<n.length-1?a++:(a>e.index&&(a=e.index),a--)}r.setFocusedKey(i?i.key:null)}u.current=l}),[l,s,r,r.focusedKey]),{collection:l,disabledKeys:o,selectionManager:s}}function dg(e){var n;let[r,o]=So(e.selectedKey,null!==(n=e.defaultSelectedKey)&&void 0!==n?n:null,e.onSelectionChange),i=t.useMemo((()=>null!=r?[r]:[]),[r]),{collection:a,disabledKeys:l,selectionManager:s}=cg({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:t=>{var n;let i=null!==(n=t.values().next().value)&&void 0!==n?n:null;i===r&&e.onSelectionChange&&e.onSelectionChange(i),o(i)}}),u=null!=r?a.getItem(r):null;return{collection:a,disabledKeys:l,selectionManager:s,selectedKey:r,setSelectedKey:o,selectedItem:u}}function fg(e){let[n,r]=So(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=t.useCallback((()=>{r(!0)}),[r]),i=t.useCallback((()=>{r(!1)}),[r]),a=t.useCallback((()=>{r(!n)}),[r,n]);return{isOpen:n,setOpen:r,open:o,close:i,toggle:a}}function pg(e){var n,r;let{defaultFilter:o,menuTrigger:i="input",allowsEmptyCollection:a=!1,allowsCustomValue:l,shouldCloseOnBlur:s=!0}=e,[u,c]=t.useState(!1),[d,f]=t.useState(!1),[p,h]=t.useState(null);var g;let{collection:m,selectionManager:v,selectedKey:y,setSelectedKey:b,selectedItem:w,disabledKeys:x}=dg({...e,onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===y&&(B(),R())},items:null!==(g=e.items)&&void 0!==g?g:e.defaultItems});var C,S;let[k,E]=So(e.inputValue,null!==(S=null!==(C=e.defaultInputValue)&&void 0!==C?C:null===(n=m.getItem(y))||void 0===n?void 0:n.textValue)&&void 0!==S?S:"",e.onInputChange),O=m,D=t.useMemo((()=>null==e.items&&o?function(e,t,n){return new ig(hg(e,e,t,n))}(m,k,o):m),[m,k,o,e.items]),[_,j]=t.useState(D),P=t.useRef("focus"),T=fg({...e,onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?P.current:void 0),v.setFocused(t),t||v.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),M=(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===i;(a||D.size>0||r&&O.size>0||e.items)&&(r&&!T.isOpen&&void 0===e.items&&c(!0),P.current=n,h(t),T.open())},A=t.useCallback((()=>{j(u?O:D)}),[u,O,D]),L=t.useCallback(((e=null)=>{T.isOpen&&A(),h(e),T.toggle()}),[T,A]),R=t.useCallback((()=>{T.isOpen&&(A(),T.close())}),[T,A]),[I,N]=t.useState(k),B=()=>{var e,t;let n=null!==(t=null===(e=m.getItem(y))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";N(n),E(n)};var F,$;let z=t.useRef(null!==($=null!==(F=e.selectedKey)&&void 0!==F?F:e.defaultSelectedKey)&&void 0!==$?$:null);var K;let V=t.useRef(null!==(K=null===(r=m.getItem(y))||void 0===r?void 0:r.textValue)&&void 0!==K?K:"");t.useEffect((()=>{var t,n;d&&(D.size>0||a)&&!T.isOpen&&k!==I&&"manual"!==i&&M(null,"input"),u||a||!T.isOpen||0!==D.size||R(),null!=y&&y!==z.current&&R(),k!==I&&(v.setFocusedKey(null),c(!1),""!==k||void 0!==e.inputValue&&void 0!==e.selectedKey||b(null)),y===z.current||void 0!==e.inputValue&&void 0!==e.selectedKey?I!==k&&N(k):B();let r=null!==(n=null===(t=m.getItem(y))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";d||null==y||void 0!==e.inputValue||y!==z.current||V.current!==r&&(N(r),E(r)),z.current=y,V.current=r}));let H=vc({...e,value:t.useMemo((()=>({inputValue:k,selectedKey:y})),[k,y])}),U=()=>{z.current=null,b(null),R()},Z=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(y);let r=null!==(n=null===(t=m.getItem(y))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";N(r),R()}else B(),R()};const W=()=>{if(l){var e,t;const n=null!==(t=null===(e=m.getItem(y))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";k===n?Z():U()}else Z()};let q=t.useRef(k),G=t.useMemo((()=>T.isOpen?u?O:D:_),[T.isOpen,O,D,u,_]);return{...H,...T,focusStrategy:p,toggle:(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===i;(a||D.size>0||r&&O.size>0||e.items||T.isOpen)&&(r&&!T.isOpen&&void 0===e.items&&c(!0),T.isOpen||(P.current=n),L(t))},open:M,close:W,selectionManager:v,selectedKey:y,setSelectedKey:b,disabledKeys:x,isFocused:d,setFocused:e=>{e?(q.current=k,"focus"===i&&M(null,"focus")):(s&&W(),k!==q.current&&H.commitValidation()),f(e)},selectedItem:w,collection:G,inputValue:k,setInputValue:E,commit:()=>{T.isOpen&&null!=v.focusedKey?y===v.focusedKey?Z():b(v.focusedKey):W()},revert:()=>{l&&null==y?U():Z()}}}function hg(e,t,n,r){let o=[];for(let i of t)if("section"===i.type&&i.hasChildNodes){let t=hg(e,ff(i,e),n,r);[...t].some((e=>"item"===e.type))&&o.push({...i,childNodes:t})}else("item"===i.type&&r(i.textValue,n)||"item"!==i.type)&&o.push({...i});return o}var gg;gg={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var mg;mg={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var vg;vg={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var yg;yg={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var bg;bg={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var wg;wg={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var xg;xg={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Cg;Cg={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Sg;Sg={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var kg;kg={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var Eg;Eg={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Og;Og={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Dg;Dg={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var _g;_g={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var jg;jg={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var Pg;Pg={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Tg;Tg={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Mg;Mg={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Ag;Ag={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Lg;Lg={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Rg;Rg={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Ig;Ig={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Ng;Ng={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Bg;Bg={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Fg;Fg={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var $g;$g={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var zg;zg={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Kg;Kg={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var Vg;Vg={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Hg;Hg={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Ug;Ug={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Zg;Zg={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Wg;Wg={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var qg;qg={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};const Gg=new va(function(e){return e&&e.__esModule?e.default:e}({"ar-AE":gg,"bg-BG":mg,"cs-CZ":vg,"da-DK":yg,"de-DE":bg,"el-GR":wg,"en-US":xg,"es-ES":Cg,"et-EE":Sg,"fi-FI":kg,"fr-FR":Eg,"he-IL":Og,"hr-HR":Dg,"hu-HU":_g,"it-IT":jg,"ja-JP":Pg,"ko-KR":Tg,"lt-LT":Mg,"lv-LV":Ag,"nb-NO":Lg,"nl-NL":Rg,"pl-PL":Ig,"pt-BR":Ng,"pt-PT":Bg,"ro-RO":Fg,"ru-RU":$g,"sk-SK":zg,"sl-SI":Kg,"sr-SP":Vg,"sv-SE":Hg,"tr-TR":Ug,"uk-UA":Zg,"zh-CN":Wg,"zh-TW":qg}));function Yg(){return"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US"}function Xg(e,t,n,r,o){let i=null!=e&&null!=n&&e.compare(n)>0,a=null!=e&&null!=t&&e.compare(t)<0,l=null!=e&&(null==r?void 0:r(e))||!1,s=i||a||l,u=[];if(s){let e=Yg(),r=va.getGlobalDictionaryForPackage("@react-stately/datepicker")||Gg,s=new wa(e,r),c=new Us(e,em({},o)),d=c.resolvedOptions().timeZone;a&&u.push(s.format("rangeUnderflow",{minValue:c.format(t.toDate(d))})),i&&u.push(s.format("rangeOverflow",{maxValue:c.format(n.toDate(d))})),l&&u.push(s.format("unavailableDate"))}return{isInvalid:s,validationErrors:u,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const Jg={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Qg={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function em(e,t){let n=t.shouldForceLeadingZeros?Qg:Jg;e={...n,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf(null!==(i=t.maxGranularity)&&void 0!==i?i:"year");a<0&&(a=0);let l=o.indexOf(r);if(l<0&&(l=2),a>l)throw new Error("maxGranularity must be greater than granularity");let s=o.slice(a,l+1).reduce(((t,n)=>(t[n]=e[n],t)),{});return null!=t.hourCycle&&(s.hour12=12===t.hourCycle),s.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&0===a&&(s.era="short"),s}function tm(e){return e&&"hour"in e?e:new Fl}function nm(e,t){return null===e?null:e?ul(e,t):void 0}function rm(e,t,n,r){if(e)return nm(e,n);let o=ul(Ia(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?ll(o):r?o:sl(o)}function om(e,n){let r=e&&"timeZone"in e?e.timeZone:void 0,o=e&&"minute"in e?"minute":"day";if(e&&n&&!(n in e))throw new Error("Invalid granularity "+n+" for value "+e.toString());let[i,a]=t.useState([o,r]);return!e||i[0]===o&&i[1]===r||a([o,r]),n||(n=e?o:i[0]),[n,e?r:i[1]]}const im=new va({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");const am={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},lm={year:5,month:2,day:7,hour:2,minute:15,second:15},sm={dayperiod:"dayPeriod"};function um(e){let{locale:n,createCalendar:r,hideTimeZone:o,isDisabled:i,isReadOnly:a,isRequired:l,minValue:s,maxValue:u,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue,[f,p]=om(d,e.granularity),h=p||"UTC";if(d&&!(f in d))throw new Error("Invalid granularity "+f+" for value "+d.toString());let g=t.useMemo((()=>new Us(n)),[n]),m=t.useMemo((()=>r(g.resolvedOptions().calendar)),[r,g]),[v,y]=So(e.value,e.defaultValue,e.onChange),b=t.useMemo((()=>nm(v,m)),[v,m]),[w,x]=t.useState((()=>rm(e.placeholderValue,f,m,p))),C=b||w,S="gregory"===m.identifier&&"BC"===C.era,k=t.useMemo((()=>{var t;return{granularity:f,maxGranularity:null!==(t=e.maxGranularity)&&void 0!==t?t:"year",timeZone:p,hideTimeZone:o,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,o,S]),E=t.useMemo((()=>em({},k)),[k]),O=t.useMemo((()=>new Us(n,E)),[n,E]),D=t.useMemo((()=>O.resolvedOptions()),[O]),_=t.useMemo((()=>O.formatToParts(new Date).filter((e=>am[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[O]),[j,P]=t.useState((()=>e.value||e.defaultValue?{..._}:{})),T=t.useRef(),M=t.useRef(m.identifier);t.useEffect((()=>{m.identifier!==M.current&&(M.current=m.identifier,x((t=>Object.keys(j).length>0?ul(t,m):rm(e.placeholderValue,f,m,p))))}),[m,f,j,p,e.placeholderValue]),v&&Object.keys(j).length<Object.keys(_).length&&(j={..._},P(j)),null==v&&Object.keys(j).length===Object.keys(_).length&&(j={},P(j),x(rm(e.placeholderValue,f,m,p)));let A=b&&Object.keys(j).length>=Object.keys(_).length?b:w,L=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(j),r=Object.keys(_);null==t?(y(null),x(rm(e.placeholderValue,f,m,p)),P({})):n.length>=r.length||n.length===r.length-1&&_.dayPeriod&&!j.dayPeriod&&"dayPeriod"!==T.current?(t=ul(t,(null==d?void 0:d.calendar)||new Ta),y(t)):x(t),T.current=null},R=t.useMemo((()=>A.toDate(h)),[A,h]),I=t.useMemo((()=>O.formatToParts(R).map((e=>{let t=am[e.type];"era"===e.type&&1===m.getEras().length&&(t=!1);let r=am[e.type]&&!j[e.type],o=am[e.type]?function(e,t,n){return"era"===e||"dayPeriod"===e?t:"year"===e||"month"===e||"day"===e?im.getStringForLocale(e,n):"––"}(e.type,e.value,n):null;return{type:sm[e.type]||e.type,text:r?o:e.value,...cm(A,e.type,D),isPlaceholder:r,placeholder:o,isEditable:t}}))),[R,j,O,D,A,m,n]);_.era&&j.year&&!j.era?(j.era=!0,P({...j})):!_.era&&j.era&&(delete j.era,P({...j}));let N=e=>{j[e]=!0,"year"===e&&_.era&&(j.era=!0),P({...j})},B=(e,t)=>{if(j[e])L(function(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,n=t>=12;return e.set({hour:n?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:r.hour12?12:24})}}(A,e,t,D));else{N(e);let t=Object.keys(j),n=Object.keys(_);(t.length>=n.length||t.length===n.length-1&&_.dayPeriod&&!j.dayPeriod)&&L(A)}},F=t.useMemo((()=>Xg(v,s,u,c,k)),[v,s,u,c,k]),$=vc({...e,value:v,builtinValidation:F}),z=$.displayValidation.isInvalid,K=e.validationState||(z?"invalid":null);var V;return{...$,value:b,dateValue:R,calendar:m,setValue:L,segments:I,dateFormatter:O,validationState:K,isInvalid:z,granularity:f,maxGranularity:null!==(V=e.maxGranularity)&&void 0!==V?V:"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(e){B(e,1)},decrement(e){B(e,-1)},incrementPage(e){B(e,lm[e]||1)},decrementPage(e){B(e,-(lm[e]||1))},setSegment(e,t){N(e),L(function(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,r=t>=12;return n>=12===r?e:e.set({hour:r?t-12:t+12})}case"hour":if(r.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}(A,e,t,D))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(j),n=Object.keys(_);t.length===n.length-1&&_.dayPeriod&&!j.dayPeriod&&(j={..._},P(j),L(A.copy()))},clearSegment(t){delete j[t],T.current=t,P({...j});let n=rm(e.placeholderValue,f,m,p),r=A;if("dayPeriod"===t&&"hour"in A&&"hour"in n){let e=A.hour>=12,t=n.hour>=12;e&&!t?r=A.set({hour:A.hour-12}):!e&&t&&(r=A.set({hour:A.hour+12}))}else t in A&&(r=A.set({[t]:n[t]}));y(null),L(r)},formatValue(e){if(!b)return"";let t=em(e,k);return new Us(n,t).format(R)}}}function cm(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:Ua(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Za(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:t?12:0,maxValue:t?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function dm(e){var n,r;let o=fg(e),[i,a]=So(e.value,e.defaultValue||null,e.onChange),[l,s]=t.useState((()=>i||{start:null,end:null}));null==i&&l.start&&l.end&&(l={start:null,end:null},s(l));let u=i||l,c=e=>{s(e||{start:null,end:null}),(null==e?void 0:e.start)&&e.end?a(e):a(null)},d=(null==u?void 0:u.start)||(null==u?void 0:u.end)||e.placeholderValue,[f,p]=om(d,e.granularity),h="hour"===f||"minute"===f||"second"===f;var g;let m=null===(g=e.shouldCloseOnSelect)||void 0===g||g,[v,y]=t.useState(null),[b,w]=t.useState(null);u&&u.start&&u.end&&(v=u,"hour"in u.start&&(b=u));let x=(e,t)=>{c({start:"timeZone"in t.start?t.start.set(ll(e.start)):sl(e.start,t.start),end:"timeZone"in t.end?t.end.set(ll(e.end)):sl(e.end,t.end)}),y(null),w(null),P.commitValidation()},C=t=>{let n="function"==typeof m?m():m;h?n||t.start&&t.end&&(null==b?void 0:b.start)&&(null==b?void 0:b.end)?x(t,{start:(null==b?void 0:b.start)||tm(e.placeholderValue),end:(null==b?void 0:b.end)||tm(e.placeholderValue)}):y(t):t.start&&t.end?(c(t),P.commitValidation()):y(t),n&&o.setOpen(!1)},S=e=>{(null==v?void 0:v.start)&&(null==v?void 0:v.end)&&e.start&&e.end?x(v,e):w(e)},k="gregory"===(null==u||null===(n=u.start)||void 0===n?void 0:n.calendar.identifier)&&"BC"===u.start.era||"gregory"===(null==u||null===(r=u.end)||void 0===r?void 0:r.calendar.identifier)&&"BC"===u.end.era,E=t.useMemo((()=>({granularity:f,timeZone:p,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k})),[f,e.hourCycle,e.shouldForceLeadingZeros,p,e.hideTimeZone,k]),{minValue:O,maxValue:D,isDateUnavailable:_}=e,j=t.useMemo((()=>function(e,t,n,r,o){let i=xc(Xg(null==e?void 0:e.start,t,n,r,o),Xg(null==e?void 0:e.end,t,n,r,o));null!=e.end&&null!=e.start&&e.end.compare(e.start)<0&&(i=xc(i,{isInvalid:!0,validationErrors:[(va.getGlobalDictionaryForPackage("@react-stately/datepicker")||Gg).getStringForLocale("rangeReversed",Yg())],validationDetails:{...fc,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}}));return i}(u,O,D,_,E)),[u,O,D,_,E]),P=vc({...e,value:i,name:t.useMemo((()=>[e.startName,e.endName]),[e.startName,e.endName]),builtinValidation:j}),T=P.displayValidation.isInvalid,M=e.validationState||(T?"invalid":null);return{...P,value:u,setValue:c,dateRange:v,timeRange:b,granularity:f,hasTime:h,setDate(e,t){C({...v,[e]:t})},setTime(e,t){S({...b,[e]:t})},setDateTime(e,t){c({...u,[e]:t})},setDateRange:C,setTimeRange:S,...o,setOpen(t){t||(null==u?void 0:u.start)&&(null==u?void 0:u.end)||!(null==v?void 0:v.start)||!(null==v?void 0:v.end)||!h||x(v,{start:(null==b?void 0:b.start)||tm(e.placeholderValue),end:(null==b?void 0:b.end)||tm(e.placeholderValue)}),o.setOpen(t)},validationState:M,isInvalid:T,formatValue(t,n){if(!u||!u.start||!u.end)return null;let r,o="timeZone"in u.start?u.start.timeZone:void 0,i=e.granularity||(u.start&&"minute"in u.start?"minute":"day"),a="timeZone"in u.end?u.end.timeZone:void 0,l=e.granularity||(u.end&&"minute"in u.end?"minute":"day"),s=em(n,{granularity:i,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===u.start.calendar.identifier&&"BC"===u.start.era||"gregory"===u.end.calendar.identifier&&"BC"===u.end.era}),c=u.start.toDate(o||"UTC"),d=u.end.toDate(a||"UTC"),f=new Us(t,s);if(o===a&&i===l&&0!==u.start.compare(u.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let o=0;o<e.length;o++)o<t?n+=e[o].value:o>t&&(r+=e[o].value);return{start:n,end:r}}catch(e){}r=f}else{let o=em(n,{granularity:l,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});r=new Us(t,o)}return{start:f.format(c),end:r.format(d)}}}}function fm(e){let n=fg(e),[r,o]=t.useState(null),[i,a]=t.useState([]);return{focusStrategy:r,...n,open(e=null){o(e),n.open()},toggle(e=null){o(e),n.toggle()},close(){a([]),n.close()},expandedKeysStack:i,openSubmenu:(e,t)=>{a((n=>t>n.length?n:[...n.slice(0,t),e]))},closeSubmenu:(e,t)=>{a((n=>n[t]===e?n.slice(0,t):n))}}}function pm(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,l=i[1]&&i[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),n=Math.round(n*s),r="+"===e?t+n:t-n,r/=s}return r}class hm{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.iterable=e,t=t||new Set;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let o=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=o++),n=t,n.nextKey=void 0;this.lastKey=null==n?void 0:n.key}}function gm(e){let{onExpandedChange:n}=e,[r,o]=So(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,n),i=lg(e),a=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=df(e,t.useCallback((e=>new hm(e,{expandedKeys:r})),[r]),null);t.useEffect((()=>{null==i.focusedKey||l.getItem(i.focusedKey)||i.setFocusedKey(null)}),[l,i.focusedKey]);return{collection:l,expandedKeys:r,disabledKeys:a,toggleKey:e=>{o(function(e,t){let n=new Set(e);n.has(t)?n.delete(t):n.add(t);return n}(r,e))},setExpandedKeys:o,selectionManager:new ug(l,i)}}const mm=t.createContext({}),vm=t.createContext({}),ym=t.createContext(null),bm=t.createContext(null);function wm(e,n){[e,n]=Mh(e,n,mm);let{locale:r}=pa(),o=eg({...e,locale:r,createCalendar:Vs}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=function(e,t){return sc(e,t)}(e,o),c=Ph({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-Calendar"});return t.createElement("div",{...c,...i,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},t.createElement(jh,{values:[[zh,{slots:{previous:a,next:l}}],[ur,{"aria-hidden":!0,level:2,children:u}],[ym,o],[Hh,{slots:{errorMessage:s}}]]},t.createElement($d,null,t.createElement("h2",null,i["aria-label"])),c.children,t.createElement($d,null,t.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}const xm=t.forwardRef(wm);function Cm(e,n){[e,n]=Mh(e,n,vm);let{locale:r}=pa(),o=function(e){let{value:n,defaultValue:r,onChange:o,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:s,maxValue:u,...c}=e,[d,f]=So(n,r||null,o),[p,h]=t.useState(null),g="center";if(d&&d.start&&d.end){let e=qh(ll(d.start),l,a,s,u).add(l).subtract({days:1});d.end.compare(e)>0&&(g="start")}let m=t.useRef(null),[v,y]=t.useState(null),b=t.useMemo((()=>Ya(s,null==v?void 0:v.start)),[s,v]),w=t.useMemo((()=>Ga(u,null==v?void 0:v.end)),[u,v]),x=eg({...c,value:d&&d.start,createCalendar:i,locale:a,visibleDuration:l,minValue:b,maxValue:w,selectionAlignment:g}),C=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:og(t,x,-1),end:og(t,x,1)},y(m.current)):(m.current=null,y(null))},[S,k]=t.useState(x.visibleRange);La(x.visibleRange.start,S.start)&&La(x.visibleRange.end,S.end)||(C(p),k(x.visibleRange));let E=e=>{e?(h(e),C(e)):(h(null),C(null))},O=p?ng(p,x.focusedDate):d&&ng(d.start,d.end),D=t=>{if(!e.isReadOnly&&(t=Qh(t=Jh(t,b,w),x.visibleRange.start,e.isDateUnavailable)))if(p){let e=ng(p,t);f({start:rg(e.start,null==d?void 0:d.start),end:rg(e.end,null==d?void 0:d.end)}),E(null)}else E(t)},[_,j]=t.useState(!1),{isDateUnavailable:P}=e,T=t.useMemo((()=>!(!d||p)&&(!(!P||!P(d.start)&&!P(d.end))||Wh(d.start,s,u)||Wh(d.end,s,u))),[P,d,p,s,u]),M=e.isInvalid||"invalid"===e.validationState||T,A=M?"invalid":null;return{...x,value:d,setValue:f,anchorDate:p,setAnchorDate:E,highlightedRange:O,validationState:A,isValueInvalid:M,selectFocusedDate(){D(x.focusedDate)},selectDate:D,highlightDate(e){p&&x.setFocusedDate(e)},isSelected:e=>O&&e.compare(O.start)>=0&&e.compare(O.end)<=0&&!x.isCellDisabled(e)&&!x.isCellUnavailable(e),isInvalid(e){var t,n;return x.isInvalid(e)||Wh(e,null===(t=m.current)||void 0===t?void 0:t.start,null===(n=m.current)||void 0===n?void 0:n.end)},isDragging:_,setDragging:j}}({...e,locale:r,createCalendar:Vs}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=function(e,n,r){let o=sc(e,n),i=t.useRef(!1),a=t.useRef("undefined"!=typeof window?window:null);return mo(a,"pointerdown",(e=>{i.current=0===e.width&&0===e.height})),mo(a,"pointerup",(e=>{if(i.current)return void(i.current=!1);if(n.setDragging(!1),!n.anchorDate)return;let t=e.target;!r.current||!r.current.contains(document.activeElement)||r.current.contains(t)&&t.closest('button, [role="button"]')||n.selectFocusedDate()})),o.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&r.current.contains(e.relatedTarget)||!n.anchorDate||n.selectFocusedDate())},mo(r,"touchmove",(e=>{n.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),o}(e,o,n),c=Ph({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return t.createElement("div",{...c,...i,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},t.createElement(jh,{values:[[zh,{slots:{previous:a,next:l}}],[ur,{"aria-hidden":!0,level:2,children:u}],[bm,o],[Hh,{slots:{errorMessage:s}}]]},t.createElement($d,null,t.createElement("h2",null,i["aria-label"])),c.children,t.createElement($d,null,t.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}const Sm=t.forwardRef(Cm),km=t.createContext(null);function Em(e,n){let r=t.useContext(ym),o=t.useContext(bm),i=null!=r?r:o,a=i.visibleRange.start;e.offset&&(a=a.add(e.offset));let{gridProps:l,headerProps:s,weekDays:u}=function(e,n){let{startDate:r=n.visibleRange.start,endDate:o=n.visibleRange.end}=e,{direction:i}=pa(),a=nc(r,o,n.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=ec.get(n),u=io({"aria-label":[l,a].filter(Boolean).join(", "),"aria-labelledby":s}),c=Ys({weekday:e.weekdayStyle||"narrow",timeZone:n.timeZone}),{locale:d}=pa(),f=t.useMemo((()=>{let e=Wa(Na(n.timeZone),d);return[...new Array(7).keys()].map((t=>{let r=e.add({days:t}).toDate(n.timeZone);return c.format(r)}))}),[d,n.timeZone,c]);return{gridProps:Mr(u,{role:"grid","aria-readonly":n.isReadOnly||null,"aria-disabled":n.isDisabled||null,"aria-multiselectable":"highlightedRange"in n||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),n.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),n.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),n.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),n.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===i?n.focusNextDay():n.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===i?n.focusPreviousDay():n.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n.focusNextRow();break;case"Escape":"setAnchorDate"in n&&(e.preventDefault(),n.setAnchorDate(null))}},onFocus:()=>n.setFocused(!0),onBlur:()=>n.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:f}}({startDate:a,endDate:Ha(a),weekdayStyle:e.weekdayStyle},i);var c;return t.createElement(km.Provider,{value:{headerProps:s,weekDays:u,startDate:a}},t.createElement("table",{...Br(e),...l,ref:n,style:e.style,className:null!==(c=e.className)&&void 0!==c?c:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:t.createElement(t.Fragment,null,t.createElement(_m,null,(e=>t.createElement(Pm,null,e))),t.createElement(Mm,null,e.children))))}const Om=t.forwardRef(Em);function Dm(e,n){let{children:r,style:o,className:i}=e,{headerProps:a,weekDays:l}=t.useContext(km);return t.createElement("thead",{...Br(e),...a,ref:n,style:o,className:i||"react-aria-CalendarGridHeader"},t.createElement("tr",null,l.map(((e,n)=>t.cloneElement(r(e),{key:n})))))}const _m=t.forwardRef(Dm);function jm(e,n){let{children:r,style:o,className:i}=e;return t.createElement("th",{...Br(e),ref:n,style:o,className:i||"react-aria-CalendarHeaderCell"},r)}const Pm=t.forwardRef(jm);function Tm(e,n){let{children:r,style:o,className:i}=e,a=t.useContext(ym),l=t.useContext(bm),s=null!=a?a:l,{startDate:u}=t.useContext(km),{locale:c}=pa(),d=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Ra(Va(e),t)+n)/7)}(u,c);return t.createElement("tbody",{...Br(e),ref:n,style:o,className:i||"react-aria-CalendarGridBody"},[...new Array(d).keys()].map((e=>t.createElement("tr",{key:e},s.getDatesInWeek(e,u).map(((e,n)=>e?t.cloneElement(r(e),{key:n}):t.createElement("td",{key:n})))))))}const Mm=t.forwardRef(Tm);function Am({date:e,...n},r){let o=t.useContext(ym),i=t.useContext(bm),a=null!=o?o:i;var l;let{startDate:s}=null!==(l=t.useContext(km))&&void 0!==l?l:{startDate:a.visibleRange.start},u=t.useRef(null),{cellProps:c,buttonProps:d,...f}=uc({date:e},a,u),{hoverProps:p,isHovered:h}=Oi({...n,isDisabled:f.isDisabled}),{focusProps:g,isFocusVisible:m}=ta();m&&(m=f.isFocused);let v=!function(e,t){return t=ul(t,e.calendar),e=Va(e),t=Va(t),e.era===t.era&&e.year===t.year&&e.month===t.month}(s,e),y=!1,b=!1;"highlightedRange"in a&&a.highlightedRange&&(y=Aa(e,a.highlightedRange.start),b=Aa(e,a.highlightedRange.end));let w=Ph({...n,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:v,isFocusVisible:m,isSelectionStart:y,isSelectionEnd:b,...f}}),x={"data-focused":f.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":m||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":v||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":y||void 0,"data-selection-end":b||void 0,"data-invalid":f.isInvalid||void 0};return t.createElement("td",{...c,ref:r},t.createElement("div",{...Mr(Br(n),d,g,p,x,w),ref:u}))}const Lm=t.forwardRef(Am),Rm=t.createContext(null);function Im(e,n){let r=t.useContext(Rm);return(null==r?void 0:r.isInvalid)?t.createElement(Bm,{...e,ref:n}):null}const Nm=t.forwardRef(Im),Bm=t.forwardRef(((e,n)=>{let r=t.useContext(Rm),o=Ph({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===r.validationErrors.length?void 0:r.validationErrors.join(" "),values:r});return null==o.children?null:t.createElement(Zh,{slot:"errorMessage",...o,ref:n})})),Fm=t.createContext(null),$m=t.createContext({});function zm(e,n){[e,n]=Mh(e,n,$m);let{elementType:r="label",...o}=e;return t.createElement(r,{className:"react-aria-Label",...o,ref:n})}const Km=Bh(zm),Vm=t.createContext({});let Hm=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function Um(e,n){[e,n]=Mh(e,n,Vm);let{hoverProps:r,isHovered:o}=Oi(e),{isFocused:i,isFocusVisible:a,focusProps:l}=ta({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],u=Ph({...e,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return t.createElement("input",{...Mr(Hm(e),l,r),...u,ref:n,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}const Zm=Bh(Um);var Wm;Wm={"ar-AE":{colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"},"bg-BG":{colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"},"da-DK":{colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"},"el-GR":{colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"},"et-EE":{colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"},"hu-HU":{colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"},"ko-KR":{colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"},"lt-LT":{colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"},"lv-LV":{colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"},"sk-SK":{colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"},"sv-SE":{colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"},"tr-TR":{colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"},"uk-UA":{colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"},"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"}};const qm=t.createContext(null);function Gm(e,n){let{render:r}=t.useContext(qm);return t.createElement(t.Fragment,null,r(e,n))}const Ym=t.forwardRef(Gm),Xm=t.createContext({}),Jm=t.createContext({});function Qm(e,n){let[r,o]=Mh(e,n,Jm),i=kh("header",e,n);return i||t.createElement("header",{className:"react-aria-Header",...r,ref:o},r.children)}const ev=t.forwardRef(Qm),tv=t.createContext({});function nv(e,n){let[r,o]=Mh(e,n,tv),{elementType:i,orientation:a,style:l,className:s}=r,u=i||"hr";"hr"===u&&"vertical"===a&&(u="div");let{separatorProps:c}=function(e){let t,n=Br(e,{labelable:!0});return"vertical"===e.orientation&&(t="vertical"),"hr"!==e.elementType?{separatorProps:{...n,role:"separator","aria-orientation":t}}:{separatorProps:n}}({elementType:i,orientation:a}),d=kh("separator",e,n);return d||t.createElement(u,{...Br(r),...c,style:l,className:null!=s?s:"react-aria-Separator",ref:o,slot:r.slot||void 0})}const rv=t.forwardRef(nv),ov=t.createContext(null),iv=t.createContext(null);function av(e,n){[e,n]=Mh(e,n,ov);let r=t.useContext(Rh),o=t.useContext(iv);return t.useContext(xh)?t.createElement(Sh,e):o?r?null:t.createElement(uv,{state:o,props:e,listBoxRef:n}):t.createElement(lv,{props:e,listBoxRef:n})}function lv({props:e,listBoxRef:n}){let{portal:r,collection:o}=vh(e),i=cg(e={...e,collection:o,children:null,items:null});return t.createElement(t.Fragment,null,r,t.createElement(uv,{state:i,props:e,listBoxRef:n}))}const sv=t.forwardRef(av);function uv({state:e,props:n,listBoxRef:r}){let o,i,a,{dragAndDropHooks:l,layout:s="stack",orientation:u="vertical"}=n,{collection:c,selectionManager:d}=e,f=!!(null==l?void 0:l.useDraggableCollectionState),p=!!(null==l?void 0:l.useDroppableCollectionState),{direction:h}=pa(),{disabledBehavior:g,disabledKeys:m}=d,v=mu({usage:"search",sensitivity:"base"}),y=t.useMemo((()=>n.keyboardDelegate||new of({collection:c,collator:v,ref:r,disabledKeys:m,disabledBehavior:g,layout:s,orientation:u,direction:h})),[c,v,r,g,m,u,h,n.keyboardDelegate,s]),{listBoxProps:b}=function(e,t,n){let r=Br(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||("replace"===o?"action":"override");"toggle"===o&&"action"===i&&(i="override");let{listProps:a}=af({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:l}=wi({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=kr(e.id);qd.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=Cc({...e,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:Mr(r,l,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...Mr(c,a)})}}({...n,shouldSelectOnPressUp:f||n.shouldSelectOnPressUp,keyboardDelegate:y},e,r),w=hh({items:c,children:e=>{switch(e.type){case"section":return t.createElement(cv,{section:e});case"separator":return t.createElement(rv,e.props);case"item":return t.createElement(hv,{item:e});default:throw new Error("Unsupported node type in Menu: "+e.type)}}}),x=t.useRef(f),C=t.useRef(p);t.useEffect((()=>{x.current!==f&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==p&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")}),[f,p]);let S=!1,k=null,E=t.useRef(null);if(f&&l){o=l.useDraggableCollectionState({collection:c,selectionManager:d,preview:l.renderDragPreview?E:void 0}),l.useDraggableCollection({},o,r);let e=l.DragPreview;k=l.renderDragPreview?t.createElement(e,{ref:E},l.renderDragPreview):null}if(p&&l){i=l.useDroppableCollectionState({collection:c,selectionManager:d});let e=l.dropTargetDelegate||new l.ListDropTargetDelegate(c,r,{orientation:u,layout:s,direction:h});a=l.useDroppableCollection({keyboardDelegate:y,dropTargetDelegate:e},i,r),S=i.isDropTarget({type:"root"})}let{focusProps:O,isFocused:D,isFocusVisible:_}=ta(),j={isDropTarget:S,isEmpty:0===e.collection.size,isFocused:D,isFocusVisible:_,layout:n.layout||"stack",state:e},P=Ph({className:n.className,style:n.style,defaultClassName:"react-aria-ListBox",values:j}),T=null;return 0===e.collection.size&&n.renderEmptyState&&(T=t.createElement("div",{role:"option",style:{display:"contents"}},n.renderEmptyState(j))),t.createElement(Ni,null,t.createElement("div",{...Br(n),...Mr(b,O,null==a?void 0:a.collectionProps),...P,ref:r,slot:n.slot||void 0,onScroll:n.onScroll,"data-drop-target":S||void 0,"data-empty":0===e.collection.size||void 0,"data-focused":D||void 0,"data-focus-visible":_||void 0,"data-layout":n.layout||"stack","data-orientation":n.orientation||"vertical"},t.createElement(jh,{values:[[ov,n],[iv,e],[Xm,{dragAndDropHooks:l,dragState:o,dropState:i}],[tv,{elementType:"div"}],[qm,{render:gv}]]},w),T,k))}function cv({section:e,className:n,style:r}){var o,i;let a=t.useContext(iv),[l,s]=Ah();var u;let{headingProps:c,groupProps:d}=function(e){let{heading:t,"aria-label":n}=e,r=kr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:s,"aria-label":null!==(u=e.props["aria-label"])&&void 0!==u?u:void 0}),f=hh({items:a.collection.getChildren(e.key),children:e=>{switch(e.type){case"header":return t.createElement(dv,{item:e,headingProps:c,headingRef:l});case"item":return t.createElement(hv,{item:e});default:throw new Error("Unsupported element type in Section: "+e.type)}}});return t.createElement("section",{...Br(e.props),...d,className:n||(null===(o=e.props)||void 0===o?void 0:o.className)||"react-aria-Section",style:r||(null===(i=e.props)||void 0===i?void 0:i.style),ref:e.props.ref},f)}function dv({item:e,headingProps:n,headingRef:r}){let{ref:o,...i}=e.props;return t.createElement(ev,{...n,...i,ref:Ar(r,o)},e.rendered)}function fv(e,t){return Eh("item",e,t,e.children)}const pv=t.forwardRef(fv);function hv({item:e}){var n;let r=ao(e.props.ref),o=t.useContext(iv),{dragAndDropHooks:i,dragState:a,dropState:l}=t.useContext(Xm),{optionProps:s,labelProps:u,descriptionProps:c,...d}=function(e,t,n){var r,o;let{key:i}=e,a=qd.get(t);var l;let s=null!==(l=e.isDisabled)&&void 0!==l?l:t.selectionManager.isDisabled(i);var u;let c=null!==(u=e.isSelected)&&void 0!==u?u:t.selectionManager.isSelected(i);var d;let f=null!==(d=e.shouldSelectOnPressUp)&&void 0!==d?d:null==a?void 0:a.shouldSelectOnPressUp;var p;let h=null!==(p=e.shouldFocusOnHover)&&void 0!==p?p:null==a?void 0:a.shouldFocusOnHover;var g;let m=null!==(g=e.shouldUseVirtualFocus)&&void 0!==g?g:null==a?void 0:a.shouldUseVirtualFocus;var v;let y=null!==(v=e.isVirtualized)&&void 0!==v?v:null==a?void 0:a.isVirtualized,b=Or(),w=Or(),x={role:"option","aria-disabled":s||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?c:void 0};Vr()&&qr()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=b,x["aria-describedby"]=w);let C=t.collection.getItem(i);if(y){let e=Number(null==C?void 0:C.index);x["aria-posinset"]=Number.isNaN(e)?void 0:e+1,x["aria-setsize"]=vf(t.collection)}let S=(null==a?void 0:a.onAction)?()=>{var e;return null==a||null===(e=a.onAction)||void 0===e?void 0:e.call(a,i)}:void 0,{itemProps:k,isPressed:E,isFocused:O,hasAction:D,allowsSelection:_}=tf({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:y,shouldUseVirtualFocus:m,isDisabled:s,onAction:S||(null==C||null===(r=C.props)||void 0===r?void 0:r.onAction)?Dr(null==C||null===(o=C.props)||void 0===o?void 0:o.onAction,S):void 0,linkBehavior:null==a?void 0:a.linkBehavior}),{hoverProps:j}=Oi({isDisabled:s||!h,onHoverStart(){hi()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),P=Br(null==C?void 0:C.props);delete P.id;let T=Qr(null==C?void 0:C.props);return{optionProps:{...x,...Mr(P,k,j,T),id:Gd(t,i)},labelProps:{id:b},descriptionProps:{id:w},isFocused:O,isFocusVisible:O&&hi(),isSelected:c,isDisabled:s,isPressed:E,allowsSelection:_,hasAction:D}}({key:e.key,"aria-label":null===(n=e.props)||void 0===n?void 0:n["aria-label"]},o,r),{hoverProps:f,isHovered:p}=Oi({isDisabled:!d.allowsSelection&&!d.hasAction,onHoverStart:e.props.onHoverStart,onHoverChange:e.props.onHoverChange,onHoverEnd:e.props.onHoverEnd}),h=null;a&&i&&(h=i.useDraggableItem({key:e.key},a));let g=null;l&&i&&(g=i.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},l,r));let m=e.props,v=a&&a.isDragging(e.key),y=Ph({...m,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...d,isHovered:p,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:v,isDropTarget:null==g?void 0:g.isDropTarget}}),b=(null==i?void 0:i.renderDropIndicator)||(e=>t.createElement(Ym,{target:e}));t.useEffect((()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")}),[e.textValue]);let w=m.href?"a":"div";return t.createElement(t.Fragment,null,(null==i?void 0:i.useDropIndicator)&&b({type:"item",key:e.key,dropPosition:"before"}),t.createElement(w,{...Mr(s,f,null==h?void 0:h.dragProps,null==g?void 0:g.dropProps),...y,ref:r,"data-allows-dragging":!!a||void 0,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-dragging":v||void 0,"data-drop-target":(null==g?void 0:g.isDropTarget)||void 0,"data-selection-mode":"none"===o.selectionManager.selectionMode?void 0:o.selectionManager.selectionMode},t.createElement(jh,{values:[[Hh,{slots:{label:u,description:c}}]]},y.children)),(null==i?void 0:i.useDropIndicator)&&null==o.collection.getKeyAfter(e.key)&&b({type:"item",key:e.key,dropPosition:"after"}))}function gv(e,n){n=ao(n);let{dragAndDropHooks:r,dropState:o}=t.useContext(Xm),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,o,n);return a?null:t.createElement(vv,{...e,dropIndicatorProps:i,isDropTarget:l,ref:n})}function mv(e,n){let{dropIndicatorProps:r,isDropTarget:o,...i}=e,a=Ph({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return t.createElement("div",{...r,...a,role:"option",ref:n,"data-drop-target":o||void 0})}const vv=t.forwardRef(mv),yv=t.createContext({});function bv(e,n){[e,n]=Mh(e,n,yv);let{isDisabled:r,isInvalid:o,onHoverStart:i,onHoverChange:a,onHoverEnd:l,...s}=e,{hoverProps:u,isHovered:c}=Oi({onHoverStart:i,onHoverChange:a,onHoverEnd:l,isDisabled:r}),{isFocused:d,isFocusVisible:f,focusProps:p}=ta({within:!0});null!=r||(r=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=o||(o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=Ph({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:r,isInvalid:o},defaultClassName:"react-aria-Group"});var g,m;return t.createElement("div",{...Mr(s,p,u),...h,ref:n,role:null!==(g=e.role)&&void 0!==g?g:"group",slot:null!==(m=e.slot)&&void 0!==m?m:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":r||void 0,"data-invalid":o||void 0},h.children)}const wv=t.forwardRef(bv),xv=t.createContext({placement:"bottom"}),Cv=t.createContext(null);function Sv(e,n){[e,n]=Mh(e,n,Cv);let r=t.useContext(Dv),o=fg(e),i=null==e.isOpen&&null==e.defaultOpen&&r?r:o,a=function(e,n){let[r,o]=t.useState(!1),[i,a]=t.useState("idle");return!n&&e.current&&"idle"===i&&(r=!0,o(!0),a("exiting")),e.current||"exited"!==i||a("idle"),Lh(e,r,t.useCallback((()=>{a("exited"),o(!1)}),[])),r}(n,i.isOpen)||e.isExiting||!1;if(t.useContext(Rh)){let n=e.children;return"function"==typeof n&&(n=n({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),t.createElement(t.Fragment,null,n)}return!i||i.isOpen||a?t.createElement(Ev,{...e,triggerRef:e.triggerRef,state:i,popoverRef:n,isExiting:a}):null}const kv=t.forwardRef(Sv);function Ev({state:e,isExiting:n,UNSTABLE_portalContainer:r,...o}){let i=t.useRef(null),[a,l]=t.useState(0);var s;cr((()=>{i.current&&e.isOpen&&l(i.current.getBoundingClientRect().width)}),[e.isOpen,i]);let{popoverProps:u,underlayProps:c,arrowProps:d,placement:f}=function(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...l}=e,{overlayProps:s,underlayProps:u}=Dd({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:d,placement:f}=kd({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Md({isDisabled:o||!t.isOpen}),cr((()=>{if(t.isOpen&&!o&&r.current)return Hd([r.current])}),[o,t.isOpen,r]),{popoverProps:Mr(s,c),arrowProps:d,underlayProps:u,placement:f}}({...o,offset:null!==(s=o.offset)&&void 0!==s?s:8,arrowSize:a},e),p=o.popoverRef,h=function(e,n=!0){let[r,o]=t.useState(!0);return Lh(e,r&&n,t.useCallback((()=>o(!1)),[])),r&&n}(p,!!f)||o.isEntering||!1,g=Ph({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:h,isExiting:n}}),m={...u.style,...g.style};return t.createElement(Wd,{isExiting:n,portalContainer:r},!o.isNonModal&&e.isOpen&&t.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),t.createElement("div",{...Mr(Br(o),u),...g,ref:p,slot:o.slot||void 0,style:m,"data-trigger":o.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":n||void 0},!o.isNonModal&&t.createElement(zd,{onDismiss:e.close}),t.createElement(xv.Provider,{value:{...d,placement:f,ref:i}},g.children),t.createElement(zd,{onDismiss:e.close})))}const Ov=t.createContext(null),Dv=t.createContext(null);function _v(e,n){let r=e["aria-labelledby"];[e,n]=Mh(e,n,Ov);let{dialogProps:o,titleProps:i}=yp({...e,"aria-labelledby":r},n),a=t.useContext(Dv),l=e.children;var s;return"function"==typeof l&&(l=l({close:(null==a?void 0:a.close)||(()=>{})})),o["aria-label"]||o["aria-labelledby"]||(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.')),t.createElement("section",{...Br(e),...o,ref:n,slot:e.slot||void 0,style:e.style,className:null!==(s=e.className)&&void 0!==s?s:"react-aria-Dialog"},t.createElement(jh,{values:[[ur,{slots:{[_h]:{},title:{...i,level:2}}}]]},l))}const jv=t.forwardRef(_v),Pv=t.createContext(null),Tv=t.createContext(null);function Mv(e,n){[e,n]=Mh(e,n,Pv);let{collection:r,document:o}=bh(),{children:i,isDisabled:a=!1,isInvalid:l=!1,isRequired:s=!1}=e;var u;return i=t.useMemo((()=>"function"==typeof i?i({isOpen:!1,isDisabled:a,isInvalid:l,isRequired:s,defaultChildren:null}):i),[i,a,l,s]),t.createElement(t.Fragment,null,t.createElement(Nh,null,t.createElement(jh,{values:[[xh,o],[ov,{items:null!==(u=e.items)&&void 0!==u?u:e.defaultItems}]]},i)),t.createElement(Av,{props:e,collection:r,comboBoxRef:n}))}function Av({props:e,collection:n,comboBoxRef:r}){let{name:o,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=Th(Fm)||{};var s,u;let c=null!==(u=null!==(s=e.validationBehavior)&&void 0!==s?s:l)&&void 0!==u?u:"native",{contains:d}=vu({sensitivity:"base"}),f=pg({defaultFilter:e.defaultFilter||d,...e,items:e.items,children:void 0,collection:n,validationBehavior:c}),p=t.useRef(null),h=t.useRef(null),g=t.useRef(null),m=t.useRef(null),[v,y]=Ah(),{buttonProps:b,inputProps:w,listBoxProps:x,labelProps:C,descriptionProps:S,errorMessageProps:k,...E}=function(e,n){let{buttonRef:r,popoverRef:o,inputRef:i,listBoxRef:a,keyboardDelegate:l,shouldFocusWrap:s,isReadOnly:u,isDisabled:c}=e,d=Sa(function(e){return e&&e.__esModule?e.default:e}(od),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=bf({type:"listbox",isDisabled:c||u},n,r);qd.set(n,{id:p.id});let h=t.useMemo((()=>l||new of(n.collection,n.disabledKeys,a)),[l,n.collection,n.disabledKeys,a]),{collectionProps:g}=ef({selectionManager:n.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:i,isVirtualized:!0}),m=Xr(),{isInvalid:v,validationErrors:y,validationDetails:b}=n.displayValidation,{labelProps:w,inputProps:x,descriptionProps:C,errorMessageProps:S}=Df({...e,onChange:n.setInputValue,onKeyDown:u?e.onKeyDown:Dr(n.isOpen&&g.onKeyDown,(t=>{switch(t.key){case"Enter":case"Tab":if(n.isOpen&&"Enter"===t.key&&t.preventDefault(),n.isOpen&&null!=n.selectionManager.focusedKey&&n.selectionManager.isLink(n.selectionManager.focusedKey)){if("Enter"===t.key){let e=a.current.querySelector(`[data-key="${CSS.escape(n.selectionManager.focusedKey.toString())}"]`);if(e instanceof HTMLAnchorElement){let r=n.collection.getItem(n.selectionManager.focusedKey);m.open(e,t,r.props.href,r.props.routerOptions)}}n.close()}else n.commit();break;case"Escape":(null!==n.selectedKey||""===n.inputValue||e.allowsCustomValue)&&t.continuePropagation(),n.revert();break;case"ArrowDown":n.open("first","manual");break;case"ArrowUp":n.open("last","manual");break;case"ArrowLeft":case"ArrowRight":n.selectionManager.setFocusedKey(null)}}),e.onKeyDown),onBlur:t=>{var i;let a=(null==r?void 0:r.current)&&r.current===t.relatedTarget,l=null===(i=o.current)||void 0===i?void 0:i.contains(t.relatedTarget);a||l||(e.onBlur&&e.onBlur(t),n.setFocused(!1))},value:n.inputValue,onFocus:t=>{n.isFocused||(e.onFocus&&e.onFocus(t),n.setFocused(!0))},autoComplete:"off",validate:void 0,[mc]:n},i),k=io({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||w.id}),E=io({id:p.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||w.id}),O=t.useRef(0),D=null!=n.selectionManager.focusedKey&&n.isOpen?n.collection.getItem(n.selectionManager.focusedKey):void 0;var _;let j=null!==(_=null==D?void 0:D.parentKey)&&void 0!==_?_:null;var P;let T=null!==(P=n.selectionManager.focusedKey)&&void 0!==P?P:null,M=t.useRef(j),A=t.useRef(T);t.useEffect((()=>{if(Wr()&&null!=D&&T!==A.current){let e=n.selectionManager.isSelected(T),t=null!=j?n.collection.getItem(j):null,r=(null==t?void 0:t["aria-label"])||("string"==typeof(null==t?void 0:t.rendered)?t.rendered:"")||"";ac(d.format("focusAnnouncement",{isGroupChange:t&&j!==M.current,groupTitle:r,groupCount:t?[...ff(t,n.collection)].length:0,optionText:D["aria-label"]||D.textValue||"",isSelected:e}))}M.current=j,A.current=T}));let L=vf(n.collection),R=t.useRef(L),I=t.useRef(n.isOpen);t.useEffect((()=>{let e=n.isOpen!==I.current&&(null==n.selectionManager.focusedKey||Wr());n.isOpen&&(e||L!==R.current)&&ac(d.format("countAnnouncement",{optionCount:L})),R.current=L,I.current=n.isOpen}));let N=t.useRef(n.selectedKey);return t.useEffect((()=>{if(Wr()&&n.isFocused&&n.selectedItem&&n.selectedKey!==N.current){let e=n.selectedItem["aria-label"]||n.selectedItem.textValue||"";ac(d.format("selectedAnnouncement",{optionText:e}))}N.current=n.selectedKey})),t.useEffect((()=>{if(n.isOpen)return Hd([i.current,o.current])}),[n.isOpen,i,o]),{labelProps:w,buttonProps:{...f,...k,excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(i.current.focus(),n.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(i.current.focus(),n.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))},isDisabled:c||u},inputProps:Mr(x,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":n.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":D?Gd(n,D.key):void 0,onTouchEnd:e=>{if(c||u)return;if(e.timeStamp-O.current<500)return e.preventDefault(),void i.current.focus();let t=e.target.getBoundingClientRect(),r=e.changedTouches[0],o=Math.ceil(t.left+.5*t.width),a=Math.ceil(t.top+.5*t.height);r.clientX===o&&r.clientY===a&&(e.preventDefault(),i.current.focus(),n.toggle(null,"manual"),O.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:Mr(p,E,{autoFocus:n.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:C,errorMessageProps:S,isInvalid:v,validationErrors:y,validationDetails:b}}({...Fh(e),label:y,inputRef:h,buttonRef:p,listBoxRef:g,popoverRef:m,name:"text"===i?o:void 0,validationBehavior:c},f),[O,D]=t.useState(null),_=t.useCallback((()=>{if(h.current){var e;let t=null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect(),n=h.current.getBoundingClientRect(),r=t?Math.min(t.left,n.left):n.left,o=t?Math.max(t.right,n.right):n.right;D(o-r+"px")}}),[p,h,D]);so({ref:h,onResize:_});let j=t.useMemo((()=>({isOpen:f.isOpen,isDisabled:e.isDisabled||!1,isInvalid:E.isInvalid||!1,isRequired:e.isRequired||!1})),[f.isOpen,e.isDisabled,E.isInvalid,e.isRequired]),P=Ph({...e,values:j,defaultClassName:"react-aria-ComboBox"}),T=Br(e);return delete T.id,t.createElement(jh,{values:[[Tv,f],[$m,{...C,ref:v}],[zh,{...b,ref:p,isPressed:f.isOpen}],[Vm,{...w,ref:h}],[Dv,f],[Cv,{ref:m,triggerRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":O}}],[ov,{...x,ref:g}],[iv,f],[Hh,{slots:{description:S,errorMessage:k}}],[yv,{isInvalid:E.isInvalid,isDisabled:e.isDisabled||!1}],[Rm,E]]},t.createElement("div",{...T,...P,ref:r,slot:e.slot||void 0,"data-focused":f.isFocused||void 0,"data-open":f.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-required":e.isRequired||void 0}),o&&"key"===i&&t.createElement("input",{type:"hidden",name:o,value:f.selectedKey}))}const Lv=t.forwardRef(Mv),Rv=t.createContext(null),Iv=t.createContext(null),Nv=t.createContext(null);function Bv(e,n){let r=t.useContext(Iv),o=t.useContext(Nv);return r||o?t.createElement($v,{...e,ref:n}):t.createElement(Fv,{...e,ref:n})}const Fv=t.forwardRef(((e,n)=>{let[r,o]=Mh({slot:e.slot},n,Rv),{locale:i}=pa(),a=um({...r,locale:i,createCalendar:Vs}),l=t.useRef(null),{fieldProps:s,inputProps:u}=function(e,n,r){var o;let{isInvalid:i,validationErrors:a,validationDetails:l}=n.displayValidation,{labelProps:s,fieldProps:u,descriptionProps:c,errorMessageProps:d}=Sc({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),f=t.useRef(null),{focusWithinProps:p}=wi({...e,onFocusWithin(t){var r;f.current=n.value,null===(r=e.onFocus)||void 0===r||r.call(e,t)},onBlurWithin:t=>{var r;n.confirmPlaceholder(),n.value!==f.current&&n.commitValidation(),null===(r=e.onBlur)||void 0===r||r.call(e,t)},onFocusWithinChange:e.onFocusChange}),h=Sa(function(e){return e&&e.__esModule?e.default:e}(up),"@react-aria/datepicker"),g="hour"===n.maxGranularity?"selectedTimeDescription":"selectedDateDescription",m="hour"===n.maxGranularity?"time":"date",v=go(n.value?h.format(g,{[m]:n.formatValue({month:"long"})}):""),y="presentation"===e[fp]?u["aria-describedby"]:[v["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=e[pp],w=t.useMemo((()=>b||Yi(r)),[b,r]),x=cp(n,r,"presentation"===e[fp]);dp.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:w});let C,S=t.useRef(e.autoFocus);C="presentation"===e[fp]?{role:"presentation"}:Mr(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),t.useEffect((()=>{S.current&&w.focusFirst(),S.current=!1}),[w]),Co(e.inputRef,n.value,n.setValue),cc({...e,focus(){w.focusFirst()}},n,e.inputRef);let k={type:"hidden",name:e.name,value:(null===(o=n.value)||void 0===o?void 0:o.toString())||""};"native"===e.validationBehavior&&(k.type="text",k.hidden=!0,k.required=e.isRequired,k.onChange=()=>{});let E=Br(e);return{labelProps:{...s,onClick:()=>{w.focusFirst()}},fieldProps:Mr(E,C,x,p,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)}}),inputProps:k,descriptionProps:c,errorMessageProps:d,isInvalid:i,validationErrors:a,validationDetails:l}}({...r,inputRef:l},a,o);return t.createElement(jh,{values:[[Iv,a],[Vm,{...u,ref:l}],[yv,{...s,ref:o,isInvalid:a.isInvalid}]]},t.createElement($v,e))})),$v=t.forwardRef(((e,n)=>{let{className:r,children:o}=e,i=t.useContext(Iv),a=t.useContext(Nv),l=null!=i?i:a;return t.createElement(t.Fragment,null,t.createElement(wv,{...e,ref:n,slot:e.slot||void 0,className:null!=r?r:"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map(((e,n)=>t.cloneElement(o(e),{key:n})))),t.createElement(Zm,null))})),zv=t.forwardRef(Bv);function Kv({segment:e,...n},r){let o=t.useContext(Iv),i=t.useContext(Nv),a=null!=o?o:i,l=ao(r),{segmentProps:s}=vp(e,a,l),{focusProps:u,isFocused:c,isFocusVisible:d}=ta(),{hoverProps:f,isHovered:p}=Oi({...n,isDisabled:a.isDisabled||"literal"===e.type}),h=Ph({...n,values:{...e,isReadOnly:!e.isEditable,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:p,isFocused:c,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return t.createElement("div",{...Mr(Br(n),s,u,f),...h,ref:l,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0})}const Vv=t.forwardRef(Kv),Hv=t.createContext(null),Uv=t.createContext(null),Zv=t.createContext(null),Wv=t.createContext(null);function qv(e,n){[e,n]=Mh(e,n,Hv);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=function(e){let n=fg(e),[r,o]=So(e.value,e.defaultValue||null,e.onChange),i=r||e.placeholderValue,[a,l]=om(i,e.granularity),s=null!=r?r.toDate(null!=l?l:"UTC"):null,u="hour"===a||"minute"===a||"second"===a;var c;let d=null===(c=e.shouldCloseOnSelect)||void 0===c||c,[f,p]=t.useState(null),[h,g]=t.useState(null);if(r&&(f=r,"hour"in r&&(h=r)),i&&!(a in i))throw new Error("Invalid granularity "+a+" for value "+i.toString());let m="gregory"===(null==r?void 0:r.calendar.identifier)&&"BC"===r.era,v=t.useMemo((()=>({granularity:a,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:m})),[a,e.hourCycle,e.shouldForceLeadingZeros,l,e.hideTimeZone,m]),{minValue:y,maxValue:b,isDateUnavailable:w}=e,x=t.useMemo((()=>Xg(r,y,b,w,v)),[r,y,b,w,v]),C=vc({...e,value:r,builtinValidation:x}),S=C.displayValidation.isInvalid,k=e.validationState||(S?"invalid":null),E=(e,t)=>{o("timeZone"in t?t.set(ll(e)):sl(e,t)),p(null),g(null),C.commitValidation()};return{...C,value:r,setValue:o,dateValue:f,timeValue:h,setDateValue:t=>{let r="function"==typeof d?d():d;u?h||r?E(t,h||tm(e.placeholderValue)):p(t):(o(t),C.commitValidation()),r&&n.setOpen(!1)},setTimeValue:e=>{f&&e?E(f,e):g(e)},granularity:a,hasTime:u,...n,setOpen(t){!t&&!r&&f&&u&&E(f,h||tm(e.placeholderValue)),n.setOpen(t)},validationState:k,isInvalid:S,formatValue(e,t){if(!s)return"";let n=em(t,v);return new Us(e,n).format(s)}}}({...e,validationBehavior:a}),s=t.useRef(null),[u,c]=Ah(),{groupProps:d,labelProps:f,fieldProps:p,buttonProps:h,dialogProps:g,calendarProps:m,descriptionProps:v,errorMessageProps:y,...b}=function(e,n,r){let o=kr(),i=kr(),a=kr(),l=Sa(function(e){return e&&e.__esModule?e.default:e}(up),"@react-aria/datepicker"),{isInvalid:s,validationErrors:u,validationDetails:c}=n.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:h}=Sc({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||u}),g=cp(n,r),m=f["aria-labelledby"]||f.id,{locale:v}=pa(),y=n.formatValue(v,{month:"long"}),b=go(y?l.format("selectedDateDescription",{date:y}):""),w=[b["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=Br(e),C=t.useMemo((()=>Yi(r)),[r]),{focusWithinProps:S}=wi({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Mr(x,g,f,b,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":m,"aria-describedby":w,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...d,onClick:()=>{C.focusFirst()}},fieldProps:{...f,id:a,[fp]:"presentation","aria-describedby":w,value:n.value,onChange:n.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[mc]:n,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:h,buttonProps:{...b,id:o,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${o} ${m}`,"aria-describedby":w,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${o} ${m}`},calendarProps:{autoFocus:!0,value:n.dateValue,onChange:n.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:n.dateValue?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:s,validationErrors:u,validationDetails:c}}({...Fh(e),label:c,validationBehavior:a},l,s),[w,x]=t.useState(null),C=t.useCallback((()=>{s.current&&x(s.current.offsetWidth+"px")}),[]);so({ref:s,onResize:C});let{focusProps:S,isFocused:k,isFocusVisible:E}=ta({within:!0}),O=Ph({...e,values:{state:l,isFocusWithin:k,isFocusVisible:E,isDisabled:e.isDisabled||!1,isInvalid:l.isInvalid,isOpen:l.isOpen},defaultClassName:"react-aria-DatePicker"}),D=Br(e);return delete D.id,t.createElement(jh,{values:[[Zv,l],[yv,{...d,ref:s,isInvalid:l.isInvalid}],[Rv,p],[zh,{...h,isPressed:l.isOpen}],[$m,{...f,ref:u,elementType:"span"}],[mm,m],[Dv,l],[Cv,{trigger:"DatePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":w}}],[Ov,g],[Hh,{slots:{description:v,errorMessage:y}}],[Rm,b]]},t.createElement("div",{...S,...D,...O,ref:n,slot:e.slot||void 0,"data-focus-within":k||void 0,"data-invalid":l.isInvalid||void 0,"data-focus-visible":E||void 0,"data-disabled":e.isDisabled||void 0,"data-open":l.isOpen||void 0}))}const Gv=t.forwardRef(qv);function Yv(e,n){[e,n]=Mh(e,n,Uv);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=dm({...e,validationBehavior:a}),s=t.useRef(null),[u,c]=Ah(),{groupProps:d,labelProps:f,startFieldProps:p,endFieldProps:h,buttonProps:g,dialogProps:m,calendarProps:v,descriptionProps:y,errorMessageProps:b,...w}=function(e,n,r){var o,i;let a=Sa(function(e){return e&&e.__esModule?e.default:e}(up),"@react-aria/datepicker"),{isInvalid:l,validationErrors:s,validationDetails:u}=n.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:p}=Sc({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||s}),h=d["aria-labelledby"]||d.id,{locale:g}=pa(),m=n.formatValue(g,{month:"long"}),v=go(m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):""),y={"aria-label":a.format("startDate"),"aria-labelledby":h},b={"aria-label":a.format("endDate"),"aria-labelledby":h},w=kr(),x=kr(),C=cp(n,r),S=[v["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=t.useMemo((()=>Yi(r,{accept:e=>e.id!==w})),[r,w]),E={[pp]:k,[fp]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},O=Br(e),{focusWithinProps:D}=wi({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),_=t.useRef(hc),j=t.useRef(hc);return{groupProps:Mr(O,C,d,v,D,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...c,onClick:()=>{k.focusFirst()}},buttonProps:{...v,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${h}`,"aria-describedby":S,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:x,"aria-labelledby":`${w} ${h}`},startFieldProps:{...y,...E,value:null===(o=n.value)||void 0===o?void 0:o.start,onChange:e=>n.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,[mc]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){_.current=e,n.updateValidation(xc(e,j.current))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},endFieldProps:{...b,...E,value:null===(i=n.value)||void 0===i?void 0:i.end,onChange:e=>n.setDateTime("end",e),name:e.endName,[mc]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){j.current=e,n.updateValidation(xc(_.current,e))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},descriptionProps:f,errorMessageProps:p,calendarProps:{autoFocus:!0,value:n.dateRange,onChange:n.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:n.dateRange?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:s,validationDetails:u}}({...Fh(e),label:c,validationBehavior:a},l,s),[x,C]=t.useState(null),S=t.useCallback((()=>{s.current&&C(s.current.offsetWidth+"px")}),[]);so({ref:s,onResize:S});let{focusProps:k,isFocused:E,isFocusVisible:O}=ta({within:!0}),D=Ph({...e,values:{state:l,isFocusWithin:E,isFocusVisible:O,isDisabled:e.isDisabled||!1,isInvalid:l.isInvalid,isOpen:l.isOpen},defaultClassName:"react-aria-DateRangePicker"}),_=Br(e);return delete _.id,t.createElement(jh,{values:[[Wv,l],[yv,{...d,ref:s,isInvalid:l.isInvalid}],[zh,{...g,isPressed:l.isOpen}],[$m,{...f,ref:u,elementType:"span"}],[vm,v],[Dv,l],[Cv,{trigger:"DateRangePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":x}}],[Ov,m],[Rv,{slots:{start:p,end:h}}],[Hh,{slots:{description:y,errorMessage:b}}],[Rm,w]]},t.createElement("div",{...k,..._,...D,ref:n,slot:e.slot||void 0,"data-focus-within":E||void 0,"data-invalid":l.isInvalid||void 0,"data-focus-visible":O||void 0,"data-disabled":e.isDisabled||void 0,"data-open":l.isOpen||void 0}))}const Xv=t.forwardRef(Yv);function Jv(e,n){[e,n]=Mh(e,n,ur);let{children:r,level:o=3,className:i,...a}=e,l=`h${o}`;return t.createElement(l,{...a,ref:n,className:null!=i?i:"react-aria-Heading"},r)}const Qv=t.forwardRef(Jv),ey=t.createContext({}),ty=t.createContext(null),ny=t.createContext(null),ry=t.createContext(null);function oy(e){let n=fm(e),r=t.useRef(null),{menuTriggerProps:o,menuProps:i}=bf({...e,type:"menu"},n,r),[a,l]=t.useState(null),s=t.useCallback((()=>{r.current&&l(r.current.offsetWidth+"px")}),[r]);return so({ref:r,onResize:s}),t.createElement(jh,{values:[[ty,i],[Dv,n],[ry,n],[Cv,{trigger:"MenuTrigger",triggerRef:r,placement:"bottom start",style:{"--trigger-width":a}}]]},t.createElement(Go,{...o,ref:r,isPressed:n.isOpen},e.children))}function iy(e,t){return Eh("submenutrigger",e,t,e.children,e.children[0])}function ay(e){let{item:n,parentMenuRef:r}=e;return hh({items:t.useContext(ny).collection.getChildren(n.key),children:e=>{if("item"===e.type)return t.createElement(hy,{item:e,popover:n.rendered[1],parentMenuRef:r,delay:n.props.delay});throw new Error("Unsupported element type in SubmenuTrigger: "+n.type)}})}function ly(e,n){[e,n]=Mh(e,n,ty);let{portal:r,collection:o}=vh(e);return t.createElement(t.Fragment,null,o.size>0&&t.createElement(sy,{props:e,collection:o,menuRef:n}),r)}function sy({props:e,collection:n,menuRef:r}){let o=gm({...e,collection:n,children:void 0}),[i,a]=t.useState(null),{menuProps:l}=function(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=Br(e,{labelable:!0}),{listProps:s}=af({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return wf.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Mr(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:e=>{"Escape"!==e.key&&s.onKeyDown(e)}})}}(e,o,r),s=t.useContext(ry),u=t.useContext(Cv),c=hh({items:o.collection,children:e=>{switch(e.type){case"section":return t.createElement(cy,{section:e,parentMenuRef:r});case"separator":return t.createElement(rv,e.props);case"item":return t.createElement(py,{item:e});case"submenutrigger":return t.createElement(ay,{item:e,parentMenuRef:r});default:throw new Error("Unsupported node type in Menu: "+e.type)}}}),d="SubmenuTrigger"===(null==u?void 0:u.trigger);Di({ref:r,onInteractOutside:e=>{s&&!(null==i?void 0:i.contains(e.target))&&s.close()},isDisabled:d||0===(null==s?void 0:s.expandedKeysStack.length)});let f=t.useRef(null),[p,h]=t.useState({left:0});var g;return t.useEffect((()=>{if(i&&f.current!==i&&0===p.left){f.current=i;let{left:e}=i.getBoundingClientRect();h({left:-1*e})}}),[p,i]),t.createElement(Ni,null,t.createElement("div",{...Br(e),...l,ref:r,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:null!==(g=e.className)&&void 0!==g?g:"react-aria-Menu"},t.createElement(jh,{values:[[ny,o],[tv,{elementType:"div"}],[Cv,{UNSTABLE_portalContainer:i||void 0}]]},c)),t.createElement("div",{ref:a,style:{width:"100vw",position:"absolute",top:0,...p}}))}const uy=t.forwardRef(ly);function cy({section:e,className:n,style:r,parentMenuRef:o,...i}){var a,l;let s=t.useContext(ny),[u,c]=Ah();var d;let{headingProps:f,groupProps:p}=function(e){let{heading:t,"aria-label":n}=e,r=kr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:c,"aria-label":null!==(d=e["aria-label"])&&void 0!==d?d:void 0}),h=hh({items:s.collection.getChildren(e.key),children:e=>{switch(e.type){case"header":{let{ref:n,...r}=e.props;return t.createElement(ev,{...f,...r,ref:Ar(u,n)},e.rendered)}case"item":return t.createElement(py,{item:e});case"submenutrigger":return t.createElement(ay,{item:e,parentMenuRef:o});default:throw new Error("Unsupported element type in Section: "+e.type)}}});return t.createElement("section",{...Br(i),...p,className:n||(null===(a=e.props)||void 0===a?void 0:a.className)||"react-aria-Section",style:r||(null===(l=e.props)||void 0===l?void 0:l.style),ref:e.props.ref},h)}function dy(e,t){return Eh("item",e,t,e.children)}const fy=t.forwardRef(dy);function py({item:e}){var n;let r=t.useContext(ny),o=ao(e.props.ref),{menuItemProps:i,labelProps:a,descriptionProps:l,keyboardShortcutProps:s,...u}=xf({key:e.key,"aria-label":null===(n=e.props)||void 0===n?void 0:n["aria-label"]},r,o),c=e.props,{isFocusVisible:d,focusProps:f}=ta(),{hoverProps:p,isHovered:h}=Oi({isDisabled:u.isDisabled,onHoverStart:e.props.onHoverStart,onHoverChange:e.props.onHoverChange,onHoverEnd:e.props.onHoverEnd}),g=Ph({...c,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...u,isHovered:h,isFocusVisible:d,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),m=c.href?"a":"div";return t.createElement(m,{...Mr(i,f,p),...g,ref:o,"data-disabled":u.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":d||void 0,"data-pressed":u.isPressed||void 0,"data-selected":u.isSelected||void 0,"data-selection-mode":"none"===r.selectionManager.selectionMode?void 0:r.selectionManager.selectionMode},t.createElement(jh,{values:[[Hh,{slots:{label:a,description:l}}],[ey,s]]},g.children))}function hy({item:e,popover:n,parentMenuRef:r,delay:o}){let i=t.useContext(ny),a=Th(Cv),l=ao(e.props.ref),s=t.useContext(ry),u=function(e,n){let{triggerKey:r}=e,{expandedKeysStack:o,openSubmenu:i,closeSubmenu:a,close:l}=n,[s]=t.useState(null==o?void 0:o.length),u=t.useMemo((()=>o[s]===r),[o,r,s]),[c,d]=t.useState(null),f=t.useCallback(((e=null)=>{d(e),i(r,s)}),[i,s,r]),p=t.useCallback((()=>{d(null),a(r,s)}),[a,s,r]),h=t.useCallback(((e=null)=>{d(e),u?p():f(e)}),[p,f,u]);return t.useMemo((()=>({focusStrategy:c,isOpen:u,open:f,close:p,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:h})),[u,f,p,l,c,h,s])}({triggerKey:e.key},s),c=t.useRef(null),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=Of({node:e,parentMenuRef:r,submenuRef:c,delay:o},u,l),{menuItemProps:h,labelProps:g,descriptionProps:m,keyboardShortcutProps:v,...y}=xf({key:e.key,...d},i,l),b=e.props,{hoverProps:w,isHovered:x}=Oi({isDisabled:y.isDisabled}),{isFocusVisible:C,focusProps:S}=ta(),k=Ph({...b,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...y,isHovered:x,isFocusVisible:C,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:u.isOpen}});return t.createElement(jh,{values:[[Hh,{slots:{label:g,description:m}}],[ey,v],[ty,f],[Dv,u],[Cv,{ref:c,trigger:"SubmenuTrigger",triggerRef:l,placement:"end top",UNSTABLE_portalContainer:a.UNSTABLE_portalContainer||void 0,...p}]]},t.createElement("div",{...Mr(h,S,w),...k,ref:l,"data-disabled":y.isDisabled||void 0,"data-hovered":x||void 0,"data-focused":y.isFocused||void 0,"data-focus-visible":C||void 0,"data-pressed":y.isPressed||void 0,"data-selected":y.isSelected||void 0,"data-selection-mode":"none"===i.selectionManager.selectionMode?void 0:i.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":u.isOpen||void 0},k.children),n)}const gy=t.createContext(null),my=t.createContext(null);function vy(e,n){[e,n]=Mh(e,n,gy);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",{locale:l}=pa(),s=function(e){let{minValue:n,maxValue:r,step:o,formatOptions:i,value:a,defaultValue:l=NaN,onChange:s,locale:u,isDisabled:c,isReadOnly:d}=e;null===a&&(a=NaN),void 0===a||isNaN(a)||(a=void 0===o||isNaN(o)?ko(a,n,r):Oo(a,n,r,o)),isNaN(l)||(l=void 0===o||isNaN(o)?ko(l,n,r):Oo(l,n,r,o));let[f,p]=So(a,isNaN(l)?NaN:l,s),[h,g]=t.useState((()=>isNaN(f)?"":new nu(u,i).format(f))),m=t.useMemo((()=>new iu(u,i)),[u,i]),v=t.useMemo((()=>m.getNumberingSystem(h)),[m,h]),y=t.useMemo((()=>new nu(u,{...i,numberingSystem:v})),[u,i,v]),b=t.useMemo((()=>y.resolvedOptions()),[y]),w=t.useCallback((e=>isNaN(e)||null===e?"":y.format(e)),[y]),x=vc({...e,value:f}),C=void 0===o||isNaN(o)?1:o;"percent"!==b.style||void 0!==o&&!isNaN(o)||(C=.01);let[S,k]=t.useState(f),[E,O]=t.useState(u),[D,_]=t.useState(i);Object.is(f,S)&&u===E&&i===D||(g(w(f)),k(f),O(u),_(i));let j=t.useMemo((()=>m.parse(h)),[m,h]),P=(e,t=0)=>{let o=j;if(isNaN(o))return Oo(isNaN(t)?0:t,n,r,C);{let t=Oo(o,n,r,C);return"+"===e&&t>o||"-"===e&&t<o?t:Oo(pm(e,o,C),n,r,C)}},T=t.useMemo((()=>!c&&!d&&(isNaN(j)||void 0===r||isNaN(r)||Oo(j,n,r,C)>j||pm("+",j,C)<=r)),[c,d,n,r,C,j]),M=t.useMemo((()=>!c&&!d&&(isNaN(j)||void 0===n||isNaN(n)||Oo(j,n,r,C)<j||pm("-",j,C)>=n)),[c,d,n,r,C,j]);return{...x,validate:e=>m.isValidPartialNumber(e,n,r),increment:()=>{let e=P("+",n);e===f&&g(w(e)),p(e),x.commitValidation()},incrementToMax:()=>{null!=r&&(p(Oo(r,n,r,C)),x.commitValidation())},decrement:()=>{let e=P("-",r);e===f&&g(w(e)),p(e),x.commitValidation()},decrementToMin:()=>{null!=n&&(p(n),x.commitValidation())},canIncrement:T,canDecrement:M,minValue:n,maxValue:r,numberValue:j,setNumberValue:p,setInputValue:g,inputValue:h,commit:()=>{if(!h.length)return p(NaN),void g(void 0===a?"":w(f));if(isNaN(j))return void g(w(f));let e;e=void 0===o||isNaN(o)?ko(j,n,r):Oo(j,n,r,o),e=m.parse(w(e)),p(e),g(w(void 0===a?e:f))}}}({...e,locale:l,validationBehavior:a}),u=t.useRef(null),[c,d]=Ah(),{labelProps:f,groupProps:p,inputProps:h,incrementButtonProps:g,decrementButtonProps:m,descriptionProps:v,errorMessageProps:y,...b}=eh({...Fh(e),label:d,validationBehavior:a},s,u),w=Ph({...e,values:{state:s,isDisabled:e.isDisabled||!1,isInvalid:b.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),x=Br(e);return delete x.id,t.createElement(jh,{values:[[my,s],[yv,p],[Vm,{...h,ref:u}],[$m,{...f,ref:c}],[zh,{slots:{increment:g,decrement:m}}],[Hh,{slots:{description:v,errorMessage:y}}],[Rm,b]]},t.createElement("div",{...x,...w,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":b.isInvalid||void 0}),e.name&&t.createElement("input",{type:"hidden",name:e.name,value:isNaN(s.numberValue)?"":s.numberValue}))}const yy=t.forwardRef(vy);const by=t.createContext(null),wy=t.createContext(null);function xy(e,n){[e,n]=Mh(e,n,by);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",{collection:l,document:s}=bh(),u=function(e){let n=fg(e),[r,o]=t.useState(null),i=dg({...e,onSelectionChange:t=>{null!=e.onSelectionChange&&e.onSelectionChange(t),n.close(),a.commitValidation()}}),a=vc({...e,value:i.selectedKey}),[l,s]=t.useState(!1);return{...a,...i,...n,focusStrategy:r,open(e=null){0!==i.collection.size&&(o(e),n.open())},toggle(e=null){0!==i.collection.size&&(o(e),n.toggle())},isFocused:l,setFocused:s}}({...e,collection:l,children:void 0,validationBehavior:a}),{isFocusVisible:c,focusProps:d}=ta({within:!0}),f=t.useRef(null),[p,h]=Ah(),{labelProps:g,triggerProps:m,valueProps:v,menuProps:y,descriptionProps:b,errorMessageProps:w,...x}=function(e,n,r){let{keyboardDelegate:o,isDisabled:i,isRequired:a,name:l,validationBehavior:s="aria"}=e,u=mu({usage:"search",sensitivity:"base"}),c=t.useMemo((()=>o||new of(n.collection,n.disabledKeys,null,u)),[o,n.collection,n.disabledKeys,u]),{menuTriggerProps:d,menuProps:f}=bf({isDisabled:i,type:"listbox"},n,r),{typeSelectProps:p}=Qd({keyboardDelegate:c,selectionManager:n.selectionManager,onTypeSelect(e){n.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:m}=n.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:w}=Sc({...e,labelElementType:"span",isInvalid:h,errorMessage:e.errorMessage||g});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let x=Br(e,{labelable:!0}),C=Mr(p,d,y),S=kr();return th.set(n,{isDisabled:i,isRequired:a,name:l,validationBehavior:s}),{labelProps:{...v,onClick:()=>{e.isDisabled||(r.current.focus(),mi("keyboard"))}},triggerProps:Mr(x,{...C,isDisabled:i,onKeyDown:Dr(C.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let t=null!=n.selectedKey?c.getKeyAbove(n.selectedKey):c.getFirstKey();t&&n.setSelectedKey(t);break}case"ArrowRight":{e.preventDefault();let t=null!=n.selectedKey?c.getKeyBelow(n.selectedKey):c.getFirstKey();t&&n.setSelectedKey(t);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[S,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].filter(Boolean).join(" "),onFocus(t){n.isFocused||(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0),n.setFocused(!0))},onBlur(t){n.isOpen||(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),n.setFocused(!1))}}),valueProps:{id:S},menuProps:{...f,autoFocus:n.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:t=>{t.currentTarget.contains(t.relatedTarget)||(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),n.setFocused(!1))},"aria-labelledby":[y["aria-labelledby"],C["aria-label"]&&!y["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:b,errorMessageProps:w,isInvalid:h,validationErrors:g,validationDetails:m}}({...Fh(e),label:h,validationBehavior:a},u,f),[C,S]=t.useState(null),k=t.useCallback((()=>{f.current&&S(f.current.offsetWidth+"px")}),[f]);so({ref:f,onResize:k});let E=t.useMemo((()=>({isOpen:u.isOpen,isFocused:u.isFocused,isFocusVisible:c,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1})),[u.isOpen,u.isFocused,c,e.isDisabled,x.isInvalid,e.isRequired]),O=Ph({...e,values:E,defaultClassName:"react-aria-Select"}),D=Br(e);return delete D.id,t.createElement(t.Fragment,null,t.createElement(Nh,null,t.createElement(jh,{values:[[by,e],[wy,u],[xh,s]]},O.children)),t.createElement(jh,{values:[[by,e],[wy,u],[Sy,v],[$m,{...g,ref:p,elementType:"span"}],[zh,{...m,ref:f,isPressed:u.isOpen}],[Dv,u],[Cv,{trigger:"Select",triggerRef:f,placement:"bottom start",style:{"--trigger-width":C}}],[ov,y],[iv,u],[Hh,{slots:{description:b,errorMessage:w}}],[Rm,x]]},t.createElement("div",{...D,...O,...d,ref:n,slot:e.slot||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":c||void 0,"data-open":u.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":e.isRequired||void 0}),t.createElement(nh,{state:u,triggerRef:f,label:h,name:e.name,isDisabled:e.isDisabled})))}const Cy=t.forwardRef(xy),Sy=t.createContext(null);function ky(e,n){var r,o;[e,n]=Mh(e,n,Sy);let i=t.useContext(wy),{placeholder:a}=Th(by),l=null!=i.selectedKey?i.collection.getItem(i.selectedKey):null,s=null==l?void 0:l.rendered;if("function"==typeof s){s=s({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})}let u=Sa(function(e){return e&&e.__esModule?e.default:e}(Wm),"react-aria-components");var c,d;let f=Ph({...e,defaultChildren:s||a||u.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:null!==(c=null===(r=i.selectedItem)||void 0===r?void 0:r.value)&&void 0!==c?c:null,selectedText:null!==(d=null===(o=i.selectedItem)||void 0===o?void 0:o.textValue)&&void 0!==d?d:null,isPlaceholder:!l}}),p=Br(e);return t.createElement("span",{ref:n,...p,...f,"data-placeholder":!l||void 0},t.createElement(Hh.Provider,{value:void 0},f.children))}const Ey=t.forwardRef(ky),Oy=t.createContext({}),Dy=t.createContext(null);function _y(e,n){[e,n]=Mh(e,n,Dy);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=t.useRef(null),[s,u]=Ah(),[c,d]=t.useState("input"),{labelProps:f,inputProps:p,descriptionProps:h,errorMessageProps:g,...m}=Df({...Fh(e),inputElementType:c,label:u,validationBehavior:a},l),v=t.useCallback((e=>{l.current=e,e&&d(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),y=Ph({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:m.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),b=Br(e);return delete b.id,t.createElement("div",{...b,...y,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":m.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},t.createElement(jh,{values:[[$m,{...f,ref:s}],[Vm,{...p,ref:v}],[Oy,{...p,ref:v}],[Hh,{slots:{description:h,errorMessage:g}}],[Rm,m]]},y.children))}const jy=t.forwardRef(_y),Py=(e,t)=>!t.includes(e),Ty={shouldForwardProp:e=>Py(e,["zIndex"])},My=[({theme:e,width:t,zIndex:n,autoWidth:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,overflowY:"auto",width:t||(r?"max-content":"var(--trigger-width)"),maxHeight:"inherit",zIndex:n,outline:"none","& > 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))"}})],Ay=U(uy,Ty)(My),Ly=({header:t,body:n,inline:r})=>e.jsxs(Ry,{inline:r,children:[e.jsx(Iy,{slot:"label",children:t}),e.jsx(Ny,{slot:"description",children:n})]}),Ry=U.div((({inline:e})=>({display:"flex",flexDirection:e?"row":"column",alignItems:e?"center":void 0,gap:e?8:void 0}))),Iy=U(Zh)((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Ny=U(Zh)((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),By={shouldForwardProp:e=>Py(e,["selected","noSelect","contentPosition","color","accented"])},Fy=[({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{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",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-focused]":{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})],$y=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:s,inline:u,onClick:c}=t,d=l(t,["id","value","header","body","leftElement","rightElement","inline","onClick"]);return e.jsxs(zy,Object.assign({id:n||r,textValue:r,onAction:c},d,{children:[a||null,o&&i?e.jsx(Ly,{header:o,body:i,inline:u}):r,s&&e.jsx("div",{style:{marginLeft:"auto"},children:s})]}))},zy=U(fy,By)(Fy),Ky=U(Vh)({appearance:"none",border:"none",borderRadius:4,cursor:"pointer",backgroundColor:"transparent",padding:0,color:"inherit"}),Vy=({children:t,position:n="bottom",trigger:r,open:o,options:i,offset:a=4,afterShow:l,afterHide:s})=>{var u;const c=r,d=null===(u=null==c?void 0:c.type)||void 0===u?void 0:u.name,f="Button"===d||"BasicButton"===d?c:e.jsx(Hy,{"aria-label":"Menu",children:c});return e.jsxs(oy,{onOpenChange:e=>{l&&e&&l(),s&&!e&&s()},isOpen:o,children:[f,e.jsx(kv,{placement:n,offset:a,children:e.jsxs(Ay,{autoWidth:!0,children:[null==i?void 0:i.map((t=>e.jsx($y,Object.assign({},t),t.id||t.value))),t]})})]})};Vy.Item=$y,Vy.Sub=({children:t,label:n,isDisabled:r})=>e.jsxs(iy,{children:[e.jsx($y,{value:n,isDisabled:r,rightElement:e.jsx(Zy,{children:e.jsx(Wy,{children:e.jsx(sn,{name:"chevron-right",size:"small",inheritColor:r})})})}),e.jsx(kv,{offset:2,children:e.jsx(Ay,{autoWidth:!0,children:t})})]}),Vy.Separator=()=>e.jsx(Uy,{});const Hy=U(Ky)((({theme:e})=>({"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),Uy=U(rv)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),Zy=U.div({marginLeft:"auto",width:16,height:16}),Wy=U.div({position:"absolute",right:8}),qy=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f,position:p,top:h,bottom:g,right:m,left:v}=t,y=l(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f,position:p,top:h,bottom:g,right:m,left:v};return e.jsx(Gy,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(Xy,{children:e.jsx(sn,Object.assign({},y,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},Gy=U.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),on,an),Yy=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Xy=U.div({animation:`${Yy} 1s linear infinite`,width:"max-content",height:"max-content"}),Jy=({size:t})=>e.jsx(Qy,{className:"button-loader",children:e.jsx(qy,{size:t})}),Qy=U.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),eb=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:u,secondary:c,negative:d,positive:f,caution:p,collapse:h}=n,g=l(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(tb,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let l;if(n>1&&(l=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,m=u||r.props.large,v=a||r.props.size,y=o||r.props.disabled,b=i||r.props.outline,w=c||r.props.secondary,x=d||r.props.negative,C=f||r.props.positive,S=p||r.props.caution,k=h||r.props.collapse,E=t.cloneElement(n,{joined:l,size:v,small:g,large:m,disabled:y,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:k});return"trigger"in e.props?t.cloneElement(e,{trigger:E}):E}return null}))}))}return null},tb=U.div((({width:e})=>({display:"inline-flex",width:e})),on),nb=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=l(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(ob,Object.assign({options:i},a,{children:s})):e.jsx(rb,Object.assign({},a,{children:s}))};nb.Group=eb;const rb=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:u,size:c,small:d,large:f,isLoading:p,collapse:h,backgroundColor:g,color:m,type:v,animation:y,iconAnimation:b,disabled:w}=t,x=l(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation","disabled"]);const{button:C}=n.useTheme(),S=i&&(!r||h),k="right"===a;let E=c||"medium";d?E="small":f&&(E="large");const O=C[E],{iconSize:D}=O,_=h&&i;return e.jsxs(ib,Object.assign({},x,{isDisabled:w,type:v||"button",size:E,iconOnly:S,iconRight:k,joined:u,onPress:o,isLoading:p,color:m,backgroundColor:g,animation:y,children:[i?e.jsx(sn,{size:D,name:i,marginRight:S||k?0:4,marginLeft:!S&&k?4:0,color:s,inheritColor:!s,animation:b}):null,!_&&e.jsx("span",{children:r}),p&&e.jsx(Jy,{size:D})]}))},ob=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:u,negative:c,positive:d,caution:f,outline:p,subtle:h,link:g,size:m,small:v,large:y,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:k,width:E,zIndex:O,disableScrollLock:D,hideDivider:_,gap:j}=n,P=l(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[T,M]=t.useState(!1),A={secondary:u,negative:c,positive:d,caution:f,outline:p,subtle:h,link:g,size:m,small:v,large:y};return e.jsx(ab,{children:e.jsxs(eb,{width:k?void 0:E,children:[e.jsx(rb,Object.assign({},A,P,{disabled:b||w,width:E&&!k?"100%":void 0,collapse:k,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:_,joinedPadding:j,children:r&&e.jsx(lb,{children:r})})),e.jsx(Vy,{options:o,position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),M(!0)},afterHide:()=>{s&&s(),M(!1)},trigger:e.jsx(rb,Object.assign({},A,{icon:T?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:j,disabled:b||x}))})]})})},ib=U(Vh)((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:l,width:s,height:u,animation:c})=>{const d=i||a&&!o,f=n[r],p=s||"max-content",{height:h,font:g,padding:m,iconOnlyPadding:v}=f,y=u||h,b=a||d?v:m;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:l?"row-reverse":"row",fontSize:g,width:d?y:p,height:y,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:d?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:c,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:l,caution:s,secondary:u,isDisabled:c,subtle:d,link:f})=>{const{button:p,size:h}=e;let g=p.primary;d?g=p.subtle:f?g=p.link:c?g=p.disabled:a?g=p.negative:l?g=p.positive:s?g=p.caution:u&&(g=p.secondary);const m=i?g.outlineBackground:g.background;let v=i?g.outlineColor:g.color;if(f||d){let e=p.subtle;f&&(e=p.link),c?v=p.disabled.color:a?v=e.negativeColor:l?v=e.positiveColor:s?v=e.cautionColor:u&&(v=e.secondaryColor)}const y="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:m.default,color:v.default,border:i&&!f?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:m.hover,color:v.hover,borderColor:i&&!c?g.border.hover:void 0},"&:active":{backgroundColor:m.active,color:v.active,borderColor:i&&!c?g.border.active:void 0},"&:disabled":{backgroundColor:d?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:y?0:void 0,borderBottomLeftRadius:y?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:y?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:y&&!n?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?nr:or,i="dark"===e?or:nr;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),on),ab=U.div({display:"inline-flex",flexDirection:"column",position:"relative"}),lb=U.div({marginRight:8}),sb=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:u}=t,c=l(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(cb,Object.assign({},c,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;u&&u(+t)},step:o,width:i,height:a,disabled:s,readOnly:!u}))},ub=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),cb=U.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,l=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${l} 0%, ${l} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":ub(e,o||i),"&::-moz-range-thumb":ub(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),on),db=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:u,small:c,collapsed:d,hideSliderOnStop:f,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:m,onPause:v,onStop:y}=n,b=l(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[k,E]=t.useState(0),[O,D]=t.useState(0),[_,j]=t.useState(""),[P,T]=t.useState(""),M=t.useRef(null),A=()=>{const{current:e}=M;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=M;e&&e.pause()},R=()=>{const{current:e}=M;e&&e.load()};t.useImperativeHandle(r,(()=>({play:A,pause:L,stop:R})),[M,w]);const I=e=>{x(!1),S(!0),y&&y(e)};t.useEffect((()=>{(()=>{const{current:e}=M;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&f,F=C&&p;return e.jsxs(fb,Object.assign({width:a},b,{children:[e.jsx(nb,{outline:!0,small:c,icon:w?"pause":"play",onClick:()=>{w?L():A()},marginRight:8}),!d&&e.jsxs(pb,{alignDataTop:"top"===s,children:[!B&&e.jsx(sb,{value:k,max:O,step:.1,onChange:e=>{(null==M?void 0:M.current)&&(M.current.currentTime=e)}}),e.jsxs(hb,{alignTop:"top"===s,noSlider:B,relative:u||B,children:[i?e.jsx(gb,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(gb,{secondary:!0,fontSize:g,children:[_&&!C?`${_} / `:"",P]})]})]}),e.jsxs("audio",{ref:M,onPlay:e=>{x(!0),S(!1),m&&m(e)},onPause:e=>{x(!1),v&&v(e)},onEmptied:I,onEnded:I,onTimeUpdate:()=>{const{current:e}=M;if(e){const{currentTime:t}=e,n=N(t);E(t),j(n)}},onDurationChange:()=>{const{current:e}=M;if(e){const{duration:t}=e,n=N(t);D(t),T(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),fb=U.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),on),pb=U.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),hb=U.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),gb=U.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var mb={},vb={};Object.defineProperty(vb,"__esModule",{value:!0}),vb.defaultOptions=void 0,vb.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var yb={};Object.defineProperty(yb,"__esModule",{value:!0}),yb.getLocales=yb.getFractionDigits=yb.roundTo=yb.parseValue=void 0,yb.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},yb.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},yb.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},yb.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(mb,"__esModule",{value:!0}),mb.millify=void 0;const bb=vb,wb=yb,xb=1e3;function*Cb(e){let t=xb;for(;;){const n=e/t;if(n<1)return;yield n,t*=xb}}function Sb(e,t){var n,r;const o=t?{...bb.defaultOptions,...t}:bb.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=wb.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let l=0;for(const e of Cb(i))i=e,l+=1;if(l>=o.units.length)return e.toString();let s=wb.roundTo(i,o.precision);for(const e of Cb(s))s=e,l+=1;const u=null!==(n=o.units[l])&&void 0!==n?n:"",c=o.lowercase?u.toLowerCase():u,d=o.space?" ":"";return`${a}${s.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:wb.getLocales(),{minimumFractionDigits:wb.getFractionDigits(s)})}${d}${c}`}mb.millify=Sb;var kb=mb.default=Sb;function Eb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Eb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ob(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Eb(e))&&(r&&(r+=" "),r+=t);return r}var Db=Array.isArray,_b="object"==typeof ot&&ot&&ot.Object===Object&&ot,jb=_b,Pb="object"==typeof self&&self&&self.Object===Object&&self,Tb=jb||Pb||Function("return this")(),Mb=Tb.Symbol,Ab=Mb,Lb=Object.prototype,Rb=Lb.hasOwnProperty,Ib=Lb.toString,Nb=Ab?Ab.toStringTag:void 0;var Bb=function(e){var t=Rb.call(e,Nb),n=e[Nb];try{e[Nb]=void 0;var r=!0}catch(e){}var o=Ib.call(e);return r&&(t?e[Nb]=n:delete e[Nb]),o},Fb=Object.prototype.toString;var $b=Bb,zb=function(e){return Fb.call(e)},Kb=Mb?Mb.toStringTag:void 0;var Vb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Kb&&Kb in Object(e)?$b(e):zb(e)};var Hb=function(e){return null!=e&&"object"==typeof e},Ub=Vb,Zb=Hb;var Wb=function(e){return"symbol"==typeof e||Zb(e)&&"[object Symbol]"==Ub(e)},qb=Db,Gb=Wb,Yb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xb=/^\w*$/;var Jb=function(e,t){if(qb(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Gb(e))||(Xb.test(e)||!Yb.test(e)||null!=t&&e in Object(t))};var Qb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ew=it(Qb),tw=Vb,nw=Qb;var rw,ow=function(e){if(!nw(e))return!1;var t=tw(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},iw=it(ow),aw=Tb["__core-js_shared__"],lw=(rw=/[^.]+$/.exec(aw&&aw.keys&&aw.keys.IE_PROTO||""))?"Symbol(src)_1."+rw:"";var sw=function(e){return!!lw&&lw in e},uw=Function.prototype.toString;var cw=function(e){if(null!=e){try{return uw.call(e)}catch(e){}try{return e+""}catch(e){}}return""},dw=ow,fw=sw,pw=Qb,hw=cw,gw=/^\[object .+?Constructor\]$/,mw=Function.prototype,vw=Object.prototype,yw=mw.toString,bw=vw.hasOwnProperty,ww=RegExp("^"+yw.call(bw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var xw=function(e,t){return null==e?void 0:e[t]},Cw=function(e){return!(!pw(e)||fw(e))&&(dw(e)?ww:gw).test(hw(e))},Sw=xw;var kw=function(e,t){var n=Sw(e,t);return Cw(n)?n:void 0},Ew=kw(Object,"create"),Ow=Ew;var Dw=function(){this.__data__=Ow?Ow(null):{},this.size=0};var _w=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},jw=Ew,Pw=Object.prototype.hasOwnProperty;var Tw=function(e){var t=this.__data__;if(jw){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Pw.call(t,e)?t[e]:void 0},Mw=Ew,Aw=Object.prototype.hasOwnProperty;var Lw=Ew;var Rw=Dw,Iw=_w,Nw=Tw,Bw=function(e){var t=this.__data__;return Mw?void 0!==t[e]:Aw.call(t,e)},Fw=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Lw&&void 0===t?"__lodash_hash_undefined__":t,this};function $w(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$w.prototype.clear=Rw,$w.prototype.delete=Iw,$w.prototype.get=Nw,$w.prototype.has=Bw,$w.prototype.set=Fw;var zw=$w;var Kw=function(){this.__data__=[],this.size=0};var Vw=function(e,t){return e===t||e!=e&&t!=t},Hw=Vw;var Uw=function(e,t){for(var n=e.length;n--;)if(Hw(e[n][0],t))return n;return-1},Zw=Uw,Ww=Array.prototype.splice;var qw=function(e){var t=this.__data__,n=Zw(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ww.call(t,n,1),--this.size,!0)},Gw=Uw;var Yw=function(e){var t=this.__data__,n=Gw(t,e);return n<0?void 0:t[n][1]},Xw=Uw;var Jw=Uw;var Qw=function(e,t){var n=this.__data__,r=Jw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ex=Kw,tx=qw,nx=Yw,rx=function(e){return Xw(this.__data__,e)>-1},ox=Qw;function ix(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ix.prototype.clear=ex,ix.prototype.delete=tx,ix.prototype.get=nx,ix.prototype.has=rx,ix.prototype.set=ox;var ax=ix,lx=kw(Tb,"Map"),sx=zw,ux=ax,cx=lx;var dx=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var fx=function(e,t){var n=e.__data__;return dx(t)?n["string"==typeof t?"string":"hash"]:n.map},px=fx;var hx=fx;var gx=fx;var mx=fx;var vx=function(e,t){var n=mx(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},yx=function(){this.size=0,this.__data__={hash:new sx,map:new(cx||ux),string:new sx}},bx=function(e){var t=px(this,e).delete(e);return this.size-=t?1:0,t},wx=function(e){return hx(this,e).get(e)},xx=function(e){return gx(this,e).has(e)},Cx=vx;function Sx(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sx.prototype.clear=yx,Sx.prototype.delete=bx,Sx.prototype.get=wx,Sx.prototype.has=xx,Sx.prototype.set=Cx;var kx=Sx,Ex=kx;function Ox(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ox.Cache||Ex),n}Ox.Cache=Ex;var Dx=Ox,_x=it(Dx),jx=Dx;var Px=function(e){var t=jx(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Tx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mx=/\\(\\)?/g,Ax=Px((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Tx,(function(e,n,r,o){t.push(r?o.replace(Mx,"$1"):n||e)})),t})),Lx=Ax;var Rx=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Ix=Rx,Nx=Db,Bx=Wb,Fx=Mb?Mb.prototype:void 0,$x=Fx?Fx.toString:void 0;var zx=function e(t){if("string"==typeof t)return t;if(Nx(t))return Ix(t,e)+"";if(Bx(t))return $x?$x.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Kx=zx;var Vx=function(e){return null==e?"":Kx(e)},Hx=Db,Ux=Jb,Zx=Lx,Wx=Vx;var qx=function(e,t){return Hx(e)?e:Ux(e,t)?[e]:Zx(Wx(e))},Gx=Wb;var Yx=function(e){if("string"==typeof e||Gx(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Xx=qx,Jx=Yx;var Qx=function(e,t){for(var n=0,r=(t=Xx(t,e)).length;null!=e&&n<r;)e=e[Jx(t[n++])];return n&&n==r?e:void 0},eC=Qx;var tC=function(e,t,n){var r=null==e?void 0:eC(e,t);return void 0===r?n:r},nC=it(tC);var rC=it((function(e){return null==e})),oC=Vb,iC=Db,aC=Hb;var lC,sC=it((function(e){return"string"==typeof e||!iC(e)&&aC(e)&&"[object String]"==oC(e)})),uC={exports:{}},cC={};var dC,fC={};
|
|
18
|
+
*/"production"===process.env.NODE_ENV?oh.exports=function(){if(rh)return ih;rh=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=r({inst:{value:n,getSnapshot:t}}),u=s[0].inst,c=s[1];return i((function(){u.value=n,u.getSnapshot=t,l(u)&&c({inst:u})}),[e,n,t]),o((function(){return l(u)&&c({inst:u}),e((function(){l(u)&&c({inst:u})}))}),[e]),a(n),n};return ih.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,ih}():oh.exports=(ah||(ah=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=t,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue,u=!1,c=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(t,n,f){u||void 0!==e.startTransition&&(u=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=n();if(!c){var h=n();o(p,h)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var g=i({inst:{value:p,getSnapshot:n}}),m=g[0].inst,v=g[1];return l((function(){m.value=p,m.getSnapshot=n,d(m)&&v({inst:m})}),[t,p,n]),a((function(){return d(m)&&v({inst:m}),t((function(){d(m)&&v({inst:m})}))}),[t]),s(p),p},p=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:f;lh.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),lh);var sh=oh.exports;class uh{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new uh(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=t}}class ch{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let n=t;for(;n;)n.index++,n=n.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class dh extends ch{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof dh?this.parentNode.level+("item"===this.node.type?1:0):0}updateNode(){var e,t,n,r;let o=this.ownerDocument.getMutableNode(this);var i,a,l,s;o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof dh?this.parentNode.node.key:null,o.prevKey=null!==(i=null===(e=this.previousSibling)||void 0===e?void 0:e.node.key)&&void 0!==i?i:null,o.nextKey=null!==(a=null===(t=this.nextSibling)||void 0===t?void 0:t.node.key)&&void 0!==a?a:null,o.hasChildNodes=!!this.firstChild,o.firstChildKey=null!==(l=null===(n=this.firstChild)||void 0===n?void 0:n.node.key)&&void 0!==l?l:null,o.lastChildKey=null!==(s=null===(r=this.lastChild)||void 0===r?void 0:r.node.key)&&void 0!==s?s:null}setProps(e,t,n){let r=this.ownerDocument.getMutableNode(this),{value:o,textValue:i,id:a,...l}=e;if(l.ref=t,r.props=l,r.rendered=n,r.value=o,r.textValue=i||("string"==typeof n?n:"")||e["aria-label"]||"",null!=a&&a!==r.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");r.key=a}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new uh(e,"react-aria-"+ ++t.nodeId),this.ownerDocument.startTransaction()}}class fh{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=null!=(null==n?void 0:n.firstChildKey)?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);var n;return null!==(n=null==t?void 0:t.key)&&void 0!==n?n:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null==t.parentKey)return null;t=this.keyMap.get(t.parentKey)}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;null!=(null==e?void 0:e.lastChildKey);)e=this.keyMap.get(e.lastChildKey);var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(){throw new Error("Not implemented")}clone(){let e=new(0,this.constructor);return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class ph extends ch{get isConnected(){return!0}createElement(e){return new dh(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return this.isSSR||this.collectionMutated||(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key)){t.addNode(e.node);for(let t of e)this.addNode(t)}this.markDirty(e)}removeNode(e){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0||this.updateCollection(),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof dh&&e.isConnected&&e.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t;let o=this.getMutableCollection();for(let e of this.mutatedNodes)e.isConnected&&o.addNode(e.node);var n,r;o.commit(null!==(n=null===(e=this.firstChild)||void 0===e?void 0:e.node.key)&&void 0!==n?n:null,null!==(r=null===(t=this.lastChild)||void 0===t?void 0:t.node.key)&&void 0!==r?r:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(0===this.dirtyNodes.size||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function hh(e){let{children:n,items:r,idScope:o,addIdAndValue:i,dependencies:a=[]}=e,l=t.useMemo((()=>new WeakMap),a);return t.useMemo((()=>{if(r&&"function"==typeof n){let s=[];for(let u of r){let r=l.get(u);if(!r){var e,a;r=n(u);let s=null!==(a=null!==(e=r.props.id)&&void 0!==e?e:u.key)&&void 0!==a?a:u.id;if(null==s)throw new Error("Could not determine key for item");o&&(s=o+":"+s),r=t.cloneElement(r,i?{key:s,id:s,value:u}:{key:s}),l.set(u,r)}s.push(r)}return s}if("function"!=typeof n)return n}),[n,r,l,o,i])}function gh(e){return hh({...e,addIdAndValue:!0})}const mh=t.createContext(!1);function vh(e,t){let{collection:n,document:r}=bh(t);return{portal:Ch(e,r),collection:n}}const yh="function"==typeof t.useSyncExternalStore?t.useSyncExternalStore:function(e,n,r){let o=xr(),i=t.useRef(o);i.current=o;let a=t.useCallback((()=>i.current?r():n()),[n,r]);return sh.useSyncExternalStore(e,a)};function bh(e){let n=t.useMemo((()=>new ph(e||new fh)),[e]),r=t.useCallback((e=>n.subscribe(e)),[n]),o=t.useCallback((()=>{let e=n.getCollection();return n.isSSR&&n.resetAfterSSR(),e}),[n]),i=t.useCallback((()=>(n.isSSR=!0,n.getCollection())),[n]);return{collection:yh(r,o,i),document:n}}const wh=t.createContext(null),xh=t.createContext(null);function Ch(e,n){let o=t.useContext(xh),i=null!=n?n:o,a=gh(e),l=t.useMemo((()=>t.createElement(mh.Provider,{value:!0},a)),[a]);return xr()?t.createElement(wh.Provider,{value:i},l):r.createPortal(l,i)}function Sh(e){return t.createElement(t.Fragment,null,Ch(e))}function kh(e,n,r){var o;return t.useContext(mh)?null!==(o=Eh(e,n,r,"children"in n?n.children:null))&&void 0!==o?o:t.createElement(t.Fragment,null):null}function Eh(e,n,r,o,i){let a=function(e,n,r){return t.useCallback((t=>{null==t||t.setProps(e,n,r)}),[e,n,r])}(n,r,o),l=t.useContext(wh);if(l){let a=l.ownerDocument.nodesByProps.get(n);return a||(a=l.ownerDocument.createElement(e),a.setProps(n,r,o),l.appendChild(a),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(n,a)),i?t.createElement(wh.Provider,{value:a},i):null}return t.createElement(e,{ref:a},i)}function Oh(e,t){return Eh("section",e,t,null,gh(e))}const Dh=t.forwardRef(Oh),_h=Symbol("default");function jh({values:e,children:n}){for(let[r,o]of e)n=t.createElement(r.Provider,{value:o},n);return n}function Ph(e){let{className:n,style:r,children:o,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:s}=e;return t.useMemo((()=>{let e,t,u;return e="function"==typeof n?n({...s,defaultClassName:i}):n,t="function"==typeof r?r({...s,defaultStyle:l||{}}):r,u="function"==typeof o?o({...s,defaultChildren:a}):null==o?a:o,{className:null!=e?e:i,style:t||l?{...l,...t}:void 0,children:null!=u?u:a,"data-rac":""}}),[n,r,o,i,a,l,s])}function Th(e,n){let r=t.useContext(e);if(null===n)return null;if(r&&"object"==typeof r&&"slots"in r&&r.slots){let e=(new Intl.ListFormat).format(Object.keys(r.slots).map((e=>`"${e}"`)));if(!n&&!r.slots[_h])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let t=n||_h;if(!r.slots[t])throw new Error(`Invalid slot "${n}". Valid slot names are ${e}.`);return r.slots[t]}return r}function Mh(e,n,r){let o=Th(r,e.slot)||{},{ref:i,...a}=o,l=ao(t.useMemo((()=>Ar(n,i)),[n,i])),s=Mr(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?s.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},o="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...o}}:s.style={...a.style,...e.style}),[s,l]}function Ah(){let[e,n]=t.useState(!0),r=t.useRef(!1),o=t.useCallback((e=>{r.current=!0,n(!!e)}),[]);return cr((()=>{r.current||n(!1)}),[]),[o,e]}function Lh(e,n,o){let i=t.useRef(null);n&&e.current&&(i.current=window.getComputedStyle(e.current).animation),cr((()=>{if(n&&e.current){let t=window.getComputedStyle(e.current);if(t.animationName&&"none"!==t.animationName&&t.animation!==i.current){let t=i=>{i.target===e.current&&(n.removeEventListener("animationend",t),r.flushSync((()=>{o()})))},n=e.current;return n.addEventListener("animationend",t),()=>{n.removeEventListener("animationend",t)}}o()}}),[e,n,o])}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Rh=t.createContext(!1),Ih="undefined"!=typeof DocumentFragment?new DocumentFragment:null;function Nh(e){let n=t.useContext(Rh),o=xr();if(n)return t.createElement(t.Fragment,null,e.children);let i=t.createElement(Rh.Provider,{value:!0},e.children);return o?t.createElement("template",{"data-react-aria-hidden":!0},i):r.createPortal(i,Ih)}function Bh(e){let n=(n,r)=>t.useContext(Rh)?null:e(n,r);return n.displayName=e.displayName||e.name,t.forwardRef(n)}function Fh(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const $h=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),zh=t.createContext({});function Kh(e,n){[e,n]=Mh(e,n,zh);let r=e,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:s,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:g,type:m="button"}=e;n="button"===r?{type:m,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===r&&o?void 0:p,target:"a"===r?h:void 0,type:"input"===r?m:void 0,disabled:"input"===r?o:void 0,"aria-disabled":o&&"input"!==r?o:void 0,rel:"a"===r?g:void 0};let{pressProps:v,isPressed:y}=Fo({onPressStart:a,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:s,isDisabled:o,preventFocusOnPress:c,ref:t}),{focusableProps:b}=ra(e,t);d&&(b.tabIndex=o?-1:b.tabIndex);let w=Mr(b,v,Br(e,{labelable:!0}));return{isPressed:y,buttonProps:Mr(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,n),{focusProps:a,isFocused:l,isFocusVisible:s}=ta(e),{hoverProps:u,isHovered:c}=Oi(e),d=Ph({...e,values:{isHovered:c,isPressed:i,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return t.createElement("button",{...Br(e,{propNames:$h}),...Mr(o,a,u),...d,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":r.isPressed||i||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-focus-visible":s||void 0})}const Vh=Bh(Kh),Hh=t.createContext({});function Uh(e,n){[e,n]=Mh(e,n,Hh);let{elementType:r="span",...o}=e;return t.createElement(r,{className:"react-aria-Text",...o,ref:n})}const Zh=t.forwardRef(Uh);function Wh(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function qh(e,t,n,r,o){let i={};for(let e in t)i[e]=Math.floor(t[e]/2),i[e]>0&&t[e]%2==0&&i[e]--;return Xh(e,Gh(e,t,n).subtract(i),t,n,r,o)}function Gh(e,t,n,r,o){let i=e;return t.years?i=function(e){return Va(e.subtract({months:e.month-1}))}(e):t.months?i=Va(e):t.weeks&&(i=Wa(e,n)),Xh(e,i,t,n,r,o)}function Yh(e,t,n,r,o){let i={...t};return t.days?i.days--:t.weeks?i.weeks--:t.months?i.months--:t.years&&i.years--,Xh(e,Gh(e,t,n).subtract(i),t,n,r,o)}function Xh(e,t,n,r,o,i){return o&&e.compare(o)>=0&&(t=Ya(t,Gh(ll(o),n,r))),i&&e.compare(i)<=0&&(t=Ga(t,Yh(ll(i),n,r))),t}function Jh(e,t,n){return t&&(e=Ya(e,ll(t))),n&&(e=Ga(e,ll(n))),e}function Qh(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:void 0}function eg(e){let n=t.useMemo((()=>new Us(e.locale)),[e.locale]),r=t.useMemo((()=>n.resolvedOptions()),[n]),{locale:o,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:s,selectionAlignment:u,isDateUnavailable:c,pageBehavior:d="visible"}=e,f=t.useMemo((()=>i(r.calendar)),[i,r.calendar]),[p,h]=So(e.value,e.defaultValue,e.onChange),g=t.useMemo((()=>p?ul(ll(p),f):null),[p,f]),m=t.useMemo((()=>p&&"timeZone"in p?p.timeZone:r.timeZone),[p,r.timeZone]),v=t.useMemo((()=>e.focusedValue?Jh(ul(ll(e.focusedValue),f),l,s):void 0),[e.focusedValue,f,l,s]),y=t.useMemo((()=>Jh(e.defaultFocusedValue?ul(ll(e.defaultFocusedValue),f):g||ul(Na(m),f),l,s)),[e.defaultFocusedValue,g,m,f,l,s]),[b,w]=So(v,y,e.onFocusChange),[x,C]=t.useState((()=>{switch(u){case"start":return Gh(b,a,o,l,s);case"end":return Yh(b,a,o,l,s);default:return qh(b,a,o,l,s)}})),[S,k]=t.useState(e.autoFocus||!1),E=t.useMemo((()=>{let e={...a};return e.days?e.days--:e.days=-1,x.add(e)}),[x,a]),[O,D]=t.useState(f.identifier);if(f.identifier!==O){let e=ul(b,f);C(qh(e,a,o,l,s)),w(e),D(f.identifier)}function _(e){e=Jh(e,l,s),w(e)}function j(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void h(null);if(!(t=Qh(t=Jh(t,l,s),x,c)))return;t=ul(t,(null==p?void 0:p.calendar)||new Ta),h(p&&"hour"in p?p.set(t):t)}}Wh(b,l,s)?w(Jh(b,l,s)):b.compare(x)<0?C(Yh(b,a,o,l,s)):b.compare(E)>0&&C(Gh(b,a,o,l,s));let P=t.useMemo((()=>!!g&&(!(!c||!c(g))||Wh(g,l,s))),[g,c,l,s]),T=e.isInvalid||"invalid"===e.validationState||P,M=T?"invalid":null,A=t.useMemo((()=>"visible"===d?a:tg(a)),[d,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:j,visibleRange:{start:x,end:E},minValue:l,maxValue:s,focusedDate:b,timeZone:m,validationState:M,isValueInvalid:T,setFocusedDate(e){_(e),k(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&_(b.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let e=x.add(A);w(Jh(b.add(A),l,s)),C(Gh(Xh(b,e,A,o,l,s),A,o))},focusPreviousPage(){let e=x.subtract(A);w(Jh(b.subtract(A),l,s)),C(Gh(Xh(b,e,A,o,l,s),A,o))},focusSectionStart(){a.days?_(x):a.weeks?_(Wa(b,o)):(a.months||a.years)&&_(Va(b))},focusSectionEnd(){a.days?_(E):a.weeks?_(function(e,t){return Wa(e,t).add({days:6})}(b,o)):(a.months||a.years)&&_(Ha(b))},focusNextSection(e){e||a.days?a.days?this.focusNextPage():a.weeks?_(b.add({months:1})):(a.months||a.years)&&_(b.add({years:1})):_(b.add(tg(a)))},focusPreviousSection(e){e||a.days?a.days?this.focusPreviousPage():a.weeks?_(b.subtract({months:1})):(a.months||a.years)&&_(b.subtract({years:1})):_(b.subtract(tg(a)))},selectFocusedDate(){j(b)},selectDate(e){j(e)},isFocused:S,setFocused:k,isInvalid:e=>Wh(e,l,s),isSelected(e){return null!=g&&Aa(e,g)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>S&&b&&Aa(e,b),isCellDisabled(t){return e.isDisabled||t.compare(x)<0||t.compare(E)>0||this.isInvalid(t,l,s)},isCellUnavailable:t=>e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=x.subtract({days:1});return Aa(e,x)||this.isInvalid(e,l,s)},isNextVisibleRangeInvalid(){let e=E.add({days:1});return Aa(e,E)||this.isInvalid(e,l,s)},getDatesInWeek(e,t=x){let n=t.add({weeks:e}),r=[];n=Wa(n,o);let i=Ra(n,o);for(let e=0;e<i;e++)r.push(null);for(;r.length<7;){r.push(n);let e=n.add({days:1});if(Aa(n,e))break;n=e}for(;r.length<7;)r.push(null);return r}}}function tg(e){let t={...e};for(let n in e)t[n]=1;return t}function ng(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:ll(e),end:ll(t)}):null}function rg(e,t){return e=ul(e,(null==t?void 0:t.calendar)||new Ta),t&&"hour"in t?t.set(e):e}function og(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}class ig{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let t,n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=0;for(let[e,n]of this.keyMap)t?(t.nextKey=e,n.prevKey=t.key):(this.firstKey=e,n.prevKey=void 0),"item"===n.type&&(n.index=r++),t=n,t.nextKey=void 0;this.lastKey=null==t?void 0:t.key}}class ag extends Set{constructor(e,t,n){super(e),e instanceof ag?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function lg(e){let{selectionMode:n="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=t.useRef(!1),[,s]=t.useState(!1),u=t.useRef(null),c=t.useRef(null),[,d]=t.useState(null),f=t.useMemo((()=>sg(e.selectedKeys)),[e.selectedKeys]),p=t.useMemo((()=>sg(e.defaultSelectedKeys,new ag)),[e.defaultSelectedKeys]),[h,g]=So(f,p,e.onSelectionChange),m=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[v,y]=t.useState(i);"replace"===i&&"toggle"===v&&"object"==typeof h&&0===h.size&&y("replace");let b=t.useRef(i);return t.useEffect((()=>{i!==b.current&&(y(i),b.current=i)}),[i]),{selectionMode:n,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(e){l.current=e,s(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e,c.current=t,d(e)},selectedKeys:h,setSelectedKeys(e){!o&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||g(e)},disabledKeys:m,disabledBehavior:a}}function sg(e,t){return e?"all"===e?"all":new ag(e):t}class ug{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&hf(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&hf(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new ag([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new ag(n,r,e);for(let o of this.getKeyRange(r,n.currentKey||e))t.delete(o);for(let n of this.getKeyRange(e,r))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?hf(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new ag("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new ag([e],e,e):new ag;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new ag;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t(pf(ff(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ag)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}function cg(e){let{filter:n}=e,r=lg(e),o=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=t.useCallback((e=>new ig(n?n(e):e)),[n]),a=t.useMemo((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),l=df(e,i,a),s=t.useMemo((()=>new ug(l,r)),[l,r]);const u=t.useRef(null);return t.useEffect((()=>{if(null!=r.focusedKey&&!l.getItem(r.focusedKey)){const e=u.current.getItem(r.focusedKey),t=[...u.current.getKeys()].map((e=>{const t=u.current.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),n=[...l.getKeys()].map((e=>{const t=l.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),o=t.length-n.length;let i,a=Math.min(o>1?Math.max(e.index-o+1,0):e.index,n.length-1);for(;a>=0;){if(!s.isDisabled(n[a].key)){i=n[a];break}a<n.length-1?a++:(a>e.index&&(a=e.index),a--)}r.setFocusedKey(i?i.key:null)}u.current=l}),[l,s,r,r.focusedKey]),{collection:l,disabledKeys:o,selectionManager:s}}function dg(e){var n;let[r,o]=So(e.selectedKey,null!==(n=e.defaultSelectedKey)&&void 0!==n?n:null,e.onSelectionChange),i=t.useMemo((()=>null!=r?[r]:[]),[r]),{collection:a,disabledKeys:l,selectionManager:s}=cg({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:t=>{var n;let i=null!==(n=t.values().next().value)&&void 0!==n?n:null;i===r&&e.onSelectionChange&&e.onSelectionChange(i),o(i)}}),u=null!=r?a.getItem(r):null;return{collection:a,disabledKeys:l,selectionManager:s,selectedKey:r,setSelectedKey:o,selectedItem:u}}function fg(e){let[n,r]=So(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=t.useCallback((()=>{r(!0)}),[r]),i=t.useCallback((()=>{r(!1)}),[r]),a=t.useCallback((()=>{r(!n)}),[r,n]);return{isOpen:n,setOpen:r,open:o,close:i,toggle:a}}function pg(e){var n,r;let{defaultFilter:o,menuTrigger:i="input",allowsEmptyCollection:a=!1,allowsCustomValue:l,shouldCloseOnBlur:s=!0}=e,[u,c]=t.useState(!1),[d,f]=t.useState(!1),[p,h]=t.useState(null);var g;let{collection:m,selectionManager:v,selectedKey:y,setSelectedKey:b,selectedItem:w,disabledKeys:x}=dg({...e,onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===y&&(B(),R())},items:null!==(g=e.items)&&void 0!==g?g:e.defaultItems});var C,S;let[k,E]=So(e.inputValue,null!==(S=null!==(C=e.defaultInputValue)&&void 0!==C?C:null===(n=m.getItem(y))||void 0===n?void 0:n.textValue)&&void 0!==S?S:"",e.onInputChange),O=m,D=t.useMemo((()=>null==e.items&&o?function(e,t,n){return new ig(hg(e,e,t,n))}(m,k,o):m),[m,k,o,e.items]),[_,j]=t.useState(D),P=t.useRef("focus"),T=fg({...e,onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?P.current:void 0),v.setFocused(t),t||v.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),M=(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===i;(a||D.size>0||r&&O.size>0||e.items)&&(r&&!T.isOpen&&void 0===e.items&&c(!0),P.current=n,h(t),T.open())},A=t.useCallback((()=>{j(u?O:D)}),[u,O,D]),L=t.useCallback(((e=null)=>{T.isOpen&&A(),h(e),T.toggle()}),[T,A]),R=t.useCallback((()=>{T.isOpen&&(A(),T.close())}),[T,A]),[I,N]=t.useState(k),B=()=>{var e,t;let n=null!==(t=null===(e=m.getItem(y))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";N(n),E(n)};var F,$;let z=t.useRef(null!==($=null!==(F=e.selectedKey)&&void 0!==F?F:e.defaultSelectedKey)&&void 0!==$?$:null);var K;let V=t.useRef(null!==(K=null===(r=m.getItem(y))||void 0===r?void 0:r.textValue)&&void 0!==K?K:"");t.useEffect((()=>{var t,n;d&&(D.size>0||a)&&!T.isOpen&&k!==I&&"manual"!==i&&M(null,"input"),u||a||!T.isOpen||0!==D.size||R(),null!=y&&y!==z.current&&R(),k!==I&&(v.setFocusedKey(null),c(!1),""!==k||void 0!==e.inputValue&&void 0!==e.selectedKey||b(null)),y===z.current||void 0!==e.inputValue&&void 0!==e.selectedKey?I!==k&&N(k):B();let r=null!==(n=null===(t=m.getItem(y))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";d||null==y||void 0!==e.inputValue||y!==z.current||V.current!==r&&(N(r),E(r)),z.current=y,V.current=r}));let H=vc({...e,value:t.useMemo((()=>({inputValue:k,selectedKey:y})),[k,y])}),U=()=>{z.current=null,b(null),R()},Z=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(y);let r=null!==(n=null===(t=m.getItem(y))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";N(r),R()}else B(),R()};const W=()=>{if(l){var e,t;const n=null!==(t=null===(e=m.getItem(y))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";k===n?Z():U()}else Z()};let q=t.useRef(k),G=t.useMemo((()=>T.isOpen?u?O:D:_),[T.isOpen,O,D,u,_]);return{...H,...T,focusStrategy:p,toggle:(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===i;(a||D.size>0||r&&O.size>0||e.items||T.isOpen)&&(r&&!T.isOpen&&void 0===e.items&&c(!0),T.isOpen||(P.current=n),L(t))},open:M,close:W,selectionManager:v,selectedKey:y,setSelectedKey:b,disabledKeys:x,isFocused:d,setFocused:e=>{e?(q.current=k,"focus"===i&&M(null,"focus")):(s&&W(),k!==q.current&&H.commitValidation()),f(e)},selectedItem:w,collection:G,inputValue:k,setInputValue:E,commit:()=>{T.isOpen&&null!=v.focusedKey?y===v.focusedKey?Z():b(v.focusedKey):W()},revert:()=>{l&&null==y?U():Z()}}}function hg(e,t,n,r){let o=[];for(let i of t)if("section"===i.type&&i.hasChildNodes){let t=hg(e,ff(i,e),n,r);[...t].some((e=>"item"===e.type))&&o.push({...i,childNodes:t})}else("item"===i.type&&r(i.textValue,n)||"item"!==i.type)&&o.push({...i});return o}var gg;gg={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var mg;mg={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var vg;vg={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var yg;yg={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var bg;bg={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var wg;wg={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var xg;xg={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Cg;Cg={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Sg;Sg={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var kg;kg={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var Eg;Eg={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Og;Og={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Dg;Dg={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var _g;_g={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var jg;jg={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var Pg;Pg={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Tg;Tg={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Mg;Mg={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Ag;Ag={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Lg;Lg={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Rg;Rg={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Ig;Ig={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Ng;Ng={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Bg;Bg={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Fg;Fg={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var $g;$g={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var zg;zg={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Kg;Kg={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var Vg;Vg={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Hg;Hg={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Ug;Ug={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Zg;Zg={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Wg;Wg={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var qg;qg={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};const Gg=new va(function(e){return e&&e.__esModule?e.default:e}({"ar-AE":gg,"bg-BG":mg,"cs-CZ":vg,"da-DK":yg,"de-DE":bg,"el-GR":wg,"en-US":xg,"es-ES":Cg,"et-EE":Sg,"fi-FI":kg,"fr-FR":Eg,"he-IL":Og,"hr-HR":Dg,"hu-HU":_g,"it-IT":jg,"ja-JP":Pg,"ko-KR":Tg,"lt-LT":Mg,"lv-LV":Ag,"nb-NO":Lg,"nl-NL":Rg,"pl-PL":Ig,"pt-BR":Ng,"pt-PT":Bg,"ro-RO":Fg,"ru-RU":$g,"sk-SK":zg,"sl-SI":Kg,"sr-SP":Vg,"sv-SE":Hg,"tr-TR":Ug,"uk-UA":Zg,"zh-CN":Wg,"zh-TW":qg}));function Yg(){return"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US"}function Xg(e,t,n,r,o){let i=null!=e&&null!=n&&e.compare(n)>0,a=null!=e&&null!=t&&e.compare(t)<0,l=null!=e&&(null==r?void 0:r(e))||!1,s=i||a||l,u=[];if(s){let e=Yg(),r=va.getGlobalDictionaryForPackage("@react-stately/datepicker")||Gg,s=new wa(e,r),c=new Us(e,em({},o)),d=c.resolvedOptions().timeZone;a&&u.push(s.format("rangeUnderflow",{minValue:c.format(t.toDate(d))})),i&&u.push(s.format("rangeOverflow",{maxValue:c.format(n.toDate(d))})),l&&u.push(s.format("unavailableDate"))}return{isInvalid:s,validationErrors:u,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const Jg={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Qg={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function em(e,t){let n=t.shouldForceLeadingZeros?Qg:Jg;e={...n,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf(null!==(i=t.maxGranularity)&&void 0!==i?i:"year");a<0&&(a=0);let l=o.indexOf(r);if(l<0&&(l=2),a>l)throw new Error("maxGranularity must be greater than granularity");let s=o.slice(a,l+1).reduce(((t,n)=>(t[n]=e[n],t)),{});return null!=t.hourCycle&&(s.hour12=12===t.hourCycle),s.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&0===a&&(s.era="short"),s}function tm(e){return e&&"hour"in e?e:new Fl}function nm(e,t){return null===e?null:e?ul(e,t):void 0}function rm(e,t,n,r){if(e)return nm(e,n);let o=ul(Ia(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?ll(o):r?o:sl(o)}function om(e,n){let r=e&&"timeZone"in e?e.timeZone:void 0,o=e&&"minute"in e?"minute":"day";if(e&&n&&!(n in e))throw new Error("Invalid granularity "+n+" for value "+e.toString());let[i,a]=t.useState([o,r]);return!e||i[0]===o&&i[1]===r||a([o,r]),n||(n=e?o:i[0]),[n,e?r:i[1]]}const im=new va({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");const am={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},lm={year:5,month:2,day:7,hour:2,minute:15,second:15},sm={dayperiod:"dayPeriod"};function um(e){let{locale:n,createCalendar:r,hideTimeZone:o,isDisabled:i,isReadOnly:a,isRequired:l,minValue:s,maxValue:u,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue,[f,p]=om(d,e.granularity),h=p||"UTC";if(d&&!(f in d))throw new Error("Invalid granularity "+f+" for value "+d.toString());let g=t.useMemo((()=>new Us(n)),[n]),m=t.useMemo((()=>r(g.resolvedOptions().calendar)),[r,g]),[v,y]=So(e.value,e.defaultValue,e.onChange),b=t.useMemo((()=>nm(v,m)),[v,m]),[w,x]=t.useState((()=>rm(e.placeholderValue,f,m,p))),C=b||w,S="gregory"===m.identifier&&"BC"===C.era,k=t.useMemo((()=>{var t;return{granularity:f,maxGranularity:null!==(t=e.maxGranularity)&&void 0!==t?t:"year",timeZone:p,hideTimeZone:o,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,o,S]),E=t.useMemo((()=>em({},k)),[k]),O=t.useMemo((()=>new Us(n,E)),[n,E]),D=t.useMemo((()=>O.resolvedOptions()),[O]),_=t.useMemo((()=>O.formatToParts(new Date).filter((e=>am[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[O]),[j,P]=t.useState((()=>e.value||e.defaultValue?{..._}:{})),T=t.useRef(),M=t.useRef(m.identifier);t.useEffect((()=>{m.identifier!==M.current&&(M.current=m.identifier,x((t=>Object.keys(j).length>0?ul(t,m):rm(e.placeholderValue,f,m,p))))}),[m,f,j,p,e.placeholderValue]),v&&Object.keys(j).length<Object.keys(_).length&&(j={..._},P(j)),null==v&&Object.keys(j).length===Object.keys(_).length&&(j={},P(j),x(rm(e.placeholderValue,f,m,p)));let A=b&&Object.keys(j).length>=Object.keys(_).length?b:w,L=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(j),r=Object.keys(_);null==t?(y(null),x(rm(e.placeholderValue,f,m,p)),P({})):n.length>=r.length||n.length===r.length-1&&_.dayPeriod&&!j.dayPeriod&&"dayPeriod"!==T.current?(t=ul(t,(null==d?void 0:d.calendar)||new Ta),y(t)):x(t),T.current=null},R=t.useMemo((()=>A.toDate(h)),[A,h]),I=t.useMemo((()=>O.formatToParts(R).map((e=>{let t=am[e.type];"era"===e.type&&1===m.getEras().length&&(t=!1);let r=am[e.type]&&!j[e.type],o=am[e.type]?function(e,t,n){return"era"===e||"dayPeriod"===e?t:"year"===e||"month"===e||"day"===e?im.getStringForLocale(e,n):"––"}(e.type,e.value,n):null;return{type:sm[e.type]||e.type,text:r?o:e.value,...cm(A,e.type,D),isPlaceholder:r,placeholder:o,isEditable:t}}))),[R,j,O,D,A,m,n]);_.era&&j.year&&!j.era?(j.era=!0,P({...j})):!_.era&&j.era&&(delete j.era,P({...j}));let N=e=>{j[e]=!0,"year"===e&&_.era&&(j.era=!0),P({...j})},B=(e,t)=>{if(j[e])L(function(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,n=t>=12;return e.set({hour:n?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:r.hour12?12:24})}}(A,e,t,D));else{N(e);let t=Object.keys(j),n=Object.keys(_);(t.length>=n.length||t.length===n.length-1&&_.dayPeriod&&!j.dayPeriod)&&L(A)}},F=t.useMemo((()=>Xg(v,s,u,c,k)),[v,s,u,c,k]),$=vc({...e,value:v,builtinValidation:F}),z=$.displayValidation.isInvalid,K=e.validationState||(z?"invalid":null);var V;return{...$,value:b,dateValue:R,calendar:m,setValue:L,segments:I,dateFormatter:O,validationState:K,isInvalid:z,granularity:f,maxGranularity:null!==(V=e.maxGranularity)&&void 0!==V?V:"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(e){B(e,1)},decrement(e){B(e,-1)},incrementPage(e){B(e,lm[e]||1)},decrementPage(e){B(e,-(lm[e]||1))},setSegment(e,t){N(e),L(function(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,r=t>=12;return n>=12===r?e:e.set({hour:r?t-12:t+12})}case"hour":if(r.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}(A,e,t,D))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(j),n=Object.keys(_);t.length===n.length-1&&_.dayPeriod&&!j.dayPeriod&&(j={..._},P(j),L(A.copy()))},clearSegment(t){delete j[t],T.current=t,P({...j});let n=rm(e.placeholderValue,f,m,p),r=A;if("dayPeriod"===t&&"hour"in A&&"hour"in n){let e=A.hour>=12,t=n.hour>=12;e&&!t?r=A.set({hour:A.hour-12}):!e&&t&&(r=A.set({hour:A.hour+12}))}else t in A&&(r=A.set({[t]:n[t]}));y(null),L(r)},formatValue(e){if(!b)return"";let t=em(e,k);return new Us(n,t).format(R)}}}function cm(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:Ua(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Za(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:t?12:0,maxValue:t?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function dm(e){var n,r;let o=fg(e),[i,a]=So(e.value,e.defaultValue||null,e.onChange),[l,s]=t.useState((()=>i||{start:null,end:null}));null==i&&l.start&&l.end&&(l={start:null,end:null},s(l));let u=i||l,c=e=>{s(e||{start:null,end:null}),(null==e?void 0:e.start)&&e.end?a(e):a(null)},d=(null==u?void 0:u.start)||(null==u?void 0:u.end)||e.placeholderValue,[f,p]=om(d,e.granularity),h="hour"===f||"minute"===f||"second"===f;var g;let m=null===(g=e.shouldCloseOnSelect)||void 0===g||g,[v,y]=t.useState(null),[b,w]=t.useState(null);u&&u.start&&u.end&&(v=u,"hour"in u.start&&(b=u));let x=(e,t)=>{c({start:"timeZone"in t.start?t.start.set(ll(e.start)):sl(e.start,t.start),end:"timeZone"in t.end?t.end.set(ll(e.end)):sl(e.end,t.end)}),y(null),w(null),P.commitValidation()},C=t=>{let n="function"==typeof m?m():m;h?n||t.start&&t.end&&(null==b?void 0:b.start)&&(null==b?void 0:b.end)?x(t,{start:(null==b?void 0:b.start)||tm(e.placeholderValue),end:(null==b?void 0:b.end)||tm(e.placeholderValue)}):y(t):t.start&&t.end?(c(t),P.commitValidation()):y(t),n&&o.setOpen(!1)},S=e=>{(null==v?void 0:v.start)&&(null==v?void 0:v.end)&&e.start&&e.end?x(v,e):w(e)},k="gregory"===(null==u||null===(n=u.start)||void 0===n?void 0:n.calendar.identifier)&&"BC"===u.start.era||"gregory"===(null==u||null===(r=u.end)||void 0===r?void 0:r.calendar.identifier)&&"BC"===u.end.era,E=t.useMemo((()=>({granularity:f,timeZone:p,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k})),[f,e.hourCycle,e.shouldForceLeadingZeros,p,e.hideTimeZone,k]),{minValue:O,maxValue:D,isDateUnavailable:_}=e,j=t.useMemo((()=>function(e,t,n,r,o){let i=xc(Xg(null==e?void 0:e.start,t,n,r,o),Xg(null==e?void 0:e.end,t,n,r,o));null!=e.end&&null!=e.start&&e.end.compare(e.start)<0&&(i=xc(i,{isInvalid:!0,validationErrors:[(va.getGlobalDictionaryForPackage("@react-stately/datepicker")||Gg).getStringForLocale("rangeReversed",Yg())],validationDetails:{...fc,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}}));return i}(u,O,D,_,E)),[u,O,D,_,E]),P=vc({...e,value:i,name:t.useMemo((()=>[e.startName,e.endName]),[e.startName,e.endName]),builtinValidation:j}),T=P.displayValidation.isInvalid,M=e.validationState||(T?"invalid":null);return{...P,value:u,setValue:c,dateRange:v,timeRange:b,granularity:f,hasTime:h,setDate(e,t){C({...v,[e]:t})},setTime(e,t){S({...b,[e]:t})},setDateTime(e,t){c({...u,[e]:t})},setDateRange:C,setTimeRange:S,...o,setOpen(t){t||(null==u?void 0:u.start)&&(null==u?void 0:u.end)||!(null==v?void 0:v.start)||!(null==v?void 0:v.end)||!h||x(v,{start:(null==b?void 0:b.start)||tm(e.placeholderValue),end:(null==b?void 0:b.end)||tm(e.placeholderValue)}),o.setOpen(t)},validationState:M,isInvalid:T,formatValue(t,n){if(!u||!u.start||!u.end)return null;let r,o="timeZone"in u.start?u.start.timeZone:void 0,i=e.granularity||(u.start&&"minute"in u.start?"minute":"day"),a="timeZone"in u.end?u.end.timeZone:void 0,l=e.granularity||(u.end&&"minute"in u.end?"minute":"day"),s=em(n,{granularity:i,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===u.start.calendar.identifier&&"BC"===u.start.era||"gregory"===u.end.calendar.identifier&&"BC"===u.end.era}),c=u.start.toDate(o||"UTC"),d=u.end.toDate(a||"UTC"),f=new Us(t,s);if(o===a&&i===l&&0!==u.start.compare(u.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let o=0;o<e.length;o++)o<t?n+=e[o].value:o>t&&(r+=e[o].value);return{start:n,end:r}}catch(e){}r=f}else{let o=em(n,{granularity:l,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});r=new Us(t,o)}return{start:f.format(c),end:r.format(d)}}}}function fm(e){let n=fg(e),[r,o]=t.useState(null),[i,a]=t.useState([]);return{focusStrategy:r,...n,open(e=null){o(e),n.open()},toggle(e=null){o(e),n.toggle()},close(){a([]),n.close()},expandedKeysStack:i,openSubmenu:(e,t)=>{a((n=>t>n.length?n:[...n.slice(0,t),e]))},closeSubmenu:(e,t)=>{a((n=>n[t]===e?n.slice(0,t):n))}}}function pm(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,l=i[1]&&i[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),n=Math.round(n*s),r="+"===e?t+n:t-n,r/=s}return r}class hm{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.iterable=e,t=t||new Set;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let o=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=o++),n=t,n.nextKey=void 0;this.lastKey=null==n?void 0:n.key}}function gm(e){let{onExpandedChange:n}=e,[r,o]=So(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,n),i=lg(e),a=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=df(e,t.useCallback((e=>new hm(e,{expandedKeys:r})),[r]),null);t.useEffect((()=>{null==i.focusedKey||l.getItem(i.focusedKey)||i.setFocusedKey(null)}),[l,i.focusedKey]);return{collection:l,expandedKeys:r,disabledKeys:a,toggleKey:e=>{o(function(e,t){let n=new Set(e);n.has(t)?n.delete(t):n.add(t);return n}(r,e))},setExpandedKeys:o,selectionManager:new ug(l,i)}}const mm=t.createContext({}),vm=t.createContext({}),ym=t.createContext(null),bm=t.createContext(null);function wm(e,n){[e,n]=Mh(e,n,mm);let{locale:r}=pa(),o=eg({...e,locale:r,createCalendar:Vs}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=function(e,t){return sc(e,t)}(e,o),c=Ph({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-Calendar"});return t.createElement("div",{...c,...i,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},t.createElement(jh,{values:[[zh,{slots:{previous:a,next:l}}],[ur,{"aria-hidden":!0,level:2,children:u}],[ym,o],[Hh,{slots:{errorMessage:s}}]]},t.createElement($d,null,t.createElement("h2",null,i["aria-label"])),c.children,t.createElement($d,null,t.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}const xm=t.forwardRef(wm);function Cm(e,n){[e,n]=Mh(e,n,vm);let{locale:r}=pa(),o=function(e){let{value:n,defaultValue:r,onChange:o,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:s,maxValue:u,...c}=e,[d,f]=So(n,r||null,o),[p,h]=t.useState(null),g="center";if(d&&d.start&&d.end){let e=qh(ll(d.start),l,a,s,u).add(l).subtract({days:1});d.end.compare(e)>0&&(g="start")}let m=t.useRef(null),[v,y]=t.useState(null),b=t.useMemo((()=>Ya(s,null==v?void 0:v.start)),[s,v]),w=t.useMemo((()=>Ga(u,null==v?void 0:v.end)),[u,v]),x=eg({...c,value:d&&d.start,createCalendar:i,locale:a,visibleDuration:l,minValue:b,maxValue:w,selectionAlignment:g}),C=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:og(t,x,-1),end:og(t,x,1)},y(m.current)):(m.current=null,y(null))},[S,k]=t.useState(x.visibleRange);La(x.visibleRange.start,S.start)&&La(x.visibleRange.end,S.end)||(C(p),k(x.visibleRange));let E=e=>{e?(h(e),C(e)):(h(null),C(null))},O=p?ng(p,x.focusedDate):d&&ng(d.start,d.end),D=t=>{if(!e.isReadOnly&&(t=Qh(t=Jh(t,b,w),x.visibleRange.start,e.isDateUnavailable)))if(p){let e=ng(p,t);f({start:rg(e.start,null==d?void 0:d.start),end:rg(e.end,null==d?void 0:d.end)}),E(null)}else E(t)},[_,j]=t.useState(!1),{isDateUnavailable:P}=e,T=t.useMemo((()=>!(!d||p)&&(!(!P||!P(d.start)&&!P(d.end))||Wh(d.start,s,u)||Wh(d.end,s,u))),[P,d,p,s,u]),M=e.isInvalid||"invalid"===e.validationState||T,A=M?"invalid":null;return{...x,value:d,setValue:f,anchorDate:p,setAnchorDate:E,highlightedRange:O,validationState:A,isValueInvalid:M,selectFocusedDate(){D(x.focusedDate)},selectDate:D,highlightDate(e){p&&x.setFocusedDate(e)},isSelected:e=>O&&e.compare(O.start)>=0&&e.compare(O.end)<=0&&!x.isCellDisabled(e)&&!x.isCellUnavailable(e),isInvalid(e){var t,n;return x.isInvalid(e)||Wh(e,null===(t=m.current)||void 0===t?void 0:t.start,null===(n=m.current)||void 0===n?void 0:n.end)},isDragging:_,setDragging:j}}({...e,locale:r,createCalendar:Vs}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=function(e,n,r){let o=sc(e,n),i=t.useRef(!1),a=t.useRef("undefined"!=typeof window?window:null);return mo(a,"pointerdown",(e=>{i.current=0===e.width&&0===e.height})),mo(a,"pointerup",(e=>{if(i.current)return void(i.current=!1);if(n.setDragging(!1),!n.anchorDate)return;let t=e.target;!r.current||!r.current.contains(document.activeElement)||r.current.contains(t)&&t.closest('button, [role="button"]')||n.selectFocusedDate()})),o.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&r.current.contains(e.relatedTarget)||!n.anchorDate||n.selectFocusedDate())},mo(r,"touchmove",(e=>{n.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),o}(e,o,n),c=Ph({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return t.createElement("div",{...c,...i,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},t.createElement(jh,{values:[[zh,{slots:{previous:a,next:l}}],[ur,{"aria-hidden":!0,level:2,children:u}],[bm,o],[Hh,{slots:{errorMessage:s}}]]},t.createElement($d,null,t.createElement("h2",null,i["aria-label"])),c.children,t.createElement($d,null,t.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}const Sm=t.forwardRef(Cm),km=t.createContext(null);function Em(e,n){let r=t.useContext(ym),o=t.useContext(bm),i=null!=r?r:o,a=i.visibleRange.start;e.offset&&(a=a.add(e.offset));let{gridProps:l,headerProps:s,weekDays:u}=function(e,n){let{startDate:r=n.visibleRange.start,endDate:o=n.visibleRange.end}=e,{direction:i}=pa(),a=nc(r,o,n.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=ec.get(n),u=io({"aria-label":[l,a].filter(Boolean).join(", "),"aria-labelledby":s}),c=Ys({weekday:e.weekdayStyle||"narrow",timeZone:n.timeZone}),{locale:d}=pa(),f=t.useMemo((()=>{let e=Wa(Na(n.timeZone),d);return[...new Array(7).keys()].map((t=>{let r=e.add({days:t}).toDate(n.timeZone);return c.format(r)}))}),[d,n.timeZone,c]);return{gridProps:Mr(u,{role:"grid","aria-readonly":n.isReadOnly||null,"aria-disabled":n.isDisabled||null,"aria-multiselectable":"highlightedRange"in n||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),n.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),n.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),n.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),n.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===i?n.focusNextDay():n.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===i?n.focusPreviousDay():n.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n.focusNextRow();break;case"Escape":"setAnchorDate"in n&&(e.preventDefault(),n.setAnchorDate(null))}},onFocus:()=>n.setFocused(!0),onBlur:()=>n.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:f}}({startDate:a,endDate:Ha(a),weekdayStyle:e.weekdayStyle},i);var c;return t.createElement(km.Provider,{value:{headerProps:s,weekDays:u,startDate:a}},t.createElement("table",{...Br(e),...l,ref:n,style:e.style,className:null!==(c=e.className)&&void 0!==c?c:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:t.createElement(t.Fragment,null,t.createElement(_m,null,(e=>t.createElement(Pm,null,e))),t.createElement(Mm,null,e.children))))}const Om=t.forwardRef(Em);function Dm(e,n){let{children:r,style:o,className:i}=e,{headerProps:a,weekDays:l}=t.useContext(km);return t.createElement("thead",{...Br(e),...a,ref:n,style:o,className:i||"react-aria-CalendarGridHeader"},t.createElement("tr",null,l.map(((e,n)=>t.cloneElement(r(e),{key:n})))))}const _m=t.forwardRef(Dm);function jm(e,n){let{children:r,style:o,className:i}=e;return t.createElement("th",{...Br(e),ref:n,style:o,className:i||"react-aria-CalendarHeaderCell"},r)}const Pm=t.forwardRef(jm);function Tm(e,n){let{children:r,style:o,className:i}=e,a=t.useContext(ym),l=t.useContext(bm),s=null!=a?a:l,{startDate:u}=t.useContext(km),{locale:c}=pa(),d=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Ra(Va(e),t)+n)/7)}(u,c);return t.createElement("tbody",{...Br(e),ref:n,style:o,className:i||"react-aria-CalendarGridBody"},[...new Array(d).keys()].map((e=>t.createElement("tr",{key:e},s.getDatesInWeek(e,u).map(((e,n)=>e?t.cloneElement(r(e),{key:n}):t.createElement("td",{key:n})))))))}const Mm=t.forwardRef(Tm);function Am({date:e,...n},r){let o=t.useContext(ym),i=t.useContext(bm),a=null!=o?o:i;var l;let{startDate:s}=null!==(l=t.useContext(km))&&void 0!==l?l:{startDate:a.visibleRange.start},u=t.useRef(null),{cellProps:c,buttonProps:d,...f}=uc({date:e},a,u),{hoverProps:p,isHovered:h}=Oi({...n,isDisabled:f.isDisabled}),{focusProps:g,isFocusVisible:m}=ta();m&&(m=f.isFocused);let v=!function(e,t){return t=ul(t,e.calendar),e=Va(e),t=Va(t),e.era===t.era&&e.year===t.year&&e.month===t.month}(s,e),y=!1,b=!1;"highlightedRange"in a&&a.highlightedRange&&(y=Aa(e,a.highlightedRange.start),b=Aa(e,a.highlightedRange.end));let w=Ph({...n,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:v,isFocusVisible:m,isSelectionStart:y,isSelectionEnd:b,...f}}),x={"data-focused":f.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":m||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":v||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":y||void 0,"data-selection-end":b||void 0,"data-invalid":f.isInvalid||void 0};return t.createElement("td",{...c,ref:r},t.createElement("div",{...Mr(Br(n),d,g,p,x,w),ref:u}))}const Lm=t.forwardRef(Am),Rm=t.createContext(null);function Im(e,n){let r=t.useContext(Rm);return(null==r?void 0:r.isInvalid)?t.createElement(Bm,{...e,ref:n}):null}const Nm=t.forwardRef(Im),Bm=t.forwardRef(((e,n)=>{let r=t.useContext(Rm),o=Ph({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===r.validationErrors.length?void 0:r.validationErrors.join(" "),values:r});return null==o.children?null:t.createElement(Zh,{slot:"errorMessage",...o,ref:n})})),Fm=t.createContext(null),$m=t.createContext({});function zm(e,n){[e,n]=Mh(e,n,$m);let{elementType:r="label",...o}=e;return t.createElement(r,{className:"react-aria-Label",...o,ref:n})}const Km=Bh(zm),Vm=t.createContext({});let Hm=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function Um(e,n){[e,n]=Mh(e,n,Vm);let{hoverProps:r,isHovered:o}=Oi(e),{isFocused:i,isFocusVisible:a,focusProps:l}=ta({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],u=Ph({...e,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return t.createElement("input",{...Mr(Hm(e),l,r),...u,ref:n,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}const Zm=Bh(Um);var Wm;Wm={"ar-AE":{colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"},"bg-BG":{colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"},"da-DK":{colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"},"el-GR":{colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"},"et-EE":{colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"},"hu-HU":{colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"},"ko-KR":{colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"},"lt-LT":{colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"},"lv-LV":{colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"},"sk-SK":{colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"},"sv-SE":{colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"},"tr-TR":{colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"},"uk-UA":{colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"},"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"}};const qm=t.createContext(null);function Gm(e,n){let{render:r}=t.useContext(qm);return t.createElement(t.Fragment,null,r(e,n))}const Ym=t.forwardRef(Gm),Xm=t.createContext({}),Jm=t.createContext({});function Qm(e,n){let[r,o]=Mh(e,n,Jm),i=kh("header",e,n);return i||t.createElement("header",{className:"react-aria-Header",...r,ref:o},r.children)}const ev=t.forwardRef(Qm),tv=t.createContext({});function nv(e,n){let[r,o]=Mh(e,n,tv),{elementType:i,orientation:a,style:l,className:s}=r,u=i||"hr";"hr"===u&&"vertical"===a&&(u="div");let{separatorProps:c}=function(e){let t,n=Br(e,{labelable:!0});return"vertical"===e.orientation&&(t="vertical"),"hr"!==e.elementType?{separatorProps:{...n,role:"separator","aria-orientation":t}}:{separatorProps:n}}({elementType:i,orientation:a}),d=kh("separator",e,n);return d||t.createElement(u,{...Br(r),...c,style:l,className:null!=s?s:"react-aria-Separator",ref:o,slot:r.slot||void 0})}const rv=t.forwardRef(nv),ov=t.createContext(null),iv=t.createContext(null);function av(e,n){[e,n]=Mh(e,n,ov);let r=t.useContext(Rh),o=t.useContext(iv);return t.useContext(xh)?t.createElement(Sh,e):o?r?null:t.createElement(uv,{state:o,props:e,listBoxRef:n}):t.createElement(lv,{props:e,listBoxRef:n})}function lv({props:e,listBoxRef:n}){let{portal:r,collection:o}=vh(e),i=cg(e={...e,collection:o,children:null,items:null});return t.createElement(t.Fragment,null,r,t.createElement(uv,{state:i,props:e,listBoxRef:n}))}const sv=t.forwardRef(av);function uv({state:e,props:n,listBoxRef:r}){let o,i,a,{dragAndDropHooks:l,layout:s="stack",orientation:u="vertical"}=n,{collection:c,selectionManager:d}=e,f=!!(null==l?void 0:l.useDraggableCollectionState),p=!!(null==l?void 0:l.useDroppableCollectionState),{direction:h}=pa(),{disabledBehavior:g,disabledKeys:m}=d,v=mu({usage:"search",sensitivity:"base"}),y=t.useMemo((()=>n.keyboardDelegate||new of({collection:c,collator:v,ref:r,disabledKeys:m,disabledBehavior:g,layout:s,orientation:u,direction:h})),[c,v,r,g,m,u,h,n.keyboardDelegate,s]),{listBoxProps:b}=function(e,t,n){let r=Br(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||("replace"===o?"action":"override");"toggle"===o&&"action"===i&&(i="override");let{listProps:a}=af({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:l}=wi({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=kr(e.id);qd.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=Cc({...e,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:Mr(r,l,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...Mr(c,a)})}}({...n,shouldSelectOnPressUp:f||n.shouldSelectOnPressUp,keyboardDelegate:y},e,r),w=hh({items:c,children:e=>{switch(e.type){case"section":return t.createElement(cv,{section:e});case"separator":return t.createElement(rv,e.props);case"item":return t.createElement(hv,{item:e});default:throw new Error("Unsupported node type in Menu: "+e.type)}}}),x=t.useRef(f),C=t.useRef(p);t.useEffect((()=>{x.current!==f&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==p&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")}),[f,p]);let S=!1,k=null,E=t.useRef(null);if(f&&l){o=l.useDraggableCollectionState({collection:c,selectionManager:d,preview:l.renderDragPreview?E:void 0}),l.useDraggableCollection({},o,r);let e=l.DragPreview;k=l.renderDragPreview?t.createElement(e,{ref:E},l.renderDragPreview):null}if(p&&l){i=l.useDroppableCollectionState({collection:c,selectionManager:d});let e=l.dropTargetDelegate||new l.ListDropTargetDelegate(c,r,{orientation:u,layout:s,direction:h});a=l.useDroppableCollection({keyboardDelegate:y,dropTargetDelegate:e},i,r),S=i.isDropTarget({type:"root"})}let{focusProps:O,isFocused:D,isFocusVisible:_}=ta(),j={isDropTarget:S,isEmpty:0===e.collection.size,isFocused:D,isFocusVisible:_,layout:n.layout||"stack",state:e},P=Ph({className:n.className,style:n.style,defaultClassName:"react-aria-ListBox",values:j}),T=null;return 0===e.collection.size&&n.renderEmptyState&&(T=t.createElement("div",{role:"option",style:{display:"contents"}},n.renderEmptyState(j))),t.createElement(Ni,null,t.createElement("div",{...Br(n),...Mr(b,O,null==a?void 0:a.collectionProps),...P,ref:r,slot:n.slot||void 0,onScroll:n.onScroll,"data-drop-target":S||void 0,"data-empty":0===e.collection.size||void 0,"data-focused":D||void 0,"data-focus-visible":_||void 0,"data-layout":n.layout||"stack","data-orientation":n.orientation||"vertical"},t.createElement(jh,{values:[[ov,n],[iv,e],[Xm,{dragAndDropHooks:l,dragState:o,dropState:i}],[tv,{elementType:"div"}],[qm,{render:gv}]]},w),T,k))}function cv({section:e,className:n,style:r}){var o,i;let a=t.useContext(iv),[l,s]=Ah();var u;let{headingProps:c,groupProps:d}=function(e){let{heading:t,"aria-label":n}=e,r=kr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:s,"aria-label":null!==(u=e.props["aria-label"])&&void 0!==u?u:void 0}),f=hh({items:a.collection.getChildren(e.key),children:e=>{switch(e.type){case"header":return t.createElement(dv,{item:e,headingProps:c,headingRef:l});case"item":return t.createElement(hv,{item:e});default:throw new Error("Unsupported element type in Section: "+e.type)}}});return t.createElement("section",{...Br(e.props),...d,className:n||(null===(o=e.props)||void 0===o?void 0:o.className)||"react-aria-Section",style:r||(null===(i=e.props)||void 0===i?void 0:i.style),ref:e.props.ref},f)}function dv({item:e,headingProps:n,headingRef:r}){let{ref:o,...i}=e.props;return t.createElement(ev,{...n,...i,ref:Ar(r,o)},e.rendered)}function fv(e,t){return Eh("item",e,t,e.children)}const pv=t.forwardRef(fv);function hv({item:e}){var n;let r=ao(e.props.ref),o=t.useContext(iv),{dragAndDropHooks:i,dragState:a,dropState:l}=t.useContext(Xm),{optionProps:s,labelProps:u,descriptionProps:c,...d}=function(e,t,n){var r,o;let{key:i}=e,a=qd.get(t);var l;let s=null!==(l=e.isDisabled)&&void 0!==l?l:t.selectionManager.isDisabled(i);var u;let c=null!==(u=e.isSelected)&&void 0!==u?u:t.selectionManager.isSelected(i);var d;let f=null!==(d=e.shouldSelectOnPressUp)&&void 0!==d?d:null==a?void 0:a.shouldSelectOnPressUp;var p;let h=null!==(p=e.shouldFocusOnHover)&&void 0!==p?p:null==a?void 0:a.shouldFocusOnHover;var g;let m=null!==(g=e.shouldUseVirtualFocus)&&void 0!==g?g:null==a?void 0:a.shouldUseVirtualFocus;var v;let y=null!==(v=e.isVirtualized)&&void 0!==v?v:null==a?void 0:a.isVirtualized,b=Or(),w=Or(),x={role:"option","aria-disabled":s||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?c:void 0};Vr()&&qr()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=b,x["aria-describedby"]=w);let C=t.collection.getItem(i);if(y){let e=Number(null==C?void 0:C.index);x["aria-posinset"]=Number.isNaN(e)?void 0:e+1,x["aria-setsize"]=vf(t.collection)}let S=(null==a?void 0:a.onAction)?()=>{var e;return null==a||null===(e=a.onAction)||void 0===e?void 0:e.call(a,i)}:void 0,{itemProps:k,isPressed:E,isFocused:O,hasAction:D,allowsSelection:_}=tf({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:y,shouldUseVirtualFocus:m,isDisabled:s,onAction:S||(null==C||null===(r=C.props)||void 0===r?void 0:r.onAction)?Dr(null==C||null===(o=C.props)||void 0===o?void 0:o.onAction,S):void 0,linkBehavior:null==a?void 0:a.linkBehavior}),{hoverProps:j}=Oi({isDisabled:s||!h,onHoverStart(){hi()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),P=Br(null==C?void 0:C.props);delete P.id;let T=Qr(null==C?void 0:C.props);return{optionProps:{...x,...Mr(P,k,j,T),id:Gd(t,i)},labelProps:{id:b},descriptionProps:{id:w},isFocused:O,isFocusVisible:O&&hi(),isSelected:c,isDisabled:s,isPressed:E,allowsSelection:_,hasAction:D}}({key:e.key,"aria-label":null===(n=e.props)||void 0===n?void 0:n["aria-label"]},o,r),{hoverProps:f,isHovered:p}=Oi({isDisabled:!d.allowsSelection&&!d.hasAction,onHoverStart:e.props.onHoverStart,onHoverChange:e.props.onHoverChange,onHoverEnd:e.props.onHoverEnd}),h=null;a&&i&&(h=i.useDraggableItem({key:e.key},a));let g=null;l&&i&&(g=i.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},l,r));let m=e.props,v=a&&a.isDragging(e.key),y=Ph({...m,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...d,isHovered:p,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:v,isDropTarget:null==g?void 0:g.isDropTarget}}),b=(null==i?void 0:i.renderDropIndicator)||(e=>t.createElement(Ym,{target:e}));t.useEffect((()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")}),[e.textValue]);let w=m.href?"a":"div";return t.createElement(t.Fragment,null,(null==i?void 0:i.useDropIndicator)&&b({type:"item",key:e.key,dropPosition:"before"}),t.createElement(w,{...Mr(s,f,null==h?void 0:h.dragProps,null==g?void 0:g.dropProps),...y,ref:r,"data-allows-dragging":!!a||void 0,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-dragging":v||void 0,"data-drop-target":(null==g?void 0:g.isDropTarget)||void 0,"data-selection-mode":"none"===o.selectionManager.selectionMode?void 0:o.selectionManager.selectionMode},t.createElement(jh,{values:[[Hh,{slots:{label:u,description:c}}]]},y.children)),(null==i?void 0:i.useDropIndicator)&&null==o.collection.getKeyAfter(e.key)&&b({type:"item",key:e.key,dropPosition:"after"}))}function gv(e,n){n=ao(n);let{dragAndDropHooks:r,dropState:o}=t.useContext(Xm),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,o,n);return a?null:t.createElement(vv,{...e,dropIndicatorProps:i,isDropTarget:l,ref:n})}function mv(e,n){let{dropIndicatorProps:r,isDropTarget:o,...i}=e,a=Ph({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return t.createElement("div",{...r,...a,role:"option",ref:n,"data-drop-target":o||void 0})}const vv=t.forwardRef(mv),yv=t.createContext({});function bv(e,n){[e,n]=Mh(e,n,yv);let{isDisabled:r,isInvalid:o,onHoverStart:i,onHoverChange:a,onHoverEnd:l,...s}=e,{hoverProps:u,isHovered:c}=Oi({onHoverStart:i,onHoverChange:a,onHoverEnd:l,isDisabled:r}),{isFocused:d,isFocusVisible:f,focusProps:p}=ta({within:!0});null!=r||(r=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=o||(o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=Ph({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:r,isInvalid:o},defaultClassName:"react-aria-Group"});var g,m;return t.createElement("div",{...Mr(s,p,u),...h,ref:n,role:null!==(g=e.role)&&void 0!==g?g:"group",slot:null!==(m=e.slot)&&void 0!==m?m:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":r||void 0,"data-invalid":o||void 0},h.children)}const wv=t.forwardRef(bv),xv=t.createContext({placement:"bottom"}),Cv=t.createContext(null);function Sv(e,n){[e,n]=Mh(e,n,Cv);let r=t.useContext(Dv),o=fg(e),i=null==e.isOpen&&null==e.defaultOpen&&r?r:o,a=function(e,n){let[r,o]=t.useState(!1),[i,a]=t.useState("idle");return!n&&e.current&&"idle"===i&&(r=!0,o(!0),a("exiting")),e.current||"exited"!==i||a("idle"),Lh(e,r,t.useCallback((()=>{a("exited"),o(!1)}),[])),r}(n,i.isOpen)||e.isExiting||!1;if(t.useContext(Rh)){let n=e.children;return"function"==typeof n&&(n=n({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),t.createElement(t.Fragment,null,n)}return!i||i.isOpen||a?t.createElement(Ev,{...e,triggerRef:e.triggerRef,state:i,popoverRef:n,isExiting:a}):null}const kv=t.forwardRef(Sv);function Ev({state:e,isExiting:n,UNSTABLE_portalContainer:r,...o}){let i=t.useRef(null),[a,l]=t.useState(0);var s;cr((()=>{i.current&&e.isOpen&&l(i.current.getBoundingClientRect().width)}),[e.isOpen,i]);let{popoverProps:u,underlayProps:c,arrowProps:d,placement:f}=function(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...l}=e,{overlayProps:s,underlayProps:u}=Dd({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:d,placement:f}=kd({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Md({isDisabled:o||!t.isOpen}),cr((()=>{if(t.isOpen&&!o&&r.current)return Hd([r.current])}),[o,t.isOpen,r]),{popoverProps:Mr(s,c),arrowProps:d,underlayProps:u,placement:f}}({...o,offset:null!==(s=o.offset)&&void 0!==s?s:8,arrowSize:a},e),p=o.popoverRef,h=function(e,n=!0){let[r,o]=t.useState(!0);return Lh(e,r&&n,t.useCallback((()=>o(!1)),[])),r&&n}(p,!!f)||o.isEntering||!1,g=Ph({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:h,isExiting:n}}),m={...u.style,...g.style};return t.createElement(Wd,{isExiting:n,portalContainer:r},!o.isNonModal&&e.isOpen&&t.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),t.createElement("div",{...Mr(Br(o),u),...g,ref:p,slot:o.slot||void 0,style:m,"data-trigger":o.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":n||void 0},!o.isNonModal&&t.createElement(zd,{onDismiss:e.close}),t.createElement(xv.Provider,{value:{...d,placement:f,ref:i}},g.children),t.createElement(zd,{onDismiss:e.close})))}const Ov=t.createContext(null),Dv=t.createContext(null);function _v(e,n){let r=e["aria-labelledby"];[e,n]=Mh(e,n,Ov);let{dialogProps:o,titleProps:i}=yp({...e,"aria-labelledby":r},n),a=t.useContext(Dv),l=e.children;var s;return"function"==typeof l&&(l=l({close:(null==a?void 0:a.close)||(()=>{})})),o["aria-label"]||o["aria-labelledby"]||(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.')),t.createElement("section",{...Br(e),...o,ref:n,slot:e.slot||void 0,style:e.style,className:null!==(s=e.className)&&void 0!==s?s:"react-aria-Dialog"},t.createElement(jh,{values:[[ur,{slots:{[_h]:{},title:{...i,level:2}}}]]},l))}const jv=t.forwardRef(_v),Pv=t.createContext(null),Tv=t.createContext(null);function Mv(e,n){[e,n]=Mh(e,n,Pv);let{collection:r,document:o}=bh(),{children:i,isDisabled:a=!1,isInvalid:l=!1,isRequired:s=!1}=e;var u;return i=t.useMemo((()=>"function"==typeof i?i({isOpen:!1,isDisabled:a,isInvalid:l,isRequired:s,defaultChildren:null}):i),[i,a,l,s]),t.createElement(t.Fragment,null,t.createElement(Nh,null,t.createElement(jh,{values:[[xh,o],[ov,{items:null!==(u=e.items)&&void 0!==u?u:e.defaultItems}]]},i)),t.createElement(Av,{props:e,collection:r,comboBoxRef:n}))}function Av({props:e,collection:n,comboBoxRef:r}){let{name:o,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=Th(Fm)||{};var s,u;let c=null!==(u=null!==(s=e.validationBehavior)&&void 0!==s?s:l)&&void 0!==u?u:"native",{contains:d}=vu({sensitivity:"base"}),f=pg({defaultFilter:e.defaultFilter||d,...e,items:e.items,children:void 0,collection:n,validationBehavior:c}),p=t.useRef(null),h=t.useRef(null),g=t.useRef(null),m=t.useRef(null),[v,y]=Ah(),{buttonProps:b,inputProps:w,listBoxProps:x,labelProps:C,descriptionProps:S,errorMessageProps:k,...E}=function(e,n){let{buttonRef:r,popoverRef:o,inputRef:i,listBoxRef:a,keyboardDelegate:l,shouldFocusWrap:s,isReadOnly:u,isDisabled:c}=e,d=Sa(function(e){return e&&e.__esModule?e.default:e}(od),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=bf({type:"listbox",isDisabled:c||u},n,r);qd.set(n,{id:p.id});let h=t.useMemo((()=>l||new of(n.collection,n.disabledKeys,a)),[l,n.collection,n.disabledKeys,a]),{collectionProps:g}=ef({selectionManager:n.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:i,isVirtualized:!0}),m=Xr(),{isInvalid:v,validationErrors:y,validationDetails:b}=n.displayValidation,{labelProps:w,inputProps:x,descriptionProps:C,errorMessageProps:S}=Df({...e,onChange:n.setInputValue,onKeyDown:u?e.onKeyDown:Dr(n.isOpen&&g.onKeyDown,(t=>{switch(t.key){case"Enter":case"Tab":if(n.isOpen&&"Enter"===t.key&&t.preventDefault(),n.isOpen&&null!=n.selectionManager.focusedKey&&n.selectionManager.isLink(n.selectionManager.focusedKey)){if("Enter"===t.key){let e=a.current.querySelector(`[data-key="${CSS.escape(n.selectionManager.focusedKey.toString())}"]`);if(e instanceof HTMLAnchorElement){let r=n.collection.getItem(n.selectionManager.focusedKey);m.open(e,t,r.props.href,r.props.routerOptions)}}n.close()}else n.commit();break;case"Escape":(null!==n.selectedKey||""===n.inputValue||e.allowsCustomValue)&&t.continuePropagation(),n.revert();break;case"ArrowDown":n.open("first","manual");break;case"ArrowUp":n.open("last","manual");break;case"ArrowLeft":case"ArrowRight":n.selectionManager.setFocusedKey(null)}}),e.onKeyDown),onBlur:t=>{var i;let a=(null==r?void 0:r.current)&&r.current===t.relatedTarget,l=null===(i=o.current)||void 0===i?void 0:i.contains(t.relatedTarget);a||l||(e.onBlur&&e.onBlur(t),n.setFocused(!1))},value:n.inputValue,onFocus:t=>{n.isFocused||(e.onFocus&&e.onFocus(t),n.setFocused(!0))},autoComplete:"off",validate:void 0,[mc]:n},i),k=io({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||w.id}),E=io({id:p.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||w.id}),O=t.useRef(0),D=null!=n.selectionManager.focusedKey&&n.isOpen?n.collection.getItem(n.selectionManager.focusedKey):void 0;var _;let j=null!==(_=null==D?void 0:D.parentKey)&&void 0!==_?_:null;var P;let T=null!==(P=n.selectionManager.focusedKey)&&void 0!==P?P:null,M=t.useRef(j),A=t.useRef(T);t.useEffect((()=>{if(Wr()&&null!=D&&T!==A.current){let e=n.selectionManager.isSelected(T),t=null!=j?n.collection.getItem(j):null,r=(null==t?void 0:t["aria-label"])||("string"==typeof(null==t?void 0:t.rendered)?t.rendered:"")||"";ac(d.format("focusAnnouncement",{isGroupChange:t&&j!==M.current,groupTitle:r,groupCount:t?[...ff(t,n.collection)].length:0,optionText:D["aria-label"]||D.textValue||"",isSelected:e}))}M.current=j,A.current=T}));let L=vf(n.collection),R=t.useRef(L),I=t.useRef(n.isOpen);t.useEffect((()=>{let e=n.isOpen!==I.current&&(null==n.selectionManager.focusedKey||Wr());n.isOpen&&(e||L!==R.current)&&ac(d.format("countAnnouncement",{optionCount:L})),R.current=L,I.current=n.isOpen}));let N=t.useRef(n.selectedKey);return t.useEffect((()=>{if(Wr()&&n.isFocused&&n.selectedItem&&n.selectedKey!==N.current){let e=n.selectedItem["aria-label"]||n.selectedItem.textValue||"";ac(d.format("selectedAnnouncement",{optionText:e}))}N.current=n.selectedKey})),t.useEffect((()=>{if(n.isOpen)return Hd([i.current,o.current])}),[n.isOpen,i,o]),{labelProps:w,buttonProps:{...f,...k,excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(i.current.focus(),n.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(i.current.focus(),n.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))},isDisabled:c||u},inputProps:Mr(x,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":n.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":D?Gd(n,D.key):void 0,onTouchEnd:e=>{if(c||u)return;if(e.timeStamp-O.current<500)return e.preventDefault(),void i.current.focus();let t=e.target.getBoundingClientRect(),r=e.changedTouches[0],o=Math.ceil(t.left+.5*t.width),a=Math.ceil(t.top+.5*t.height);r.clientX===o&&r.clientY===a&&(e.preventDefault(),i.current.focus(),n.toggle(null,"manual"),O.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:Mr(p,E,{autoFocus:n.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:C,errorMessageProps:S,isInvalid:v,validationErrors:y,validationDetails:b}}({...Fh(e),label:y,inputRef:h,buttonRef:p,listBoxRef:g,popoverRef:m,name:"text"===i?o:void 0,validationBehavior:c},f),[O,D]=t.useState(null),_=t.useCallback((()=>{if(h.current){var e;let t=null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect(),n=h.current.getBoundingClientRect(),r=t?Math.min(t.left,n.left):n.left,o=t?Math.max(t.right,n.right):n.right;D(o-r+"px")}}),[p,h,D]);so({ref:h,onResize:_});let j=t.useMemo((()=>({isOpen:f.isOpen,isDisabled:e.isDisabled||!1,isInvalid:E.isInvalid||!1,isRequired:e.isRequired||!1})),[f.isOpen,e.isDisabled,E.isInvalid,e.isRequired]),P=Ph({...e,values:j,defaultClassName:"react-aria-ComboBox"}),T=Br(e);return delete T.id,t.createElement(jh,{values:[[Tv,f],[$m,{...C,ref:v}],[zh,{...b,ref:p,isPressed:f.isOpen}],[Vm,{...w,ref:h}],[Dv,f],[Cv,{ref:m,triggerRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":O}}],[ov,{...x,ref:g}],[iv,f],[Hh,{slots:{description:S,errorMessage:k}}],[yv,{isInvalid:E.isInvalid,isDisabled:e.isDisabled||!1}],[Rm,E]]},t.createElement("div",{...T,...P,ref:r,slot:e.slot||void 0,"data-focused":f.isFocused||void 0,"data-open":f.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-required":e.isRequired||void 0}),o&&"key"===i&&t.createElement("input",{type:"hidden",name:o,value:f.selectedKey}))}const Lv=t.forwardRef(Mv),Rv=t.createContext(null),Iv=t.createContext(null),Nv=t.createContext(null);function Bv(e,n){let r=t.useContext(Iv),o=t.useContext(Nv);return r||o?t.createElement($v,{...e,ref:n}):t.createElement(Fv,{...e,ref:n})}const Fv=t.forwardRef(((e,n)=>{let[r,o]=Mh({slot:e.slot},n,Rv),{locale:i}=pa(),a=um({...r,locale:i,createCalendar:Vs}),l=t.useRef(null),{fieldProps:s,inputProps:u}=function(e,n,r){var o;let{isInvalid:i,validationErrors:a,validationDetails:l}=n.displayValidation,{labelProps:s,fieldProps:u,descriptionProps:c,errorMessageProps:d}=Sc({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),f=t.useRef(null),{focusWithinProps:p}=wi({...e,onFocusWithin(t){var r;f.current=n.value,null===(r=e.onFocus)||void 0===r||r.call(e,t)},onBlurWithin:t=>{var r;n.confirmPlaceholder(),n.value!==f.current&&n.commitValidation(),null===(r=e.onBlur)||void 0===r||r.call(e,t)},onFocusWithinChange:e.onFocusChange}),h=Sa(function(e){return e&&e.__esModule?e.default:e}(up),"@react-aria/datepicker"),g="hour"===n.maxGranularity?"selectedTimeDescription":"selectedDateDescription",m="hour"===n.maxGranularity?"time":"date",v=go(n.value?h.format(g,{[m]:n.formatValue({month:"long"})}):""),y="presentation"===e[fp]?u["aria-describedby"]:[v["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=e[pp],w=t.useMemo((()=>b||Yi(r)),[b,r]),x=cp(n,r,"presentation"===e[fp]);dp.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:w});let C,S=t.useRef(e.autoFocus);C="presentation"===e[fp]?{role:"presentation"}:Mr(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),t.useEffect((()=>{S.current&&w.focusFirst(),S.current=!1}),[w]),Co(e.inputRef,n.value,n.setValue),cc({...e,focus(){w.focusFirst()}},n,e.inputRef);let k={type:"hidden",name:e.name,value:(null===(o=n.value)||void 0===o?void 0:o.toString())||""};"native"===e.validationBehavior&&(k.type="text",k.hidden=!0,k.required=e.isRequired,k.onChange=()=>{});let E=Br(e);return{labelProps:{...s,onClick:()=>{w.focusFirst()}},fieldProps:Mr(E,C,x,p,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)}}),inputProps:k,descriptionProps:c,errorMessageProps:d,isInvalid:i,validationErrors:a,validationDetails:l}}({...r,inputRef:l},a,o);return t.createElement(jh,{values:[[Iv,a],[Vm,{...u,ref:l}],[yv,{...s,ref:o,isInvalid:a.isInvalid}]]},t.createElement($v,e))})),$v=t.forwardRef(((e,n)=>{let{className:r,children:o}=e,i=t.useContext(Iv),a=t.useContext(Nv),l=null!=i?i:a;return t.createElement(t.Fragment,null,t.createElement(wv,{...e,ref:n,slot:e.slot||void 0,className:null!=r?r:"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map(((e,n)=>t.cloneElement(o(e),{key:n})))),t.createElement(Zm,null))})),zv=t.forwardRef(Bv);function Kv({segment:e,...n},r){let o=t.useContext(Iv),i=t.useContext(Nv),a=null!=o?o:i,l=ao(r),{segmentProps:s}=vp(e,a,l),{focusProps:u,isFocused:c,isFocusVisible:d}=ta(),{hoverProps:f,isHovered:p}=Oi({...n,isDisabled:a.isDisabled||"literal"===e.type}),h=Ph({...n,values:{...e,isReadOnly:!e.isEditable,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:p,isFocused:c,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return t.createElement("div",{...Mr(Br(n),s,u,f),...h,ref:l,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0})}const Vv=t.forwardRef(Kv),Hv=t.createContext(null),Uv=t.createContext(null),Zv=t.createContext(null),Wv=t.createContext(null);function qv(e,n){[e,n]=Mh(e,n,Hv);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=function(e){let n=fg(e),[r,o]=So(e.value,e.defaultValue||null,e.onChange),i=r||e.placeholderValue,[a,l]=om(i,e.granularity),s=null!=r?r.toDate(null!=l?l:"UTC"):null,u="hour"===a||"minute"===a||"second"===a;var c;let d=null===(c=e.shouldCloseOnSelect)||void 0===c||c,[f,p]=t.useState(null),[h,g]=t.useState(null);if(r&&(f=r,"hour"in r&&(h=r)),i&&!(a in i))throw new Error("Invalid granularity "+a+" for value "+i.toString());let m="gregory"===(null==r?void 0:r.calendar.identifier)&&"BC"===r.era,v=t.useMemo((()=>({granularity:a,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:m})),[a,e.hourCycle,e.shouldForceLeadingZeros,l,e.hideTimeZone,m]),{minValue:y,maxValue:b,isDateUnavailable:w}=e,x=t.useMemo((()=>Xg(r,y,b,w,v)),[r,y,b,w,v]),C=vc({...e,value:r,builtinValidation:x}),S=C.displayValidation.isInvalid,k=e.validationState||(S?"invalid":null),E=(e,t)=>{o("timeZone"in t?t.set(ll(e)):sl(e,t)),p(null),g(null),C.commitValidation()};return{...C,value:r,setValue:o,dateValue:f,timeValue:h,setDateValue:t=>{let r="function"==typeof d?d():d;u?h||r?E(t,h||tm(e.placeholderValue)):p(t):(o(t),C.commitValidation()),r&&n.setOpen(!1)},setTimeValue:e=>{f&&e?E(f,e):g(e)},granularity:a,hasTime:u,...n,setOpen(t){!t&&!r&&f&&u&&E(f,h||tm(e.placeholderValue)),n.setOpen(t)},validationState:k,isInvalid:S,formatValue(e,t){if(!s)return"";let n=em(t,v);return new Us(e,n).format(s)}}}({...e,validationBehavior:a}),s=t.useRef(null),[u,c]=Ah(),{groupProps:d,labelProps:f,fieldProps:p,buttonProps:h,dialogProps:g,calendarProps:m,descriptionProps:v,errorMessageProps:y,...b}=function(e,n,r){let o=kr(),i=kr(),a=kr(),l=Sa(function(e){return e&&e.__esModule?e.default:e}(up),"@react-aria/datepicker"),{isInvalid:s,validationErrors:u,validationDetails:c}=n.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:h}=Sc({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||u}),g=cp(n,r),m=f["aria-labelledby"]||f.id,{locale:v}=pa(),y=n.formatValue(v,{month:"long"}),b=go(y?l.format("selectedDateDescription",{date:y}):""),w=[b["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=Br(e),C=t.useMemo((()=>Yi(r)),[r]),{focusWithinProps:S}=wi({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Mr(x,g,f,b,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":m,"aria-describedby":w,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...d,onClick:()=>{C.focusFirst()}},fieldProps:{...f,id:a,[fp]:"presentation","aria-describedby":w,value:n.value,onChange:n.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[mc]:n,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:h,buttonProps:{...b,id:o,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${o} ${m}`,"aria-describedby":w,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${o} ${m}`},calendarProps:{autoFocus:!0,value:n.dateValue,onChange:n.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:n.dateValue?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:s,validationErrors:u,validationDetails:c}}({...Fh(e),label:c,validationBehavior:a},l,s),[w,x]=t.useState(null),C=t.useCallback((()=>{s.current&&x(s.current.offsetWidth+"px")}),[]);so({ref:s,onResize:C});let{focusProps:S,isFocused:k,isFocusVisible:E}=ta({within:!0}),O=Ph({...e,values:{state:l,isFocusWithin:k,isFocusVisible:E,isDisabled:e.isDisabled||!1,isInvalid:l.isInvalid,isOpen:l.isOpen},defaultClassName:"react-aria-DatePicker"}),D=Br(e);return delete D.id,t.createElement(jh,{values:[[Zv,l],[yv,{...d,ref:s,isInvalid:l.isInvalid}],[Rv,p],[zh,{...h,isPressed:l.isOpen}],[$m,{...f,ref:u,elementType:"span"}],[mm,m],[Dv,l],[Cv,{trigger:"DatePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":w}}],[Ov,g],[Hh,{slots:{description:v,errorMessage:y}}],[Rm,b]]},t.createElement("div",{...S,...D,...O,ref:n,slot:e.slot||void 0,"data-focus-within":k||void 0,"data-invalid":l.isInvalid||void 0,"data-focus-visible":E||void 0,"data-disabled":e.isDisabled||void 0,"data-open":l.isOpen||void 0}))}const Gv=t.forwardRef(qv);function Yv(e,n){[e,n]=Mh(e,n,Uv);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=dm({...e,validationBehavior:a}),s=t.useRef(null),[u,c]=Ah(),{groupProps:d,labelProps:f,startFieldProps:p,endFieldProps:h,buttonProps:g,dialogProps:m,calendarProps:v,descriptionProps:y,errorMessageProps:b,...w}=function(e,n,r){var o,i;let a=Sa(function(e){return e&&e.__esModule?e.default:e}(up),"@react-aria/datepicker"),{isInvalid:l,validationErrors:s,validationDetails:u}=n.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:p}=Sc({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||s}),h=d["aria-labelledby"]||d.id,{locale:g}=pa(),m=n.formatValue(g,{month:"long"}),v=go(m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):""),y={"aria-label":a.format("startDate"),"aria-labelledby":h},b={"aria-label":a.format("endDate"),"aria-labelledby":h},w=kr(),x=kr(),C=cp(n,r),S=[v["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=t.useMemo((()=>Yi(r,{accept:e=>e.id!==w})),[r,w]),E={[pp]:k,[fp]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},O=Br(e),{focusWithinProps:D}=wi({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),_=t.useRef(hc),j=t.useRef(hc);return{groupProps:Mr(O,C,d,v,D,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...c,onClick:()=>{k.focusFirst()}},buttonProps:{...v,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${h}`,"aria-describedby":S,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:x,"aria-labelledby":`${w} ${h}`},startFieldProps:{...y,...E,value:null===(o=n.value)||void 0===o?void 0:o.start,onChange:e=>n.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,[mc]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){_.current=e,n.updateValidation(xc(e,j.current))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},endFieldProps:{...b,...E,value:null===(i=n.value)||void 0===i?void 0:i.end,onChange:e=>n.setDateTime("end",e),name:e.endName,[mc]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){j.current=e,n.updateValidation(xc(_.current,e))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},descriptionProps:f,errorMessageProps:p,calendarProps:{autoFocus:!0,value:n.dateRange,onChange:n.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:n.dateRange?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:s,validationDetails:u}}({...Fh(e),label:c,validationBehavior:a},l,s),[x,C]=t.useState(null),S=t.useCallback((()=>{s.current&&C(s.current.offsetWidth+"px")}),[]);so({ref:s,onResize:S});let{focusProps:k,isFocused:E,isFocusVisible:O}=ta({within:!0}),D=Ph({...e,values:{state:l,isFocusWithin:E,isFocusVisible:O,isDisabled:e.isDisabled||!1,isInvalid:l.isInvalid,isOpen:l.isOpen},defaultClassName:"react-aria-DateRangePicker"}),_=Br(e);return delete _.id,t.createElement(jh,{values:[[Wv,l],[yv,{...d,ref:s,isInvalid:l.isInvalid}],[zh,{...g,isPressed:l.isOpen}],[$m,{...f,ref:u,elementType:"span"}],[vm,v],[Dv,l],[Cv,{trigger:"DateRangePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":x}}],[Ov,m],[Rv,{slots:{start:p,end:h}}],[Hh,{slots:{description:y,errorMessage:b}}],[Rm,w]]},t.createElement("div",{...k,..._,...D,ref:n,slot:e.slot||void 0,"data-focus-within":E||void 0,"data-invalid":l.isInvalid||void 0,"data-focus-visible":O||void 0,"data-disabled":e.isDisabled||void 0,"data-open":l.isOpen||void 0}))}const Xv=t.forwardRef(Yv);function Jv(e,n){[e,n]=Mh(e,n,ur);let{children:r,level:o=3,className:i,...a}=e,l=`h${o}`;return t.createElement(l,{...a,ref:n,className:null!=i?i:"react-aria-Heading"},r)}const Qv=t.forwardRef(Jv),ey=t.createContext({}),ty=t.createContext(null),ny=t.createContext(null),ry=t.createContext(null);function oy(e){let n=fm(e),r=t.useRef(null),{menuTriggerProps:o,menuProps:i}=bf({...e,type:"menu"},n,r),[a,l]=t.useState(null),s=t.useCallback((()=>{r.current&&l(r.current.offsetWidth+"px")}),[r]);return so({ref:r,onResize:s}),t.createElement(jh,{values:[[ty,i],[Dv,n],[ry,n],[Cv,{trigger:"MenuTrigger",triggerRef:r,placement:"bottom start",style:{"--trigger-width":a}}]]},t.createElement(Go,{...o,ref:r,isPressed:n.isOpen},e.children))}function iy(e,t){return Eh("submenutrigger",e,t,e.children,e.children[0])}function ay(e){let{item:n,parentMenuRef:r}=e;return hh({items:t.useContext(ny).collection.getChildren(n.key),children:e=>{if("item"===e.type)return t.createElement(hy,{item:e,popover:n.rendered[1],parentMenuRef:r,delay:n.props.delay});throw new Error("Unsupported element type in SubmenuTrigger: "+n.type)}})}function ly(e,n){[e,n]=Mh(e,n,ty);let{portal:r,collection:o}=vh(e);return t.createElement(t.Fragment,null,o.size>0&&t.createElement(sy,{props:e,collection:o,menuRef:n}),r)}function sy({props:e,collection:n,menuRef:r}){let o=gm({...e,collection:n,children:void 0}),[i,a]=t.useState(null),{menuProps:l}=function(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=Br(e,{labelable:!0}),{listProps:s}=af({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return wf.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Mr(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:e=>{"Escape"!==e.key&&s.onKeyDown(e)}})}}(e,o,r),s=t.useContext(ry),u=t.useContext(Cv),c=hh({items:o.collection,children:e=>{switch(e.type){case"section":return t.createElement(cy,{section:e,parentMenuRef:r});case"separator":return t.createElement(rv,e.props);case"item":return t.createElement(py,{item:e});case"submenutrigger":return t.createElement(ay,{item:e,parentMenuRef:r});default:throw new Error("Unsupported node type in Menu: "+e.type)}}}),d="SubmenuTrigger"===(null==u?void 0:u.trigger);Di({ref:r,onInteractOutside:e=>{s&&!(null==i?void 0:i.contains(e.target))&&s.close()},isDisabled:d||0===(null==s?void 0:s.expandedKeysStack.length)});let f=t.useRef(null),[p,h]=t.useState({left:0});var g;return t.useEffect((()=>{if(i&&f.current!==i&&0===p.left){f.current=i;let{left:e}=i.getBoundingClientRect();h({left:-1*e})}}),[p,i]),t.createElement(Ni,null,t.createElement("div",{...Br(e),...l,ref:r,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:null!==(g=e.className)&&void 0!==g?g:"react-aria-Menu"},t.createElement(jh,{values:[[ny,o],[tv,{elementType:"div"}],[Cv,{UNSTABLE_portalContainer:i||void 0}]]},c)),t.createElement("div",{ref:a,style:{width:"100vw",position:"absolute",top:0,...p}}))}const uy=t.forwardRef(ly);function cy({section:e,className:n,style:r,parentMenuRef:o,...i}){var a,l;let s=t.useContext(ny),[u,c]=Ah();var d;let{headingProps:f,groupProps:p}=function(e){let{heading:t,"aria-label":n}=e,r=kr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:c,"aria-label":null!==(d=e["aria-label"])&&void 0!==d?d:void 0}),h=hh({items:s.collection.getChildren(e.key),children:e=>{switch(e.type){case"header":{let{ref:n,...r}=e.props;return t.createElement(ev,{...f,...r,ref:Ar(u,n)},e.rendered)}case"item":return t.createElement(py,{item:e});case"submenutrigger":return t.createElement(ay,{item:e,parentMenuRef:o});default:throw new Error("Unsupported element type in Section: "+e.type)}}});return t.createElement("section",{...Br(i),...p,className:n||(null===(a=e.props)||void 0===a?void 0:a.className)||"react-aria-Section",style:r||(null===(l=e.props)||void 0===l?void 0:l.style),ref:e.props.ref},h)}function dy(e,t){return Eh("item",e,t,e.children)}const fy=t.forwardRef(dy);function py({item:e}){var n;let r=t.useContext(ny),o=ao(e.props.ref),{menuItemProps:i,labelProps:a,descriptionProps:l,keyboardShortcutProps:s,...u}=xf({key:e.key,"aria-label":null===(n=e.props)||void 0===n?void 0:n["aria-label"]},r,o),c=e.props,{isFocusVisible:d,focusProps:f}=ta(),{hoverProps:p,isHovered:h}=Oi({isDisabled:u.isDisabled,onHoverStart:e.props.onHoverStart,onHoverChange:e.props.onHoverChange,onHoverEnd:e.props.onHoverEnd}),g=Ph({...c,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...u,isHovered:h,isFocusVisible:d,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),m=c.href?"a":"div";return t.createElement(m,{...Mr(i,f,p),...g,ref:o,"data-disabled":u.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":d||void 0,"data-pressed":u.isPressed||void 0,"data-selected":u.isSelected||void 0,"data-selection-mode":"none"===r.selectionManager.selectionMode?void 0:r.selectionManager.selectionMode},t.createElement(jh,{values:[[Hh,{slots:{label:a,description:l}}],[ey,s]]},g.children))}function hy({item:e,popover:n,parentMenuRef:r,delay:o}){let i=t.useContext(ny),a=Th(Cv),l=ao(e.props.ref),s=t.useContext(ry),u=function(e,n){let{triggerKey:r}=e,{expandedKeysStack:o,openSubmenu:i,closeSubmenu:a,close:l}=n,[s]=t.useState(null==o?void 0:o.length),u=t.useMemo((()=>o[s]===r),[o,r,s]),[c,d]=t.useState(null),f=t.useCallback(((e=null)=>{d(e),i(r,s)}),[i,s,r]),p=t.useCallback((()=>{d(null),a(r,s)}),[a,s,r]),h=t.useCallback(((e=null)=>{d(e),u?p():f(e)}),[p,f,u]);return t.useMemo((()=>({focusStrategy:c,isOpen:u,open:f,close:p,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:h})),[u,f,p,l,c,h,s])}({triggerKey:e.key},s),c=t.useRef(null),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=Of({node:e,parentMenuRef:r,submenuRef:c,delay:o},u,l),{menuItemProps:h,labelProps:g,descriptionProps:m,keyboardShortcutProps:v,...y}=xf({key:e.key,...d},i,l),b=e.props,{hoverProps:w,isHovered:x}=Oi({isDisabled:y.isDisabled}),{isFocusVisible:C,focusProps:S}=ta(),k=Ph({...b,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...y,isHovered:x,isFocusVisible:C,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:u.isOpen}});return t.createElement(jh,{values:[[Hh,{slots:{label:g,description:m}}],[ey,v],[ty,f],[Dv,u],[Cv,{ref:c,trigger:"SubmenuTrigger",triggerRef:l,placement:"end top",UNSTABLE_portalContainer:a.UNSTABLE_portalContainer||void 0,...p}]]},t.createElement("div",{...Mr(h,S,w),...k,ref:l,"data-disabled":y.isDisabled||void 0,"data-hovered":x||void 0,"data-focused":y.isFocused||void 0,"data-focus-visible":C||void 0,"data-pressed":y.isPressed||void 0,"data-selected":y.isSelected||void 0,"data-selection-mode":"none"===i.selectionManager.selectionMode?void 0:i.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":u.isOpen||void 0},k.children),n)}const gy=t.createContext(null),my=t.createContext(null);function vy(e,n){[e,n]=Mh(e,n,gy);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",{locale:l}=pa(),s=function(e){let{minValue:n,maxValue:r,step:o,formatOptions:i,value:a,defaultValue:l=NaN,onChange:s,locale:u,isDisabled:c,isReadOnly:d}=e;null===a&&(a=NaN),void 0===a||isNaN(a)||(a=void 0===o||isNaN(o)?ko(a,n,r):Oo(a,n,r,o)),isNaN(l)||(l=void 0===o||isNaN(o)?ko(l,n,r):Oo(l,n,r,o));let[f,p]=So(a,isNaN(l)?NaN:l,s),[h,g]=t.useState((()=>isNaN(f)?"":new nu(u,i).format(f))),m=t.useMemo((()=>new iu(u,i)),[u,i]),v=t.useMemo((()=>m.getNumberingSystem(h)),[m,h]),y=t.useMemo((()=>new nu(u,{...i,numberingSystem:v})),[u,i,v]),b=t.useMemo((()=>y.resolvedOptions()),[y]),w=t.useCallback((e=>isNaN(e)||null===e?"":y.format(e)),[y]),x=vc({...e,value:f}),C=void 0===o||isNaN(o)?1:o;"percent"!==b.style||void 0!==o&&!isNaN(o)||(C=.01);let[S,k]=t.useState(f),[E,O]=t.useState(u),[D,_]=t.useState(i);Object.is(f,S)&&u===E&&i===D||(g(w(f)),k(f),O(u),_(i));let j=t.useMemo((()=>m.parse(h)),[m,h]),P=(e,t=0)=>{let o=j;if(isNaN(o))return Oo(isNaN(t)?0:t,n,r,C);{let t=Oo(o,n,r,C);return"+"===e&&t>o||"-"===e&&t<o?t:Oo(pm(e,o,C),n,r,C)}},T=t.useMemo((()=>!c&&!d&&(isNaN(j)||void 0===r||isNaN(r)||Oo(j,n,r,C)>j||pm("+",j,C)<=r)),[c,d,n,r,C,j]),M=t.useMemo((()=>!c&&!d&&(isNaN(j)||void 0===n||isNaN(n)||Oo(j,n,r,C)<j||pm("-",j,C)>=n)),[c,d,n,r,C,j]);return{...x,validate:e=>m.isValidPartialNumber(e,n,r),increment:()=>{let e=P("+",n);e===f&&g(w(e)),p(e),x.commitValidation()},incrementToMax:()=>{null!=r&&(p(Oo(r,n,r,C)),x.commitValidation())},decrement:()=>{let e=P("-",r);e===f&&g(w(e)),p(e),x.commitValidation()},decrementToMin:()=>{null!=n&&(p(n),x.commitValidation())},canIncrement:T,canDecrement:M,minValue:n,maxValue:r,numberValue:j,setNumberValue:p,setInputValue:g,inputValue:h,commit:()=>{if(!h.length)return p(NaN),void g(void 0===a?"":w(f));if(isNaN(j))return void g(w(f));let e;e=void 0===o||isNaN(o)?ko(j,n,r):Oo(j,n,r,o),e=m.parse(w(e)),p(e),g(w(void 0===a?e:f))}}}({...e,locale:l,validationBehavior:a}),u=t.useRef(null),[c,d]=Ah(),{labelProps:f,groupProps:p,inputProps:h,incrementButtonProps:g,decrementButtonProps:m,descriptionProps:v,errorMessageProps:y,...b}=eh({...Fh(e),label:d,validationBehavior:a},s,u),w=Ph({...e,values:{state:s,isDisabled:e.isDisabled||!1,isInvalid:b.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),x=Br(e);return delete x.id,t.createElement(jh,{values:[[my,s],[yv,p],[Vm,{...h,ref:u}],[$m,{...f,ref:c}],[zh,{slots:{increment:g,decrement:m}}],[Hh,{slots:{description:v,errorMessage:y}}],[Rm,b]]},t.createElement("div",{...x,...w,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":b.isInvalid||void 0}),e.name&&t.createElement("input",{type:"hidden",name:e.name,value:isNaN(s.numberValue)?"":s.numberValue}))}const yy=t.forwardRef(vy);const by=t.createContext(null),wy=t.createContext(null);function xy(e,n){[e,n]=Mh(e,n,by);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",{collection:l,document:s}=bh(),u=function(e){let n=fg(e),[r,o]=t.useState(null),i=dg({...e,onSelectionChange:t=>{null!=e.onSelectionChange&&e.onSelectionChange(t),n.close(),a.commitValidation()}}),a=vc({...e,value:i.selectedKey}),[l,s]=t.useState(!1);return{...a,...i,...n,focusStrategy:r,open(e=null){0!==i.collection.size&&(o(e),n.open())},toggle(e=null){0!==i.collection.size&&(o(e),n.toggle())},isFocused:l,setFocused:s}}({...e,collection:l,children:void 0,validationBehavior:a}),{isFocusVisible:c,focusProps:d}=ta({within:!0}),f=t.useRef(null),[p,h]=Ah(),{labelProps:g,triggerProps:m,valueProps:v,menuProps:y,descriptionProps:b,errorMessageProps:w,...x}=function(e,n,r){let{keyboardDelegate:o,isDisabled:i,isRequired:a,name:l,validationBehavior:s="aria"}=e,u=mu({usage:"search",sensitivity:"base"}),c=t.useMemo((()=>o||new of(n.collection,n.disabledKeys,null,u)),[o,n.collection,n.disabledKeys,u]),{menuTriggerProps:d,menuProps:f}=bf({isDisabled:i,type:"listbox"},n,r),{typeSelectProps:p}=Qd({keyboardDelegate:c,selectionManager:n.selectionManager,onTypeSelect(e){n.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:m}=n.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:w}=Sc({...e,labelElementType:"span",isInvalid:h,errorMessage:e.errorMessage||g});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let x=Br(e,{labelable:!0}),C=Mr(p,d,y),S=kr();return th.set(n,{isDisabled:i,isRequired:a,name:l,validationBehavior:s}),{labelProps:{...v,onClick:()=>{e.isDisabled||(r.current.focus(),mi("keyboard"))}},triggerProps:Mr(x,{...C,isDisabled:i,onKeyDown:Dr(C.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let t=null!=n.selectedKey?c.getKeyAbove(n.selectedKey):c.getFirstKey();t&&n.setSelectedKey(t);break}case"ArrowRight":{e.preventDefault();let t=null!=n.selectedKey?c.getKeyBelow(n.selectedKey):c.getFirstKey();t&&n.setSelectedKey(t);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[S,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].filter(Boolean).join(" "),onFocus(t){n.isFocused||(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0),n.setFocused(!0))},onBlur(t){n.isOpen||(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),n.setFocused(!1))}}),valueProps:{id:S},menuProps:{...f,autoFocus:n.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:t=>{t.currentTarget.contains(t.relatedTarget)||(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),n.setFocused(!1))},"aria-labelledby":[y["aria-labelledby"],C["aria-label"]&&!y["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:b,errorMessageProps:w,isInvalid:h,validationErrors:g,validationDetails:m}}({...Fh(e),label:h,validationBehavior:a},u,f),[C,S]=t.useState(null),k=t.useCallback((()=>{f.current&&S(f.current.offsetWidth+"px")}),[f]);so({ref:f,onResize:k});let E=t.useMemo((()=>({isOpen:u.isOpen,isFocused:u.isFocused,isFocusVisible:c,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1})),[u.isOpen,u.isFocused,c,e.isDisabled,x.isInvalid,e.isRequired]),O=Ph({...e,values:E,defaultClassName:"react-aria-Select"}),D=Br(e);return delete D.id,t.createElement(t.Fragment,null,t.createElement(Nh,null,t.createElement(jh,{values:[[by,e],[wy,u],[xh,s]]},O.children)),t.createElement(jh,{values:[[by,e],[wy,u],[Sy,v],[$m,{...g,ref:p,elementType:"span"}],[zh,{...m,ref:f,isPressed:u.isOpen}],[Dv,u],[Cv,{trigger:"Select",triggerRef:f,placement:"bottom start",style:{"--trigger-width":C}}],[ov,y],[iv,u],[Hh,{slots:{description:b,errorMessage:w}}],[Rm,x]]},t.createElement("div",{...D,...O,...d,ref:n,slot:e.slot||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":c||void 0,"data-open":u.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":e.isRequired||void 0}),t.createElement(nh,{state:u,triggerRef:f,label:h,name:e.name,isDisabled:e.isDisabled})))}const Cy=t.forwardRef(xy),Sy=t.createContext(null);function ky(e,n){var r,o;[e,n]=Mh(e,n,Sy);let i=t.useContext(wy),{placeholder:a}=Th(by),l=null!=i.selectedKey?i.collection.getItem(i.selectedKey):null,s=null==l?void 0:l.rendered;if("function"==typeof s){s=s({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})}let u=Sa(function(e){return e&&e.__esModule?e.default:e}(Wm),"react-aria-components");var c,d;let f=Ph({...e,defaultChildren:s||a||u.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:null!==(c=null===(r=i.selectedItem)||void 0===r?void 0:r.value)&&void 0!==c?c:null,selectedText:null!==(d=null===(o=i.selectedItem)||void 0===o?void 0:o.textValue)&&void 0!==d?d:null,isPlaceholder:!l}}),p=Br(e);return t.createElement("span",{ref:n,...p,...f,"data-placeholder":!l||void 0},t.createElement(Hh.Provider,{value:void 0},f.children))}const Ey=t.forwardRef(ky),Oy=t.createContext({}),Dy=t.createContext(null);function _y(e,n){[e,n]=Mh(e,n,Dy);let{validationBehavior:r}=Th(Fm)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=t.useRef(null),[s,u]=Ah(),[c,d]=t.useState("input"),{labelProps:f,inputProps:p,descriptionProps:h,errorMessageProps:g,...m}=Df({...Fh(e),inputElementType:c,label:u,validationBehavior:a},l),v=t.useCallback((e=>{l.current=e,e&&d(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),y=Ph({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:m.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),b=Br(e);return delete b.id,t.createElement("div",{...b,...y,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":m.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},t.createElement(jh,{values:[[$m,{...f,ref:s}],[Vm,{...p,ref:v}],[Oy,{...p,ref:v}],[Hh,{slots:{description:h,errorMessage:g}}],[Rm,m]]},y.children))}const jy=t.forwardRef(_y),Py=(e,t)=>!t.includes(e),Ty={shouldForwardProp:e=>Py(e,["zIndex"])},My=[({theme:e,width:t,zIndex:n,autoWidth:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,overflowY:"auto",width:t||(r?"max-content":"var(--trigger-width)"),maxHeight:"inherit",zIndex:n,outline:"none","& > 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))"}})],Ay=U(uy,Ty)(My),Ly=({header:t,body:n,inline:r})=>e.jsxs(Ry,{inline:r,children:[e.jsx(Iy,{slot:"label",children:t}),e.jsx(Ny,{slot:"description",children:n})]}),Ry=U.div((({inline:e})=>({display:"flex",flexDirection:e?"row":"column",alignItems:e?"center":void 0,gap:e?8:void 0}))),Iy=U(Zh)((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Ny=U(Zh)((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),By={shouldForwardProp:e=>Py(e,["selected","noSelect","contentPosition","color","accented"])},Fy=[({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{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",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-focused]":{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})],$y=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:s,inline:u,disabled:c,onClick:d}=t,f=l(t,["id","value","header","body","leftElement","rightElement","inline","disabled","onClick"]);return e.jsxs(zy,Object.assign({id:n||r,textValue:r,onAction:d,isDisabled:c},f,{children:[a||null,o&&i?e.jsx(Ly,{header:o,body:i,inline:u}):r,s&&e.jsx("div",{style:{marginLeft:"auto"},children:s})]}))},zy=U(fy,By)(Fy),Ky=U(Vh)({appearance:"none",border:"none",borderRadius:4,cursor:"pointer",backgroundColor:"transparent",padding:0,color:"inherit"}),Vy=({children:t,position:n="bottom",trigger:r,options:o,offset:i=4,afterShow:a,afterHide:l})=>{var s;const u=r,c=null===(s=null==u?void 0:u.type)||void 0===s?void 0:s.name,d="Button"===c||"BasicButton"===c?u:e.jsx(Hy,{"aria-label":"Menu",children:u});return e.jsxs(oy,{onOpenChange:e=>{a&&e&&a(),l&&!e&&l()},children:[d,e.jsx(kv,{placement:n,offset:i,children:e.jsxs(Ay,{autoWidth:!0,children:[null==o?void 0:o.map((t=>e.jsx($y,Object.assign({},t),t.id||t.value))),t]})})]})};Vy.Item=$y,Vy.Sub=({children:t,label:n,disabled:r})=>e.jsxs(iy,{children:[e.jsx($y,{value:n,disabled:r,rightElement:e.jsx(Zy,{children:e.jsx(Wy,{children:e.jsx(sn,{name:"chevron-right",size:"small",inheritColor:r})})})}),e.jsx(kv,{offset:2,children:e.jsx(Ay,{autoWidth:!0,children:t})})]}),Vy.Separator=()=>e.jsx(Uy,{});const Hy=U(Ky)((({theme:e})=>({"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),Uy=U(rv)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),Zy=U.div({marginLeft:"auto",width:16,height:16}),Wy=U.div({position:"absolute",right:8}),qy=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f,position:p,top:h,bottom:g,right:m,left:v}=t,y=l(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f,position:p,top:h,bottom:g,right:m,left:v};return e.jsx(Gy,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(Xy,{children:e.jsx(sn,Object.assign({},y,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},Gy=U.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),on,an),Yy=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Xy=U.div({animation:`${Yy} 1s linear infinite`,width:"max-content",height:"max-content"}),Jy=({size:t})=>e.jsx(Qy,{className:"button-loader",children:e.jsx(qy,{size:t})}),Qy=U.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),eb=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:u,secondary:c,negative:d,positive:f,caution:p,collapse:h}=n,g=l(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(tb,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let l;if(n>1&&(l=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,m=u||r.props.large,v=a||r.props.size,y=o||r.props.disabled,b=i||r.props.outline,w=c||r.props.secondary,x=d||r.props.negative,C=f||r.props.positive,S=p||r.props.caution,k=h||r.props.collapse,E=t.cloneElement(n,{joined:l,size:v,small:g,large:m,disabled:y,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:k});return"trigger"in e.props?t.cloneElement(e,{trigger:E}):E}return null}))}))}return null},tb=U.div((({width:e})=>({display:"inline-flex",width:e})),on),nb=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=l(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(ob,Object.assign({options:i},a,{children:s})):e.jsx(rb,Object.assign({},a,{children:s}))};nb.Group=eb;const rb=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:u,size:c,small:d,large:f,isLoading:p,collapse:h,backgroundColor:g,color:m,type:v,animation:y,iconAnimation:b,disabled:w}=t,x=l(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation","disabled"]);const{button:C}=n.useTheme(),S=i&&(!r||h),k="right"===a;let E=c||"medium";d?E="small":f&&(E="large");const O=C[E],{iconSize:D}=O,_=h&&i;return e.jsxs(ib,Object.assign({},x,{isDisabled:w,type:v||"button",size:E,iconOnly:S,iconRight:k,joined:u,onPress:o,isLoading:p,color:m,backgroundColor:g,animation:y,children:[i?e.jsx(sn,{size:D,name:i,marginRight:S||k?0:4,marginLeft:!S&&k?4:0,color:s,inheritColor:!s,animation:b}):null,!_&&e.jsx("span",{children:r}),p&&e.jsx(Jy,{size:D})]}))},ob=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:u,negative:c,positive:d,caution:f,outline:p,subtle:h,link:g,size:m,small:v,large:y,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:k,width:E,zIndex:O,disableScrollLock:D,hideDivider:_,gap:j}=n,P=l(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[T,M]=t.useState(!1),A={secondary:u,negative:c,positive:d,caution:f,outline:p,subtle:h,link:g,size:m,small:v,large:y};return e.jsx(ab,{children:e.jsxs(eb,{width:k?void 0:E,children:[e.jsx(rb,Object.assign({},A,P,{disabled:b||w,width:E&&!k?"100%":void 0,collapse:k,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:_,joinedPadding:j,children:r&&e.jsx(lb,{children:r})})),e.jsx(Vy,{options:o,position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),M(!0)},afterHide:()=>{s&&s(),M(!1)},trigger:e.jsx(rb,Object.assign({},A,{icon:T?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:j,disabled:b||x}))})]})})},ib=U(Vh)((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:l,width:s,height:u,animation:c})=>{const d=i||a&&!o,f=n[r],p=s||"max-content",{height:h,font:g,padding:m,iconOnlyPadding:v}=f,y=u||h,b=a||d?v:m;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:l?"row-reverse":"row",fontSize:g,width:d?y:p,height:y,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:d?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:c,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:l,caution:s,secondary:u,isDisabled:c,subtle:d,link:f})=>{const{button:p,size:h}=e;let g=p.primary;d?g=p.subtle:f?g=p.link:c?g=p.disabled:a?g=p.negative:l?g=p.positive:s?g=p.caution:u&&(g=p.secondary);const m=i?g.outlineBackground:g.background;let v=i?g.outlineColor:g.color;if(f||d){let e=p.subtle;f&&(e=p.link),c?v=p.disabled.color:a?v=e.negativeColor:l?v=e.positiveColor:s?v=e.cautionColor:u&&(v=e.secondaryColor)}const y="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:m.default,color:v.default,border:i&&!f?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:m.hover,color:v.hover,borderColor:i&&!c?g.border.hover:void 0},"&:active":{backgroundColor:m.active,color:v.active,borderColor:i&&!c?g.border.active:void 0},"&:disabled":{backgroundColor:d?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:y?0:void 0,borderBottomLeftRadius:y?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:y?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:y&&!n?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?nr:or,i="dark"===e?or:nr;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),on),ab=U.div({display:"inline-flex",flexDirection:"column",position:"relative"}),lb=U.div({marginRight:8}),sb=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:u}=t,c=l(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(cb,Object.assign({},c,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;u&&u(+t)},step:o,width:i,height:a,disabled:s,readOnly:!u}))},ub=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),cb=U.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,l=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${l} 0%, ${l} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":ub(e,o||i),"&::-moz-range-thumb":ub(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),on),db=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:u,small:c,collapsed:d,hideSliderOnStop:f,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:m,onPause:v,onStop:y}=n,b=l(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[k,E]=t.useState(0),[O,D]=t.useState(0),[_,j]=t.useState(""),[P,T]=t.useState(""),M=t.useRef(null),A=()=>{const{current:e}=M;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=M;e&&e.pause()},R=()=>{const{current:e}=M;e&&e.load()};t.useImperativeHandle(r,(()=>({play:A,pause:L,stop:R})),[M,w]);const I=e=>{x(!1),S(!0),y&&y(e)};t.useEffect((()=>{(()=>{const{current:e}=M;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&f,F=C&&p;return e.jsxs(fb,Object.assign({width:a},b,{children:[e.jsx(nb,{outline:!0,small:c,icon:w?"pause":"play",onClick:()=>{w?L():A()},marginRight:8}),!d&&e.jsxs(pb,{alignDataTop:"top"===s,children:[!B&&e.jsx(sb,{value:k,max:O,step:.1,onChange:e=>{(null==M?void 0:M.current)&&(M.current.currentTime=e)}}),e.jsxs(hb,{alignTop:"top"===s,noSlider:B,relative:u||B,children:[i?e.jsx(gb,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(gb,{secondary:!0,fontSize:g,children:[_&&!C?`${_} / `:"",P]})]})]}),e.jsxs("audio",{ref:M,onPlay:e=>{x(!0),S(!1),m&&m(e)},onPause:e=>{x(!1),v&&v(e)},onEmptied:I,onEnded:I,onTimeUpdate:()=>{const{current:e}=M;if(e){const{currentTime:t}=e,n=N(t);E(t),j(n)}},onDurationChange:()=>{const{current:e}=M;if(e){const{duration:t}=e,n=N(t);D(t),T(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),fb=U.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),on),pb=U.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),hb=U.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),gb=U.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var mb={},vb={};Object.defineProperty(vb,"__esModule",{value:!0}),vb.defaultOptions=void 0,vb.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var yb={};Object.defineProperty(yb,"__esModule",{value:!0}),yb.getLocales=yb.getFractionDigits=yb.roundTo=yb.parseValue=void 0,yb.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},yb.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},yb.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},yb.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(mb,"__esModule",{value:!0}),mb.millify=void 0;const bb=vb,wb=yb,xb=1e3;function*Cb(e){let t=xb;for(;;){const n=e/t;if(n<1)return;yield n,t*=xb}}function Sb(e,t){var n,r;const o=t?{...bb.defaultOptions,...t}:bb.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=wb.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let l=0;for(const e of Cb(i))i=e,l+=1;if(l>=o.units.length)return e.toString();let s=wb.roundTo(i,o.precision);for(const e of Cb(s))s=e,l+=1;const u=null!==(n=o.units[l])&&void 0!==n?n:"",c=o.lowercase?u.toLowerCase():u,d=o.space?" ":"";return`${a}${s.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:wb.getLocales(),{minimumFractionDigits:wb.getFractionDigits(s)})}${d}${c}`}mb.millify=Sb;var kb=mb.default=Sb;function Eb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Eb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ob(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Eb(e))&&(r&&(r+=" "),r+=t);return r}var Db=Array.isArray,_b="object"==typeof ot&&ot&&ot.Object===Object&&ot,jb=_b,Pb="object"==typeof self&&self&&self.Object===Object&&self,Tb=jb||Pb||Function("return this")(),Mb=Tb.Symbol,Ab=Mb,Lb=Object.prototype,Rb=Lb.hasOwnProperty,Ib=Lb.toString,Nb=Ab?Ab.toStringTag:void 0;var Bb=function(e){var t=Rb.call(e,Nb),n=e[Nb];try{e[Nb]=void 0;var r=!0}catch(e){}var o=Ib.call(e);return r&&(t?e[Nb]=n:delete e[Nb]),o},Fb=Object.prototype.toString;var $b=Bb,zb=function(e){return Fb.call(e)},Kb=Mb?Mb.toStringTag:void 0;var Vb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Kb&&Kb in Object(e)?$b(e):zb(e)};var Hb=function(e){return null!=e&&"object"==typeof e},Ub=Vb,Zb=Hb;var Wb=function(e){return"symbol"==typeof e||Zb(e)&&"[object Symbol]"==Ub(e)},qb=Db,Gb=Wb,Yb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xb=/^\w*$/;var Jb=function(e,t){if(qb(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Gb(e))||(Xb.test(e)||!Yb.test(e)||null!=t&&e in Object(t))};var Qb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ew=it(Qb),tw=Vb,nw=Qb;var rw,ow=function(e){if(!nw(e))return!1;var t=tw(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},iw=it(ow),aw=Tb["__core-js_shared__"],lw=(rw=/[^.]+$/.exec(aw&&aw.keys&&aw.keys.IE_PROTO||""))?"Symbol(src)_1."+rw:"";var sw=function(e){return!!lw&&lw in e},uw=Function.prototype.toString;var cw=function(e){if(null!=e){try{return uw.call(e)}catch(e){}try{return e+""}catch(e){}}return""},dw=ow,fw=sw,pw=Qb,hw=cw,gw=/^\[object .+?Constructor\]$/,mw=Function.prototype,vw=Object.prototype,yw=mw.toString,bw=vw.hasOwnProperty,ww=RegExp("^"+yw.call(bw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var xw=function(e,t){return null==e?void 0:e[t]},Cw=function(e){return!(!pw(e)||fw(e))&&(dw(e)?ww:gw).test(hw(e))},Sw=xw;var kw=function(e,t){var n=Sw(e,t);return Cw(n)?n:void 0},Ew=kw(Object,"create"),Ow=Ew;var Dw=function(){this.__data__=Ow?Ow(null):{},this.size=0};var _w=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},jw=Ew,Pw=Object.prototype.hasOwnProperty;var Tw=function(e){var t=this.__data__;if(jw){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Pw.call(t,e)?t[e]:void 0},Mw=Ew,Aw=Object.prototype.hasOwnProperty;var Lw=Ew;var Rw=Dw,Iw=_w,Nw=Tw,Bw=function(e){var t=this.__data__;return Mw?void 0!==t[e]:Aw.call(t,e)},Fw=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Lw&&void 0===t?"__lodash_hash_undefined__":t,this};function $w(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$w.prototype.clear=Rw,$w.prototype.delete=Iw,$w.prototype.get=Nw,$w.prototype.has=Bw,$w.prototype.set=Fw;var zw=$w;var Kw=function(){this.__data__=[],this.size=0};var Vw=function(e,t){return e===t||e!=e&&t!=t},Hw=Vw;var Uw=function(e,t){for(var n=e.length;n--;)if(Hw(e[n][0],t))return n;return-1},Zw=Uw,Ww=Array.prototype.splice;var qw=function(e){var t=this.__data__,n=Zw(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ww.call(t,n,1),--this.size,!0)},Gw=Uw;var Yw=function(e){var t=this.__data__,n=Gw(t,e);return n<0?void 0:t[n][1]},Xw=Uw;var Jw=Uw;var Qw=function(e,t){var n=this.__data__,r=Jw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ex=Kw,tx=qw,nx=Yw,rx=function(e){return Xw(this.__data__,e)>-1},ox=Qw;function ix(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ix.prototype.clear=ex,ix.prototype.delete=tx,ix.prototype.get=nx,ix.prototype.has=rx,ix.prototype.set=ox;var ax=ix,lx=kw(Tb,"Map"),sx=zw,ux=ax,cx=lx;var dx=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var fx=function(e,t){var n=e.__data__;return dx(t)?n["string"==typeof t?"string":"hash"]:n.map},px=fx;var hx=fx;var gx=fx;var mx=fx;var vx=function(e,t){var n=mx(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},yx=function(){this.size=0,this.__data__={hash:new sx,map:new(cx||ux),string:new sx}},bx=function(e){var t=px(this,e).delete(e);return this.size-=t?1:0,t},wx=function(e){return hx(this,e).get(e)},xx=function(e){return gx(this,e).has(e)},Cx=vx;function Sx(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sx.prototype.clear=yx,Sx.prototype.delete=bx,Sx.prototype.get=wx,Sx.prototype.has=xx,Sx.prototype.set=Cx;var kx=Sx,Ex=kx;function Ox(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ox.Cache||Ex),n}Ox.Cache=Ex;var Dx=Ox,_x=it(Dx),jx=Dx;var Px=function(e){var t=jx(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Tx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mx=/\\(\\)?/g,Ax=Px((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Tx,(function(e,n,r,o){t.push(r?o.replace(Mx,"$1"):n||e)})),t})),Lx=Ax;var Rx=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Ix=Rx,Nx=Db,Bx=Wb,Fx=Mb?Mb.prototype:void 0,$x=Fx?Fx.toString:void 0;var zx=function e(t){if("string"==typeof t)return t;if(Nx(t))return Ix(t,e)+"";if(Bx(t))return $x?$x.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Kx=zx;var Vx=function(e){return null==e?"":Kx(e)},Hx=Db,Ux=Jb,Zx=Lx,Wx=Vx;var qx=function(e,t){return Hx(e)?e:Ux(e,t)?[e]:Zx(Wx(e))},Gx=Wb;var Yx=function(e){if("string"==typeof e||Gx(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Xx=qx,Jx=Yx;var Qx=function(e,t){for(var n=0,r=(t=Xx(t,e)).length;null!=e&&n<r;)e=e[Jx(t[n++])];return n&&n==r?e:void 0},eC=Qx;var tC=function(e,t,n){var r=null==e?void 0:eC(e,t);return void 0===r?n:r},nC=it(tC);var rC=it((function(e){return null==e})),oC=Vb,iC=Db,aC=Hb;var lC,sC=it((function(e){return"string"==typeof e||!iC(e)&&aC(e)&&"[object String]"==oC(e)})),uC={exports:{}},cC={};var dC,fC={};
|
|
19
19
|
/** @license React v16.13.1
|
|
20
20
|
* react-is.development.js
|
|
21
21
|
*
|
|
@@ -35,7 +35,7 @@ prismjs/prism.js:
|
|
|
35
35
|
* @namespace
|
|
36
36
|
* @public
|
|
37
37
|
*)
|
|
38
|
-
*/;const rJ=({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(oJ,{onClick:()=>{AY(r),i(!0)},copied:o,children:o?e.jsx(sn,{name:"check-circle",color:a.success}):e.jsx(sn,{name:"copy",color:l})})},oJ=U.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}}))),iJ=({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(aJ,Object.assign({},i,{children:[e.jsx(lJ,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(sJ,{children:r}),e.jsx(rJ,{content:r})]}))},aJ=U.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}))),lJ=U.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),sJ=U.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),uJ=U.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),on),cJ=U.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),dJ=U.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),fJ={shouldForwardProp:e=>Py(e,["hide","placeholderColor","isDisabled"])},pJ=[({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","&: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},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})],hJ=U(Zm,fJ)(pJ),gJ=[({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}),nn,on,rn,({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})],mJ=U(Km,{shouldForwardProp:e=>Py(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}))),vJ=U(sv,Ty)(My),yJ=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:s,inline:u}=t,c=l(t,["id","value","header","body","leftElement","rightElement","inline"]);return e.jsxs(bJ,Object.assign({id:n||r,textValue:r},c,{children:[a||null,o&&i?e.jsx(Ly,{header:o,body:i,inline:u}):r,s&&e.jsx("div",{style:{marginLeft:"auto"},children:s})]}))},bJ=U(pv,By)(Fy),wJ=U(ev)((({theme:e})=>({backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}}))),xJ=({id:t,title:n,children:r})=>e.jsxs(Dh,{id:t,children:[n&&e.jsx(wJ,{children:n}),r]}),CJ=n=>{var{backgroundColor:r,children:o,fontSize:i,isDisabled:a,label:s,open:u,options:c,placeholder:d="Select",placeholderColor:f,textOnly:p,value:h,width:g,onChange:m,afterShow:v,afterHide:y,onTextChange:b}=n,w=l(n,["backgroundColor","children","fontSize","isDisabled","label","open","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide","onTextChange"]);const[x,C]=t.useState(u||!1),[S,k]=t.useState(h||""),[E,O]=t.useState((null==h?void 0:h.toString())||""),D=t.useRef(null),{margin:_,marginTop:j,marginBottom:P,marginRight:T,marginLeft:M}=w,A={margin:_,marginTop:j,marginBottom:P,marginRight:T,marginLeft:M};t.useEffect((()=>{h&&h!==S&&k(h)}),[h,S]),t.useEffect((()=>{b&&b(E)}),[E]);return e.jsxs(Lv,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:h?S:void 0},w,{children:[e.jsxs(SJ,Object.assign({ref:D,hasLabel:!!s,width:g,textOnly:p,backgroundColor:r,isDisabled:a},A,{children:[e.jsxs(mJ,{filled:!!E,disabled:a,children:[s,e.jsx(hJ,{placeholder:d,hide:!(E||!s),placeholderColor:f,fontSize:i,isDisabled:a})]}),e.jsx(Ky,{children:e.jsx(sn,{name:x?"caret-up":"caret-down",inheritColor:!0})})]})),e.jsx(Nm,{}),e.jsx(kv,{triggerRef:D,offset:2,isOpen:x,children:e.jsxs(vJ,{autoWidth:p,width:g,children:[null==c?void 0:c.map((t=>e.jsx(yJ,Object.assign({},t),t.id||t.value))),o]})})]}))};CJ.Item=yJ,CJ.Section=xJ;const SJ=U.div(gJ),kJ=U.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 EJ={exports:{}};EJ.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:W(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)&&!u(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 u(e){return l(e)||s(e)}function c(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=u,n.isOrdered=c,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(_)),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 _(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function P(e,t){return M(e,t,0)}function T(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A=0,L=1,R=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=I||N;function F(e){this.next=e}function $(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 z(){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 Z(e){return e&&"number"==typeof e.length}function W(e){return null==e?ae():a(e)?e.toSeq():ue(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()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=A,F.VALUES=L,F.ENTRIES=R,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(W,n),W.of=function(){return W(arguments)},W.prototype.toSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq {","}")},W.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},W.prototype.__iterate=function(e,t){return de(this,e,t,!0)},W.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(q,W),q.prototype.toKeyedSeq=function(){return this},t(G,W),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,W),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},W.isSeq=ie,W.Keyed=q,W.Set=Y,W.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=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(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 ce(e){return Z(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 F((function(){var e=o[n?i-a:a];return a++>i?z():$(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)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(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(){}W.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 F((function(){return o>r?z():$(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 F((function(){var a=r[t?o-i:i];return i++>o?z():$(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 F(z);var r=0;return new F((function(){var t=n.next();return t.done?t:$(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 F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return $(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 j(e,t,n)?this:new be(this._value,T(t,n)-P(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 F((function(){return r<n.size?$(e,r++,n._value):z()}))},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 j(e,t,this.size)?this:(e=P(e,this.size),(t=T(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 F((function(){var a=o;return o+=t?-r:r,i>n?z():$(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 _e(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>Fe?je(e):Pe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Te(e);if("function"==typeof e.toString)return Pe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=Ke[e];return void 0===t&&(t=Pe(e),ze===$e&&(ze=0,Ke={}),ze++,Ke[e]=t),t}function Pe(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return De(t)}function Te(e){var t;if(Ie&&void 0!==(t=Re.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Re.set(e,t);else{if(void 0!==Me&&!1===Me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Be,{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[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Me=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,Ie="function"==typeof WeakMap;Ie&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,$e=255,ze=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)&&!c(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[We])}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 Ze,We="@@__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 $(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 Ze||(Ze=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 ut(e,t,n,r){e||(e=new k);for(var o=new Qe(e,_e(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 ct(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,u=t.length;l<u;l++,s<<=1){var c=t[l];void 0!==c&&l!==r&&(o|=s,a[i++]=c)}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,u=o?b:e.get(s,b),c=mt(u,t,n,r);return c===u?e:c===b?e.remove(s):(o?ot():e).set(s,c)}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[We]=!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,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(S(a),(l||!d)&&S(i),!l||1!==s.length){if(!d&&!l&&s.length>=xt)return ut(e,s,r,o);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[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=_e(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=_e(r));var l=(0===t?n:n>>>t)&y,s=1<<l,u=this.bitmap,c=0!=(u&s);if(!c&&o===b)return this;var d=vt(u&s-1),f=this.nodes,p=c?f[d]:void 0,h=at(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!c&&h&&f.length>=Ct)return dt(e,f,u,l,h);if(c&&!h&&2===f.length&<(f[1^d]))return f[1^d];if(c&&h&&1===f.length&<(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^s:u|s,w=c?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=_e(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=_e(r));var l=(0===t?n:n>>>t)&y,s=o===b,u=this.nodes,c=u[l];if(s&&!c)return this;var d=at(c,e,t+m,n,r,o,i,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<St)return ct(e,u,f,l)}else f++;var p=e&&e===this.ownerID,h=yt(u,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=_e(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,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(S(a),(l||!d)&&S(i),l&&2===c)return new Qe(e,this.keyHash,s[1^u]);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[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,_e(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,F),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 z()};var xt=v/4,Ct=v/2,St=v/4;function kt(e){var t=Lt();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?At(0,r,m,null,new _t(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=Bt(this,e+=this._origin);return n&&n.array[e&y]}return t},kt.prototype.set=function(e,t){return Rt(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):Lt()},kt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},kt.prototype.pop=function(){return Ft(this,0,-1)},kt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},kt.prototype.shift=function(){return Ft(this,1)},kt.prototype.merge=function(){return $t(this,void 0,arguments)},kt.prototype.mergeWith=function(t){return $t(this,t,e.call(arguments,1))},kt.prototype.mergeDeep=function(){return $t(this,pt,arguments)},kt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return $t(this,ht(t),n)},kt.prototype.setSize=function(e){return Ft(this,0,e)},kt.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:Ft(this,P(e,n),T(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Tt?z():$(e,n++,t)}))},kt.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Tt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?At(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 _t(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,_t.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 _t([],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},_t.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 jt,Pt,Tt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=zt(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,u=r-a;return u>v&&(u=v),function(){if(s===u)return Tt;var e=t?--u:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);return c>v&&(c=v),function(){for(;;){if(l){var e=l();if(e!==Tt)return e;l=null}if(u===c)return Tt;var n=t?--c:u++;l=a(s&&s[n],o-m,i+(n<<o))}}}}function At(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 Lt(){return jt||(jt=At(0,0,m))}function Rt(e,t,n){if((t=D(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=zt(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):At(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 u=e&&e.array[l],c=It(u,t,n-m,r,o,i);return c===u?e:((a=Nt(e,t)).array[l]=c,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 _t(e?e.array.slice():[],t)}function Bt(e,t){if(t>=zt(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 Ft(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,u=e._root,c=0;a+c<0;)u=new _t(u&&u.array.length?[void 0,u]:[],r),c+=1<<(s+=m);c&&(a+=c,o+=c,l+=c,i+=c);for(var d=zt(i),f=zt(l);f>=1<<s+m;)u=new _t(u&&u.array.length?[u]:[],r),s+=m;var p=e._tail,h=f<d?Bt(e,l-1):f>d?new _t([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var g=u=Nt(u,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,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(c=0;u;){var w=a>>>s&y;if(w!==f>>>s&y)break;w&&(c+=(1<<s)*w),s-=m,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,s,a-c)),u&&f<d&&(u=u.removeAfter(r,s,f-c)),c&&(a-=c,l-=c)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):At(a,l,s,u,h)}function $t(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],u=o(s);u.size>i&&(i=u.size),a(s)||(u=u.map((function(e){return pe(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function zt(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)&&c(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 Pt||(Pt=Ht(ot(),Lt()))}function Zt(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 Wt(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===R){var r=e.__iterator(t,n);return new F((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===L?A:L,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(R,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return $(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(R,i),l=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],c=s[1];if(t.call(n,c,u,e))return $(o,r?u:l++,c,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=(c(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),j(t,n,o))return e;var i=P(t,o),a=T(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 u=bn(e);return u.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(u.get=function(t,n){return(t=D(this,t))>=0&&t<l?e.get(t+i,n):n}),u.__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,u=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==l})),u},u.__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 F((function(){for(;a++<i;)o.next();if(++s>l)return z();var e=o.next();return r||t===L?e:$(t,s-1,t===A?void 0:e.value[1],e)}))},u}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(R,o),l=!0;return new F((function(){if(!l)return z();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],u=o[1];return t.call(n,u,s,i)?r===R?e:$(r,s,u,e):(l=!1,z())}))},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,u){if(!l||!(l=t.call(n,e,i,u)))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(R,i),s=!0,u=0;return new F((function(){var e,i,c;do{if((e=l.next()).done)return r||o===L?e:$(o,u++,o===A?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],s&&(s=t.call(n,c,i,a))}while(s);return o===R?e:$(o,i,c,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 u=new te(o);return n?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,u){var c=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?s(e,u+1):!1===r(e,n?o:i++,c)&&(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 F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===R&&(u=u[1]),t&&!(l.length<t)||!a(u))return n?e:$(r,s++,u,e);l.push(i),i=u.__iterator(r,o)}else i=l.pop()}return z()}))},r}function un(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 cn(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(L,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?$(n,a++,t):$(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(L,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 F((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?z():$(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):W.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(!Z(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 Zt(this,e,t)},Kt.prototype.remove=function(e){return Zt(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(Wt,q),Wt.prototype.get=function(e,t){return this._iter.get(e,t)},Wt.prototype.has=function(e){return this._iter.has(e)},Wt.prototype.valueSeq=function(){return this._iter.valueSeq()},Wt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Wt.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},Wt.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)},Wt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:$(e,t?--r:r++,o.value,o)}))},Wt.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(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:$(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(L,t);return new F((function(){var t=n.next();return t.done?t:$(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(L,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var o=a(r);return $(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Wt.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(_n.bind(void 0,e))}catch(e){}}function _n(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 jn(e){return null==e?In():Pn(e)&&!c(e)?e:In().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Pn(e){return!(!e||!e[Mn])}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(jn,Ee),jn.of=function(){return this(arguments)},jn.fromKeys=function(e){return this(r(e).keySeq())},jn.prototype.toString=function(){return this.__toString("Set {","}")},jn.prototype.has=function(e){return this._map.has(e)},jn.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},jn.prototype.remove=function(e){return Ln(this,this._map.remove(e))},jn.prototype.clear=function(){return Ln(this,this._map.clear())},jn.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])},jn.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)}))}))},jn.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)}))}))},jn.prototype.merge=function(){return this.union.apply(this,arguments)},jn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},jn.prototype.sort=function(e){return Nn(dn(this,e))},jn.prototype.sortBy=function(e,t){return Nn(dn(this,t,e))},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},jn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},jn.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)},jn.isSet=Pn;var Tn,Mn="@@__IMMUTABLE_SET__@@",An=jn.prototype;function Ln(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 Rn(e,t){var n=Object.create(An);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Tn||(Tn=Rn(ot()))}function Nn(e){return null==e?Kn():Bn(e)?e:Kn().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Pn(e)&&c(e)}An[Mn]=!0,An[g]=An.remove,An.mergeDeep=An.merge,An.mergeDeepWith=An.mergeWith,An.withMutations=qe.withMutations,An.asMutable=qe.asMutable,An.asImmutable=qe.asImmutable,An.__empty=In,An.__make=Rn,t(Nn,jn),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=Bn;var Fn,$n=Nn.prototype;function zn(e,t){var n=Object.create($n);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return Fn||(Fn=zn(Ut()))}function Vn(e){return null==e?Gn():Hn(e)?e:Gn().unshiftAll(e)}function Hn(e){return!(!e||!e[Zn])}$n[h]=!0,$n.__empty=Kn,$n.__make=zn,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(j(e,t,this.size))return this;var n=P(e,this.size);if(T(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 F((function(){if(r){var t=r.value;return r=r.next,$(e,n++,t)}return z()}))},Vn.isStack=Hn;var Un,Zn="@@__IMMUTABLE_STACK__@@",Wn=Vn.prototype;function qn(e,t,n,r){var o=Object.create(Wn);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}Wn[Zn]=!0,Wn.withMutations=qe.withMutations,Wn.asMutable=qe.asMutable,Wn.asImmutable=qe.asImmutable,Wn.wasAltered=qe.wasAltered,n.Iterator=F,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 Wt(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 jn(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(R)},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(A)},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(L)},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(_)},flatMap:function(e,t){return gn(this,un(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[B]=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=c(e),n=l(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sr(_e(e),_e(t))|0}:function(e,t){r=r+sr(_e(e),_e(t))|0}:t?function(e){r=31*r+_e(e)|0}:function(e){r=r+_e(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[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Wt(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=P(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,cn(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 ur={Iterable:n,Seq:W,Collection:Ce,Map:He,OrderedMap:Kt,List:kt,Stack:Vn,Set:jn,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ve,fromJS:pe};return ur}();var OJ=EJ.exports,DJ=OJ.OrderedMap,_J={createFromArray:function(e){return DJ(e.map((function(e){return[e.getKey(),e]})))}};var jJ=OJ,PJ=jJ.Map,TJ=jJ.OrderedSet,MJ=jJ.Record,AJ=TJ(),LJ={style:AJ,entity:null},RJ=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 IJ;var t=PJ({style:AJ,entity:null}).merge(e),n=NJ.get(t);if(n)return n;var o=new r(t);return NJ=NJ.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?TJ(t):t,entity:Array.isArray(n)?TJ(n):n})},r}(MJ(LJ)),IJ=new RJ,NJ=PJ([[PJ(LJ),IJ]]);RJ.EMPTY=IJ;var BJ=RJ;var FJ=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 $J=BJ,zJ=FJ,KJ=OJ,VJ=KJ.List,HJ=KJ.Map,UJ=KJ.OrderedSet,ZJ=KJ.Record,WJ=KJ.Repeat,qJ=UJ(),GJ=ZJ({key:"",type:"unstyled",text:"",characterList:VJ(),depth:0,data:HJ()}),YJ=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=VJ(WJ($J.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():qJ},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){zJ(this.getCharacterList(),XJ,e,t)},o.findEntityRanges=function(e,t){zJ(this.getCharacterList(),JJ,e,t)},r}(GJ);function XJ(e,t){return e.getStyle()===t.getStyle()}function JJ(e,t){return e.getEntity()===t.getEntity()}var QJ=YJ;var eQ=BJ,tQ=FJ,nQ=OJ,rQ=nQ.List,oQ=nQ.Map,iQ=nQ.OrderedSet,aQ=nQ.Record,lQ=nQ.Repeat,sQ=iQ(),uQ={parent:null,characterList:rQ(),data:oQ(),depth:0,key:"",text:"",type:"unstyled",children:rQ(),prevSibling:null,nextSibling:null},cQ=function(e,t){return e.getStyle()===t.getStyle()},dQ=function(e,t){return e.getEntity()===t.getEntity()},fQ=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uQ;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=rQ(lQ(eQ.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():sQ},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){tQ(this.getCharacterList(),cQ,e,t)},o.findEntityRanges=function(e,t){tQ(this.getCharacterList(),dQ,e,t)},r}(aQ(uQ)),pQ=fQ,hQ=BJ,gQ=OJ.Map;function mQ(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).concat(gQ([[l,o.get(l)]])).map((function(e,t){var o,u;i===l?(o=a,u=s):(o=t===i?a:0,u=t===l?s:e.getLength());for(var c,d=e.getCharacterList();o<u;)c=d.get(o),d=d.set(o,r?hQ.applyStyle(c,n):hQ.removeStyle(c,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var vQ={add:function(e,t,n){return mQ(e,t,n,!0)},remove:function(e,t,n){return mQ(e,t,n,!1)}},yQ=BJ;var bQ=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,yQ.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},wQ=OJ;var xQ=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(wQ.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,s=t===a?l:e.getLength();return bQ(e,r,s,n)}));return e.merge({blockMap:r.merge(s),selectionBefore:t,selectionAfter:t})},CQ={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,u=null,c=0;c<i.length;c++){if(e<(a=l+i[c].length)&&l<t)null!==s||(s=l),u=a;else if(null!==s)break;l=a}var d=r+n.length,f=s===r,p=u===d;return(!f&&p||f&&!p)&&("forward"===o?u!==d&&u++:s!==r&&s--),{start:s,end:u}}},SQ="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var kQ=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(SQ(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}},EQ=kQ;var OQ=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?EQ(!1,"Entity key not found in this range."):EQ(!1)),n},DQ=CQ,_Q=OQ,jQ=kQ;function PQ(e,t,n,r,o,i,a){var l=n.getStartOffset(),s=n.getEndOffset(),u=e.__get(o).getMutability(),c=a?l:s;if("MUTABLE"===u)return n;var d=_Q(t,o).filter((function(e){return c<=e.end&&c>=e.start}));1!=d.length&&("production"!==process.env.NODE_ENV?jQ(!1,"There should only be one entity range within this removal range."):jQ(!1));var f=d[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:l=f.start);var p=DQ.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 TQ=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 u=r;if(l&&l===s)u=PQ(e,t,u,o,l,!0,!0);else if(l&&s){var c=PQ(e,t,u,o,l,!1,!0),d=PQ(e,n,u,o,s,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(l){var f=PQ(e,t,u,o,l,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var p=PQ(e,n,u,o,s,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u},MQ={},AQ=Math.pow(2,24);var LQ=function(){for(var e;void 0===e||MQ.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*AQ).toString(32);return MQ[e]=!0,e},RQ=pQ,IQ=LQ,NQ=OJ.OrderedMap,BQ=function(e){return e.first()instanceof RQ?function(e){var t,n={};return NQ(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),u=r.getParentKey(),c=IQ();if(n[i]=c,a&&(e.get(a)?e.setIn([a,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(r.getKey()),c))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):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 NQ(e.toArray().map((function(e){var t=IQ();return[t,e.set("key",t)]})))}(e)},FQ=BJ,$Q=FJ,zQ=kQ;function KQ(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,u=function(e,t,n){var r;return $Q(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?zQ(!1,"Removal range must exist within character list."):zQ(!1)),r}(r,l,n),c=u.start,d=u.end;c<d;)s=r.get(c),r=r.set(c,FQ.applyEntity(s,null)),c++;return t.set("characterList",r)}return t}var VQ=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),l=n.get(i),s=KQ(r,l,a);s!==l&&(o[i]=s);var u=t.getEndKey(),c=t.getEndOffset(),d=n.get(u);i===u&&(d=s);var f=KQ(r,d,c);return f!==d&&(o[u]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},HQ=BQ,UQ=VQ,ZQ=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=UQ(e,t).getBlockMap(),l=a.keySeq(),s=l.indexOf(n),u=l.indexOf(o)+1;return HQ(a.slice(s,u).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 WQ=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},qQ=_J,GQ=pQ,YQ=WQ,XQ=kQ,JQ=BQ,QQ=OJ.List,e1=function(e,t,n,r,o,i){var a=n.first()instanceof GQ,l=[],s=r.size,u=n.get(o),c=r.first(),d=r.last(),f=d.getLength(),p=d.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!c.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=qQ.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),u=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([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var c=e.get(l).getChildKeys(),d=c.indexOf(o)+1,f=c.toArray();f.splice.apply(f,[d,0].concat(s)),t.setIn([l,"children"],QQ(f))}}))}(g,0,u,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},t1=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?XQ(!1,"`insertFragment` should only be called with a collapsed selection state."):XQ(!1));var o=e.getBlockMap(),i=JQ(n),a=t.getStartKey(),l=t.getStartOffset(),s=o.get(a);return s instanceof GQ&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?XQ(!1,"`insertFragment` should not be called when a container node is selected."):XQ(!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(),u=l.getCharacterList(),c=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:YQ(u,r.getCharacterList(),i),type:p,data:f});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:d,focusKey:c,focusOffset:d,isBackward:!1})})}(e,t,o,i.first(),a,l,r):e1(e,t,o,i,a,l)},n1=WQ,r1=kQ,o1=OJ.Repeat;var i1=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?r1(!1,"`insertText` should only be called with a collapsed range."):r1(!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),u=s.getText(),c=s.merge({text:u.slice(0,l)+n+u.slice(l,s.getLength()),characterList:n1(s.getCharacterList(),o1(r,o).toList(),l)}),d=l+o;return e.merge({blockMap:i.set(a,c),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},a1=OJ.Map;var l1=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(a1([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},s1=pQ,u1=function(e,t){if(!(e instanceof s1))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},c1=pQ,d1=u1,f1=OJ;f1.List;var p1=f1.Map,h1=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},g1=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},m1=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},v1=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},y1=function(e,t,n,r){return e.withMutations((function(o){if(h1(t.getKey(),o,(function(e){return e.merge({nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})})),h1(n.getKey(),o,(function(e){return e.merge({nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})})),g1(t.getKey(),r).forEach((function(e){return h1(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})}))})),h1(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),h1(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:m1(e,o,r)})})),h1(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:v1(e,o,r)})})),h1(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),g1(n.getKey(),r).forEach((function(e){h1(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=d1(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?d1(o,t):null}return n}(n,r).forEach((function(e){return h1(e,o,(function(e){return e.merge({nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();h1(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),h1(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){h1(e,o,(function(e){return e.merge({parent:l})}))})),null!=l){var s=e.get(l);h1(l,o,(function(e){return e.merge({children:s.getChildKeys().concat(t.getChildKeys())})}))}h1(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},b1=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},w1=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),u=r.get(a),c=s instanceof c1,d=[];if(c){var f=u.getChildKeys(),p=g1(a,r);u.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([a]))),d=d.concat(g1(d1(u,r),r))}n=s===u?b1(s.getCharacterList(),i,l):s.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(l));var h=s.merge({text:s.getText().slice(0,i)+u.getText().slice(l),characterList:n}),g=c&&0===i&&0===l&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?p1([[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(p1([[a,null]])).map((function(e,t){return t===o?h:null})),m=r.merge(g).filter((function(e){return!!e}));return c&&s!==u&&(m=y1(m,s,u,r)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},x1=pQ,C1=LQ,S1=OJ,k1=kQ,E1=l1,O1=S1.List,D1=S1.Map,_1=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},j1=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?k1(!1,"Selection range must be collapsed."):k1(!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 E1(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var l=t.getAnchorOffset(),s=o.getCharacterList(),u=C1(),c=o instanceof x1,d=o.merge({text:i.slice(0,l),characterList:s.slice(0,l)}),f=d.merge({key:u,text:i.slice(l),characterList:s.slice(l),data:D1()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,d],[u,f]],h).toOrderedMap();return c&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?k1(!1,"ContentBlockNode must not have children"):k1(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();_1(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:O1(i)})})),_1(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),_1(r,e,(function(e){return e.merge({nextSibling:o})})),_1(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},P1=BJ,T1=vQ,M1=xQ,A1=TQ,L1=ZQ,R1=t1,I1=i1,N1=kQ,B1=l1,F1=VQ,$1=w1,z1=j1,K1=OJ.OrderedSet,V1={replaceText:function(e,t,n,r,o){var i=F1(e,t),a=$1(i,t),l=P1.create({style:r||K1(),entity:o||null});return I1(a,a.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?N1(!1,"Target range must be collapsed for `insertText`."):N1(!1)),V1.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=L1(e,t),o=V1.removeRange(e,t,"backward");return V1.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=F1(e,t),i=$1(o,t);return R1(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(),u=i.getEntityAt(l),c=a.getEntityAt(s-1);if(r===o&&u&&u===c){var d=A1(e.getEntityMap(),i,a,t,n);return $1(e,d)}var f=F1(e,t);return $1(f,t)},splitBlock:function(e,t){var n=F1(e,t),r=$1(n,t);return z1(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return T1.add(e,t,n)},removeInlineStyle:function(e,t,n){return T1.remove(e,t,n)},setBlockType:function(e,t,n){return B1(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return B1(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return B1(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=F1(e,t);return M1(r,t,n)}},H1=V1;var U1=function(e){return Object.keys(e).map((function(t){return e[t]}))};function Z1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W1=FJ,q1=U1,G1=OJ,Y1=G1.List,X1=G1.Repeat,J1=G1.Record,Q1=function(){return!0},e0=J1({start:null,end:null}),t0=J1({start:null,end:null,decoratorKey:null,leaves:null}),n0={generate:function(e,t,n){var r=t.getLength();if(!r)return Y1.of(new t0({start:0,end:0,decoratorKey:null,leaves:Y1.of(new e0({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):Y1(X1(null,r)),a=t.getCharacterList();return W1(i,o0,Q1,(function(e,t){o.push(new t0({start:e,end:t,decoratorKey:i.get(e),leaves:r0(a.slice(e,t).toList(),e)}))})),Y1(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 t0(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){Z1(e,t,n[t])}))}return e}({},n,{leaves:null!=t?Y1(Array.isArray(t)?t:q1(t)).map((function(e){return e0(e)})):null}))}};function r0(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return W1(r,o0,Q1,(function(e,r){n.push(new e0({start:e+t,end:r+t}))})),Y1(n)}function o0(e,t){return e===t}var i0=n0;var a0=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,OJ.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),l0=a0;var s0=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 u0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c0=l0,d0=kQ,f0=s0,p0=(0,OJ.Map)(),h0=f0();function g0(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var m0={getLastCreatedEntityKey:function(){return g0("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),m0.__getLastCreatedEntityKey()},create:function(e,t,n){return g0("DraftEntity.create","contentState.createEntity"),m0.__create(e,t,n)},add:function(e){return g0("DraftEntity.add","contentState.addEntity"),m0.__add(e)},get:function(e){return g0("DraftEntity.get","contentState.getEntity"),m0.__get(e)},__getAll:function(){return p0},__loadWithEntities:function(e){p0=e,h0=f0()},mergeData:function(e,t){return g0("DraftEntity.mergeData","contentState.mergeEntityData"),m0.__mergeData(e,t)},replaceData:function(e,t){return g0("DraftEntity.replaceData","contentState.replaceEntityData"),m0.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return h0},__create:function(e,t,n){return m0.__add(new c0({type:e,mutability:t,data:n||{}}))},__add:function(e){return h0=f0(),p0=p0.set(h0,e),h0},__get:function(e){var t=p0.get(e);return t||("production"!==process.env.NODE_ENV?d0(!1,"Unknown DraftEntity key: %s.",e):d0(!1)),t},__mergeData:function(e,t){var n=m0.__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){u0(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return p0=p0.set(e,o),o},__replaceData:function(e,t){var n=m0.__get(e).set("data",t);return p0=p0.set(e,n),n}},v0=m0;var y0=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,OJ.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),b0=y0,w0=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},x0=new RegExp("\r","g");var C0=function(e){return e.replace(x0,"")};function S0(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){k0(e,t,n[t])}))}return e}function k0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E0=_J,O0=BJ,D0=QJ,_0=pQ,j0=v0,P0=b0,T0=LQ,M0=U1,A0=w0,L0=OJ,R0=C0,I0=L0.List,N0=L0.Record,B0=L0.Repeat,F0=L0.Map,$0=L0.OrderedMap,z0=N0({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),K0=A0("draft_tree_data_support")?_0:D0,V0=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 j0},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 j0.__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 j0.__create(e,t,n),this},o.mergeEntityData=function(e,t){return j0.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return j0.__replaceData(e,t),this},o.addEntity=function(e){return j0.__add(e),this},o.getEntity=function(e){return j0.__get(e)},o.getAllEntities=function(){return j0.__getAll()},o.loadWithEntities=function(e){return j0.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=E0.createFromArray(n),i=o.isEmpty()?new P0:P0.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||j0,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=R0(e),new K0({key:T0(),text:e,type:"unstyled",characterList:I0(B0(O0.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(S0({},e,{blockMap:$0(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new P0(e.selectionBefore),selectionAfter:new P0(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new K0(S0({},e,{data:F0(e.data),characterList:null!=t?I0((Array.isArray(t)?t:M0(t)).map((function(e){return O0.fromJS(e)}))):void 0}))},r}(z0),H0=V0,U0=kQ,Z0="LTR",W0="RTL",q0=null;function G0(e){return e===Z0||e===W0}function Y0(e){return G0(e)||("production"!==process.env.NODE_ENV?U0(!1,"`dir` must be a strong direction to be converted to HTML Direction"):U0(!1)),e===Z0?"ltr":"rtl"}function X0(e){q0=e}var J0={NEUTRAL:"NEUTRAL",LTR:Z0,RTL:W0,isStrong:G0,getHTMLDir:Y0,getHTMLDirIfDifferent:function(e,t){return G0(e)||("production"!==process.env.NODE_ENV?U0(!1,"`dir` must be a strong direction to be converted to HTML Direction"):U0(!1)),G0(t)||("production"!==process.env.NODE_ENV?U0(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):U0(!1)),e===t?null:Y0(e)},setGlobalDir:X0,initGlobalDir:function(){X0(Z0)},getGlobalDir:function(){return q0||this.initGlobalDir(),q0||("production"!==process.env.NODE_ENV?U0(!1,"Global direction not set."):U0(!1)),q0}},Q0=J0,e2=kQ,t2="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",n2="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",r2=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+t2+n2+"]"),o2=new RegExp("["+t2+n2+"]");function i2(e){var t=r2.exec(e);return null==t?null:t[0]}function a2(e){var t=i2(e);return null==t?Q0.NEUTRAL:o2.exec(t)?Q0.RTL:Q0.LTR}function l2(e,t){if(t=t||Q0.NEUTRAL,!e.length)return t;var n=a2(e);return n===Q0.NEUTRAL?t:n}function s2(e,t){return t||(t=Q0.getGlobalDir()),Q0.isStrong(t)||("production"!==process.env.NODE_ENV?e2(!1,"Fallback direction must be a strong direction"):e2(!1)),l2(e,t)}var u2={firstStrongChar:i2,firstStrongCharDir:a2,resolveBlockDir:l2,getDirection:s2,isDirectionLTR:function(e,t){return s2(e,t)===Q0.LTR},isDirectionRTL:function(e,t){return s2(e,t)===Q0.RTL}};function c2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d2,f2=u2,p2=J0,h2=kQ,g2=function(){function e(e){c2(this,"_defaultDir",void 0),c2(this,"_lastDir",void 0),e?p2.isStrong(e)||("production"!==process.env.NODE_ENV?h2(!1,"Default direction must be a strong direction (LTR or RTL)"):h2(!1)):e=p2.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=f2.getDirection(e,this._lastDir),this._lastDir},e}(),m2=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},v2=g2,y2=OJ,b2=m2,w2=y2.OrderedMap;function x2(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){C2(e,t,n[t])}))}return e}function C2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S2=i0,k2=H0,E2={getDirectionMap:function(e,t){d2?d2.reset():d2=new v2;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return b2(d2).getDirection(e.getText())})),o=w2(n.keySeq().zip(r));return null!=t&&y2.is(t,o)?t:o}},O2=b0,D2=OJ,_2=D2.OrderedSet,j2=D2.Record,P2=D2.Stack,T2=D2.OrderedMap,M2=D2.List,A2=j2({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:P2(),selection:null,treeMap:null,undoStack:P2()}),L2=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(k2.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:P2(),redoStack:P2(),decorator:n||null,selection:O2.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=x2({},e,{treeMap:I2(n,e.decorator),directionMap:E2.getDirectionMap(n)});return new t(new A2(r))},t.fromJS=function(e){return new t(new A2(x2({},e,{directionMap:null!=e.directionMap?T2(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?_2(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?k2.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?P2(e.redoStack.map((function(e){return k2.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new O2(e.selection):e.selection,treeMap:null!=e.treeMap?T2(e.treeMap).map((function(e){return M2(e).map((function(e){return S2.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?P2(e.undoStack.map((function(e){return k2.fromJS(e)}))):e.undoStack,currentContent:k2.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 S2.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):I2(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 S2.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){C2(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 N2(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 N2(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 R2(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),R2(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new O2({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=E2.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(),u=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),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",l.getSelectionBefore()));var c=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(c=null);var d={currentContent:u,directionMap:i,undoStack:s,redoStack:P2(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:c};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=E2.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=E2.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 R2(e,t,n){return L2.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function I2(e,t){return e.getBlockMap().map((function(n){return S2.generate(e,n,t)})).toOrderedMap()}function N2(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):_2()}var B2=L2,F2=pQ,$2=u1,z2=OJ,K2=kQ,V2=z2.OrderedMap,H2=z2.List,U2=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Z2=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),s=t.getParentKey(),u=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),d=n.getParentKey(),f=i?n.getNextSiblingKey():l,p=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){U2(s,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),U2(c,e,(function(e){return e.merge({nextSibling:u})})),U2(u,e,(function(e){return e.merge({prevSibling:c})})),U2(f,e,(function(e){return e.merge({prevSibling:a})})),U2(p,e,(function(e){return e.merge({nextSibling:a})})),U2(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:H2(o)})})),U2(a,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))};function W2(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){q2(e,t,n[t])}))}return e}function q2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G2=_J,Y2=BJ,X2=QJ,J2=pQ,Q2=H1,e5=B2,t5=LQ,n5=OJ,r5=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?K2(!1,"Replacing blocks is not supported."):K2(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?K2(!1,"Block cannot be moved next to itself."):K2(!1));var a=e.getBlockMap(),l=t instanceof F2,s=[t],u=a.delete(i);l&&(s=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=$2(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 c=u.toSeq().takeUntil((function(e){return e===n})),d=u.toSeq().skipUntil((function(e){return e===n})).skip(1),f=s.map((function(e){return[e.getKey(),e]})),p=V2();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?K2(!1,"Block cannot be moved next to itself."):K2(!1)),p=c.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?K2(!1,"Block cannot be moved next to itself."):K2(!1)),p=c.concat([[o,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:Z2(p,t,n,r,l),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},o5=w0("draft_tree_data_support"),i5=o5?J2:X2,a5=n5.List,l5=n5.Repeat,s5={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=Q2.removeRange(r,o,"backward"),a=i.getSelectionAfter(),l=Q2.splitBlock(i,a),s=l.getSelectionAfter(),u=Q2.setBlockType(l,s,"atomic"),c=Y2.create({entity:t}),d={key:t5(),type:"atomic",text:n,characterList:a5(l5(c,n.length))},f={key:t5(),type:"unstyled"};o5&&(d=W2({},d,{nextSibling:f.key}),f=W2({},f,{prevSibling:d.key}));var p=[new i5(d),new i5(f)],h=G2.createFromArray(p),g=Q2.replaceWithFragment(u,s,h),m=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return e5.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=r5(i,t,l,r)}else{var s=Q2.removeRange(i,n,"backward"),u=s.getSelectionAfter(),c=s.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=r5(s,t,c,"before");else if(u.getEndOffset()===c.getLength())o=r5(s,t,c,"after");else{var d=Q2.splitBlock(s,u),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());o=r5(d,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return e5.push(e,h,"move-block")}};var u5=OJ.List,c5=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)})),u5(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 d5=c5;function f5(e){return e.replace(/\//g,"-")}var p5=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(f5).join(" "):Array.prototype.map.call(arguments,f5).join(" ")},h5=t,g5=p5,m5=(0,OJ.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:h5.createElement("ul",{className:g5("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:h5.createElement("ol",{className:g5("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:h5.createElement("pre",{className:g5("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),v5={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},y5={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",u="model",c="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",_="Google",j="Huawei",P="LG",T="Microsoft",M="Motorola",A="Opera",L="Samsung",R="Sharp",I="Sony",N="Xiaomi",B="Zebra",F="Facebook",$="Chromium OS",z="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)},Z=function(e,t){for(var n,i,l,s,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(l=0;l<p.length;l++)c=u[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;d+=2}},W=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,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,A]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"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],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[c,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[p,[c,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+E]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+E],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,L+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,F],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],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,W,{"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],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,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],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[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],[u,[f,L],[d,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,L],[d,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,C],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,C],[d,v]],[/(macintosh);/i],[u,[f,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,R],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,j],[d,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,j],[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],[[u,/_/g," "],[f,N],[d,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/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],[u,[f,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[d,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[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],[u,[f,M],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,M],[d,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,P],[d,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,P],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[d,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[d,m]],[/(pixel c)\b/i],[u,[f,_],[d,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,_],[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],[u,[f,I],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,I],[d,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,x],[d,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,x],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[d,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,k],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,S],[d,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,S],[d,m]],[/(nexus 9)/i],[u,[f,"HTC"],[d,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[d,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[d,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[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,u,[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,u,[d,v]],[/(surface duo)/i],[u,[f,T],[d,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[d,m]],[/(u304aa)/i],[u,[f,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[d,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[d,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[d,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[d,v]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[d,v]],[/\b(k88) b/i],[u,[f,"ZTE"],[d,v]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[d,v]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[d,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[d,v]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[d,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[d,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[d,m]],[/\b(ph-1) /i],[u,[f,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[d,v]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[d,v]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[d,v]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[d,v]],[/(sprint) (\w+)/i],[f,u,[d,m]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,T],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,B],[d,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,B],[d,m]],[/smart-tv.+(samsung)/i],[f,[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,L],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,P],[d,y]],[/(apple) ?tv/i],[f,[u,C+" TV"],[d,y]],[/crkey/i],[[u,O+"cast"],[f,_],[d,y]],[/droid.+aft(\w+)( bui|\))/i],[u,[f,x],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,R],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,I],[d,y]],[/(mitv-\w{5}) bui/i],[u,[f,N],[d,y]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,U],[u,U],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[d,g]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[u,[f,I],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,T],[d,g]],[/((pebble))app/i],[f,u,[d,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,C],[d,b]],[/droid.+; (glass) \d/i],[u,[f,_],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,B],[d,b]],[/(quest( 2| pro)?)/i],[u,[f,F],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[u,[f,x],[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[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],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"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],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[c,[p,W,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,W,q],[c,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,z],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,$],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],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"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],[c,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[c]=r,t[p]=r,Z.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[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,Z.call(e,y,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[u]=r,e[d]=r,Z.call(e,y,w.device),x&&!e[d]&&b&&b.mobile&&(e[d]=m),x&&"Macintosh"==e[u]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[u]="iPad",e[d]=v),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,Z.call(e,y,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,Z.call(e,y,w.os),x&&!e[c]&&b&&"Unknown"!=b.platform&&(e[c]=b.platform.replace(/chrome os/i,$).replace(/macos/i,z)),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([c,p,s]),Y.CPU=K([h]),Y.DEVICE=K([u,f,d,g,m,y,v,b,w]),Y.ENGINE=Y.OS=K([c,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:ot)}(y5,y5.exports);var b5="Unknown",w5={"Mac OS":"Mac OS X"};var x5,C5=(new(0,y5.exports)).getResult(),S5=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(C5.browser.version),k5={browserArchitecture:C5.cpu.architecture||b5,browserFullVersion:C5.browser.version||b5,browserMinorVersion:S5.minor||b5,browserName:C5.browser.name||b5,browserVersion:C5.browser.major||b5,deviceName:C5.device.model||b5,engineName:C5.engine.name||b5,engineVersion:C5.engine.version||b5,platformArchitecture:C5.cpu.architecture||b5,platformName:(x5=C5.os.name,w5[x5]||x5||b5),platformVersion:C5.os.version||b5,platformFullVersion:C5.os.version||b5},E5=kQ,O5=/\./,D5=/\|\|/,_5=/\s+\-\s+/,j5=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,P5=/^(\d*)(.*)/;function T5(e,t){var n=e.split(D5);return n.length>1?n.some((function(e){return K5.contains(e,t)})):function(e,t){var n=e.split(_5);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?E5(!1,'the "-" operator expects exactly 2 operands'):E5(!1)),1===n.length)return M5(n[0],t);var r=n[0],o=n[1];return N5(r)&&N5(o)||("production"!==process.env.NODE_ENV?E5(!1,'operands to the "-" operator must be simple (no modifiers)'):E5(!1)),M5(">="+r,t)&&M5("<="+o,t)}(e=n[0].trim(),t)}function M5(e,t){if(""===(e=e.trim()))return!0;var n=t.split(O5),r=R5(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return A5(n,i);case"<=":return function(e,t){var n=z5(e,t);return-1===n||0===n}(n,i);case">=":return L5(n,i);case">":return function(e,t){return 1===z5(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);I5(i)&&(r[o]=i+1+"");return L5(e,n)&&A5(e,r)}(n,i);default:return function(e,t){return 0===z5(e,t)}(n,i)}}function A5(e,t){return-1===z5(e,t)}function L5(e,t){var n=z5(e,t);return 1===n||0===n}function R5(e){var t=e.split(O5),n=t[0].match(j5);return n||("production"!==process.env.NODE_ENV?E5(!1,"expected regex to match but it did not"):E5(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function I5(e){return!isNaN(e)&&isFinite(e)}function N5(e){return!R5(e).modifier}function B5(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function F5(e,t){var n=e.match(P5)[1],r=t.match(P5)[1],o=parseInt(n,10),i=parseInt(r,10);return I5(o)&&I5(i)&&o!==i?$5(o,i):$5(e,t)}function $5(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?E5(!1,'"a" and "b" must be of the same type'):E5(!1)),e>t?1:e<t?-1:0}function z5(e,t){for(var n=function(e,t){B5(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 B5(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=F5(r[i],o[i]);if(a)return a}return 0}var K5={contains:function(e,t){return T5(e.trim(),t.trim())}},V5=K5,H5=Object.prototype.hasOwnProperty;var U5=function(e,t,n){if(!e)return null;var r={};for(var o in e)H5.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var Z5=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},W5=k5,q5=V5;function G5(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,q5.contains(o,t))}function Y5(e){return"Windows"===W5.platformName?e.replace(/^\s*NT/,""):e}var X5=U5({isBrowser:function(e){return G5(W5.browserName,W5.browserFullVersion,e)},isBrowserArchitecture:function(e){return G5(W5.browserArchitecture,null,e)},isDevice:function(e){return G5(W5.deviceName,null,e)},isEngine:function(e){return G5(W5.engineName,W5.engineVersion,e)},isPlatform:function(e){return G5(W5.platformName,W5.platformFullVersion,e,Y5)},isPlatformArchitecture:function(e){return G5(W5.platformArchitecture,null,e)}},Z5);var J5=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var Q5=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},e3=Q5;var t3=function e(t){if(e3(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},n3=J5,r3=t3;var o3=function(e){for(var t=e;t&&t!==n3(e).documentElement;){var n=r3(t);if(null!=n)return n;t=t.parentNode}return null};var i3=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function a3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l3=X5,s3=o3,u3=i3,c3=kQ,d3=m2,f3=OJ.Map,p3={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},h3=l3.isBrowser("IE <= 11"),g3=function(){function e(e){var t=this;a3(this,"observer",void 0),a3(this,"container",void 0),a3(this,"mutations",void 0),a3(this,"onCharData",void 0),this.container=e,this.mutations=f3();var n=u3(e);n.MutationObserver&&!h3?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?c3(!1,"Expected target to be an instance of Node"):c3(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,p3):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=f3(),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 h3?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=d3(s3(e.target));this.mutations=this.mutations.set(n,t)}},e}(),m3="-",v3={encode:function(e,t,n){return e+m3+t+m3+n},decode:function(e){var t=e.split(m3).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(m3),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},y3={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},b3={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var w3=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},x3=kQ,C3=w3;var S3=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?x3(!1,"Missing editorNode"):x3(!1)),C3(t.firstChild)||("production"!==process.env.NODE_ENV?x3(!1,"editorNode.firstChild is not an HTMLElement"):x3(!1)),t.firstChild},k3=v3,E3=m2;var O3=function(e,t,n,r,o){var i=E3(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=k3.decode(t),l=a.blockKey,s=e.getBlockTree(l),u=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),c=k3.decode(r),d=c.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!u||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=p.get("start"),m=u?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=u.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})},D3=o3,_3=t3,j3=O3,P3=kQ,T3=Q5,M3=m2;function A3(e,t,n){var r=t,o=D3(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?P3(!1,"Unknown node in selection range."):P3(!1)),e===r)&&(r=r.firstChild,T3(r)||("production"!==process.env.NODE_ENV?P3(!1,"Invalid DraftEditorContents node."):P3(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?P3(!1,"Invalid DraftEditorContents structure."):P3(!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&&(T3(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||_3(e.firstChild));)e=e.firstChild;return e}(r);i=M3(_3(a))}return{key:i,offset:0}}var l=r.childNodes[n-1],s=null,u=null;if(_3(l)){var c=function(e){for(;e.lastChild&&(T3(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||_3(e.lastChild));)e=e.lastChild;return e}(l);s=M3(_3(c)),u=L3(c)}else s=M3(o),u=L3(l);return{key:s,offset:u}}function L3(e){var t=e.textContent;return"\n"===t?0:t.length}var R3=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:j3(e,M3(D3(n)),r,M3(D3(o)),i),needsRecovery:!1};var s=null,u=null,c=!0;return a?(s={key:M3(D3(n)),offset:r},u=A3(t,o,i)):l?(u={key:M3(D3(o)),offset:i},s=A3(t,n,r)):(s=A3(t,n,r),u=A3(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:j3(e,s.key,s.offset,u.key,u.offset),needsRecovery:c}},I3=R3;var N3=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}:I3(e,t,r,o,i,a)},B3=b3,F3=B2,$3=S3,z3=N3;var K3=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();B3.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=z3(n,$3(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?F3.forceSelection(n,o):F3.acceptSelection(n,o),e.update(n))}};var V3={notEmptyKey:function(e){return null!=e&&""!=e}},H3=V3.notEmptyKey;function U3(e,t){return H3(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var Z3=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:U3(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),l=e.getBlockForKey(i);return n=a===l.getLength()?null:l.getEntityAt(a),U3(e.getEntityMap(),n)},W3=g3,q3=H1,G3=v3,Y3=B2,X3=y3,J3=K3,Q3=S3,e9=N3,t9=Z3,n9=m2,r9=X5.isBrowser("IE"),o9=!1,i9=!1,a9=null;var l9,s9,u9={onCompositionStart:function(e){i9=!0,function(e){a9||(a9=new W3(Q3(e))).start()}(e)},onCompositionEnd:function(e){o9=!1,i9=!1,setTimeout((function(){o9||u9.resolveComposition(e)}),20)},onSelect:J3,onKeyDown:function(e,t){if(!i9)return u9.resolveComposition(e),void e._onKeyDown(t);t.which!==X3.RIGHT&&t.which!==X3.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===X3.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!i9){var t=n9(a9).stopAndFlushMutations();a9=null,o9=!0;var n=Y3.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=G3.decode(t),i=o.blockKey,a=o.decoratorKey,l=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",l]),u=s.start,c=s.end,d=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:c,isBackward:!1}),f=t9(r,d),p=r.getBlockForKey(i).getInlineStyleAt(u);r=q3.replaceText(r,d,e,p,f),n=Y3.set(n,{currentContent:r})}));var o=e9(n,Q3(e)).selectionState;e.restoreEditorDOM();var i=r9?Y3.forceSelection(n,o):Y3.acceptSelection(n,o);e.update(Y3.push(i,r,"insert-characters"))}else e.update(n)}}},c9=u9;function d9(){if(s9)return l9;s9=1;var e=H$;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=v3,o=t,i=u2,a=J0,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,u=e.decorator,c=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,h=t.getKey(),g=f.get("leaves"),m=u.getComponentForKey(c),v=u.getPropsForKey(c),y=r.encode(h,parseInt(c,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 l9=l}function f9(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h9=t,g9=kQ,m9=Q5,v9=X5.isBrowser("IE <= 11");var y9=function(e){var t,n;function r(t){var n;return p9(f9(n=e.call(this,t)||this),"_forceFlag",void 0),p9(f9(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;m9(t)||("production"!==process.env.NODE_ENV?g9(!1,"node is not an Element"):g9(!1));var r=t;return n?!function(e){return v9?"\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},v9?h9.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):h9.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return v9?h9.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):h9.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):h9.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(h9.Component),b9=y9,w9=Q5;var x9=function(e){return!(!e||!e.ownerDocument)&&(w9(e)&&"BR"===e.nodeName)},C9={initODS:function(){},handleExtensionCausedError:function(){}};var S9=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))},k9=S9;var E9=function(e){return k9(e)&&3==e.nodeType},O9=E9;var D9=function e(t,n){return!(!t||!n)&&(t===n||!O9(t)&&(O9(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var _9=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}},j9=C9,P9=b3,T9=D9,M9=_9,A9=J5,L9=kQ,R9=Q5,I9=X5.isBrowser("IE");function N9(e,t){if(!e)return"[empty]";var n=B9(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(R9(n)||("production"!==process.env.NODE_ENV?L9(!1,"Node must be an Element if it is not a text node."):L9(!1)),n.outerHTML)}function B9(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return A9(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(B9(i[a],t));return o}function F9(e,t){for(var n=e,r=n;n;){if(R9(n)&&r.hasAttribute("contenteditable"))return N9(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function $9(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function z9(e,t,n,r){var o=M9();if(e.extend&&null!=t&&T9(o,t)){n>$9(t)&&P9.logSelectionStateFailure({anonymizedDom:F9(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 P9.logSelectionStateFailure({anonymizedDom:F9(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 K9(e,t,n,r){var o=A9(t).createRange();if(n>$9(t)&&(P9.logSelectionStateFailure({anonymizedDom:F9(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),j9.handleExtensionCausedError()),o.setStart(t,n),I9)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 V9=function(e,t,n,r,o){var i=A9(t);if(T9(i.documentElement,t)){var a=i.defaultView.getSelection(),l=e.getAnchorKey(),s=e.getAnchorOffset(),u=e.getFocusKey(),c=e.getFocusOffset(),d=e.getIsBackward();if(!a.extend&&d){var f=l,p=s;l=u,s=c,u=f,c=p,d=!1}var h=l===n&&r<=s&&o>=s,g=u===n&&r<=c&&o>=c;if(h&&g)return a.removeAllRanges(),K9(a,t,s-r,e),void z9(a,t,c-r,e);if(d){if(g&&(a.removeAllRanges(),K9(a,t,c-r,e)),h){var m=a.focusNode,v=a.focusOffset;a.removeAllRanges(),K9(a,t,s-r,e),z9(a,m,v,e)}}else h&&(a.removeAllRanges(),K9(a,t,s-r,e)),g&&z9(a,t,c-r,e)}},H9=H$;var U9,Z9,W9=b9,q9=t,G9=kQ,Y9=x9,X9=V9,J9=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?G9(!1,"Missing node"):G9(!1));var s,u=l.firstChild;u||("production"!==process.env.NODE_ENV?G9(!1,"Missing child"):G9(!1)),u.nodeType===Node.TEXT_NODE?s=u:Y9(u)?s=l:(s=u.firstChild)||("production"!==process.env.NODE_ENV?G9(!1,"Missing targetNode"):G9(!1)),X9(e,s,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?G9(!1,"Missing leafNode"):G9(!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()),H9(e,r,n)}),{});if(i){var u=i(l,t);s=H9(s,u)}return q9.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:s},q9.createElement(W9,null,n))},r}(q9.Component),Q9=J9;function e4(){if(Z9)return U9;Z9=1;var e=d9(),n=Q9,r=v3,o=t,i=p5;OJ.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,u=t.customStyleMap,c=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),c=e.get("start"),d=e.get("end");return o.createElement(n,{key:l,offsetKey:l,block:a,start:c,selection:p?h:null,forceSelection:f,text:v.slice(c,d),styleSet:a.getInlineStyleAt(c),customStyleMap:u,customStyleFn:s,isLast:g===y&&t===w})})).toArray();return g&&c?o.createElement(e,{block:a,children:x,contentState:l,decorator:c,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 U9=a}function t4(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n4={getTop:function(e){var t=e.ownerDocument;return t4(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;t4(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return t4(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;t4(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},r4=/-(.)/g;var o4=function(e){return e.replace(r4,(function(e,t){return t.toUpperCase()}))},i4=/([A-Z])/g;var a4=function(e){return e.replace(i4,"-$1").toLowerCase()},l4=o4,s4=a4;function u4(e){return null==e?e:String(e)}var c4=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return u4(n.getPropertyValue(s4(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return u4(n.getPropertyValue(s4(t)));if("display"===t)return"none"}return e.currentStyle?u4("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[l4(t)]):u4(e.style&&e.style[l4(t)])};function d4(e,t){var n=f4.get(e,t);return"auto"===n||"scroll"===n}var f4={get:c4,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(d4(e,"overflow")||d4(e,"overflowY")||d4(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},p4=f4,h4=D9;var g4=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!h4(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 m4=function(e){var t=g4(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},v4="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var y4=function(e){return(e=e||document).scrollingElement?e.scrollingElement:v4||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},b4=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 w4=function(e){var t=y4(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=b4(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 x4(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function C4(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function S4(){return{width:window.innerWidth||x4(),height:window.innerHeight||C4()}}S4.withoutScrollbars=function(){return{width:x4(),height:C4()}};var k4,E4,O4,D4,_4=S4;function j4(){if(E4)return k4;E4=1;var e=H$;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=e4(),a=v3,l=t,s=n4,u=p4,c=m4,d=w4,f=_4,p=kQ,h=w3;OJ.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=u.getScrollParent(n),i=d(o);if(o===window){var a=c(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,u=t.blockRendererFn,c=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,u),g=f.CustomComponent||w,b=m(i,s),x=b.Element,C=b.wrapperTemplate,S=y(i,p,o,c,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 u,c=n.reverse()[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,s=e}finally{try{o||null==c.return||c.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(),_=a.encode(D,0,0),j=v(o,u),P=j.CustomComponent,T=null!=P?l.createElement(P,n({},this.props,{tree:h.getBlockTree(D),blockProps:j.customProps,offsetKey:_,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 T;var M=m(o,s).Element,A=y(o,p,_,c,j,this.wrapperRef);return l.createElement(M,A,T)},w}(l.Component);return k4=b}var P4=H$;function T4(){return T4=P4||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},T4.apply(this,arguments)}var M4,A4,L4,R4,I4=Q9,N4=v3,B4=t,F4=n4,$4=p4,z4=u2,K4=J0,V4=p5,H4=m4,U4=w4,Z4=_4,W4=kQ,q4=w3,G4=m2,Y4=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},X4=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||Y4(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=$4.getScrollParent(n),i=U4(o);if(o===window){var a=H4(n);(r=a.y+a.height-Z4().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{q4(n)||("production"!==process.env.NODE_ENV?W4(!1,"blockNode is not an HTMLElement"):W4(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&F4.setTop(o,F4.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=Y4(this.props.selection,n);return this.props.tree.map((function(a,l){var s=a.get("leaves");if(0===s.size)return null;var u=s.size-1,c=s.map((function(a,s){var c=N4.encode(n,l,s),d=a.get("start"),f=a.get("end");return B4.createElement(I4,{key:c,offsetKey:c,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===u})})).toArray(),d=a.get("decoratorKey");if(null==d)return c;if(!e.props.decorator)return c;var f=G4(e.props.decorator),p=f.getComponentForKey(d);if(!p)return c;var h=f.getPropsForKey(d),g=N4.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=K4.getHTMLDirIfDifferent(z4.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 B4.createElement(p,T4({},h,x,{key:g}),c)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=V4({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return B4.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(B4.Component),J4=X4;var Q4=w0("draft_tree_data_support")?function(){if(D4)return O4;D4=1;var e=H$;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=j4(),o=v3,i=t,a=m2,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 u=s.prototype;return u.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(),u=n.getDecorator();return o!==i||a!==l||s!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,u=e.customStyleMap,c=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:c,customStyleMap:u,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 _=[];do{_.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===D.wrapperTemplate);var j=i.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},_);E.push(j)}else E.push(D.block),O++}return i.createElement("div",{"data-contents":"true"},E)},s}(i.Component);return O4=l}():function(){if(R4)return L4;R4=1;var e=H$;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=J4,a=v3,l=t,s=p5,u=(A4||(A4=1,M4=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}),M4),c=m2,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(),u=n.getDecorator();return o!==i||a!==l||s!==u||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=c(h.getDirectionMap()),S=y.getBlocksAsArray(),k=[],E=null,O=null,D=0;D<S.length;D++){var _=S[D],j=_.getKey(),P=_.getType(),T=o(_),M=void 0,A=void 0,L=void 0;T&&(M=T.component,A=T.props,L=T.editable);var R=v||C.get(j),I=a.encode(j,0,0),N={contentState:y,block:_,blockProps:A,blockStyleFn:s,customStyleMap:f,customStyleFn:p,decorator:x,direction:R,forceSelection:w,offsetKey:I,preventScroll:m,selection:b,tree:h.getBlockTree(j)},B=t.get(P)||t.get("unstyled"),F=B.wrapper,$=B.element||t.get("unstyled").element,z=_.getDepth(),K="";if(s&&(K=s(_)),"li"===$)K=u(K,d(P,z,O!==F||null===E||z>E,R));var V=M||i,H={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:j};void 0!==L&&(H=r({},H,{contentEditable:L,suppressContentEditableWarning:!0}));var U=l.createElement($,H,l.createElement(V,n({},N,{key:j})));k.push({block:U,wrapperTemplate:F,key:j,offsetKey:I}),E=F?_.getDepth():null,O=F}for(var Z=[],W=0;W<k.length;){var q=k[W];if(q.wrapperTemplate){var G=[];do{G.push(k[W].block),W++}while(W<k.length&&k[W].wrapperTemplate===q.wrapperTemplate);var Y=l.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);Z.push(Y)}else Z.push(q.block),W++}return l.createElement("div",{"data-contents":"true"},Z)},s}(l.Component);return L4=f}(),e6={isImage:function(e){return"image"===t6(e)[0]},isJpeg:function(e){var t=t6(e);return e6.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function t6(e){return e.split("/")}var n6=e6,r6=kQ;var o6=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?r6(!1,"toArray: Array-like object expected"):r6(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?r6(!1,"toArray: Object needs a length property"):r6(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?r6(!1,"toArray: Object should have keys for indices"):r6(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?r6(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):r6(!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 i6(e){return function(){return e}}var a6=function(){};a6.thatReturns=i6,a6.thatReturnsFalse=i6(!1),a6.thatReturnsTrue=i6(!0),a6.thatReturnsNull=i6(null),a6.thatReturnsThis=function(){return this},a6.thatReturnsArgument=function(e){return e};var l6=a6,s6=n6,u6=o6,c6=l6,d6=new RegExp("\r\n","g"),f6={"text/rtf":1,"text/html":1};function p6(e){if("file"==e.kind)return e.getAsFile()}var h6=function(){function e(e){this.data=e,this.types=e.types?u6(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return f6[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(d6,"\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(!s6.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(p6).filter(c6.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),g6=h6,m6=kQ,v6=/\.textClipping$/,y6={"text/plain":!0,"text/html":!0,"text/rtf":!0};var b6=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!ot.FileReader||e.type&&!(e.type in y6))return void t("");if(""===e.type){var n="";return v6.test(e.name)&&(n=e.name.replace(v6,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?m6(!1,'We should be calling "FileReader.readAsText" which returns a string'):m6(!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 w6=function(e){return"handled"===e||!0===e},x6=g6,C6=H1,S6=B2,k6=o3,E6=J5,O6=b6,D6=O3,_6=i3,j6=w6,P6=m2;var T6={onDragEnd:function(e){e.exitCurrentMode(),M6(e)},onDrop:function(e,t){var n=new x6(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=E6(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=P6(n),r=P6(r);var a=P6(k6(n));return D6(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&&j6(e.props.handleDroppedFiles(o,i)))return;O6(i,(function(t){t&&e.update(A6(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&j6(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=C6.moveText(e.getCurrentContent(),e.getSelection(),t);return S6.push(e,n,"insert-fragment")}(r,o)):e.update(A6(r,o,n.getText()))),M6(e)}}}};function M6(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:_6(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function A6(e,t,n){var r=C6.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return S6.push(e,r,"insert-fragment")}var L6=T6;var R6=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={},u=!1,c=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)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.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(u)setTimeout(p,0,e);else{var n=s[e];if(n){u=!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),u=!1}}}}}("undefined"==typeof self?ot:self);var I6=ot.setImmediate,N6=H1,B6=B2,F6=Z3,$6=w6,z6=R6,K6=m2,V6=I6,H6="'",U6="/",Z6=X5.isBrowser("Firefox");function W6(e,t,n,r,o){var i=N6.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return B6.push(e,i,"insert-characters",o)}var q6=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&&$6(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(W6(n,r,n.getCurrentInlineStyle(),F6(n.getCurrentContent(),n.getSelection()),!0));var l,s=W6(n,r,n.getCurrentInlineStyle(),F6(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=z6(e._latestCommittedEditorState)),!u){var c=n.getBlockTree(a),d=s.getBlockTree(a);u=c.size!==d.size||c.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),u=n.get("start"),c=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||a!==u||s!==c||null!=d&&c-u!=l-o}))}if(u||(l=r,u=Z6&&(l==H6||l==U6)),u||(u=K6(s.getDirectionMap()).get(a)!==K6(n.getDirectionMap()).get(a)),u)return t.preventDefault(),s=B6.set(s,{forceSelection:!0}),void e.update(s);s=B6.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,V6((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},G6=B2,Y6=D9,X6=_9;var J6=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&X6(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&Y6(o,r.anchorNode)&&Y6(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(G6.acceptSelection(i,l))}},Q6=B2;var e7=function(e,t){e.setMode("composite"),e.update(Q6.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},t7=ZQ;var n7=function(e){var t=e.getSelection();return t.isCollapsed()?null:t7(e.getCurrentContent(),t)},r7=n7;var o7=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r7(e._latestEditorState))};var i7=H1,a7=B2,l7=p4,s7=n7,u7=w4,c7=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 d7=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(c7(i)){var a=i;n=u7(l7.getScrollParent(a))}var l=s7(r);e.setClipboard(l),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=i7.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return a7.push(e,t,"remove-range")}(r))}),0)}};var f7=function(e,t){e.setMode("drag"),t.preventDefault()};var p7=function(e){e._internalDrag=!0,e.setMode("drag")},h7=B2,g7=X5;var m7=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),g7.isBrowser("Chrome < 60.0.3081.0")?e.update(h7.forceSelection(n,o)):e.update(h7.acceptSelection(n,o))}},v7=kQ,y7=55296,b7=57343,w7=/[\uD800-\uDFFF]/;function x7(e){return y7<=e&&e<=b7}function C7(e){return w7.test(e)}function S7(e,t){return 1+x7(e.charCodeAt(t))}function k7(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!C7(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+=S7(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=S7(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=S7(e,i);return e.substring(o,i)}var E7={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=S7(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:S7,hasSurrogateUnit:C7,isCodeUnitInSurrogateRange:x7,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?v7(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):v7(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return y7<=n&&n<=56319&&56320<=r&&r<=b7},strlen:function(e){if(!C7(e))return e.length;for(var t=0,n=0;n<e.length;n+=S7(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 k7(e,t=t<n?t:n,r)},substr:k7},O7=E7,D7=l6;function _7(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 j7="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];_7.apply(void 0,[t].concat(r))}}:D7,P7=j7,T7=P7;var M7=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&T7(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})},A7=H1,L7=w0("draft_tree_data_support");var R7=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),l=r.getFocusKey(),s=o.getBlockForKey(a);if(L7&&"forward"===n&&a!==l)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(L7)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(s.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return A7.removeRange(o,i,n)},I7=B2,N7=O7,B7=M7,F7=R7;var $7=function(e){var t=F7(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return B7(e,i?N7.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return I7.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},z7=H1,K7=v3,V7=B2,H7=V3.notEmptyKey,U7=o3,Z7=$7,W7=m2,q7=X5.isEngine("Gecko");var G7=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,u=e._latestEditorState,c=W7(U7(r)),d=K7.decode(c),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=u.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,y=u.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=u.getSelection(),O=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),D=b.getEntityAt(m),_=H7(D)?y.getEntity(D):null,j="MUTABLE"===(null!=_?_.getMutability():null),P=j?"spellcheck-change":"apply-entity",T=z7.replaceText(y,O,s,b.getInlineStyleAt(m),j?b.getEntityAt(m):null);if(q7)x=n.anchorOffset,C=n.focusOffset,k=(S=m+Math.min(x,C))+Math.abs(x-C),x=S,C=k;else{var M=s.length-w.length;S=E.getStartOffset(),k=E.getEndOffset(),x=o?k+M:S,C=k+M}var A=T.merge({selectionBefore:y.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:x,focusOffset:C})});e.update(V7.push(u,A,P))}else{var L=t.nativeEvent.inputType;if(L){var R=function(e,t){return"deleteContentBackward"===e?Z7(t):t}(L,u);if(R!==u)return e.restoreEditorDOM(),void e.update(R)}}}},Y7=y3;var X7=function(e){return e.which===Y7.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},J7=X7,Q7=X5.isPlatform("Mac OS X"),e8={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return Q7&&e.altKey},usesMacOSHeuristics:function(){return Q7},hasCommandModifier:function(e){return Q7?!!e.metaKey&&!e.altKey:e8.isCtrlKeyCommand(e)},isSoftNewlineEvent:J7},t8=e8,n8=H1,r8=B2,o8=ZQ,i8=m2,a8=null,l8={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=i8(r),a8=o8(t,r);var l=n8.removeRange(t,r,"forward");return l===t?e:r8.push(e,l,"remove-range")},paste:function(e){if(!a8)return e;var t=n8.replaceWithFragment(e.getCurrentContent(),e.getSelection(),a8);return r8.push(e,t,"insert-fragment")}},s8=kQ;var u8=X5.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?s8(!1,"Found an unexpected detached subtree when getting range client rects."):s8(!1)}:function(e){return Array.from(e.getClientRects())},c8=u8,d8=O7,f8=J5,p8=c8,h8=kQ;function g8(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 m8(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 v8=function(e){e.collapsed||("production"!==process.env.NODE_ENV?h8(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):h8(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=f8(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?h8(!1,"Missing document.body"):h8(!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);g8(p8(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?h8(!1,"Found unexpected detached subtree when traversing."):h8(!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&&d8.isSurrogatePair(l,s-1))){if(e.setStart(i,s),!g8(p8(e),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=m8(i=i.childNodes[s])}return e.setStart(r,o),e},y8=B2,b8=v8,w8=R3,x8=M7,C8=R7;var S8=function(e,t){var n=C8(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return x8(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=b8(r),w8(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:y8.push(e,n,"remove-range")},k8="['‘’]",E8="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),O8=new RegExp("^(?:"+E8+")*(?:"+k8+"|(?!"+E8+").)*(?:(?!"+E8+").)"),D8=new RegExp("(?:(?!"+E8+").)(?:"+k8+"|(?!"+E8+").)*(?:"+E8+")*$");function _8(e,t){var n=t?D8.exec(e):O8.exec(e);return n?n[0]:e}var j8={getBackward:function(e){return _8(e,!0)},getForward:function(e){return _8(e,!1)}},P8=j8,T8=B2,M8=M7,A8=R7;var L8=function(e){var t=A8(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return M8(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=P8.getBackward(o);return M8(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:T8.push(e,t,"remove-range")},R8=P7;var I8=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&R8(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})},N8=j8,B8=B2,F8=I8,$8=R7;var z8=function(e){var t=$8(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=N8.getForward(o);return F8(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:B8.push(e,t,"remove-range")},K8=H1,V8=B2;var H8=B2;var U8=B2;var Z8=B2,W8=O7,q8=I8,G8=R7;var Y8=function(e){var t=G8(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return q8(e,i?W8.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Z8.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},X8=H1,J8=B2,Q8=ZQ;var eee=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=Q8(a,r),u=X8.removeRange(a,r,"backward"),c=u.getSelectionAfter(),d=c.getAnchorOffset()-1,f=c.merge({anchorOffset:d,focusOffset:d}),p=X8.replaceWithFragment(u,f,s),h=J8.push(e,p,"insert-fragment");return J8.acceptSelection(h,o)},tee=B2;var nee=function(e,t,n){var r=tee.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(tee.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(tee.set(r,{nativelyRenderedContent:o}))}},ree=H1,oee=B2,iee=y3,aee=l8,lee=X5,see=w6,uee=S8,cee=L8,dee=z8,fee=function(e){var t=K8.splitBlock(e.getCurrentContent(),e.getSelection());return V8.push(e,t,"split-block")},pee=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return H8.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},hee=function(e){var t=e.getSelection(),n=t.getStartKey();return U8.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},gee=$7,mee=Y8,vee=eee,yee=nee,bee=t8.isOptionKeyCommand,wee=lee.isBrowser("Chrome");var xee=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 iee.RETURN:if(t.preventDefault(),e.props.handleReturn&&see(e.props.handleReturn(t,r)))return;break;case iee.ESC:if(t.preventDefault(),o("onEscape"))return;break;case iee.TAB:if(o("onTab"))return;break;case iee.UP:if(o("onUpArrow"))return;break;case iee.RIGHT:if(o("onRightArrow"))return;break;case iee.DOWN:if(o("onDownArrow"))return;break;case iee.LEFT:if(o("onLeftArrow"))return;break;case iee.SPACE:wee&&bee(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!see(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return oee.redo(t);case"delete":return mee(t);case"delete-word":return dee(t);case"backspace":return gee(t);case"backspace-word":return cee(t);case"backspace-to-start-of-line":return uee(t,n);case"split-block":return fee(t);case"transpose-characters":return vee(t);case"move-selection-to-start-of-block":return hee(t);case"move-selection-to-end-of-block":return pee(t);case"secondary-cut":return aee.cut(t);case"secondary-paste":return aee.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else yee(t,r,e.update);else if(n===iee.SPACE&&wee&&bee(t)){var l=ree.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(oee.push(r,l,"insert-characters"))}};var Cee=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}(),See=Cee,kee=kQ,Eee=X5.isBrowser("IE <= 9");var Oee=function(e){var t,n=null;return!Eee&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?kee(!1,"Missing doc.documentElement"):kee(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},Dee=Q5;var _ee=function(e){return!(!e||!e.ownerDocument)&&(Dee(e)&&"A"===e.nodeName)},jee=Q5;var Pee,Tee=function(e){return!(!e||!e.ownerDocument)&&(jee(e)&&"IMG"===e.nodeName)};function Mee(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){Aee(e,t,n[t])}))}return e}function Aee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lee=BJ,Ree=QJ,Iee=pQ,Nee=m5,Bee=v0,Fee=See,$ee=p5,zee=LQ,Kee=Oee,Vee=w0,Hee=OJ,Uee=Hee.List,Zee=Hee.Map,Wee=Hee.OrderedSet,qee=_ee,Gee=x9,Yee=w3,Xee=Tee,Jee=Vee("draft_tree_data_support"),Qee=new RegExp("\r","g"),ete=new RegExp("\n","g"),tte=new RegExp("^\n","g"),nte=new RegExp(" ","g"),rte=new RegExp(" ?","g"),ote=new RegExp("​?","g"),ite=["bold","bolder","500","600","700","800","900"],ate=["light","lighter","normal","100","200","300","400"],lte=["className","href","rel","target","title"],ste=["alt","className","height","src","width"],ute=(Aee(Pee={},$ee("public/DraftStyleDefault/depth0"),0),Aee(Pee,$ee("public/DraftStyleDefault/depth1"),1),Aee(Pee,$ee("public/DraftStyleDefault/depth2"),2),Aee(Pee,$ee("public/DraftStyleDefault/depth3"),3),Aee(Pee,$ee("public/DraftStyleDefault/depth4"),4),Pee),cte=Zee({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),dte=function(e){if(Yee(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},fte=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(ute).some((function(n){e.classList.contains(n)&&(t=ute[n])})),t},pte=function(e){if(!qee(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 Fee(t.href);return!0}catch(e){return!1}},hte=function(e){if(!Xee(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},gte=function(e,t){if(!Yee(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){ite.indexOf(r)>=0?e.add("BOLD"):ate.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"))}))},mte=function(e){return"ul"===e||"ol"===e},vte=function(){function e(e,t){Aee(this,"characterList",Uee()),Aee(this,"currentBlockType","unstyled"),Aee(this,"currentDepth",0),Aee(this,"currentEntity",null),Aee(this,"currentText",""),Aee(this,"wrapper",null),Aee(this,"blockConfigs",[]),Aee(this,"contentBlocks",[]),Aee(this,"entityMap",Bee),Aee(this,"blockTypeMap",void 0),Aee(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=Uee(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=Bee,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],Wee())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(Jee?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=Mee({key:e.key||zee(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Uee(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=Uee(),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||mte(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;mte(i)&&(this.wrapper=i,mte(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(hte(o))this._addImgNode(o,t);else if(pte(o))this._addAnchorNode(o,n,t);else{var u=t;cte.has(i)&&(u=u.add(cte.get(i))),u=gte(o,u);var c=dte(o);null!=c&&(u=u.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}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"),!Jee&&Yee(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=o;this.currentDepth=fte(p,this.currentDepth)}var h=zee(),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=Lee.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=Uee()):(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(tte,"")).replace(ete," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){Gee(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(Xee(e)){var n=e,r={};ste.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),Vee("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(qee(e)){var r=e,o={};lte.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new Fee(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=Uee(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new Iee(Mee({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return Uee(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 Ree(Mee({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=Uee(),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}(),yte=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nee,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kee)(e=e.trim().replace(Qee,"").replace(nte," ").replace(rte,"").replace(ote,""));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)}))})),Zee(t)}(t);return new vte(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function bte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wte=QJ,xte=pQ,Cte=yte,Ste=LQ,kte=Oee,Ete=w0,Ote=OJ,Dte=C0,_te=Ote.List,jte=Ote.Repeat,Pte=Ete("draft_tree_data_support"),Tte=Pte?xte:wte,Mte={processHTML:function(e,t){return Cte(e,kte,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=Dte(r);var i=Ste(),a={key:i,type:n,text:r,characterList:_te(jte(t,r.length))};if(Pte&&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){bte(e,t,n[t])}))}return e}({},a,{prevSibling:(e[l]=e[l].merge({nextSibling:i})).getKey()})}return e.push(new Tte(a)),e}),[])}};var Ate=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})},Lte=H1,Rte=B2,Ite=Ate,Nte=m2,Bte={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 Bte.toggleInlineStyle(e,"BOLD");case"italic":return Bte.toggleInlineStyle(e,"ITALIC");case"underline":return Bte.toggleInlineStyle(e,"UNDERLINE");case"code":return Bte.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return Bte.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return Bte.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=Lte.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Rte.push(e,t,"insert-characters");return Rte.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 Rte.push(e,a,"remove-range")}var l=Bte.tryToRemoveBlockStyle(e);return l?Rte.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=Lte.removeRange(n,a,"forward");return l!==n?Rte.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 u=Ite(i,r,e.shiftKey?-1:1,n);return Rte.push(t,u,"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=Nte(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 u=i.getBlockForKey(r).getType()===t?"unstyled":t;return Rte.push(e,Lte.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?Bte.toggleBlockType(e,"code-block"):Bte.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Rte.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?Lte.removeInlineStyle(i,n,t):Lte.applyInlineStyle(i,n,t),Rte.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=Lte.applyEntity(e.getCurrentContent(),t,n);return Rte.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 Lte.setBlockType(o,t,"unstyled")}return null}},Fte=Bte,$te=/\r\n?|\n/g;var zte=_J,Kte=BJ,Vte=g6,Hte=H1,Ute=Mte,Zte=B2,Wte=Fte,qte=Z3,Gte=b6,Yte=w6,Xte=function(e){return e.split($te)};function Jte(e,t,n){var r=Hte.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return Zte.push(e,r.set("entityMap",n),"insert-fragment")}var Qte=function(e,t){t.preventDefault();var n=new Vte(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&Yte(e.props.handlePastedFiles(r)))return;return void Gte(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=Xte(t),i=Kte.create({style:n.getCurrentInlineStyle(),entity:qte(n.getCurrentContent(),n.getSelection())}),a=Wte.getCurrentBlockType(n),l=Ute.processText(r,i,a),s=zte.createFromArray(l),u=Hte.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);e.update(Zte.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),l=n.getHTML(),s=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,l);a=u.text,l=u.html}if(!e.props.handlePastedText||!Yte(e.props.handlePastedText(a,l,s))){if(a&&(i=Xte(a)),!e.props.stripPastedStyles){var c,d=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&d){if(-1!==(null===(c=l)||void 0===c?void 0:c.indexOf(e.getEditorKey()))||1===i.length&&1===d.size&&d.first().getText()===a)return void e.update(Jte(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(Jte(e._latestEditorState,d));if(l){var f=Ute.processHTML(l,e.props.blockRenderMap);if(f){var p=f.contentBlocks,h=f.entityMap;if(p){var g=zte.createFromArray(p);return void e.update(Jte(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var m=Kte.create({style:s.getCurrentInlineStyle(),entity:qte(s.getCurrentContent(),s.getSelection())}),v=Wte.getCurrentBlockType(s),y=Ute.processText(i,m,v),b=zte.createFromArray(y);e.update(Jte(e._latestEditorState,b))}}},ene=X5,tne=q6,nne=J6,rne=e7,one=o7,ine=d7,ane=f7,lne=p7,sne=m7,une=G7,cne=xee,dne=Qte,fne=K3,pne=ene.isBrowser("Chrome"),hne=ene.isBrowser("Firefox"),gne=pne||hne?fne:function(e){},mne={onBeforeInput:tne,onBlur:nne,onCompositionStart:rne,onCopy:one,onCut:ine,onDragOver:ane,onDragStart:lne,onFocus:sne,onInput:une,onKeyDown:cne,onPaste:dne,onSelect:fne,onMouseUp:gne,onKeyUp:gne},vne=r.unstable_flushControlled;var yne=t,bne=p5,wne=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=bne({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return yne.createElement("div",{className:t},yne.createElement("div",{className:bne("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(yne.Component),xne=wne,Cne=t8,Sne=y3,kne=X5,Ene=kne.isPlatform("Mac OS X"),One=Ene&&kne.isBrowser("Firefox < 29"),Dne=Cne.hasCommandModifier,_ne=Cne.isCtrlKeyCommand;function jne(e){return Ene&&e.altKey||_ne(e)}var Pne=function(e){switch(e.keyCode){case 66:return Dne(e)?"bold":null;case 68:return _ne(e)?"delete":null;case 72:return _ne(e)?"backspace":null;case 73:return Dne(e)?"italic":null;case 74:return Dne(e)?"code":null;case 75:return Ene&&_ne(e)?"secondary-cut":null;case 77:case 79:return _ne(e)?"split-block":null;case 84:return Ene&&_ne(e)?"transpose-characters":null;case 85:return Dne(e)?"underline":null;case 87:return Ene&&_ne(e)?"backspace-word":null;case 89:return _ne(e)?Ene?"secondary-paste":"redo":null;case 90:return function(e){return Dne(e)?e.shiftKey?"redo":"undo":null}(e)||null;case Sne.RETURN:return"split-block";case Sne.DELETE:return function(e){return!Ene&&e.shiftKey?null:jne(e)?"delete-word":"delete"}(e);case Sne.BACKSPACE:return function(e){return Dne(e)&&Ene?"backspace-to-start-of-line":jne(e)?"backspace-word":"backspace"}(e);case Sne.LEFT:return One&&Dne(e)?"move-selection-to-start-of-block":null;case Sne.RIGHT:return One&&Dne(e)?"move-selection-to-end-of-block":null;default:return null}},Tne=H$;function Mne(){return Mne=Tne||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},Mne.apply(this,arguments)}function Ane(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){Rne(e,t,n[t])}))}return e}function Lne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ine(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Nne=m5,Bne=v5,Fne=c9,$ne=Q4,zne=L6,Kne=mne,Vne=vne,Hne=xne,Une=C9,Zne=B2,Wne=t,qne=n4,Gne=p4,Yne=p5,Xne=LQ,Jne=Pne,Qne=w4,ere=w0,tre=kQ,nre=w3,rre=m2,ore=X5.isBrowser("IE"),ire=!ore,are={edit:Kne,composite:Fne,drag:zne,cut:null,render:null},lre=!1,sre=function(e){function t(){return e.apply(this,arguments)||this}Ine(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}(Wne.Component),ure=function(e){function t(t){var n;return Rne(Lne(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Rne(Lne(n),"_clipboard",void 0),Rne(Lne(n),"_handler",void 0),Rne(Lne(n),"_dragCount",void 0),Rne(Lne(n),"_internalDrag",void 0),Rne(Lne(n),"_editorKey",void 0),Rne(Lne(n),"_placeholderAccessibilityID",void 0),Rne(Lne(n),"_latestEditorState",void 0),Rne(Lne(n),"_latestCommittedEditorState",void 0),Rne(Lne(n),"_pendingStateFromBeforeInput",void 0),Rne(Lne(n),"_onBeforeInput",void 0),Rne(Lne(n),"_onBlur",void 0),Rne(Lne(n),"_onCharacterData",void 0),Rne(Lne(n),"_onCompositionEnd",void 0),Rne(Lne(n),"_onCompositionStart",void 0),Rne(Lne(n),"_onCopy",void 0),Rne(Lne(n),"_onCut",void 0),Rne(Lne(n),"_onDragEnd",void 0),Rne(Lne(n),"_onDragOver",void 0),Rne(Lne(n),"_onDragStart",void 0),Rne(Lne(n),"_onDrop",void 0),Rne(Lne(n),"_onInput",void 0),Rne(Lne(n),"_onFocus",void 0),Rne(Lne(n),"_onKeyDown",void 0),Rne(Lne(n),"_onKeyPress",void 0),Rne(Lne(n),"_onKeyUp",void 0),Rne(Lne(n),"_onMouseDown",void 0),Rne(Lne(n),"_onMouseUp",void 0),Rne(Lne(n),"_onPaste",void 0),Rne(Lne(n),"_onSelect",void 0),Rne(Lne(n),"editor",void 0),Rne(Lne(n),"editorContainer",void 0),Rne(Lne(n),"focus",void 0),Rne(Lne(n),"blur",void 0),Rne(Lne(n),"setMode",void 0),Rne(Lne(n),"exitCurrentMode",void 0),Rne(Lne(n),"restoreEditorDOM",void 0),Rne(Lne(n),"setClipboard",void 0),Rne(Lne(n),"getClipboard",void 0),Rne(Lne(n),"getEditorKey",void 0),Rne(Lne(n),"update",void 0),Rne(Lne(n),"onDragEnter",void 0),Rne(Lne(n),"onDragLeave",void 0),Rne(Lne(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Rne(Lne(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=Gne.getScrollParent(o),a=e||Qne(i),l=a.x,s=a.y;nre(o)||("production"!==process.env.NODE_ENV?tre(!1,"editorNode is not an HTMLElement"):tre(!1)),o.focus(),i===window?window.scrollTo(l,s):qne.setTop(i,s),r||n.update(Zne.forceSelection(t,t.getSelection()))}})),Rne(Lne(n),"blur",(function(){var e=n.editor;e&&(nre(e)||("production"!==process.env.NODE_ENV?tre(!1,"editorNode is not an HTMLElement"):tre(!1)),e.blur())})),Rne(Lne(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Ane({},are.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var l=Ane({},are,{edit:a});n._handler=l[e]})),Rne(Lne(n),"exitCurrentMode",(function(){n.setMode("edit")})),Rne(Lne(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Rne(Lne(n),"setClipboard",(function(e){n._clipboard=e})),Rne(Lne(n),"getClipboard",(function(){return n._clipboard})),Rne(Lne(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Rne(Lne(n),"onDragEnter",(function(){n._dragCount++})),Rne(Lne(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||Xne(),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}Ine(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&&(Vne?Vne((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:rre(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Wne.createElement(Hne,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,u=e.textAlignment,c=e.textDirectionality,d=Yne({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Ane({},Bne,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:l,textDirectionality:c};return Wne.createElement("div",{className:d},this._renderPlaceholder(),Wne.createElement("div",{className:Yne("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Wne.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:Yne({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:ire&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Wne.createElement(sre,{editor:this,editorState:a}),Wne.createElement($ne,Mne({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!lre&&ere("draft_ods_enabled")&&(lre=!0,Une.initODS()),this.setMode("edit"),ore&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ot.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Wne.Component);Rne(ure,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:Nne,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:Jne,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var cre=ure,dre={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},fre=dre,pre=O7.strlen;var hre=O7,gre=FJ,mre=function(e,t){return e===t},vre=function(e){return!!e},yre=[];var bre=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 gre(o,mre,vre,(function(t,o){var i=e.getText();r.push({offset:hre.strlen(i.slice(0,t)),length:hre.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(yre,n.toJS())};function wre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xre=QJ,Cre=pQ,Sre=dre,kre=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:pre(i.slice(0,r)),length:pre(i.slice(r,o)),key:Number(t[fre.stringify(a)])})})),n},Ere=bre,Ore=kQ,Dre=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:Ere(e),entityRanges:kre(e,t),data:e.getData().toObject()}},_re=function(e,t,n,r){if(e instanceof xre)n.push(Dre(e,t));else{e instanceof Cre||("production"!==process.env.NODE_ENV?Ore(!1,"block is not a BlockNode"):Ore(!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){wre(e,t,n[t])}))}return e}({},Dre(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},jre=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=Sre.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),_re(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(Sre.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function Pre(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){Tre(e,t,n[t])}))}return e}function Tre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mre=LQ,Are=kQ,Lre=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},Rre={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Are(!1,"Invalid raw state"):Are(!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?Are(!1,"Invalid tree raw block"):Are(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Pre({},e);Lre(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Pre({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Pre({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Lre(e),o=e.depth||0,i=Pre({},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:Mre(),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)})),Pre({},e,{blocks:t})}},Ire=P7,Nre={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&&Ire(!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&&Ire(!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&&Ire(!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&&Ire(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Ire(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Ire(!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&&Ire(!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)})),u=s.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&Ire(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Ire(!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)}},Bre=Nre,Fre=BJ,$re=OJ.List;var zre=function(e,t){var n=e.map((function(e,n){var r=t[n];return Fre.create({style:e,entity:r})}));return $re(n)},Kre=O7.substr;var Vre=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=Kre(e,0,t.offset).length,o=r+Kre(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},Hre=O7,Ure=OJ.OrderedSet,Zre=Hre.substr,Wre=Ure();var qre=function(e,t){var n=Array(e.length).fill(Wre);return t&&t.forEach((function(t){for(var r=Zre(e,0,t.offset).length,o=r+Zre(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function Gre(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){Yre(e,t,n[t])}))}return e}function Yre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xre=QJ,Jre=pQ,Qre=H0,eoe=v0,toe=Rre,noe=Bre,roe=b0,ooe=zre,ioe=Vre,aoe=qre,loe=LQ,soe=OJ,uoe=kQ,coe=w0("draft_tree_data_support"),doe=soe.List,foe=soe.Map,poe=soe.OrderedMap,hoe=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||loe(),data:foe(o),characterList:goe(e,t)}},goe=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return ooe(aoe(n,o||[]),ioe(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return Gre({},e,{key:t[e.key]})}))))},moe=function(e){return Gre({},e,{key:e.key||loe()})},voe=function(e,t,n){var r=t.map((function(e){return Gre({},e,{parentRef:n})}));return e.concat(r.reverse())},yoe=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=coe&&!n?toe.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!coe)return function(e,t){return poe(e.map((function(e){var n=new Xre(hoe(e,t));return[n.getKey(),n]})))}(n?toe.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(moe).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?uoe(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):uoe(!1));var i=r.children.map(moe),a=new Jre(Gre({},hoe(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:doe(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var l=voe([],i,a);l.length>0;){var s=l.pop(),u=s.parentRef,c=u.getChildKeys(),d=c.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?uoe(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):uoe(!1));break}var p=s.children.map(moe),h=new Jre(Gre({},hoe(s,t),{parent:u.getKey(),children:doe(p.map((function(e){return e.key}))),prevSibling:0===d?null:c.get(d-1),nextSibling:d===c.size-1?null:c.get(d+1)}));n=n.set(h.getKey(),h),l=voe(l,p,h)}return n}),poe())}(r,t);return"production"!==process.env.NODE_ENV&&(noe.isValidTree(o)||("production"!==process.env.NODE_ENV?uoe(!1,"Should be a valid tree"):uoe(!1))),o},boe=c8;var woe=function(e){var t=boe(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 u=t[s];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},xoe=woe;var Coe=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=xoe(n),o=r.top,i=r.right,a=r.bottom,l=r.left;return 0===o&&0===i&&0===a&&0===l?null:r},Soe={Editor:cre,EditorBlock:J4,EditorState:B2,CompositeDecorator:d5,Entity:v0,EntityInstance:l0,BlockMapBuilder:_J,CharacterMetadata:BJ,ContentBlock:QJ,ContentState:H0,RawDraftContentState:{},SelectionState:b0,AtomicBlockUtils:s5,KeyBindingUtil:t8,Modifier:H1,RichUtils:Fte,DefaultDraftBlockRenderMap:m5,DefaultDraftInlineStyle:v5,convertFromHTML:yte,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?uoe(!1,"invalid RawDraftContentState"):uoe(!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]=eoe.__create(o,i,a||{})})),n}(e),n=yoe(e,t),r=n.isEmpty()?new roe:roe.createEmpty(n.first().getKey());return new Qre({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:jre,genKey:LQ,getDefaultKeyBinding:Pne,getVisibleSelectionRect:Coe};const koe=(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)}}},Eoe=e=>!!e||null!=e&&""!==e,Ooe=U.div((({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,focused:a,invalid:l,disabled:s,hasLabel:u,pointer:c})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:u?48:40,height:u?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:c?"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})),nn,on,rn),Doe=U.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}}))),_oe=U.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}))),joe=U.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 Poe={Container:Ooe,Wrapper:Doe,Label:_oe,Description:joe,useInputFocus:koe,isInputFilled:Eoe};const Toe="FOUND_FIELD",Moe="NOT_FOUND",Aoe="IMMUTABLE",Loe=U.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),Roe=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},Ioe=new Soe.CompositeDecorator([{strategy:(e,t,n)=>Roe(e,t,n,Toe),component:({children:t})=>e.jsx(Loe,{children:t})},{strategy:(e,t,n)=>Roe(e,t,n,Moe),component:({children:t})=>e.jsx(Loe,{error:!0,children:t})}]),Noe=(e,t,n)=>{const r=lt.find(t,{id: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}},Boe=(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=lt.find(t||[],{id:i})||{id:i,label:""},{label:s,isValid:u}=Noe(l,t||[],n);a=s,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?Toe:Moe,mutability:Aoe,data:{id:i}}}o.text+=a}return Soe.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return Soe.EditorState.createWithContent(r,Ioe)},Foe=(e,t=!0)=>{const n=e.getCurrentContent(),r=Soe.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=lt.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${l}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},$oe=e=>{const t=Foe(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},zoe=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new Soe.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return Soe.EditorState.forceSelection(e,o)},Koe=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:c=[],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:_,margin:j,marginLeft:P,marginRight:T,marginTop:M,marginBottom:A}=n,L=l(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[R,I]=t.useState((()=>Boe(o,c,b))),{focused:N,handleFocus:B,handleBlur:F}=koe(s,u),[$,z]=t.useState(!1),K=t.useRef(null),V=t.useRef(),H=null!=m?m:g,U=e=>{I(e);const t=(e=>$oe(e).some((e=>e.type===Moe)))(e);z(t);const n=Foe(e),r=e.getLastChangeType();i&&i(n,t,r)},Z=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:l,isValid:s}=Noe(e,t,r),u=s?Toe:Moe,c=i.createEntity(u,Aoe,{id:o}).getLastCreatedEntityKey(),d=Soe.Modifier.insertText(i,a,l,void 0,c),f=Soe.EditorState.push(n,d,"insert-characters");return Soe.EditorState.forceSelection(f,d.getSelectionAfter())})(e,c,R,b);U(t)},W=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=zoe(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:Z,focusAtEnd:W})));t.useEffect((()=>{Foe(R)!==o&&(e=>{const t=R.getSelection(),n=Boe(e,c,b),r=zoe(n),o=t.getHasFocus()?r:n;U(o)})(o)}),[o]),t.useEffect((()=>{V.current=c}),[]),t.useEffect((()=>{const{current:e}=V,t=lt.isEqual(e,c),n=$oe(R);if(!t&&n.length>0){V.current=c;const e=Boe(o,c,b);U(e)}}),[c]);return e.jsxs(Voe,{onClick:e=>{y||e.stopPropagation();R.getSelection().getHasFocus()||W()},width:h,height:g,editorMaxHeight:H,noPadding:v||_,readOnly:y,color:w,overflow:x,clampLines:C,filled:Eoe(o),invalid:p||$,textOnly:_,borderRadius:E,backgroundColor:O,fontSize:D,margin:j,marginLeft:P,marginRight:T,marginTop:M,marginBottom:A,focused:N,disabled:k,hasLabel:!!S,hideEditor:!Eoe(o)&&!!S&&!N,children:[e.jsxs(Doe,{readOnly:y,children:[S&&e.jsx(_oe,{filled:Eoe(o),focused:N,disabled:k,children:S}),e.jsx(Soe.Editor,Object.assign({ref:K,editorState:R,onChange:U,placeholder:d,readOnly:y,handleReturn:e=>{const t=Soe.RichUtils.insertSoftNewline(R);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=Soe.convertFromRaw({blocks:[o],entityMap:{}}),a=Soe.EditorState.createWithContent(i,Ioe).getCurrentContent().getBlockMap(),l=Soe.Modifier.replaceWithFragment(n,r,a);return Soe.EditorState.push(t,l,"insert-fragment")})(e,n);return U(r),"handled"},onFocus:B,onBlur:F},L))]}),f&&e.jsx(joe,{invalid:p,children:f})]})})),Voe=U(Ooe)((({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:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:l||e.font.size.lg,top:!u||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 Hoe,Uoe={exports:{}},Zoe={};var Woe,qoe={};
|
|
38
|
+
*/;const rJ=({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(oJ,{onClick:()=>{AY(r),i(!0)},copied:o,children:o?e.jsx(sn,{name:"check-circle",color:a.success}):e.jsx(sn,{name:"copy",color:l})})},oJ=U.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}}))),iJ=({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(aJ,Object.assign({},i,{children:[e.jsx(lJ,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(sJ,{children:r}),e.jsx(rJ,{content:r})]}))},aJ=U.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}))),lJ=U.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),sJ=U.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),uJ=U.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),on),cJ=U.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),dJ=U.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),fJ={shouldForwardProp:e=>Py(e,["hide","placeholderColor","isDisabled"])},pJ=[({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","&: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},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})],hJ=U(Zm,fJ)(pJ),gJ=[({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}),nn,on,rn,({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})],mJ=U(Km,{shouldForwardProp:e=>Py(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}))),vJ=U(sv,Ty)(My),yJ=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:s,inline:u,disabled:c}=t,d=l(t,["id","value","header","body","leftElement","rightElement","inline","disabled"]);return e.jsxs(bJ,Object.assign({id:n||r,textValue:r,isDisabled:c},d,{children:[a||null,o&&i?e.jsx(Ly,{header:o,body:i,inline:u}):r,s&&e.jsx("div",{style:{marginLeft:"auto"},children:s})]}))},bJ=U(pv,By)(Fy),wJ=U(ev)((({theme:e})=>({backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}}))),xJ=({id:t,title:n,children:r})=>e.jsxs(Dh,{id:t,children:[n&&e.jsx(wJ,{children:n}),r]}),CJ=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:s,options:u,placeholder:c="Select",placeholderColor:d,textOnly:f,value:p,width:h,onChange:g,afterShow:m,afterHide:v,onTextChange:y}=n,b=l(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide","onTextChange"]);const[w,x]=t.useState(!1),[C,S]=t.useState(p||""),[k,E]=t.useState((null==p?void 0:p.toString())||""),O=t.useRef(null),{margin:D,marginTop:_,marginBottom:j,marginRight:P,marginLeft:T}=b,M={margin:D,marginTop:_,marginBottom:j,marginRight:P,marginLeft:T};t.useEffect((()=>{p&&p!==C&&S(p)}),[p,C]),t.useEffect((()=>{y&&y(k)}),[k]);return e.jsxs(Lv,Object.assign({onOpenChange:e=>{x(e),m&&e&&m(),v&&!e&&v()},menuTrigger:"focus",onInputChange:E,onSelectionChange:e=>{e&&(S(e),g&&g(e))},isDisabled:a,shouldFocusWrap:!0,selectedKey:p?C:void 0},b,{children:[e.jsxs(SJ,Object.assign({ref:O,hasLabel:!!s,width:h,textOnly:f,backgroundColor:r,isDisabled:a},M,{children:[e.jsxs(mJ,{filled:!!k,disabled:a,children:[s,e.jsx(hJ,{placeholder:c,hide:!(k||!s),placeholderColor:d,fontSize:i,isDisabled:a})]}),e.jsx(Ky,{children:e.jsx(sn,{name:w?"caret-up":"caret-down",inheritColor:!0})})]})),e.jsx(Nm,{}),e.jsx(kv,{triggerRef:O,offset:2,children:e.jsxs(vJ,{autoWidth:f,width:h,children:[null==u?void 0:u.map((t=>e.jsx(yJ,Object.assign({},t),t.id||t.value))),o]})})]}))};CJ.Item=yJ,CJ.Section=xJ;const SJ=U.div(gJ),kJ=U.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 EJ={exports:{}};EJ.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:W(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)&&!u(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 u(e){return l(e)||s(e)}function c(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=u,n.isOrdered=c,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(_)),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 _(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function P(e,t){return M(e,t,0)}function T(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A=0,L=1,R=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=I||N;function F(e){this.next=e}function $(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 z(){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 Z(e){return e&&"number"==typeof e.length}function W(e){return null==e?ae():a(e)?e.toSeq():ue(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()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=A,F.VALUES=L,F.ENTRIES=R,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(W,n),W.of=function(){return W(arguments)},W.prototype.toSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq {","}")},W.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},W.prototype.__iterate=function(e,t){return de(this,e,t,!0)},W.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(q,W),q.prototype.toKeyedSeq=function(){return this},t(G,W),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,W),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},W.isSeq=ie,W.Keyed=q,W.Set=Y,W.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=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(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 ce(e){return Z(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 F((function(){var e=o[n?i-a:a];return a++>i?z():$(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)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(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(){}W.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 F((function(){return o>r?z():$(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 F((function(){var a=r[t?o-i:i];return i++>o?z():$(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 F(z);var r=0;return new F((function(){var t=n.next();return t.done?t:$(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 F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return $(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 j(e,t,n)?this:new be(this._value,T(t,n)-P(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 F((function(){return r<n.size?$(e,r++,n._value):z()}))},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 j(e,t,this.size)?this:(e=P(e,this.size),(t=T(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 F((function(){var a=o;return o+=t?-r:r,i>n?z():$(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 _e(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>Fe?je(e):Pe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Te(e);if("function"==typeof e.toString)return Pe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=Ke[e];return void 0===t&&(t=Pe(e),ze===$e&&(ze=0,Ke={}),ze++,Ke[e]=t),t}function Pe(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return De(t)}function Te(e){var t;if(Ie&&void 0!==(t=Re.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Re.set(e,t);else{if(void 0!==Me&&!1===Me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Be,{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[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Me=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,Ie="function"==typeof WeakMap;Ie&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,$e=255,ze=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)&&!c(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[We])}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 Ze,We="@@__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 $(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 Ze||(Ze=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 ut(e,t,n,r){e||(e=new k);for(var o=new Qe(e,_e(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 ct(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,u=t.length;l<u;l++,s<<=1){var c=t[l];void 0!==c&&l!==r&&(o|=s,a[i++]=c)}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,u=o?b:e.get(s,b),c=mt(u,t,n,r);return c===u?e:c===b?e.remove(s):(o?ot():e).set(s,c)}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[We]=!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,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(S(a),(l||!d)&&S(i),!l||1!==s.length){if(!d&&!l&&s.length>=xt)return ut(e,s,r,o);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[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=_e(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=_e(r));var l=(0===t?n:n>>>t)&y,s=1<<l,u=this.bitmap,c=0!=(u&s);if(!c&&o===b)return this;var d=vt(u&s-1),f=this.nodes,p=c?f[d]:void 0,h=at(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!c&&h&&f.length>=Ct)return dt(e,f,u,l,h);if(c&&!h&&2===f.length&<(f[1^d]))return f[1^d];if(c&&h&&1===f.length&<(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^s:u|s,w=c?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=_e(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=_e(r));var l=(0===t?n:n>>>t)&y,s=o===b,u=this.nodes,c=u[l];if(s&&!c)return this;var d=at(c,e,t+m,n,r,o,i,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<St)return ct(e,u,f,l)}else f++;var p=e&&e===this.ownerID,h=yt(u,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=_e(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,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(S(a),(l||!d)&&S(i),l&&2===c)return new Qe(e,this.keyHash,s[1^u]);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[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,_e(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,F),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 z()};var xt=v/4,Ct=v/2,St=v/4;function kt(e){var t=Lt();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?At(0,r,m,null,new _t(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=Bt(this,e+=this._origin);return n&&n.array[e&y]}return t},kt.prototype.set=function(e,t){return Rt(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):Lt()},kt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},kt.prototype.pop=function(){return Ft(this,0,-1)},kt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},kt.prototype.shift=function(){return Ft(this,1)},kt.prototype.merge=function(){return $t(this,void 0,arguments)},kt.prototype.mergeWith=function(t){return $t(this,t,e.call(arguments,1))},kt.prototype.mergeDeep=function(){return $t(this,pt,arguments)},kt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return $t(this,ht(t),n)},kt.prototype.setSize=function(e){return Ft(this,0,e)},kt.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:Ft(this,P(e,n),T(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Tt?z():$(e,n++,t)}))},kt.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Tt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?At(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 _t(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,_t.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 _t([],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},_t.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 jt,Pt,Tt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=zt(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,u=r-a;return u>v&&(u=v),function(){if(s===u)return Tt;var e=t?--u:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);return c>v&&(c=v),function(){for(;;){if(l){var e=l();if(e!==Tt)return e;l=null}if(u===c)return Tt;var n=t?--c:u++;l=a(s&&s[n],o-m,i+(n<<o))}}}}function At(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 Lt(){return jt||(jt=At(0,0,m))}function Rt(e,t,n){if((t=D(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=zt(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):At(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 u=e&&e.array[l],c=It(u,t,n-m,r,o,i);return c===u?e:((a=Nt(e,t)).array[l]=c,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 _t(e?e.array.slice():[],t)}function Bt(e,t){if(t>=zt(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 Ft(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,u=e._root,c=0;a+c<0;)u=new _t(u&&u.array.length?[void 0,u]:[],r),c+=1<<(s+=m);c&&(a+=c,o+=c,l+=c,i+=c);for(var d=zt(i),f=zt(l);f>=1<<s+m;)u=new _t(u&&u.array.length?[u]:[],r),s+=m;var p=e._tail,h=f<d?Bt(e,l-1):f>d?new _t([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var g=u=Nt(u,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,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(c=0;u;){var w=a>>>s&y;if(w!==f>>>s&y)break;w&&(c+=(1<<s)*w),s-=m,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,s,a-c)),u&&f<d&&(u=u.removeAfter(r,s,f-c)),c&&(a-=c,l-=c)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):At(a,l,s,u,h)}function $t(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],u=o(s);u.size>i&&(i=u.size),a(s)||(u=u.map((function(e){return pe(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function zt(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)&&c(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 Pt||(Pt=Ht(ot(),Lt()))}function Zt(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 Wt(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===R){var r=e.__iterator(t,n);return new F((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===L?A:L,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(R,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return $(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(R,i),l=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],c=s[1];if(t.call(n,c,u,e))return $(o,r?u:l++,c,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=(c(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),j(t,n,o))return e;var i=P(t,o),a=T(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 u=bn(e);return u.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(u.get=function(t,n){return(t=D(this,t))>=0&&t<l?e.get(t+i,n):n}),u.__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,u=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==l})),u},u.__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 F((function(){for(;a++<i;)o.next();if(++s>l)return z();var e=o.next();return r||t===L?e:$(t,s-1,t===A?void 0:e.value[1],e)}))},u}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(R,o),l=!0;return new F((function(){if(!l)return z();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],u=o[1];return t.call(n,u,s,i)?r===R?e:$(r,s,u,e):(l=!1,z())}))},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,u){if(!l||!(l=t.call(n,e,i,u)))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(R,i),s=!0,u=0;return new F((function(){var e,i,c;do{if((e=l.next()).done)return r||o===L?e:$(o,u++,o===A?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],s&&(s=t.call(n,c,i,a))}while(s);return o===R?e:$(o,i,c,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 u=new te(o);return n?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,u){var c=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?s(e,u+1):!1===r(e,n?o:i++,c)&&(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 F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===R&&(u=u[1]),t&&!(l.length<t)||!a(u))return n?e:$(r,s++,u,e);l.push(i),i=u.__iterator(r,o)}else i=l.pop()}return z()}))},r}function un(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 cn(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(L,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?$(n,a++,t):$(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(L,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 F((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?z():$(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):W.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(!Z(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 Zt(this,e,t)},Kt.prototype.remove=function(e){return Zt(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(Wt,q),Wt.prototype.get=function(e,t){return this._iter.get(e,t)},Wt.prototype.has=function(e){return this._iter.has(e)},Wt.prototype.valueSeq=function(){return this._iter.valueSeq()},Wt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Wt.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},Wt.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)},Wt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:$(e,t?--r:r++,o.value,o)}))},Wt.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(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:$(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(L,t);return new F((function(){var t=n.next();return t.done?t:$(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(L,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var o=a(r);return $(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Wt.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(_n.bind(void 0,e))}catch(e){}}function _n(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 jn(e){return null==e?In():Pn(e)&&!c(e)?e:In().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Pn(e){return!(!e||!e[Mn])}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(jn,Ee),jn.of=function(){return this(arguments)},jn.fromKeys=function(e){return this(r(e).keySeq())},jn.prototype.toString=function(){return this.__toString("Set {","}")},jn.prototype.has=function(e){return this._map.has(e)},jn.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},jn.prototype.remove=function(e){return Ln(this,this._map.remove(e))},jn.prototype.clear=function(){return Ln(this,this._map.clear())},jn.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])},jn.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)}))}))},jn.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)}))}))},jn.prototype.merge=function(){return this.union.apply(this,arguments)},jn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},jn.prototype.sort=function(e){return Nn(dn(this,e))},jn.prototype.sortBy=function(e,t){return Nn(dn(this,t,e))},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},jn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},jn.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)},jn.isSet=Pn;var Tn,Mn="@@__IMMUTABLE_SET__@@",An=jn.prototype;function Ln(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 Rn(e,t){var n=Object.create(An);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Tn||(Tn=Rn(ot()))}function Nn(e){return null==e?Kn():Bn(e)?e:Kn().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Pn(e)&&c(e)}An[Mn]=!0,An[g]=An.remove,An.mergeDeep=An.merge,An.mergeDeepWith=An.mergeWith,An.withMutations=qe.withMutations,An.asMutable=qe.asMutable,An.asImmutable=qe.asImmutable,An.__empty=In,An.__make=Rn,t(Nn,jn),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=Bn;var Fn,$n=Nn.prototype;function zn(e,t){var n=Object.create($n);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return Fn||(Fn=zn(Ut()))}function Vn(e){return null==e?Gn():Hn(e)?e:Gn().unshiftAll(e)}function Hn(e){return!(!e||!e[Zn])}$n[h]=!0,$n.__empty=Kn,$n.__make=zn,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(j(e,t,this.size))return this;var n=P(e,this.size);if(T(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 F((function(){if(r){var t=r.value;return r=r.next,$(e,n++,t)}return z()}))},Vn.isStack=Hn;var Un,Zn="@@__IMMUTABLE_STACK__@@",Wn=Vn.prototype;function qn(e,t,n,r){var o=Object.create(Wn);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}Wn[Zn]=!0,Wn.withMutations=qe.withMutations,Wn.asMutable=qe.asMutable,Wn.asImmutable=qe.asImmutable,Wn.wasAltered=qe.wasAltered,n.Iterator=F,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 Wt(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 jn(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(R)},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(A)},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(L)},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(_)},flatMap:function(e,t){return gn(this,un(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[B]=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=c(e),n=l(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sr(_e(e),_e(t))|0}:function(e,t){r=r+sr(_e(e),_e(t))|0}:t?function(e){r=31*r+_e(e)|0}:function(e){r=r+_e(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[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Wt(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=P(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,cn(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 ur={Iterable:n,Seq:W,Collection:Ce,Map:He,OrderedMap:Kt,List:kt,Stack:Vn,Set:jn,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ve,fromJS:pe};return ur}();var OJ=EJ.exports,DJ=OJ.OrderedMap,_J={createFromArray:function(e){return DJ(e.map((function(e){return[e.getKey(),e]})))}};var jJ=OJ,PJ=jJ.Map,TJ=jJ.OrderedSet,MJ=jJ.Record,AJ=TJ(),LJ={style:AJ,entity:null},RJ=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 IJ;var t=PJ({style:AJ,entity:null}).merge(e),n=NJ.get(t);if(n)return n;var o=new r(t);return NJ=NJ.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?TJ(t):t,entity:Array.isArray(n)?TJ(n):n})},r}(MJ(LJ)),IJ=new RJ,NJ=PJ([[PJ(LJ),IJ]]);RJ.EMPTY=IJ;var BJ=RJ;var FJ=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 $J=BJ,zJ=FJ,KJ=OJ,VJ=KJ.List,HJ=KJ.Map,UJ=KJ.OrderedSet,ZJ=KJ.Record,WJ=KJ.Repeat,qJ=UJ(),GJ=ZJ({key:"",type:"unstyled",text:"",characterList:VJ(),depth:0,data:HJ()}),YJ=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=VJ(WJ($J.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():qJ},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){zJ(this.getCharacterList(),XJ,e,t)},o.findEntityRanges=function(e,t){zJ(this.getCharacterList(),JJ,e,t)},r}(GJ);function XJ(e,t){return e.getStyle()===t.getStyle()}function JJ(e,t){return e.getEntity()===t.getEntity()}var QJ=YJ;var eQ=BJ,tQ=FJ,nQ=OJ,rQ=nQ.List,oQ=nQ.Map,iQ=nQ.OrderedSet,aQ=nQ.Record,lQ=nQ.Repeat,sQ=iQ(),uQ={parent:null,characterList:rQ(),data:oQ(),depth:0,key:"",text:"",type:"unstyled",children:rQ(),prevSibling:null,nextSibling:null},cQ=function(e,t){return e.getStyle()===t.getStyle()},dQ=function(e,t){return e.getEntity()===t.getEntity()},fQ=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uQ;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=rQ(lQ(eQ.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():sQ},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){tQ(this.getCharacterList(),cQ,e,t)},o.findEntityRanges=function(e,t){tQ(this.getCharacterList(),dQ,e,t)},r}(aQ(uQ)),pQ=fQ,hQ=BJ,gQ=OJ.Map;function mQ(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).concat(gQ([[l,o.get(l)]])).map((function(e,t){var o,u;i===l?(o=a,u=s):(o=t===i?a:0,u=t===l?s:e.getLength());for(var c,d=e.getCharacterList();o<u;)c=d.get(o),d=d.set(o,r?hQ.applyStyle(c,n):hQ.removeStyle(c,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var vQ={add:function(e,t,n){return mQ(e,t,n,!0)},remove:function(e,t,n){return mQ(e,t,n,!1)}},yQ=BJ;var bQ=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,yQ.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},wQ=OJ;var xQ=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(wQ.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,s=t===a?l:e.getLength();return bQ(e,r,s,n)}));return e.merge({blockMap:r.merge(s),selectionBefore:t,selectionAfter:t})},CQ={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,u=null,c=0;c<i.length;c++){if(e<(a=l+i[c].length)&&l<t)null!==s||(s=l),u=a;else if(null!==s)break;l=a}var d=r+n.length,f=s===r,p=u===d;return(!f&&p||f&&!p)&&("forward"===o?u!==d&&u++:s!==r&&s--),{start:s,end:u}}},SQ="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var kQ=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(SQ(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}},EQ=kQ;var OQ=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?EQ(!1,"Entity key not found in this range."):EQ(!1)),n},DQ=CQ,_Q=OQ,jQ=kQ;function PQ(e,t,n,r,o,i,a){var l=n.getStartOffset(),s=n.getEndOffset(),u=e.__get(o).getMutability(),c=a?l:s;if("MUTABLE"===u)return n;var d=_Q(t,o).filter((function(e){return c<=e.end&&c>=e.start}));1!=d.length&&("production"!==process.env.NODE_ENV?jQ(!1,"There should only be one entity range within this removal range."):jQ(!1));var f=d[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:l=f.start);var p=DQ.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 TQ=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 u=r;if(l&&l===s)u=PQ(e,t,u,o,l,!0,!0);else if(l&&s){var c=PQ(e,t,u,o,l,!1,!0),d=PQ(e,n,u,o,s,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(l){var f=PQ(e,t,u,o,l,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var p=PQ(e,n,u,o,s,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u},MQ={},AQ=Math.pow(2,24);var LQ=function(){for(var e;void 0===e||MQ.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*AQ).toString(32);return MQ[e]=!0,e},RQ=pQ,IQ=LQ,NQ=OJ.OrderedMap,BQ=function(e){return e.first()instanceof RQ?function(e){var t,n={};return NQ(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),u=r.getParentKey(),c=IQ();if(n[i]=c,a&&(e.get(a)?e.setIn([a,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(r.getKey()),c))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):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 NQ(e.toArray().map((function(e){var t=IQ();return[t,e.set("key",t)]})))}(e)},FQ=BJ,$Q=FJ,zQ=kQ;function KQ(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,u=function(e,t,n){var r;return $Q(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?zQ(!1,"Removal range must exist within character list."):zQ(!1)),r}(r,l,n),c=u.start,d=u.end;c<d;)s=r.get(c),r=r.set(c,FQ.applyEntity(s,null)),c++;return t.set("characterList",r)}return t}var VQ=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),l=n.get(i),s=KQ(r,l,a);s!==l&&(o[i]=s);var u=t.getEndKey(),c=t.getEndOffset(),d=n.get(u);i===u&&(d=s);var f=KQ(r,d,c);return f!==d&&(o[u]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},HQ=BQ,UQ=VQ,ZQ=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=UQ(e,t).getBlockMap(),l=a.keySeq(),s=l.indexOf(n),u=l.indexOf(o)+1;return HQ(a.slice(s,u).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 WQ=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},qQ=_J,GQ=pQ,YQ=WQ,XQ=kQ,JQ=BQ,QQ=OJ.List,e1=function(e,t,n,r,o,i){var a=n.first()instanceof GQ,l=[],s=r.size,u=n.get(o),c=r.first(),d=r.last(),f=d.getLength(),p=d.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!c.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=qQ.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),u=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([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var c=e.get(l).getChildKeys(),d=c.indexOf(o)+1,f=c.toArray();f.splice.apply(f,[d,0].concat(s)),t.setIn([l,"children"],QQ(f))}}))}(g,0,u,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},t1=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?XQ(!1,"`insertFragment` should only be called with a collapsed selection state."):XQ(!1));var o=e.getBlockMap(),i=JQ(n),a=t.getStartKey(),l=t.getStartOffset(),s=o.get(a);return s instanceof GQ&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?XQ(!1,"`insertFragment` should not be called when a container node is selected."):XQ(!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(),u=l.getCharacterList(),c=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:YQ(u,r.getCharacterList(),i),type:p,data:f});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:d,focusKey:c,focusOffset:d,isBackward:!1})})}(e,t,o,i.first(),a,l,r):e1(e,t,o,i,a,l)},n1=WQ,r1=kQ,o1=OJ.Repeat;var i1=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?r1(!1,"`insertText` should only be called with a collapsed range."):r1(!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),u=s.getText(),c=s.merge({text:u.slice(0,l)+n+u.slice(l,s.getLength()),characterList:n1(s.getCharacterList(),o1(r,o).toList(),l)}),d=l+o;return e.merge({blockMap:i.set(a,c),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},a1=OJ.Map;var l1=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(a1([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},s1=pQ,u1=function(e,t){if(!(e instanceof s1))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},c1=pQ,d1=u1,f1=OJ;f1.List;var p1=f1.Map,h1=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},g1=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},m1=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},v1=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},y1=function(e,t,n,r){return e.withMutations((function(o){if(h1(t.getKey(),o,(function(e){return e.merge({nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})})),h1(n.getKey(),o,(function(e){return e.merge({nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})})),g1(t.getKey(),r).forEach((function(e){return h1(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})}))})),h1(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),h1(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:m1(e,o,r)})})),h1(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:v1(e,o,r)})})),h1(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),g1(n.getKey(),r).forEach((function(e){h1(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=d1(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?d1(o,t):null}return n}(n,r).forEach((function(e){return h1(e,o,(function(e){return e.merge({nextSibling:m1(e,o,r),prevSibling:v1(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();h1(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),h1(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){h1(e,o,(function(e){return e.merge({parent:l})}))})),null!=l){var s=e.get(l);h1(l,o,(function(e){return e.merge({children:s.getChildKeys().concat(t.getChildKeys())})}))}h1(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},b1=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},w1=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),u=r.get(a),c=s instanceof c1,d=[];if(c){var f=u.getChildKeys(),p=g1(a,r);u.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([a]))),d=d.concat(g1(d1(u,r),r))}n=s===u?b1(s.getCharacterList(),i,l):s.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(l));var h=s.merge({text:s.getText().slice(0,i)+u.getText().slice(l),characterList:n}),g=c&&0===i&&0===l&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?p1([[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(p1([[a,null]])).map((function(e,t){return t===o?h:null})),m=r.merge(g).filter((function(e){return!!e}));return c&&s!==u&&(m=y1(m,s,u,r)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},x1=pQ,C1=LQ,S1=OJ,k1=kQ,E1=l1,O1=S1.List,D1=S1.Map,_1=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},j1=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?k1(!1,"Selection range must be collapsed."):k1(!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 E1(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var l=t.getAnchorOffset(),s=o.getCharacterList(),u=C1(),c=o instanceof x1,d=o.merge({text:i.slice(0,l),characterList:s.slice(0,l)}),f=d.merge({key:u,text:i.slice(l),characterList:s.slice(l),data:D1()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,d],[u,f]],h).toOrderedMap();return c&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?k1(!1,"ContentBlockNode must not have children"):k1(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();_1(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:O1(i)})})),_1(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),_1(r,e,(function(e){return e.merge({nextSibling:o})})),_1(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},P1=BJ,T1=vQ,M1=xQ,A1=TQ,L1=ZQ,R1=t1,I1=i1,N1=kQ,B1=l1,F1=VQ,$1=w1,z1=j1,K1=OJ.OrderedSet,V1={replaceText:function(e,t,n,r,o){var i=F1(e,t),a=$1(i,t),l=P1.create({style:r||K1(),entity:o||null});return I1(a,a.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?N1(!1,"Target range must be collapsed for `insertText`."):N1(!1)),V1.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=L1(e,t),o=V1.removeRange(e,t,"backward");return V1.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=F1(e,t),i=$1(o,t);return R1(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(),u=i.getEntityAt(l),c=a.getEntityAt(s-1);if(r===o&&u&&u===c){var d=A1(e.getEntityMap(),i,a,t,n);return $1(e,d)}var f=F1(e,t);return $1(f,t)},splitBlock:function(e,t){var n=F1(e,t),r=$1(n,t);return z1(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return T1.add(e,t,n)},removeInlineStyle:function(e,t,n){return T1.remove(e,t,n)},setBlockType:function(e,t,n){return B1(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return B1(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return B1(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=F1(e,t);return M1(r,t,n)}},H1=V1;var U1=function(e){return Object.keys(e).map((function(t){return e[t]}))};function Z1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W1=FJ,q1=U1,G1=OJ,Y1=G1.List,X1=G1.Repeat,J1=G1.Record,Q1=function(){return!0},e0=J1({start:null,end:null}),t0=J1({start:null,end:null,decoratorKey:null,leaves:null}),n0={generate:function(e,t,n){var r=t.getLength();if(!r)return Y1.of(new t0({start:0,end:0,decoratorKey:null,leaves:Y1.of(new e0({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):Y1(X1(null,r)),a=t.getCharacterList();return W1(i,o0,Q1,(function(e,t){o.push(new t0({start:e,end:t,decoratorKey:i.get(e),leaves:r0(a.slice(e,t).toList(),e)}))})),Y1(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 t0(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){Z1(e,t,n[t])}))}return e}({},n,{leaves:null!=t?Y1(Array.isArray(t)?t:q1(t)).map((function(e){return e0(e)})):null}))}};function r0(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return W1(r,o0,Q1,(function(e,r){n.push(new e0({start:e+t,end:r+t}))})),Y1(n)}function o0(e,t){return e===t}var i0=n0;var a0=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,OJ.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),l0=a0;var s0=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 u0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c0=l0,d0=kQ,f0=s0,p0=(0,OJ.Map)(),h0=f0();function g0(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var m0={getLastCreatedEntityKey:function(){return g0("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),m0.__getLastCreatedEntityKey()},create:function(e,t,n){return g0("DraftEntity.create","contentState.createEntity"),m0.__create(e,t,n)},add:function(e){return g0("DraftEntity.add","contentState.addEntity"),m0.__add(e)},get:function(e){return g0("DraftEntity.get","contentState.getEntity"),m0.__get(e)},__getAll:function(){return p0},__loadWithEntities:function(e){p0=e,h0=f0()},mergeData:function(e,t){return g0("DraftEntity.mergeData","contentState.mergeEntityData"),m0.__mergeData(e,t)},replaceData:function(e,t){return g0("DraftEntity.replaceData","contentState.replaceEntityData"),m0.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return h0},__create:function(e,t,n){return m0.__add(new c0({type:e,mutability:t,data:n||{}}))},__add:function(e){return h0=f0(),p0=p0.set(h0,e),h0},__get:function(e){var t=p0.get(e);return t||("production"!==process.env.NODE_ENV?d0(!1,"Unknown DraftEntity key: %s.",e):d0(!1)),t},__mergeData:function(e,t){var n=m0.__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){u0(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return p0=p0.set(e,o),o},__replaceData:function(e,t){var n=m0.__get(e).set("data",t);return p0=p0.set(e,n),n}},v0=m0;var y0=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,OJ.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),b0=y0,w0=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},x0=new RegExp("\r","g");var C0=function(e){return e.replace(x0,"")};function S0(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){k0(e,t,n[t])}))}return e}function k0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E0=_J,O0=BJ,D0=QJ,_0=pQ,j0=v0,P0=b0,T0=LQ,M0=U1,A0=w0,L0=OJ,R0=C0,I0=L0.List,N0=L0.Record,B0=L0.Repeat,F0=L0.Map,$0=L0.OrderedMap,z0=N0({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),K0=A0("draft_tree_data_support")?_0:D0,V0=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 j0},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 j0.__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 j0.__create(e,t,n),this},o.mergeEntityData=function(e,t){return j0.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return j0.__replaceData(e,t),this},o.addEntity=function(e){return j0.__add(e),this},o.getEntity=function(e){return j0.__get(e)},o.getAllEntities=function(){return j0.__getAll()},o.loadWithEntities=function(e){return j0.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=E0.createFromArray(n),i=o.isEmpty()?new P0:P0.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||j0,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=R0(e),new K0({key:T0(),text:e,type:"unstyled",characterList:I0(B0(O0.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(S0({},e,{blockMap:$0(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new P0(e.selectionBefore),selectionAfter:new P0(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new K0(S0({},e,{data:F0(e.data),characterList:null!=t?I0((Array.isArray(t)?t:M0(t)).map((function(e){return O0.fromJS(e)}))):void 0}))},r}(z0),H0=V0,U0=kQ,Z0="LTR",W0="RTL",q0=null;function G0(e){return e===Z0||e===W0}function Y0(e){return G0(e)||("production"!==process.env.NODE_ENV?U0(!1,"`dir` must be a strong direction to be converted to HTML Direction"):U0(!1)),e===Z0?"ltr":"rtl"}function X0(e){q0=e}var J0={NEUTRAL:"NEUTRAL",LTR:Z0,RTL:W0,isStrong:G0,getHTMLDir:Y0,getHTMLDirIfDifferent:function(e,t){return G0(e)||("production"!==process.env.NODE_ENV?U0(!1,"`dir` must be a strong direction to be converted to HTML Direction"):U0(!1)),G0(t)||("production"!==process.env.NODE_ENV?U0(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):U0(!1)),e===t?null:Y0(e)},setGlobalDir:X0,initGlobalDir:function(){X0(Z0)},getGlobalDir:function(){return q0||this.initGlobalDir(),q0||("production"!==process.env.NODE_ENV?U0(!1,"Global direction not set."):U0(!1)),q0}},Q0=J0,e2=kQ,t2="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",n2="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",r2=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+t2+n2+"]"),o2=new RegExp("["+t2+n2+"]");function i2(e){var t=r2.exec(e);return null==t?null:t[0]}function a2(e){var t=i2(e);return null==t?Q0.NEUTRAL:o2.exec(t)?Q0.RTL:Q0.LTR}function l2(e,t){if(t=t||Q0.NEUTRAL,!e.length)return t;var n=a2(e);return n===Q0.NEUTRAL?t:n}function s2(e,t){return t||(t=Q0.getGlobalDir()),Q0.isStrong(t)||("production"!==process.env.NODE_ENV?e2(!1,"Fallback direction must be a strong direction"):e2(!1)),l2(e,t)}var u2={firstStrongChar:i2,firstStrongCharDir:a2,resolveBlockDir:l2,getDirection:s2,isDirectionLTR:function(e,t){return s2(e,t)===Q0.LTR},isDirectionRTL:function(e,t){return s2(e,t)===Q0.RTL}};function c2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d2,f2=u2,p2=J0,h2=kQ,g2=function(){function e(e){c2(this,"_defaultDir",void 0),c2(this,"_lastDir",void 0),e?p2.isStrong(e)||("production"!==process.env.NODE_ENV?h2(!1,"Default direction must be a strong direction (LTR or RTL)"):h2(!1)):e=p2.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=f2.getDirection(e,this._lastDir),this._lastDir},e}(),m2=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},v2=g2,y2=OJ,b2=m2,w2=y2.OrderedMap;function x2(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){C2(e,t,n[t])}))}return e}function C2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S2=i0,k2=H0,E2={getDirectionMap:function(e,t){d2?d2.reset():d2=new v2;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return b2(d2).getDirection(e.getText())})),o=w2(n.keySeq().zip(r));return null!=t&&y2.is(t,o)?t:o}},O2=b0,D2=OJ,_2=D2.OrderedSet,j2=D2.Record,P2=D2.Stack,T2=D2.OrderedMap,M2=D2.List,A2=j2({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:P2(),selection:null,treeMap:null,undoStack:P2()}),L2=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(k2.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:P2(),redoStack:P2(),decorator:n||null,selection:O2.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=x2({},e,{treeMap:I2(n,e.decorator),directionMap:E2.getDirectionMap(n)});return new t(new A2(r))},t.fromJS=function(e){return new t(new A2(x2({},e,{directionMap:null!=e.directionMap?T2(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?_2(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?k2.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?P2(e.redoStack.map((function(e){return k2.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new O2(e.selection):e.selection,treeMap:null!=e.treeMap?T2(e.treeMap).map((function(e){return M2(e).map((function(e){return S2.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?P2(e.undoStack.map((function(e){return k2.fromJS(e)}))):e.undoStack,currentContent:k2.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 S2.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):I2(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 S2.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){C2(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 N2(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 N2(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 R2(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),R2(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new O2({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=E2.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(),u=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),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",l.getSelectionBefore()));var c=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(c=null);var d={currentContent:u,directionMap:i,undoStack:s,redoStack:P2(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:c};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=E2.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=E2.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 R2(e,t,n){return L2.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function I2(e,t){return e.getBlockMap().map((function(n){return S2.generate(e,n,t)})).toOrderedMap()}function N2(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):_2()}var B2=L2,F2=pQ,$2=u1,z2=OJ,K2=kQ,V2=z2.OrderedMap,H2=z2.List,U2=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Z2=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),s=t.getParentKey(),u=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),d=n.getParentKey(),f=i?n.getNextSiblingKey():l,p=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){U2(s,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),U2(c,e,(function(e){return e.merge({nextSibling:u})})),U2(u,e,(function(e){return e.merge({prevSibling:c})})),U2(f,e,(function(e){return e.merge({prevSibling:a})})),U2(p,e,(function(e){return e.merge({nextSibling:a})})),U2(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:H2(o)})})),U2(a,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))};function W2(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){q2(e,t,n[t])}))}return e}function q2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G2=_J,Y2=BJ,X2=QJ,J2=pQ,Q2=H1,e5=B2,t5=LQ,n5=OJ,r5=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?K2(!1,"Replacing blocks is not supported."):K2(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?K2(!1,"Block cannot be moved next to itself."):K2(!1));var a=e.getBlockMap(),l=t instanceof F2,s=[t],u=a.delete(i);l&&(s=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=$2(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 c=u.toSeq().takeUntil((function(e){return e===n})),d=u.toSeq().skipUntil((function(e){return e===n})).skip(1),f=s.map((function(e){return[e.getKey(),e]})),p=V2();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?K2(!1,"Block cannot be moved next to itself."):K2(!1)),p=c.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?K2(!1,"Block cannot be moved next to itself."):K2(!1)),p=c.concat([[o,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:Z2(p,t,n,r,l),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},o5=w0("draft_tree_data_support"),i5=o5?J2:X2,a5=n5.List,l5=n5.Repeat,s5={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=Q2.removeRange(r,o,"backward"),a=i.getSelectionAfter(),l=Q2.splitBlock(i,a),s=l.getSelectionAfter(),u=Q2.setBlockType(l,s,"atomic"),c=Y2.create({entity:t}),d={key:t5(),type:"atomic",text:n,characterList:a5(l5(c,n.length))},f={key:t5(),type:"unstyled"};o5&&(d=W2({},d,{nextSibling:f.key}),f=W2({},f,{prevSibling:d.key}));var p=[new i5(d),new i5(f)],h=G2.createFromArray(p),g=Q2.replaceWithFragment(u,s,h),m=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return e5.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=r5(i,t,l,r)}else{var s=Q2.removeRange(i,n,"backward"),u=s.getSelectionAfter(),c=s.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=r5(s,t,c,"before");else if(u.getEndOffset()===c.getLength())o=r5(s,t,c,"after");else{var d=Q2.splitBlock(s,u),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());o=r5(d,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return e5.push(e,h,"move-block")}};var u5=OJ.List,c5=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)})),u5(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 d5=c5;function f5(e){return e.replace(/\//g,"-")}var p5=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(f5).join(" "):Array.prototype.map.call(arguments,f5).join(" ")},h5=t,g5=p5,m5=(0,OJ.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:h5.createElement("ul",{className:g5("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:h5.createElement("ol",{className:g5("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:h5.createElement("pre",{className:g5("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),v5={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},y5={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",u="model",c="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",_="Google",j="Huawei",P="LG",T="Microsoft",M="Motorola",A="Opera",L="Samsung",R="Sharp",I="Sony",N="Xiaomi",B="Zebra",F="Facebook",$="Chromium OS",z="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)},Z=function(e,t){for(var n,i,l,s,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(l=0;l<p.length;l++)c=u[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;d+=2}},W=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,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,A]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"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],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[c,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[p,[c,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+E]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+E],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,L+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,F],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],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,W,{"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],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,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],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[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],[u,[f,L],[d,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,L],[d,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,C],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,C],[d,v]],[/(macintosh);/i],[u,[f,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,R],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,j],[d,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,j],[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],[[u,/_/g," "],[f,N],[d,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/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],[u,[f,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[d,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[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],[u,[f,M],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,M],[d,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,P],[d,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,P],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[d,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[d,m]],[/(pixel c)\b/i],[u,[f,_],[d,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,_],[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],[u,[f,I],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,I],[d,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,x],[d,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,x],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[d,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,k],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,S],[d,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,S],[d,m]],[/(nexus 9)/i],[u,[f,"HTC"],[d,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[d,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[d,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[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,u,[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,u,[d,v]],[/(surface duo)/i],[u,[f,T],[d,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[d,m]],[/(u304aa)/i],[u,[f,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[d,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[d,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[d,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[d,v]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[d,v]],[/\b(k88) b/i],[u,[f,"ZTE"],[d,v]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[d,v]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[d,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[d,v]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[d,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[d,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[d,m]],[/\b(ph-1) /i],[u,[f,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[d,v]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[d,v]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[d,v]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[d,v]],[/(sprint) (\w+)/i],[f,u,[d,m]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,T],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,B],[d,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,B],[d,m]],[/smart-tv.+(samsung)/i],[f,[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,L],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,P],[d,y]],[/(apple) ?tv/i],[f,[u,C+" TV"],[d,y]],[/crkey/i],[[u,O+"cast"],[f,_],[d,y]],[/droid.+aft(\w+)( bui|\))/i],[u,[f,x],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,R],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,I],[d,y]],[/(mitv-\w{5}) bui/i],[u,[f,N],[d,y]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,U],[u,U],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[d,g]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[u,[f,I],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,T],[d,g]],[/((pebble))app/i],[f,u,[d,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,C],[d,b]],[/droid.+; (glass) \d/i],[u,[f,_],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,B],[d,b]],[/(quest( 2| pro)?)/i],[u,[f,F],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[u,[f,x],[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[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],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"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],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[c,[p,W,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,W,q],[c,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,z],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,$],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],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"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],[c,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[c]=r,t[p]=r,Z.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[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,Z.call(e,y,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[u]=r,e[d]=r,Z.call(e,y,w.device),x&&!e[d]&&b&&b.mobile&&(e[d]=m),x&&"Macintosh"==e[u]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[u]="iPad",e[d]=v),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,Z.call(e,y,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,Z.call(e,y,w.os),x&&!e[c]&&b&&"Unknown"!=b.platform&&(e[c]=b.platform.replace(/chrome os/i,$).replace(/macos/i,z)),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([c,p,s]),Y.CPU=K([h]),Y.DEVICE=K([u,f,d,g,m,y,v,b,w]),Y.ENGINE=Y.OS=K([c,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:ot)}(y5,y5.exports);var b5="Unknown",w5={"Mac OS":"Mac OS X"};var x5,C5=(new(0,y5.exports)).getResult(),S5=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(C5.browser.version),k5={browserArchitecture:C5.cpu.architecture||b5,browserFullVersion:C5.browser.version||b5,browserMinorVersion:S5.minor||b5,browserName:C5.browser.name||b5,browserVersion:C5.browser.major||b5,deviceName:C5.device.model||b5,engineName:C5.engine.name||b5,engineVersion:C5.engine.version||b5,platformArchitecture:C5.cpu.architecture||b5,platformName:(x5=C5.os.name,w5[x5]||x5||b5),platformVersion:C5.os.version||b5,platformFullVersion:C5.os.version||b5},E5=kQ,O5=/\./,D5=/\|\|/,_5=/\s+\-\s+/,j5=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,P5=/^(\d*)(.*)/;function T5(e,t){var n=e.split(D5);return n.length>1?n.some((function(e){return K5.contains(e,t)})):function(e,t){var n=e.split(_5);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?E5(!1,'the "-" operator expects exactly 2 operands'):E5(!1)),1===n.length)return M5(n[0],t);var r=n[0],o=n[1];return N5(r)&&N5(o)||("production"!==process.env.NODE_ENV?E5(!1,'operands to the "-" operator must be simple (no modifiers)'):E5(!1)),M5(">="+r,t)&&M5("<="+o,t)}(e=n[0].trim(),t)}function M5(e,t){if(""===(e=e.trim()))return!0;var n=t.split(O5),r=R5(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return A5(n,i);case"<=":return function(e,t){var n=z5(e,t);return-1===n||0===n}(n,i);case">=":return L5(n,i);case">":return function(e,t){return 1===z5(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);I5(i)&&(r[o]=i+1+"");return L5(e,n)&&A5(e,r)}(n,i);default:return function(e,t){return 0===z5(e,t)}(n,i)}}function A5(e,t){return-1===z5(e,t)}function L5(e,t){var n=z5(e,t);return 1===n||0===n}function R5(e){var t=e.split(O5),n=t[0].match(j5);return n||("production"!==process.env.NODE_ENV?E5(!1,"expected regex to match but it did not"):E5(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function I5(e){return!isNaN(e)&&isFinite(e)}function N5(e){return!R5(e).modifier}function B5(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function F5(e,t){var n=e.match(P5)[1],r=t.match(P5)[1],o=parseInt(n,10),i=parseInt(r,10);return I5(o)&&I5(i)&&o!==i?$5(o,i):$5(e,t)}function $5(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?E5(!1,'"a" and "b" must be of the same type'):E5(!1)),e>t?1:e<t?-1:0}function z5(e,t){for(var n=function(e,t){B5(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 B5(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=F5(r[i],o[i]);if(a)return a}return 0}var K5={contains:function(e,t){return T5(e.trim(),t.trim())}},V5=K5,H5=Object.prototype.hasOwnProperty;var U5=function(e,t,n){if(!e)return null;var r={};for(var o in e)H5.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var Z5=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},W5=k5,q5=V5;function G5(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,q5.contains(o,t))}function Y5(e){return"Windows"===W5.platformName?e.replace(/^\s*NT/,""):e}var X5=U5({isBrowser:function(e){return G5(W5.browserName,W5.browserFullVersion,e)},isBrowserArchitecture:function(e){return G5(W5.browserArchitecture,null,e)},isDevice:function(e){return G5(W5.deviceName,null,e)},isEngine:function(e){return G5(W5.engineName,W5.engineVersion,e)},isPlatform:function(e){return G5(W5.platformName,W5.platformFullVersion,e,Y5)},isPlatformArchitecture:function(e){return G5(W5.platformArchitecture,null,e)}},Z5);var J5=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var Q5=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},e3=Q5;var t3=function e(t){if(e3(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},n3=J5,r3=t3;var o3=function(e){for(var t=e;t&&t!==n3(e).documentElement;){var n=r3(t);if(null!=n)return n;t=t.parentNode}return null};var i3=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function a3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l3=X5,s3=o3,u3=i3,c3=kQ,d3=m2,f3=OJ.Map,p3={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},h3=l3.isBrowser("IE <= 11"),g3=function(){function e(e){var t=this;a3(this,"observer",void 0),a3(this,"container",void 0),a3(this,"mutations",void 0),a3(this,"onCharData",void 0),this.container=e,this.mutations=f3();var n=u3(e);n.MutationObserver&&!h3?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?c3(!1,"Expected target to be an instance of Node"):c3(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,p3):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=f3(),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 h3?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=d3(s3(e.target));this.mutations=this.mutations.set(n,t)}},e}(),m3="-",v3={encode:function(e,t,n){return e+m3+t+m3+n},decode:function(e){var t=e.split(m3).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(m3),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},y3={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},b3={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var w3=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},x3=kQ,C3=w3;var S3=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?x3(!1,"Missing editorNode"):x3(!1)),C3(t.firstChild)||("production"!==process.env.NODE_ENV?x3(!1,"editorNode.firstChild is not an HTMLElement"):x3(!1)),t.firstChild},k3=v3,E3=m2;var O3=function(e,t,n,r,o){var i=E3(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=k3.decode(t),l=a.blockKey,s=e.getBlockTree(l),u=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),c=k3.decode(r),d=c.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!u||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=p.get("start"),m=u?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=u.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})},D3=o3,_3=t3,j3=O3,P3=kQ,T3=Q5,M3=m2;function A3(e,t,n){var r=t,o=D3(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?P3(!1,"Unknown node in selection range."):P3(!1)),e===r)&&(r=r.firstChild,T3(r)||("production"!==process.env.NODE_ENV?P3(!1,"Invalid DraftEditorContents node."):P3(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?P3(!1,"Invalid DraftEditorContents structure."):P3(!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&&(T3(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||_3(e.firstChild));)e=e.firstChild;return e}(r);i=M3(_3(a))}return{key:i,offset:0}}var l=r.childNodes[n-1],s=null,u=null;if(_3(l)){var c=function(e){for(;e.lastChild&&(T3(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||_3(e.lastChild));)e=e.lastChild;return e}(l);s=M3(_3(c)),u=L3(c)}else s=M3(o),u=L3(l);return{key:s,offset:u}}function L3(e){var t=e.textContent;return"\n"===t?0:t.length}var R3=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:j3(e,M3(D3(n)),r,M3(D3(o)),i),needsRecovery:!1};var s=null,u=null,c=!0;return a?(s={key:M3(D3(n)),offset:r},u=A3(t,o,i)):l?(u={key:M3(D3(o)),offset:i},s=A3(t,n,r)):(s=A3(t,n,r),u=A3(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:j3(e,s.key,s.offset,u.key,u.offset),needsRecovery:c}},I3=R3;var N3=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}:I3(e,t,r,o,i,a)},B3=b3,F3=B2,$3=S3,z3=N3;var K3=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();B3.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=z3(n,$3(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?F3.forceSelection(n,o):F3.acceptSelection(n,o),e.update(n))}};var V3={notEmptyKey:function(e){return null!=e&&""!=e}},H3=V3.notEmptyKey;function U3(e,t){return H3(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var Z3=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:U3(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),l=e.getBlockForKey(i);return n=a===l.getLength()?null:l.getEntityAt(a),U3(e.getEntityMap(),n)},W3=g3,q3=H1,G3=v3,Y3=B2,X3=y3,J3=K3,Q3=S3,e9=N3,t9=Z3,n9=m2,r9=X5.isBrowser("IE"),o9=!1,i9=!1,a9=null;var l9,s9,u9={onCompositionStart:function(e){i9=!0,function(e){a9||(a9=new W3(Q3(e))).start()}(e)},onCompositionEnd:function(e){o9=!1,i9=!1,setTimeout((function(){o9||u9.resolveComposition(e)}),20)},onSelect:J3,onKeyDown:function(e,t){if(!i9)return u9.resolveComposition(e),void e._onKeyDown(t);t.which!==X3.RIGHT&&t.which!==X3.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===X3.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!i9){var t=n9(a9).stopAndFlushMutations();a9=null,o9=!0;var n=Y3.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=G3.decode(t),i=o.blockKey,a=o.decoratorKey,l=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",l]),u=s.start,c=s.end,d=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:c,isBackward:!1}),f=t9(r,d),p=r.getBlockForKey(i).getInlineStyleAt(u);r=q3.replaceText(r,d,e,p,f),n=Y3.set(n,{currentContent:r})}));var o=e9(n,Q3(e)).selectionState;e.restoreEditorDOM();var i=r9?Y3.forceSelection(n,o):Y3.acceptSelection(n,o);e.update(Y3.push(i,r,"insert-characters"))}else e.update(n)}}},c9=u9;function d9(){if(s9)return l9;s9=1;var e=H$;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=v3,o=t,i=u2,a=J0,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,u=e.decorator,c=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,h=t.getKey(),g=f.get("leaves"),m=u.getComponentForKey(c),v=u.getPropsForKey(c),y=r.encode(h,parseInt(c,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 l9=l}function f9(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h9=t,g9=kQ,m9=Q5,v9=X5.isBrowser("IE <= 11");var y9=function(e){var t,n;function r(t){var n;return p9(f9(n=e.call(this,t)||this),"_forceFlag",void 0),p9(f9(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;m9(t)||("production"!==process.env.NODE_ENV?g9(!1,"node is not an Element"):g9(!1));var r=t;return n?!function(e){return v9?"\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},v9?h9.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):h9.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return v9?h9.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):h9.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):h9.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(h9.Component),b9=y9,w9=Q5;var x9=function(e){return!(!e||!e.ownerDocument)&&(w9(e)&&"BR"===e.nodeName)},C9={initODS:function(){},handleExtensionCausedError:function(){}};var S9=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))},k9=S9;var E9=function(e){return k9(e)&&3==e.nodeType},O9=E9;var D9=function e(t,n){return!(!t||!n)&&(t===n||!O9(t)&&(O9(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var _9=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}},j9=C9,P9=b3,T9=D9,M9=_9,A9=J5,L9=kQ,R9=Q5,I9=X5.isBrowser("IE");function N9(e,t){if(!e)return"[empty]";var n=B9(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(R9(n)||("production"!==process.env.NODE_ENV?L9(!1,"Node must be an Element if it is not a text node."):L9(!1)),n.outerHTML)}function B9(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return A9(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(B9(i[a],t));return o}function F9(e,t){for(var n=e,r=n;n;){if(R9(n)&&r.hasAttribute("contenteditable"))return N9(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function $9(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function z9(e,t,n,r){var o=M9();if(e.extend&&null!=t&&T9(o,t)){n>$9(t)&&P9.logSelectionStateFailure({anonymizedDom:F9(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 P9.logSelectionStateFailure({anonymizedDom:F9(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 K9(e,t,n,r){var o=A9(t).createRange();if(n>$9(t)&&(P9.logSelectionStateFailure({anonymizedDom:F9(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),j9.handleExtensionCausedError()),o.setStart(t,n),I9)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 V9=function(e,t,n,r,o){var i=A9(t);if(T9(i.documentElement,t)){var a=i.defaultView.getSelection(),l=e.getAnchorKey(),s=e.getAnchorOffset(),u=e.getFocusKey(),c=e.getFocusOffset(),d=e.getIsBackward();if(!a.extend&&d){var f=l,p=s;l=u,s=c,u=f,c=p,d=!1}var h=l===n&&r<=s&&o>=s,g=u===n&&r<=c&&o>=c;if(h&&g)return a.removeAllRanges(),K9(a,t,s-r,e),void z9(a,t,c-r,e);if(d){if(g&&(a.removeAllRanges(),K9(a,t,c-r,e)),h){var m=a.focusNode,v=a.focusOffset;a.removeAllRanges(),K9(a,t,s-r,e),z9(a,m,v,e)}}else h&&(a.removeAllRanges(),K9(a,t,s-r,e)),g&&z9(a,t,c-r,e)}},H9=H$;var U9,Z9,W9=b9,q9=t,G9=kQ,Y9=x9,X9=V9,J9=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?G9(!1,"Missing node"):G9(!1));var s,u=l.firstChild;u||("production"!==process.env.NODE_ENV?G9(!1,"Missing child"):G9(!1)),u.nodeType===Node.TEXT_NODE?s=u:Y9(u)?s=l:(s=u.firstChild)||("production"!==process.env.NODE_ENV?G9(!1,"Missing targetNode"):G9(!1)),X9(e,s,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?G9(!1,"Missing leafNode"):G9(!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()),H9(e,r,n)}),{});if(i){var u=i(l,t);s=H9(s,u)}return q9.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:s},q9.createElement(W9,null,n))},r}(q9.Component),Q9=J9;function e4(){if(Z9)return U9;Z9=1;var e=d9(),n=Q9,r=v3,o=t,i=p5;OJ.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,u=t.customStyleMap,c=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),c=e.get("start"),d=e.get("end");return o.createElement(n,{key:l,offsetKey:l,block:a,start:c,selection:p?h:null,forceSelection:f,text:v.slice(c,d),styleSet:a.getInlineStyleAt(c),customStyleMap:u,customStyleFn:s,isLast:g===y&&t===w})})).toArray();return g&&c?o.createElement(e,{block:a,children:x,contentState:l,decorator:c,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 U9=a}function t4(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n4={getTop:function(e){var t=e.ownerDocument;return t4(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;t4(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return t4(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;t4(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},r4=/-(.)/g;var o4=function(e){return e.replace(r4,(function(e,t){return t.toUpperCase()}))},i4=/([A-Z])/g;var a4=function(e){return e.replace(i4,"-$1").toLowerCase()},l4=o4,s4=a4;function u4(e){return null==e?e:String(e)}var c4=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return u4(n.getPropertyValue(s4(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return u4(n.getPropertyValue(s4(t)));if("display"===t)return"none"}return e.currentStyle?u4("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[l4(t)]):u4(e.style&&e.style[l4(t)])};function d4(e,t){var n=f4.get(e,t);return"auto"===n||"scroll"===n}var f4={get:c4,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(d4(e,"overflow")||d4(e,"overflowY")||d4(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},p4=f4,h4=D9;var g4=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!h4(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 m4=function(e){var t=g4(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},v4="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var y4=function(e){return(e=e||document).scrollingElement?e.scrollingElement:v4||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},b4=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 w4=function(e){var t=y4(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=b4(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 x4(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function C4(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function S4(){return{width:window.innerWidth||x4(),height:window.innerHeight||C4()}}S4.withoutScrollbars=function(){return{width:x4(),height:C4()}};var k4,E4,O4,D4,_4=S4;function j4(){if(E4)return k4;E4=1;var e=H$;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=e4(),a=v3,l=t,s=n4,u=p4,c=m4,d=w4,f=_4,p=kQ,h=w3;OJ.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=u.getScrollParent(n),i=d(o);if(o===window){var a=c(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,u=t.blockRendererFn,c=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,u),g=f.CustomComponent||w,b=m(i,s),x=b.Element,C=b.wrapperTemplate,S=y(i,p,o,c,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 u,c=n.reverse()[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,s=e}finally{try{o||null==c.return||c.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(),_=a.encode(D,0,0),j=v(o,u),P=j.CustomComponent,T=null!=P?l.createElement(P,n({},this.props,{tree:h.getBlockTree(D),blockProps:j.customProps,offsetKey:_,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 T;var M=m(o,s).Element,A=y(o,p,_,c,j,this.wrapperRef);return l.createElement(M,A,T)},w}(l.Component);return k4=b}var P4=H$;function T4(){return T4=P4||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},T4.apply(this,arguments)}var M4,A4,L4,R4,I4=Q9,N4=v3,B4=t,F4=n4,$4=p4,z4=u2,K4=J0,V4=p5,H4=m4,U4=w4,Z4=_4,W4=kQ,q4=w3,G4=m2,Y4=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},X4=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||Y4(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=$4.getScrollParent(n),i=U4(o);if(o===window){var a=H4(n);(r=a.y+a.height-Z4().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{q4(n)||("production"!==process.env.NODE_ENV?W4(!1,"blockNode is not an HTMLElement"):W4(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&F4.setTop(o,F4.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=Y4(this.props.selection,n);return this.props.tree.map((function(a,l){var s=a.get("leaves");if(0===s.size)return null;var u=s.size-1,c=s.map((function(a,s){var c=N4.encode(n,l,s),d=a.get("start"),f=a.get("end");return B4.createElement(I4,{key:c,offsetKey:c,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===u})})).toArray(),d=a.get("decoratorKey");if(null==d)return c;if(!e.props.decorator)return c;var f=G4(e.props.decorator),p=f.getComponentForKey(d);if(!p)return c;var h=f.getPropsForKey(d),g=N4.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=K4.getHTMLDirIfDifferent(z4.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 B4.createElement(p,T4({},h,x,{key:g}),c)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=V4({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return B4.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(B4.Component),J4=X4;var Q4=w0("draft_tree_data_support")?function(){if(D4)return O4;D4=1;var e=H$;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=j4(),o=v3,i=t,a=m2,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 u=s.prototype;return u.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(),u=n.getDecorator();return o!==i||a!==l||s!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,u=e.customStyleMap,c=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:c,customStyleMap:u,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 _=[];do{_.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===D.wrapperTemplate);var j=i.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},_);E.push(j)}else E.push(D.block),O++}return i.createElement("div",{"data-contents":"true"},E)},s}(i.Component);return O4=l}():function(){if(R4)return L4;R4=1;var e=H$;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=J4,a=v3,l=t,s=p5,u=(A4||(A4=1,M4=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}),M4),c=m2,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(),u=n.getDecorator();return o!==i||a!==l||s!==u||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=c(h.getDirectionMap()),S=y.getBlocksAsArray(),k=[],E=null,O=null,D=0;D<S.length;D++){var _=S[D],j=_.getKey(),P=_.getType(),T=o(_),M=void 0,A=void 0,L=void 0;T&&(M=T.component,A=T.props,L=T.editable);var R=v||C.get(j),I=a.encode(j,0,0),N={contentState:y,block:_,blockProps:A,blockStyleFn:s,customStyleMap:f,customStyleFn:p,decorator:x,direction:R,forceSelection:w,offsetKey:I,preventScroll:m,selection:b,tree:h.getBlockTree(j)},B=t.get(P)||t.get("unstyled"),F=B.wrapper,$=B.element||t.get("unstyled").element,z=_.getDepth(),K="";if(s&&(K=s(_)),"li"===$)K=u(K,d(P,z,O!==F||null===E||z>E,R));var V=M||i,H={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:j};void 0!==L&&(H=r({},H,{contentEditable:L,suppressContentEditableWarning:!0}));var U=l.createElement($,H,l.createElement(V,n({},N,{key:j})));k.push({block:U,wrapperTemplate:F,key:j,offsetKey:I}),E=F?_.getDepth():null,O=F}for(var Z=[],W=0;W<k.length;){var q=k[W];if(q.wrapperTemplate){var G=[];do{G.push(k[W].block),W++}while(W<k.length&&k[W].wrapperTemplate===q.wrapperTemplate);var Y=l.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);Z.push(Y)}else Z.push(q.block),W++}return l.createElement("div",{"data-contents":"true"},Z)},s}(l.Component);return L4=f}(),e6={isImage:function(e){return"image"===t6(e)[0]},isJpeg:function(e){var t=t6(e);return e6.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function t6(e){return e.split("/")}var n6=e6,r6=kQ;var o6=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?r6(!1,"toArray: Array-like object expected"):r6(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?r6(!1,"toArray: Object needs a length property"):r6(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?r6(!1,"toArray: Object should have keys for indices"):r6(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?r6(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):r6(!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 i6(e){return function(){return e}}var a6=function(){};a6.thatReturns=i6,a6.thatReturnsFalse=i6(!1),a6.thatReturnsTrue=i6(!0),a6.thatReturnsNull=i6(null),a6.thatReturnsThis=function(){return this},a6.thatReturnsArgument=function(e){return e};var l6=a6,s6=n6,u6=o6,c6=l6,d6=new RegExp("\r\n","g"),f6={"text/rtf":1,"text/html":1};function p6(e){if("file"==e.kind)return e.getAsFile()}var h6=function(){function e(e){this.data=e,this.types=e.types?u6(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return f6[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(d6,"\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(!s6.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(p6).filter(c6.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),g6=h6,m6=kQ,v6=/\.textClipping$/,y6={"text/plain":!0,"text/html":!0,"text/rtf":!0};var b6=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!ot.FileReader||e.type&&!(e.type in y6))return void t("");if(""===e.type){var n="";return v6.test(e.name)&&(n=e.name.replace(v6,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?m6(!1,'We should be calling "FileReader.readAsText" which returns a string'):m6(!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 w6=function(e){return"handled"===e||!0===e},x6=g6,C6=H1,S6=B2,k6=o3,E6=J5,O6=b6,D6=O3,_6=i3,j6=w6,P6=m2;var T6={onDragEnd:function(e){e.exitCurrentMode(),M6(e)},onDrop:function(e,t){var n=new x6(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=E6(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=P6(n),r=P6(r);var a=P6(k6(n));return D6(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&&j6(e.props.handleDroppedFiles(o,i)))return;O6(i,(function(t){t&&e.update(A6(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&j6(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=C6.moveText(e.getCurrentContent(),e.getSelection(),t);return S6.push(e,n,"insert-fragment")}(r,o)):e.update(A6(r,o,n.getText()))),M6(e)}}}};function M6(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:_6(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function A6(e,t,n){var r=C6.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return S6.push(e,r,"insert-fragment")}var L6=T6;var R6=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={},u=!1,c=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)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.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(u)setTimeout(p,0,e);else{var n=s[e];if(n){u=!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),u=!1}}}}}("undefined"==typeof self?ot:self);var I6=ot.setImmediate,N6=H1,B6=B2,F6=Z3,$6=w6,z6=R6,K6=m2,V6=I6,H6="'",U6="/",Z6=X5.isBrowser("Firefox");function W6(e,t,n,r,o){var i=N6.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return B6.push(e,i,"insert-characters",o)}var q6=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&&$6(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(W6(n,r,n.getCurrentInlineStyle(),F6(n.getCurrentContent(),n.getSelection()),!0));var l,s=W6(n,r,n.getCurrentInlineStyle(),F6(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=z6(e._latestCommittedEditorState)),!u){var c=n.getBlockTree(a),d=s.getBlockTree(a);u=c.size!==d.size||c.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),u=n.get("start"),c=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||a!==u||s!==c||null!=d&&c-u!=l-o}))}if(u||(l=r,u=Z6&&(l==H6||l==U6)),u||(u=K6(s.getDirectionMap()).get(a)!==K6(n.getDirectionMap()).get(a)),u)return t.preventDefault(),s=B6.set(s,{forceSelection:!0}),void e.update(s);s=B6.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,V6((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},G6=B2,Y6=D9,X6=_9;var J6=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&X6(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&Y6(o,r.anchorNode)&&Y6(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(G6.acceptSelection(i,l))}},Q6=B2;var e7=function(e,t){e.setMode("composite"),e.update(Q6.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},t7=ZQ;var n7=function(e){var t=e.getSelection();return t.isCollapsed()?null:t7(e.getCurrentContent(),t)},r7=n7;var o7=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r7(e._latestEditorState))};var i7=H1,a7=B2,l7=p4,s7=n7,u7=w4,c7=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 d7=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(c7(i)){var a=i;n=u7(l7.getScrollParent(a))}var l=s7(r);e.setClipboard(l),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=i7.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return a7.push(e,t,"remove-range")}(r))}),0)}};var f7=function(e,t){e.setMode("drag"),t.preventDefault()};var p7=function(e){e._internalDrag=!0,e.setMode("drag")},h7=B2,g7=X5;var m7=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),g7.isBrowser("Chrome < 60.0.3081.0")?e.update(h7.forceSelection(n,o)):e.update(h7.acceptSelection(n,o))}},v7=kQ,y7=55296,b7=57343,w7=/[\uD800-\uDFFF]/;function x7(e){return y7<=e&&e<=b7}function C7(e){return w7.test(e)}function S7(e,t){return 1+x7(e.charCodeAt(t))}function k7(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!C7(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+=S7(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=S7(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=S7(e,i);return e.substring(o,i)}var E7={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=S7(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:S7,hasSurrogateUnit:C7,isCodeUnitInSurrogateRange:x7,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?v7(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):v7(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return y7<=n&&n<=56319&&56320<=r&&r<=b7},strlen:function(e){if(!C7(e))return e.length;for(var t=0,n=0;n<e.length;n+=S7(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 k7(e,t=t<n?t:n,r)},substr:k7},O7=E7,D7=l6;function _7(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 j7="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];_7.apply(void 0,[t].concat(r))}}:D7,P7=j7,T7=P7;var M7=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&T7(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})},A7=H1,L7=w0("draft_tree_data_support");var R7=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),l=r.getFocusKey(),s=o.getBlockForKey(a);if(L7&&"forward"===n&&a!==l)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(L7)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(s.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return A7.removeRange(o,i,n)},I7=B2,N7=O7,B7=M7,F7=R7;var $7=function(e){var t=F7(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return B7(e,i?N7.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return I7.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},z7=H1,K7=v3,V7=B2,H7=V3.notEmptyKey,U7=o3,Z7=$7,W7=m2,q7=X5.isEngine("Gecko");var G7=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,u=e._latestEditorState,c=W7(U7(r)),d=K7.decode(c),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=u.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,y=u.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=u.getSelection(),O=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),D=b.getEntityAt(m),_=H7(D)?y.getEntity(D):null,j="MUTABLE"===(null!=_?_.getMutability():null),P=j?"spellcheck-change":"apply-entity",T=z7.replaceText(y,O,s,b.getInlineStyleAt(m),j?b.getEntityAt(m):null);if(q7)x=n.anchorOffset,C=n.focusOffset,k=(S=m+Math.min(x,C))+Math.abs(x-C),x=S,C=k;else{var M=s.length-w.length;S=E.getStartOffset(),k=E.getEndOffset(),x=o?k+M:S,C=k+M}var A=T.merge({selectionBefore:y.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:x,focusOffset:C})});e.update(V7.push(u,A,P))}else{var L=t.nativeEvent.inputType;if(L){var R=function(e,t){return"deleteContentBackward"===e?Z7(t):t}(L,u);if(R!==u)return e.restoreEditorDOM(),void e.update(R)}}}},Y7=y3;var X7=function(e){return e.which===Y7.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},J7=X7,Q7=X5.isPlatform("Mac OS X"),e8={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return Q7&&e.altKey},usesMacOSHeuristics:function(){return Q7},hasCommandModifier:function(e){return Q7?!!e.metaKey&&!e.altKey:e8.isCtrlKeyCommand(e)},isSoftNewlineEvent:J7},t8=e8,n8=H1,r8=B2,o8=ZQ,i8=m2,a8=null,l8={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=i8(r),a8=o8(t,r);var l=n8.removeRange(t,r,"forward");return l===t?e:r8.push(e,l,"remove-range")},paste:function(e){if(!a8)return e;var t=n8.replaceWithFragment(e.getCurrentContent(),e.getSelection(),a8);return r8.push(e,t,"insert-fragment")}},s8=kQ;var u8=X5.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?s8(!1,"Found an unexpected detached subtree when getting range client rects."):s8(!1)}:function(e){return Array.from(e.getClientRects())},c8=u8,d8=O7,f8=J5,p8=c8,h8=kQ;function g8(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 m8(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 v8=function(e){e.collapsed||("production"!==process.env.NODE_ENV?h8(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):h8(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=f8(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?h8(!1,"Missing document.body"):h8(!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);g8(p8(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?h8(!1,"Found unexpected detached subtree when traversing."):h8(!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&&d8.isSurrogatePair(l,s-1))){if(e.setStart(i,s),!g8(p8(e),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=m8(i=i.childNodes[s])}return e.setStart(r,o),e},y8=B2,b8=v8,w8=R3,x8=M7,C8=R7;var S8=function(e,t){var n=C8(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return x8(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=b8(r),w8(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:y8.push(e,n,"remove-range")},k8="['‘’]",E8="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),O8=new RegExp("^(?:"+E8+")*(?:"+k8+"|(?!"+E8+").)*(?:(?!"+E8+").)"),D8=new RegExp("(?:(?!"+E8+").)(?:"+k8+"|(?!"+E8+").)*(?:"+E8+")*$");function _8(e,t){var n=t?D8.exec(e):O8.exec(e);return n?n[0]:e}var j8={getBackward:function(e){return _8(e,!0)},getForward:function(e){return _8(e,!1)}},P8=j8,T8=B2,M8=M7,A8=R7;var L8=function(e){var t=A8(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return M8(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=P8.getBackward(o);return M8(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:T8.push(e,t,"remove-range")},R8=P7;var I8=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&R8(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})},N8=j8,B8=B2,F8=I8,$8=R7;var z8=function(e){var t=$8(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=N8.getForward(o);return F8(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:B8.push(e,t,"remove-range")},K8=H1,V8=B2;var H8=B2;var U8=B2;var Z8=B2,W8=O7,q8=I8,G8=R7;var Y8=function(e){var t=G8(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return q8(e,i?W8.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Z8.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},X8=H1,J8=B2,Q8=ZQ;var eee=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=Q8(a,r),u=X8.removeRange(a,r,"backward"),c=u.getSelectionAfter(),d=c.getAnchorOffset()-1,f=c.merge({anchorOffset:d,focusOffset:d}),p=X8.replaceWithFragment(u,f,s),h=J8.push(e,p,"insert-fragment");return J8.acceptSelection(h,o)},tee=B2;var nee=function(e,t,n){var r=tee.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(tee.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(tee.set(r,{nativelyRenderedContent:o}))}},ree=H1,oee=B2,iee=y3,aee=l8,lee=X5,see=w6,uee=S8,cee=L8,dee=z8,fee=function(e){var t=K8.splitBlock(e.getCurrentContent(),e.getSelection());return V8.push(e,t,"split-block")},pee=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return H8.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},hee=function(e){var t=e.getSelection(),n=t.getStartKey();return U8.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},gee=$7,mee=Y8,vee=eee,yee=nee,bee=t8.isOptionKeyCommand,wee=lee.isBrowser("Chrome");var xee=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 iee.RETURN:if(t.preventDefault(),e.props.handleReturn&&see(e.props.handleReturn(t,r)))return;break;case iee.ESC:if(t.preventDefault(),o("onEscape"))return;break;case iee.TAB:if(o("onTab"))return;break;case iee.UP:if(o("onUpArrow"))return;break;case iee.RIGHT:if(o("onRightArrow"))return;break;case iee.DOWN:if(o("onDownArrow"))return;break;case iee.LEFT:if(o("onLeftArrow"))return;break;case iee.SPACE:wee&&bee(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!see(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return oee.redo(t);case"delete":return mee(t);case"delete-word":return dee(t);case"backspace":return gee(t);case"backspace-word":return cee(t);case"backspace-to-start-of-line":return uee(t,n);case"split-block":return fee(t);case"transpose-characters":return vee(t);case"move-selection-to-start-of-block":return hee(t);case"move-selection-to-end-of-block":return pee(t);case"secondary-cut":return aee.cut(t);case"secondary-paste":return aee.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else yee(t,r,e.update);else if(n===iee.SPACE&&wee&&bee(t)){var l=ree.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(oee.push(r,l,"insert-characters"))}};var Cee=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}(),See=Cee,kee=kQ,Eee=X5.isBrowser("IE <= 9");var Oee=function(e){var t,n=null;return!Eee&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?kee(!1,"Missing doc.documentElement"):kee(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},Dee=Q5;var _ee=function(e){return!(!e||!e.ownerDocument)&&(Dee(e)&&"A"===e.nodeName)},jee=Q5;var Pee,Tee=function(e){return!(!e||!e.ownerDocument)&&(jee(e)&&"IMG"===e.nodeName)};function Mee(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){Aee(e,t,n[t])}))}return e}function Aee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lee=BJ,Ree=QJ,Iee=pQ,Nee=m5,Bee=v0,Fee=See,$ee=p5,zee=LQ,Kee=Oee,Vee=w0,Hee=OJ,Uee=Hee.List,Zee=Hee.Map,Wee=Hee.OrderedSet,qee=_ee,Gee=x9,Yee=w3,Xee=Tee,Jee=Vee("draft_tree_data_support"),Qee=new RegExp("\r","g"),ete=new RegExp("\n","g"),tte=new RegExp("^\n","g"),nte=new RegExp(" ","g"),rte=new RegExp(" ?","g"),ote=new RegExp("​?","g"),ite=["bold","bolder","500","600","700","800","900"],ate=["light","lighter","normal","100","200","300","400"],lte=["className","href","rel","target","title"],ste=["alt","className","height","src","width"],ute=(Aee(Pee={},$ee("public/DraftStyleDefault/depth0"),0),Aee(Pee,$ee("public/DraftStyleDefault/depth1"),1),Aee(Pee,$ee("public/DraftStyleDefault/depth2"),2),Aee(Pee,$ee("public/DraftStyleDefault/depth3"),3),Aee(Pee,$ee("public/DraftStyleDefault/depth4"),4),Pee),cte=Zee({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),dte=function(e){if(Yee(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},fte=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(ute).some((function(n){e.classList.contains(n)&&(t=ute[n])})),t},pte=function(e){if(!qee(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 Fee(t.href);return!0}catch(e){return!1}},hte=function(e){if(!Xee(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},gte=function(e,t){if(!Yee(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){ite.indexOf(r)>=0?e.add("BOLD"):ate.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"))}))},mte=function(e){return"ul"===e||"ol"===e},vte=function(){function e(e,t){Aee(this,"characterList",Uee()),Aee(this,"currentBlockType","unstyled"),Aee(this,"currentDepth",0),Aee(this,"currentEntity",null),Aee(this,"currentText",""),Aee(this,"wrapper",null),Aee(this,"blockConfigs",[]),Aee(this,"contentBlocks",[]),Aee(this,"entityMap",Bee),Aee(this,"blockTypeMap",void 0),Aee(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=Uee(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=Bee,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],Wee())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(Jee?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=Mee({key:e.key||zee(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Uee(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=Uee(),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||mte(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;mte(i)&&(this.wrapper=i,mte(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(hte(o))this._addImgNode(o,t);else if(pte(o))this._addAnchorNode(o,n,t);else{var u=t;cte.has(i)&&(u=u.add(cte.get(i))),u=gte(o,u);var c=dte(o);null!=c&&(u=u.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}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"),!Jee&&Yee(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=o;this.currentDepth=fte(p,this.currentDepth)}var h=zee(),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=Lee.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=Uee()):(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(tte,"")).replace(ete," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){Gee(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(Xee(e)){var n=e,r={};ste.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),Vee("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(qee(e)){var r=e,o={};lte.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new Fee(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=Uee(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new Iee(Mee({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return Uee(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 Ree(Mee({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=Uee(),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}(),yte=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nee,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kee)(e=e.trim().replace(Qee,"").replace(nte," ").replace(rte,"").replace(ote,""));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)}))})),Zee(t)}(t);return new vte(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function bte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wte=QJ,xte=pQ,Cte=yte,Ste=LQ,kte=Oee,Ete=w0,Ote=OJ,Dte=C0,_te=Ote.List,jte=Ote.Repeat,Pte=Ete("draft_tree_data_support"),Tte=Pte?xte:wte,Mte={processHTML:function(e,t){return Cte(e,kte,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=Dte(r);var i=Ste(),a={key:i,type:n,text:r,characterList:_te(jte(t,r.length))};if(Pte&&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){bte(e,t,n[t])}))}return e}({},a,{prevSibling:(e[l]=e[l].merge({nextSibling:i})).getKey()})}return e.push(new Tte(a)),e}),[])}};var Ate=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})},Lte=H1,Rte=B2,Ite=Ate,Nte=m2,Bte={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 Bte.toggleInlineStyle(e,"BOLD");case"italic":return Bte.toggleInlineStyle(e,"ITALIC");case"underline":return Bte.toggleInlineStyle(e,"UNDERLINE");case"code":return Bte.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return Bte.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return Bte.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=Lte.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Rte.push(e,t,"insert-characters");return Rte.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 Rte.push(e,a,"remove-range")}var l=Bte.tryToRemoveBlockStyle(e);return l?Rte.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=Lte.removeRange(n,a,"forward");return l!==n?Rte.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 u=Ite(i,r,e.shiftKey?-1:1,n);return Rte.push(t,u,"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=Nte(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 u=i.getBlockForKey(r).getType()===t?"unstyled":t;return Rte.push(e,Lte.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?Bte.toggleBlockType(e,"code-block"):Bte.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Rte.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?Lte.removeInlineStyle(i,n,t):Lte.applyInlineStyle(i,n,t),Rte.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=Lte.applyEntity(e.getCurrentContent(),t,n);return Rte.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 Lte.setBlockType(o,t,"unstyled")}return null}},Fte=Bte,$te=/\r\n?|\n/g;var zte=_J,Kte=BJ,Vte=g6,Hte=H1,Ute=Mte,Zte=B2,Wte=Fte,qte=Z3,Gte=b6,Yte=w6,Xte=function(e){return e.split($te)};function Jte(e,t,n){var r=Hte.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return Zte.push(e,r.set("entityMap",n),"insert-fragment")}var Qte=function(e,t){t.preventDefault();var n=new Vte(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&Yte(e.props.handlePastedFiles(r)))return;return void Gte(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=Xte(t),i=Kte.create({style:n.getCurrentInlineStyle(),entity:qte(n.getCurrentContent(),n.getSelection())}),a=Wte.getCurrentBlockType(n),l=Ute.processText(r,i,a),s=zte.createFromArray(l),u=Hte.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);e.update(Zte.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),l=n.getHTML(),s=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,l);a=u.text,l=u.html}if(!e.props.handlePastedText||!Yte(e.props.handlePastedText(a,l,s))){if(a&&(i=Xte(a)),!e.props.stripPastedStyles){var c,d=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&d){if(-1!==(null===(c=l)||void 0===c?void 0:c.indexOf(e.getEditorKey()))||1===i.length&&1===d.size&&d.first().getText()===a)return void e.update(Jte(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(Jte(e._latestEditorState,d));if(l){var f=Ute.processHTML(l,e.props.blockRenderMap);if(f){var p=f.contentBlocks,h=f.entityMap;if(p){var g=zte.createFromArray(p);return void e.update(Jte(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var m=Kte.create({style:s.getCurrentInlineStyle(),entity:qte(s.getCurrentContent(),s.getSelection())}),v=Wte.getCurrentBlockType(s),y=Ute.processText(i,m,v),b=zte.createFromArray(y);e.update(Jte(e._latestEditorState,b))}}},ene=X5,tne=q6,nne=J6,rne=e7,one=o7,ine=d7,ane=f7,lne=p7,sne=m7,une=G7,cne=xee,dne=Qte,fne=K3,pne=ene.isBrowser("Chrome"),hne=ene.isBrowser("Firefox"),gne=pne||hne?fne:function(e){},mne={onBeforeInput:tne,onBlur:nne,onCompositionStart:rne,onCopy:one,onCut:ine,onDragOver:ane,onDragStart:lne,onFocus:sne,onInput:une,onKeyDown:cne,onPaste:dne,onSelect:fne,onMouseUp:gne,onKeyUp:gne},vne=r.unstable_flushControlled;var yne=t,bne=p5,wne=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=bne({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return yne.createElement("div",{className:t},yne.createElement("div",{className:bne("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(yne.Component),xne=wne,Cne=t8,Sne=y3,kne=X5,Ene=kne.isPlatform("Mac OS X"),One=Ene&&kne.isBrowser("Firefox < 29"),Dne=Cne.hasCommandModifier,_ne=Cne.isCtrlKeyCommand;function jne(e){return Ene&&e.altKey||_ne(e)}var Pne=function(e){switch(e.keyCode){case 66:return Dne(e)?"bold":null;case 68:return _ne(e)?"delete":null;case 72:return _ne(e)?"backspace":null;case 73:return Dne(e)?"italic":null;case 74:return Dne(e)?"code":null;case 75:return Ene&&_ne(e)?"secondary-cut":null;case 77:case 79:return _ne(e)?"split-block":null;case 84:return Ene&&_ne(e)?"transpose-characters":null;case 85:return Dne(e)?"underline":null;case 87:return Ene&&_ne(e)?"backspace-word":null;case 89:return _ne(e)?Ene?"secondary-paste":"redo":null;case 90:return function(e){return Dne(e)?e.shiftKey?"redo":"undo":null}(e)||null;case Sne.RETURN:return"split-block";case Sne.DELETE:return function(e){return!Ene&&e.shiftKey?null:jne(e)?"delete-word":"delete"}(e);case Sne.BACKSPACE:return function(e){return Dne(e)&&Ene?"backspace-to-start-of-line":jne(e)?"backspace-word":"backspace"}(e);case Sne.LEFT:return One&&Dne(e)?"move-selection-to-start-of-block":null;case Sne.RIGHT:return One&&Dne(e)?"move-selection-to-end-of-block":null;default:return null}},Tne=H$;function Mne(){return Mne=Tne||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},Mne.apply(this,arguments)}function Ane(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){Rne(e,t,n[t])}))}return e}function Lne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ine(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Nne=m5,Bne=v5,Fne=c9,$ne=Q4,zne=L6,Kne=mne,Vne=vne,Hne=xne,Une=C9,Zne=B2,Wne=t,qne=n4,Gne=p4,Yne=p5,Xne=LQ,Jne=Pne,Qne=w4,ere=w0,tre=kQ,nre=w3,rre=m2,ore=X5.isBrowser("IE"),ire=!ore,are={edit:Kne,composite:Fne,drag:zne,cut:null,render:null},lre=!1,sre=function(e){function t(){return e.apply(this,arguments)||this}Ine(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}(Wne.Component),ure=function(e){function t(t){var n;return Rne(Lne(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Rne(Lne(n),"_clipboard",void 0),Rne(Lne(n),"_handler",void 0),Rne(Lne(n),"_dragCount",void 0),Rne(Lne(n),"_internalDrag",void 0),Rne(Lne(n),"_editorKey",void 0),Rne(Lne(n),"_placeholderAccessibilityID",void 0),Rne(Lne(n),"_latestEditorState",void 0),Rne(Lne(n),"_latestCommittedEditorState",void 0),Rne(Lne(n),"_pendingStateFromBeforeInput",void 0),Rne(Lne(n),"_onBeforeInput",void 0),Rne(Lne(n),"_onBlur",void 0),Rne(Lne(n),"_onCharacterData",void 0),Rne(Lne(n),"_onCompositionEnd",void 0),Rne(Lne(n),"_onCompositionStart",void 0),Rne(Lne(n),"_onCopy",void 0),Rne(Lne(n),"_onCut",void 0),Rne(Lne(n),"_onDragEnd",void 0),Rne(Lne(n),"_onDragOver",void 0),Rne(Lne(n),"_onDragStart",void 0),Rne(Lne(n),"_onDrop",void 0),Rne(Lne(n),"_onInput",void 0),Rne(Lne(n),"_onFocus",void 0),Rne(Lne(n),"_onKeyDown",void 0),Rne(Lne(n),"_onKeyPress",void 0),Rne(Lne(n),"_onKeyUp",void 0),Rne(Lne(n),"_onMouseDown",void 0),Rne(Lne(n),"_onMouseUp",void 0),Rne(Lne(n),"_onPaste",void 0),Rne(Lne(n),"_onSelect",void 0),Rne(Lne(n),"editor",void 0),Rne(Lne(n),"editorContainer",void 0),Rne(Lne(n),"focus",void 0),Rne(Lne(n),"blur",void 0),Rne(Lne(n),"setMode",void 0),Rne(Lne(n),"exitCurrentMode",void 0),Rne(Lne(n),"restoreEditorDOM",void 0),Rne(Lne(n),"setClipboard",void 0),Rne(Lne(n),"getClipboard",void 0),Rne(Lne(n),"getEditorKey",void 0),Rne(Lne(n),"update",void 0),Rne(Lne(n),"onDragEnter",void 0),Rne(Lne(n),"onDragLeave",void 0),Rne(Lne(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Rne(Lne(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=Gne.getScrollParent(o),a=e||Qne(i),l=a.x,s=a.y;nre(o)||("production"!==process.env.NODE_ENV?tre(!1,"editorNode is not an HTMLElement"):tre(!1)),o.focus(),i===window?window.scrollTo(l,s):qne.setTop(i,s),r||n.update(Zne.forceSelection(t,t.getSelection()))}})),Rne(Lne(n),"blur",(function(){var e=n.editor;e&&(nre(e)||("production"!==process.env.NODE_ENV?tre(!1,"editorNode is not an HTMLElement"):tre(!1)),e.blur())})),Rne(Lne(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Ane({},are.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var l=Ane({},are,{edit:a});n._handler=l[e]})),Rne(Lne(n),"exitCurrentMode",(function(){n.setMode("edit")})),Rne(Lne(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Rne(Lne(n),"setClipboard",(function(e){n._clipboard=e})),Rne(Lne(n),"getClipboard",(function(){return n._clipboard})),Rne(Lne(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Rne(Lne(n),"onDragEnter",(function(){n._dragCount++})),Rne(Lne(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||Xne(),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}Ine(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&&(Vne?Vne((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:rre(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Wne.createElement(Hne,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,u=e.textAlignment,c=e.textDirectionality,d=Yne({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Ane({},Bne,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:l,textDirectionality:c};return Wne.createElement("div",{className:d},this._renderPlaceholder(),Wne.createElement("div",{className:Yne("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Wne.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:Yne({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:ire&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Wne.createElement(sre,{editor:this,editorState:a}),Wne.createElement($ne,Mne({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!lre&&ere("draft_ods_enabled")&&(lre=!0,Une.initODS()),this.setMode("edit"),ore&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ot.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Wne.Component);Rne(ure,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:Nne,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:Jne,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var cre=ure,dre={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},fre=dre,pre=O7.strlen;var hre=O7,gre=FJ,mre=function(e,t){return e===t},vre=function(e){return!!e},yre=[];var bre=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 gre(o,mre,vre,(function(t,o){var i=e.getText();r.push({offset:hre.strlen(i.slice(0,t)),length:hre.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(yre,n.toJS())};function wre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xre=QJ,Cre=pQ,Sre=dre,kre=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:pre(i.slice(0,r)),length:pre(i.slice(r,o)),key:Number(t[fre.stringify(a)])})})),n},Ere=bre,Ore=kQ,Dre=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:Ere(e),entityRanges:kre(e,t),data:e.getData().toObject()}},_re=function(e,t,n,r){if(e instanceof xre)n.push(Dre(e,t));else{e instanceof Cre||("production"!==process.env.NODE_ENV?Ore(!1,"block is not a BlockNode"):Ore(!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){wre(e,t,n[t])}))}return e}({},Dre(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},jre=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=Sre.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),_re(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(Sre.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function Pre(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){Tre(e,t,n[t])}))}return e}function Tre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mre=LQ,Are=kQ,Lre=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},Rre={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Are(!1,"Invalid raw state"):Are(!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?Are(!1,"Invalid tree raw block"):Are(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Pre({},e);Lre(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Pre({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Pre({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Lre(e),o=e.depth||0,i=Pre({},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:Mre(),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)})),Pre({},e,{blocks:t})}},Ire=P7,Nre={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&&Ire(!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&&Ire(!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&&Ire(!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&&Ire(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Ire(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Ire(!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&&Ire(!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)})),u=s.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&Ire(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Ire(!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)}},Bre=Nre,Fre=BJ,$re=OJ.List;var zre=function(e,t){var n=e.map((function(e,n){var r=t[n];return Fre.create({style:e,entity:r})}));return $re(n)},Kre=O7.substr;var Vre=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=Kre(e,0,t.offset).length,o=r+Kre(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},Hre=O7,Ure=OJ.OrderedSet,Zre=Hre.substr,Wre=Ure();var qre=function(e,t){var n=Array(e.length).fill(Wre);return t&&t.forEach((function(t){for(var r=Zre(e,0,t.offset).length,o=r+Zre(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function Gre(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){Yre(e,t,n[t])}))}return e}function Yre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xre=QJ,Jre=pQ,Qre=H0,eoe=v0,toe=Rre,noe=Bre,roe=b0,ooe=zre,ioe=Vre,aoe=qre,loe=LQ,soe=OJ,uoe=kQ,coe=w0("draft_tree_data_support"),doe=soe.List,foe=soe.Map,poe=soe.OrderedMap,hoe=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||loe(),data:foe(o),characterList:goe(e,t)}},goe=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return ooe(aoe(n,o||[]),ioe(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return Gre({},e,{key:t[e.key]})}))))},moe=function(e){return Gre({},e,{key:e.key||loe()})},voe=function(e,t,n){var r=t.map((function(e){return Gre({},e,{parentRef:n})}));return e.concat(r.reverse())},yoe=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=coe&&!n?toe.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!coe)return function(e,t){return poe(e.map((function(e){var n=new Xre(hoe(e,t));return[n.getKey(),n]})))}(n?toe.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(moe).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?uoe(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):uoe(!1));var i=r.children.map(moe),a=new Jre(Gre({},hoe(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:doe(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var l=voe([],i,a);l.length>0;){var s=l.pop(),u=s.parentRef,c=u.getChildKeys(),d=c.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?uoe(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):uoe(!1));break}var p=s.children.map(moe),h=new Jre(Gre({},hoe(s,t),{parent:u.getKey(),children:doe(p.map((function(e){return e.key}))),prevSibling:0===d?null:c.get(d-1),nextSibling:d===c.size-1?null:c.get(d+1)}));n=n.set(h.getKey(),h),l=voe(l,p,h)}return n}),poe())}(r,t);return"production"!==process.env.NODE_ENV&&(noe.isValidTree(o)||("production"!==process.env.NODE_ENV?uoe(!1,"Should be a valid tree"):uoe(!1))),o},boe=c8;var woe=function(e){var t=boe(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 u=t[s];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},xoe=woe;var Coe=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=xoe(n),o=r.top,i=r.right,a=r.bottom,l=r.left;return 0===o&&0===i&&0===a&&0===l?null:r},Soe={Editor:cre,EditorBlock:J4,EditorState:B2,CompositeDecorator:d5,Entity:v0,EntityInstance:l0,BlockMapBuilder:_J,CharacterMetadata:BJ,ContentBlock:QJ,ContentState:H0,RawDraftContentState:{},SelectionState:b0,AtomicBlockUtils:s5,KeyBindingUtil:t8,Modifier:H1,RichUtils:Fte,DefaultDraftBlockRenderMap:m5,DefaultDraftInlineStyle:v5,convertFromHTML:yte,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?uoe(!1,"invalid RawDraftContentState"):uoe(!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]=eoe.__create(o,i,a||{})})),n}(e),n=yoe(e,t),r=n.isEmpty()?new roe:roe.createEmpty(n.first().getKey());return new Qre({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:jre,genKey:LQ,getDefaultKeyBinding:Pne,getVisibleSelectionRect:Coe};const koe=(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)}}},Eoe=e=>!!e||null!=e&&""!==e,Ooe=U.div((({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,focused:a,invalid:l,disabled:s,hasLabel:u,pointer:c})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:u?48:40,height:u?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:c?"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})),nn,on,rn),Doe=U.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}}))),_oe=U.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}))),joe=U.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 Poe={Container:Ooe,Wrapper:Doe,Label:_oe,Description:joe,useInputFocus:koe,isInputFilled:Eoe};const Toe="FOUND_FIELD",Moe="NOT_FOUND",Aoe="IMMUTABLE",Loe=U.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),Roe=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},Ioe=new Soe.CompositeDecorator([{strategy:(e,t,n)=>Roe(e,t,n,Toe),component:({children:t})=>e.jsx(Loe,{children:t})},{strategy:(e,t,n)=>Roe(e,t,n,Moe),component:({children:t})=>e.jsx(Loe,{error:!0,children:t})}]),Noe=(e,t,n)=>{const r=lt.find(t,{id: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}},Boe=(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=lt.find(t||[],{id:i})||{id:i,label:""},{label:s,isValid:u}=Noe(l,t||[],n);a=s,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?Toe:Moe,mutability:Aoe,data:{id:i}}}o.text+=a}return Soe.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return Soe.EditorState.createWithContent(r,Ioe)},Foe=(e,t=!0)=>{const n=e.getCurrentContent(),r=Soe.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=lt.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${l}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},$oe=e=>{const t=Foe(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},zoe=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new Soe.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return Soe.EditorState.forceSelection(e,o)},Koe=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:c=[],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:_,margin:j,marginLeft:P,marginRight:T,marginTop:M,marginBottom:A}=n,L=l(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[R,I]=t.useState((()=>Boe(o,c,b))),{focused:N,handleFocus:B,handleBlur:F}=koe(s,u),[$,z]=t.useState(!1),K=t.useRef(null),V=t.useRef(),H=null!=m?m:g,U=e=>{I(e);const t=(e=>$oe(e).some((e=>e.type===Moe)))(e);z(t);const n=Foe(e),r=e.getLastChangeType();i&&i(n,t,r)},Z=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:l,isValid:s}=Noe(e,t,r),u=s?Toe:Moe,c=i.createEntity(u,Aoe,{id:o}).getLastCreatedEntityKey(),d=Soe.Modifier.insertText(i,a,l,void 0,c),f=Soe.EditorState.push(n,d,"insert-characters");return Soe.EditorState.forceSelection(f,d.getSelectionAfter())})(e,c,R,b);U(t)},W=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=zoe(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:Z,focusAtEnd:W})));t.useEffect((()=>{Foe(R)!==o&&(e=>{const t=R.getSelection(),n=Boe(e,c,b),r=zoe(n),o=t.getHasFocus()?r:n;U(o)})(o)}),[o]),t.useEffect((()=>{V.current=c}),[]),t.useEffect((()=>{const{current:e}=V,t=lt.isEqual(e,c),n=$oe(R);if(!t&&n.length>0){V.current=c;const e=Boe(o,c,b);U(e)}}),[c]);return e.jsxs(Voe,{onClick:e=>{y||e.stopPropagation();R.getSelection().getHasFocus()||W()},width:h,height:g,editorMaxHeight:H,noPadding:v||_,readOnly:y,color:w,overflow:x,clampLines:C,filled:Eoe(o),invalid:p||$,textOnly:_,borderRadius:E,backgroundColor:O,fontSize:D,margin:j,marginLeft:P,marginRight:T,marginTop:M,marginBottom:A,focused:N,disabled:k,hasLabel:!!S,hideEditor:!Eoe(o)&&!!S&&!N,children:[e.jsxs(Doe,{readOnly:y,children:[S&&e.jsx(_oe,{filled:Eoe(o),focused:N,disabled:k,children:S}),e.jsx(Soe.Editor,Object.assign({ref:K,editorState:R,onChange:U,placeholder:d,readOnly:y,handleReturn:e=>{const t=Soe.RichUtils.insertSoftNewline(R);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=Soe.convertFromRaw({blocks:[o],entityMap:{}}),a=Soe.EditorState.createWithContent(i,Ioe).getCurrentContent().getBlockMap(),l=Soe.Modifier.replaceWithFragment(n,r,a);return Soe.EditorState.push(t,l,"insert-fragment")})(e,n);return U(r),"handled"},onFocus:B,onBlur:F},L))]}),f&&e.jsx(joe,{invalid:p,children:f})]})})),Voe=U(Ooe)((({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:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:l||e.font.size.lg,top:!u||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 Hoe,Uoe={exports:{}},Zoe={};var Woe,qoe={};
|
|
39
39
|
/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-is.development.js
|
|
@@ -50,5 +50,5 @@ prismjs/prism.js:
|
|
|
50
50
|
(c) Sindre Sorhus
|
|
51
51
|
@license MIT
|
|
52
52
|
*/
|
|
53
|
-
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 u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}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,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,c,typeof e[c]),d=e[c](n,c,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,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";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===u(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=c(e,n,t)),a(t)||(o=c(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},c=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=u(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),u=s?s.length:0,c=d(t),f=p(c,u);return c.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 oie=rie.exports;const iie=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(sn,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(sn,Object.assign({},n,r))},aie=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:u,description:c,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:_,padding:j,paddingLeft:P,paddingRight:T,paddingTop:M,paddingBottom:A,containerRef:L,value:R,disabled:I,readOnly:N,preventFocus:B,pointer:F,hideControls:$,onChange:z,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,Z=l(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:W,handleFocus:q,handleBlur:G}=koe(H,U,!B&&!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:_,marginRight:O,marginLeft:E},ne={padding:j,paddingTop:M,paddingBottom:A,paddingRight:T,paddingLeft:P};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;R&&(e.innerHTML=R.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,R,s,ee]);const re=h?R||s:R,oe=(!!R||"number"==typeof R)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===oie.normalize(R)){const{current:n}=Y;if(n){const r=oie.format(R),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)}}}),[R]);const ie=()=>{W||q()},ae=()=>{W&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:W,select:le}))),t.useEffect((()=>{var e;W&&(null===(e=Y.current)||void 0===e||e.focus())}),[W]);return e.jsxs(Ooe,Object.assign({ref:L,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:W,disabled:I,hasLabel:!!a,onClick:e=>{B||N||ie(),K&&K(e)},pointer:F,readOnly:N},te,ne,{children:[f&&e.jsx(sn,{name:"search",marginRight:8,inheritColor:!0}),g&&iie(g,{marginRight:8}),e.jsxs(Doe,{readOnly:N||B,children:[h&&e.jsx(uie,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(_oe,{htmlFor:i||a,filled:Eoe(R),focused:W,disabled:I,children:a}),e.jsx(lie,Object.assign({id:i||a,ref:Y,value:R,placeholder:s,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=oie.normalize(t);if(n.length>10)return;const r=oie.format(n);z&&z(e,r,n)}else z&&z(e)},onFocus:q,onBlur:G,disabled:I,hide:!(Eoe(R)||!a||W||h),width:J,fontSize:x,hideControls:$},Z))]}),m&&iie(m),d&&e.jsx(qy,{}),oe&&e.jsx(sie,{onClick:V,children:e.jsx(sn,{name:"close-circle-outline",color:X.brand})}),c&&e.jsx(joe,{invalid:v,children:c})]}))})),lie=U.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"}})),sie=U.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),uie=U.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),cie=U("div",{shouldForwardProp:e=>Py(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))"}}))),die=U("div",{shouldForwardProp:e=>Py(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}})),fie=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:u,offsetX:c,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?c:u)||4))}}),[i,p]);const v=e.jsx(pie,{id:n,ref:i||m,offsetX:c,offsetY:u,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};fie.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:u,accented:c,section:d}=t,f=l(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(die,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:s,color:u,accented:c,tabIndex:a?-1:0},f,{children:n}))};const pie=U(cie)((({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}:{}})),hie=(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},gie=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(vie,{children:n.header}),e.jsx(yie,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),mie=(n,r,o,i,a)=>{const{selected:s}=a,u=((t,n,r,o)=>{if(t&&t.length>0)return hie(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(fie.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:gie(t)},t.id)}));return[]})(n,o,i,l(a,["selected"])),c=((e,n,r)=>e?Yoe(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Yoe([...u,...c]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},vie=U.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),yie=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),bie=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),wie=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:u,onBlur:c,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:_,marginLeft:j,label:P,id:T,name:M,trigger:A,centerY:L,centerX:R,offsetY:I,offsetX:N,direction:B,fontSize:F,description:$,disabled:z,invalid:K,search:V,filter:H,restrictInput:U,inputRef:Z,optionsParent:W}=r,q=l(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:_,marginLeft:j},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&s&&s(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(Z||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ue=rt(se,Q,W?[W,`${W} *`]:void 0),ce=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ce(t.label,e);return!n&&"id"in t&&(n=ce(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ce(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:nie(),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=Yoe(m).map((e=>{const t=e;let n=t.props.displayText||"";return!P&&t.props.children&&(n=bie(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...hie(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]=st(me),be=mie(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!z?p||ae.color.default:void 0,Ce=l(q,["onClear","phone"]);return e.jsx(xie,Object.assign({textOnly:x,altTrigger:!!A,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(Cie,{ref:ue,children:[A?e.jsx(Sie,{id:T,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:A}):e.jsx(Eie,{shake:re,children:e.jsx(aie,Object.assign({},Ce,{ref:Z||ie,id:T,name:M,label:P,fontSize:F,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:$,disabled:z,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Z||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),u&&u(e)},onBlur:e=>{var t;if(ne(!1),c&&c(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(fie,{containerRef:ye,parentSelector:W,width:!A&&!x||W?"100%":void 0,centerY:L,centerX:R,offsetY:I,offsetX:N,direction:B,children:be})]})}))};wie.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||bie(i)||"",value:t};r&&r(o,e)};return e.jsx(fie.Item,{id:c,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const xie=U.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`})),nn,on),Cie=U.div({position:"relative",width:"100%",height:"inherit"}),Sie=U.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),kie=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)"}}),Eie=U.div((({shake:e})=>({"& input":{animation:e?`${kie} .5s linear`:void 0}}))),Oie=U.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,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:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),rn,on);Oie.Item=U.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),rn,on);const Die=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=t,p=l(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return e.jsxs(lX,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(uX,{children:r}),e.jsx(sX,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(sn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},_ie=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=l(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:c,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(lX,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(uX,{children:o}),e.jsx(sX,Object.assign({id:r,type:"checkbox",checked:y,disabled:s,onChange:()=>{const e=!y;b(e),u(e)}},g)),e.jsx(sn,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},jie=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=l(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(Pie,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&iie(r,{marginRight:4,size:"small"}),n,o&&iie(o,{marginLeft:4,size:"small"})]}))},Pie=U.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}}),on),Tie=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(Mie,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};Tie.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(Aie,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},Tie.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=l(t,["children","inline","align","disabled"]);return e.jsx(Lie,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Tie.Input=aie,Tie.Dropdown=wie,Tie.Radio=Die,Tie.Toggle=_ie,Tie.Checkbox=cX,Tie.Label=jie;const Mie=U(Oie)({boxSizing:"border-box"}),Aie=U(Oie)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Lie=U.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"}),on),Rie=U.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}))),Iie=U.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Nie=U.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%)`}}))),Bie=U.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Fie=U.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"}))),$ie=U(Vv)((({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}}))),zie=({description:t,errorMessage:n})=>t||n?e.jsxs(Kie,{children:[t&&!n&&e.jsx(Vie,{slot:"description",children:t}),n&&e.jsx(Hie,{children:n})]}):null,Kie=U.div({position:"absolute",left:0,top:"100%"}),Vie=U(Zh)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),Hie=U(Nm)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),Uie=U(Ky)((({theme:{input:e,accent:t},isDisabled:n})=>({color:n?e.labelColor.disabled:e.labelColor.default,outline:"none","&[data-focused]":{outline:`${t} solid 1px`}}))),Zie=eX(),Wie=U(Gv)(gJ),qie=U(zv,fJ)({display:"flex"},pJ),Gie=eX(),Yie=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:s,noShadow:u}=n,c=l(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?nX(r):Gie),{current:f}=t.useRef(o?nX(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),{min:v,max:y}=rX({past:a,future:s,rel:d});return e.jsxs(Xie,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:u}=n,c=new Nl(r,o,a);h(c);const d=new Nl(l,s,u);m(d);const f=tX(t),p=tX(n);i&&i(f,p)},minValue:v,maxValue:y,noShadow:u},c,{children:[e.jsx(YY,{}),e.jsx(UY,{range:!0})]}))},Xie=U(Sm)(HY),Jie=eX(),Qie=U(Xv)(gJ),eae=U(zv,fJ)(pJ,{display:"flex","&:first-of-type":{marginRight:0}}),tae=U(wv)((({theme:{input:e,font:t},hide:n,fontSize:r})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),nae=U(yy)(gJ),rae=U.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder}))),oae=U(Ky)((({theme:e})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden","&:hover":{backgroundColor:e.scale1},"&:active":{backgroundColor:e.scale0}}))),iae=U.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),aae=U(jy)(gJ),lae=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(sae,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?Yoe(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),sae=U.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:u})=>({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:u})),rn),uae=U.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}))),cae=U.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),dae=U.div({marginLeft:"auto",marginRight:8});lae.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(uae,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),lae.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:u,children:c,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>Yoe(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(c),v=()=>h((e=>!e));return e.jsxs(cae,{backgroundColor:f,children:[e.jsxs(uae,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:u,role:"menuitem",indent:d,children:[n,e.jsx(dae,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(sn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const fae=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,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:u,marginRight:c,marginLeft:d};return e.jsxs(gae,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(sn,{name:h,style:{marginRight:10},color:g}),e.jsx(mae,{children:r||f}),o&&e.jsx(sn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},pae=U.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),hae=U.div((({theme:e})=>({fontWeight:e.font.weight.default})));fae.Header=pae,fae.Body=hae;const gae=U.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})),on),mae=U.div({width:"100%"}),vae=U.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),yae=U.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),bae=U.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),wae=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:u,preventOverlayClose:c,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:_})=>{const j=rt(c?()=>null:s,i),P={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},T=Yoe(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),M=e.jsx(Sae,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:_,blur:d,children:e.jsxs(xae,Object.assign({ref:j,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},P,{children:[T,u&&e.jsx(Cae,{inline:h,children:e.jsx(sn,{name:"close",onClick:s,pointer:!0})})]}))}),A=document.querySelector(o||"#root");return i&&A?r.createPortal(M,A):null};wae.Header=U.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),wae.Text=U.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),wae.Body=U.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),on),wae.Footer=U.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})),on);const xae=U.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"})`}),rn),Cae=U.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),Sae=U.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),kae=t.forwardRef(((o,i)=>{var{children:a,options:s,items:u,listLabel:c,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,_=l(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,P]=t.useState(D||!1),[T,M]=t.useState(!1),[A,L]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),B=rt((()=>P(!1)),j,w?[w,`${w} *`]:void 0),F=t.useRef(null),$=x&&!!c,z=e=>{e&&k(e)},K=()=>{const{current:e}=F;j||c||P(!0),null==e||e.focus()},V=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:K,blur:V})));const H=e=>{L(e),O&&O(e)};t.useEffect((()=>{j||V()}),[j]);nt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(u.length>0){e.preventDefault();const t=u[u.length-1];E(t)}}),j&&!A,[u]);const U=s.filter((e=>!u.find((t=>t.id===e.id)))),Z=t.useMemo((()=>`multi-select-${nie()}`),[]),W=t.useMemo((()=>`multi-select-list-${nie()}`),[]),q=p?u.length>=p:void 0,G=y||!j||q,Y=()=>{const t=e.jsxs(_ae,{id:W,expanded:j,padTop:j&&u.length>0,labeled:!!c,children:[d&&e.jsx(jae,{expanded:j,labeled:!!c,children:d}),a?a(j,!!y):u.map((t=>e.jsx(jie,{pill:!0,iconRight:j&&!y?e.jsx(sn,{name:"close-circle",onClick:()=>E(t),pointer:!0}):void 0,disabled:y,children:t.label},t.id))),e.jsx(wie,Object.assign({},_,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:m,backgroundColor:"transparent",restrictInput:v,options:U,fontSize:I.size.md,placeholder:y||u.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:z,onTextChange:H,onError:e=>M(e),disabled:G,optionsParent:w?`#${W}`:`#${Z}`,autoFocus:D}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(Eae,{width:g,ref:B,labeled:!!c,disabled:y,collapse:$,onClick:e=>{e.stopPropagation(),K()},children:[e.jsxs(Oae,{collapse:$,id:Z,expanded:j&&u.length>0,error:T,labeled:!!c,backgroundColor:C,borderless:S,children:[c?e.jsx(Dae,{collapse:$,children:c}):Y(),e.jsxs(Pae,{children:[p&&!b&&e.jsx(Mae,{children:y&&f?e.jsxs(e.Fragment,{children:[u.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(Tae,{error:u.length>=p,children:u.length}),"/",p," ",f]})}),u.length>0&&e.jsx(sn,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),P(!j)}})]})]}),c&&j&&Y()]})})),Eae=U.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),Oae=U.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"}))),Dae=U.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),_ae=U.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}:{})),jae=U.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}))),Pae=U.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Tae=U.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),Mae=U.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),Aae=e=>e?+e:0,Lae=U.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),on),Rae=U.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`}}))),Iae=U(Rae)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),Nae=U(Rae)((({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}))),Bae=U.span((({theme:e})=>({color:e.scale6}))),Fae=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u})=>{const c={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs($ae,Object.assign({size:n},c,{children:[e.jsx(zae,{cx:h,cy:h,r:d,thickness:r}),e.jsx(Kae,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},$ae=U.svg((({size:e})=>({display:"block",width:e,height:e})),on),zae=U.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Kae=U(zae)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Vae=U.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),on),Hae=U.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),Uae=n=>{var{backgroundColor:r,children:o,fontSize:i,isDisabled:a,label:s,open:u,options:c,placeholder:d="Select",placeholderColor:f,textOnly:p,value:h,width:g,onChange:m,afterShow:v,afterHide:y}=n,b=l(n,["backgroundColor","children","fontSize","isDisabled","label","open","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide"]);const[w,x]=t.useState(u||!1),[C,S]=t.useState(h||""),{margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:_}=b,j={margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:_};t.useEffect((()=>{h&&h!==C&&S(h)}),[h,C]);const P=!C&&s;return e.jsxs(Cy,Object.assign({placeholder:d,onOpenChange:e=>{x(e),v&&e&&v(),y&&!e&&y()},onSelectionChange:e=>{S(e),m&&m(e)},isDisabled:a,selectedKey:h?C:void 0},b,{children:[e.jsxs(Zae,Object.assign({backgroundColor:r,textOnly:p,width:g,hasLabel:!!s,isDisabled:a,pointer:!0},j,{children:[e.jsxs(mJ,{filled:!!C,disabled:a,children:[s,e.jsx(Wae,{fontSize:i,placeholderColor:f,isDisabled:a,style:({isPlaceholder:e})=>e&&P?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e.jsx(sn,{name:w?"caret-up":"caret-down",inheritColor:!0})]})),e.jsx(Nm,{}),e.jsx(kv,{offset:2,isOpen:w,children:e.jsxs(vJ,{autoWidth:p,shouldFocusWrap:!0,children:[null==c?void 0:c.map((t=>e.jsx(yJ,Object.assign({},t),t.id||t.value))),o]})})]}))};Uae.Item=yJ,Uae.Section=xJ;const Zae=U(Vh)(gJ),Wae=U(Ey)((({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)}}))),qae=U.div(nn),Gae=t.createContext({}),Yae=(t,n,r)=>{const o="th"===n?Xae:Jae,i=r?{style:r}:{};return Yoe(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},Xae=U.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),Jae=U.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),Qae=U.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),ele=U(Oie)({alignItems:"center",padding:"8px 24px"},rn),tle=U.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),nle=U(Oie)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),rn),rle=t=>{var{as:n,children:r}=t,o=l(t,["as","children"]);return e.jsx(ile,Object.assign({as:n},o,{children:r}))},ole=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},ile=U.div((({contentPosition:e,direction:t,justify:n,align:r="center",gap:o})=>({display:"flex",justifyContent:ole(e||n),alignItems:ole(r),flexDirection:t,gap:o}))),ale=U.div((({theme:e})=>({color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),rn),lle=U.div((({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),sle=n=>{var{children:r,columns:o,data:i}=n,a=l(n,["children","columns","data"]);const[s,u]=t.useState(i),[c,d]=t.useState(),f=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(c){const{key:t,dir:n}=c;e=lt.orderBy(i,t,n)}lt.isEqual(e,s)||u(e)}),[i,c]);const p=t.useMemo((()=>({activeColumn:c,setActiveColumn:d,parentColumns:o})),[c,d,o]);return e.jsx(Gae.Provider,{value:p,children:e.jsx(ule,Object.assign({},a,{children:f}))})};sle.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=l(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:u}=t.useContext(Gae),c=o||u||"equal";return e.jsx(Qae,{alignToScrollBody:a,children:e.jsx(ele,Object.assign({as:"tr",columns:c},s,{children:Yae(r,"th",i)}))})},sle.HeaderCell=r=>{var{children:o,onClick:i,contentPosition:a,justify:s,align:u,direction:c,gap:d,sorted:f,sortKey:p}=r,h=l(r,["children","onClick","contentPosition","justify","align","direction","gap","sorted","sortKey"]);const[g,m]=t.useState(f||"inactive"),{color:v}=n.useTheme(),{activeColumn:y,setActiveColumn:b}=t.useContext(Gae),w=p||f,x="desc"===g?"arrow-down":"arrow-up",C="asc"===g||"desc"===g,S=e=>{if(m(e),b&&p){b("inactive"===e?void 0:{key:p,dir:e})}};return t.useEffect((()=>{!p||"asc"!==f&&"desc"!==f||S(f)}),[]),t.useEffect((()=>{f&&m(f)}),[f]),t.useEffect((()=>{const e=!y&&f;p&&y&&y.key!==p&&"inactive"!==g&&!e&&m("inactive")}),[y,g]),e.jsxs(rle,Object.assign({as:lle,onClick:e=>{p?S("inactive"===g?"asc":"asc"===g?"desc":"inactive"):i&&i(e)},direction:c,contentPosition:a,justify:s,align:u,gap:d,active:C,sorting:!!w},h,{children:[o,w?e.jsx(sn,{name:x,marginLeft:8,size:"small",color:C?v.brand:void 0,inheritColor:!C}):null]}))},sle.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=l(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(Gae);return e.jsx(tle,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},sle.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=l(n,["children","columns","onClick","columnStyles"]);const{parentColumns:u}=t.useContext(Gae),c=o||u||"equal";return e.jsx(nle,Object.assign({as:"tr",columns:c,onClick:i,hoverEffect:!!i},s,{children:Yae(r,"td",a)}))},sle.Column=t=>{var{children:n,contentPosition:r,direction:o,justify:i,align:a,gap:s,defaultValue:u,padding:c,paddingTop:d,paddingBottom:f,paddingRight:p,paddingLeft:h}=t,g=l(t,["children","contentPosition","direction","justify","align","gap","defaultValue","padding","paddingTop","paddingBottom","paddingRight","paddingLeft"]);const m={padding:c,paddingTop:d,paddingBottom:f,paddingRight:p,paddingLeft:h};return e.jsx(rle,Object.assign({as:ale,direction:o,contentPosition:r,justify:i,align:a,gap:s,showDefault:!!u&&!n},m,g,{children:n||u}))};const ule=U.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),rn,on),cle=U.div((({gap:e=8})=>({display:"flex",gap:e})),on),dle=U.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"})));const fle="dismissableLayer.update",ple="dismissableLayer.pointerDownOutside",hle="dismissableLayer.focusOutside";let gle;const mle=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vle=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=t.useContext(mle),[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=Y(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=oe(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(){ble(ple,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==u||u())}),h),k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){ble(hle,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==u||u())}),h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(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&&u&&(e.preventDefault(),u()))}),h),t.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(gle=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yle(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=gle)}}),[f,h,o,d]),t.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yle())}),[f,d]),t.useEffect((()=>{const e=()=>g({});return document.addEventListener(fle,e),()=>document.removeEventListener(fle,e)}),[]),t.createElement(ae.div,X({},c,{ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,k.onFocusCapture),onBlurCapture:re(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function yle(){const e=new CustomEvent(fle);document.dispatchEvent(e)}function ble(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 wle=["top","right","bottom","left"],xle=Math.min,Cle=Math.max,Sle=Math.round,kle=Math.floor,Ele=e=>({x:e,y:e}),Ole={left:"right",right:"left",bottom:"top",top:"bottom"},Dle={start:"end",end:"start"};function _le(e,t,n){return Cle(e,xle(t,n))}function jle(e,t){return"function"==typeof e?e(t):e}function Ple(e){return e.split("-")[0]}function Tle(e){return e.split("-")[1]}function Mle(e){return"x"===e?"y":"x"}function Ale(e){return"y"===e?"height":"width"}function Lle(e){return["top","bottom"].includes(Ple(e))?"y":"x"}function Rle(e){return Mle(Lle(e))}function Ile(e){return e.replace(/start|end/g,(e=>Dle[e]))}function Nle(e){return e.replace(/left|right|bottom|top/g,(e=>Ole[e]))}function Ble(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 Fle(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function $le(e,t,n){let{reference:r,floating:o}=e;const i=Lle(t),a=Rle(t),l=Ale(a),s=Ple(t),u="y"===i,c=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:c,y:r.y-o.height};break;case"bottom":p={x:c,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(Tle(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function zle(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=jle(t,e),h=Ble(p),g=l[f?"floating"===d?"reference":"floating":d],m=Fle(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:u,rootBoundary:c,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}: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=Fle(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 Kle(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vle(e){return wle.some((t=>e[t]>=0))}const Hle=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=Ple(n),l=Tle(n),s="y"===Lle(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=jle(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*c,y:f*u}:{x:f*u,y:p*c}}(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}}}}};function Ule(e){return qle(e)?(e.nodeName||"").toLowerCase():"#document"}function Zle(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wle(e){var t;return null==(t=(qle(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qle(e){return e instanceof Node||e instanceof Zle(e).Node}function Gle(e){return e instanceof Element||e instanceof Zle(e).Element}function Yle(e){return e instanceof HTMLElement||e instanceof Zle(e).HTMLElement}function Xle(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Zle(e).ShadowRoot)}function Jle(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rse(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qle(e){return["table","td","th"].includes(Ule(e))}function ese(e){const t=tse(),n=rse(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 tse(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nse(e){return["html","body","#document"].includes(Ule(e))}function rse(e){return Zle(e).getComputedStyle(e)}function ose(e){return Gle(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ise(e){if("html"===Ule(e))return e;const t=e.assignedSlot||e.parentNode||Xle(e)&&e.host||Wle(e);return Xle(t)?t.host:t}function ase(e){const t=ise(e);return nse(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yle(t)&&Jle(t)?t:ase(t)}function lse(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ase(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Zle(o);return i?t.concat(a,a.visualViewport||[],Jle(o)?o:[],a.frameElement&&n?lse(a.frameElement):[]):t.concat(o,lse(o,[],n))}function sse(e){const t=rse(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yle(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Sle(n)!==i||Sle(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function use(e){return Gle(e)?e:e.contextElement}function cse(e){const t=use(e);if(!Yle(t))return Ele(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sse(t);let a=(i?Sle(n.width):n.width)/r,l=(i?Sle(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const dse=Ele(0);function fse(e){const t=Zle(e);return tse()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dse}function pse(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=use(e);let a=Ele(1);t&&(r?Gle(r)&&(a=cse(r)):a=cse(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Zle(e))&&t}(i,n,r)?fse(i):Ele(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=Zle(i),t=r&&Gle(r)?Zle(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=cse(o),t=o.getBoundingClientRect(),r=rse(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=Zle(o),o=n.frameElement}}return Fle({width:c,height:d,x:s,y:u})}const hse=[":popover-open",":modal"];function gse(e){return hse.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function mse(e){return pse(Wle(e)).left+ose(e).scrollLeft}function vse(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Zle(e),r=Wle(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=tse();(!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=Wle(e),n=ose(e),r=e.ownerDocument.body,o=Cle(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Cle(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+mse(e);const l=-n.scrollTop;return"rtl"===rse(r).direction&&(a+=Cle(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Wle(e));else if(Gle(t))r=function(e,t){const n=pse(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Yle(e)?cse(e):Ele(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=fse(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Fle(r)}function yse(e,t){const n=ise(e);return!(n===t||!Gle(n)||nse(n))&&("fixed"===rse(n).position||yse(n,t))}function bse(e,t,n){const r=Yle(t),o=Wle(t),i="fixed"===n,a=pse(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Ele(0);if(r||!r&&!i)if(("body"!==Ule(t)||Jle(o))&&(l=ose(t)),r){const e=pse(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=mse(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function wse(e,t){return Yle(e)&&"fixed"!==rse(e).position?t?t(e):e.offsetParent:null}function xse(e,t){const n=Zle(e);if(!Yle(e)||gse(e))return n;let r=wse(e,t);for(;r&&Qle(r)&&"static"===rse(r).position;)r=wse(r,t);return r&&("html"===Ule(r)||"body"===Ule(r)&&"static"===rse(r).position&&!ese(r))?n:r||function(e){let t=ise(e);for(;Yle(t)&&!nse(t);){if(ese(t))return t;t=ise(t)}return null}(e)||n}const Cse={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Wle(r),l=!!t&&gse(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Ele(1);const c=Ele(0),d=Yle(r);if((d||!d&&!i)&&(("body"!==Ule(r)||Jle(a))&&(s=ose(r)),Yle(r))){const e=pse(r);u=cse(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:Wle,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=lse(e,[],!1).filter((e=>Gle(e)&&"body"!==Ule(e))),o=null;const i="fixed"===rse(e).position;let a=i?ise(e):e;for(;Gle(a)&&!nse(a);){const t=rse(a),n=ese(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Jle(a)&&!n&&yse(e,a))?r=r.filter((e=>e!==a)):o=t,a=ise(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=vse(t,n,o);return e.top=Cle(r.top,e.top),e.right=xle(r.right,e.right),e.bottom=xle(r.bottom,e.bottom),e.left=Cle(r.left,e.left),e}),vse(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:xse,getElementRects:async function(e){const t=this.getOffsetParent||xse,n=this.getDimensions;return{reference:bse(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=sse(e);return{width:t,height:n}},getScale:cse,isElement:Gle,isRTL:function(e){return"rtl"===rse(e).direction}};function Sse(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,u=use(e),c=o||i?[...u?lse(u):[],...lse(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=Wle(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:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-kle(c)+"px "+-kle(o.clientWidth-(u+d))+"px "+-kle(o.clientHeight-(c+f))+"px "+-kle(u)+"px",threshold:Cle(0,xle(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)}),100)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!s&&h.observe(u),h.observe(t));let g=s?pse(e):null;return s&&function t(){const r=pse(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;c.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 kse=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}=jle(e,t),u={x:n,y:r},c=await zle(t,s),d=Lle(Ple(o)),f=Mle(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=_le(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=_le(h+c["y"===d?"top":"left"],h,h-c[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Ese=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:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=jle(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Ple(o),y=Ple(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=f||(y||!g?[Nle(l)]:function(e){const t=Nle(e);return[Ile(e),t,Ile(t)]}(l));f||"none"===h||w.push(...function(e,t,n,r){const o=Tle(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[]}}(Ple(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ile)))),i}(l,g,h,b));const x=[l,...w],C=await zle(t,m),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Tle(e),o=Rle(e),i=Ale(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Nle(a)),[a,Nle(a)]}(o,a,b);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,O;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(O=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.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:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Ose=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}=jle(e,t),s=await zle(t,l),u=Ple(n),c=Tle(n),d="y"===Lle(n),{width:f,height:p}=r.floating;let h,g;"top"===u||"bottom"===u?(h=u,g=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,h="end"===c?"top":"bottom");const m=p-s[h],v=f-s[g],y=!t.middlewareData.shift;let b=m,w=v;if(d){const e=f-s.left-s.right;w=c||y?xle(v,e):e}else{const e=p-s.top-s.bottom;b=c||y?xle(m,e):e}if(y&&!c){const e=Cle(s.left,0),t=Cle(s.right,0),n=Cle(s.top,0),r=Cle(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Cle(s.left,s.right)):b=p-2*(0!==n||0!==r?n+r:Cle(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},Dse=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=jle(e,t);switch(r){case"referenceHidden":{const e=Kle(await zle(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vle(e)}}}case"escaped":{const e=Kle(await zle(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vle(e)}}}default:return{}}}}},_se=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:u,padding:c=0}=jle(e,t)||{};if(null==u)return{};const d=Ble(c),f={x:n,y:r},p=Rle(o),h=Ale(p),g=await a.getDimensions(u),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(u));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=xle(d[v],E),D=xle(d[y],E),_=O,j=S-g[h]-D,P=S/2-g[h]/2+k,T=_le(_,P,j),M=!s.arrow&&null!=Tle(o)&&P!==T&&i.reference[h]/2-(P<_?O:D)-g[h]/2<0,A=M?P<_?P-_:P-j:0;return{[p]:f[p]+A,data:{[p]:T,centerOffset:P-T-A,...M&&{alignmentOffset:A}},reset:M}}}),jse=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:u=!0}=jle(e,t),c={x:n,y:r},d=Lle(o),f=Mle(d);let p=c[f],h=c[d];const g=jle(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(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Ple(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}}}},Pse=(e,t,n)=>{const r=new Map,o={platform:Cse,...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 u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=$le(u,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:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,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&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=$le(u,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Tse=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?_se({element:n.current,padding:r}).fn(t):{}:n?_se({element:n,padding:r}).fn(t):{};var o}});var Mse="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Ase(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(!Ase(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)&&!Ase(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Lse(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rse(e,t){const n=Lse(e);return Math.round(t*n)/n}function Ise(e){const t=i.useRef(e);return Mse((()=>{t.current=e})),t}const Nse=t.forwardRef(((e,n)=>{const{children:r,width:o=10,height:i=5,...a}=e;return t.createElement(ae.svg,X({},a,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:t.createElement("polygon",{points:"0,0 30,0 15,10"}))}));const Bse="Popper",[Fse,$se]=W(Bse),[zse,Kse]=Fse(Bse),Vse=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:o,...i}=e,a=Kse("PopperAnchor",r),l=t.useRef(null),s=Y(n,l);return t.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)})),o?null:t.createElement(ae.div,X({},i,{ref:s}))})),Hse="PopperContent",[Use,Zse]=Fse(Hse),Wse=t.forwardRef(((e,n)=>{var r,o,l,s,u,c,d,f;const{__scopePopper:p,side:h="bottom",sideOffset:g=0,align:m="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...O}=e,D=Kse(Hse,p),[_,j]=t.useState(null),P=Y(n,(e=>j(e))),[T,M]=t.useState(null),A=function(e){const[n,r]=t.useState(void 0);return le((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}(T),L=null!==(r=null==A?void 0:A.width)&&void 0!==r?r:0,R=null!==(o=null==A?void 0:A.height)&&void 0!==o?o:0,I=h+("center"!==m?"-"+m:""),N="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},B=Array.isArray(w)?w:[w],F=B.length>0,$={padding:N,boundary:B.filter(Xse),altBoundary:F},{refs:z,floatingStyles:K,placement:V,isPositioned:H,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(r);Ase(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!=c,_=Ise(c),j=Ise(o),P=i.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};j.current&&(e.platform=j.current),Pse(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!Ase(O.current,t)&&(O.current=t,a.flushSync((()=>{p(t)})))}))}),[h,t,n,j]);Mse((()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const T=i.useRef(!1);Mse((()=>(T.current=!0,()=>{T.current=!1})),[]),Mse((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(_.current)return _.current(C,S,P);P()}}),[C,S,P,_,D]);const M=i.useMemo((()=>({reference:k,floating:E,setReference:w,setFloating:x})),[w,x]),A=i.useMemo((()=>({reference:C,floating:S})),[C,S]),L=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Rse(A.floating,f.x),r=Rse(A.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...Lse(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,A.floating,f.x,f.y]);return i.useMemo((()=>({...f,update:P,refs:M,elements:A,floatingStyles:L})),[f,P,M,A,L])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>Sse(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[Hle({mainAxis:g+R,alignmentAxis:v}),b&&kse({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?jse():void 0,...$}),b&&Ese({...$}),Ose({...$,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`)}}),T&&Tse({element:T,padding:y}),Jse({arrowWidth:L,arrowHeight:R}),S&&Dse({strategy:"referenceHidden",...$})]}),[Z,W]=Qse(V),q=oe(E);le((()=>{H&&(null==q||q())}),[H,q]);const G=null===(l=U.arrow)||void 0===l?void 0:l.x,J=null===(s=U.arrow)||void 0===s?void 0:s.y,Q=0!==(null===(u=U.arrow)||void 0===u?void 0:u.centerOffset),[ee,te]=t.useState();return le((()=>{_&&te(window.getComputedStyle(_).zIndex)}),[_]),t.createElement("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:H?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(c=U.transformOrigin)||void 0===c?void 0:c.x,null===(d=U.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:e.dir},t.createElement(Use,{scope:p,placedSide:Z,onArrowChange:M,arrowX:G,arrowY:J,shouldHideArrow:Q},t.createElement(ae.div,X({"data-side":Z,"data-align":W},O,{ref:P,style:{...O.style,animation:H?void 0:"none",opacity:null!==(f=U.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),qse="PopperArrow",Gse={top:"bottom",right:"left",bottom:"top",left:"right"},Yse=t.forwardRef((function(e,n){const{__scopePopper:r,...o}=e,i=Zse(qse,r),a=Gse[i.placedSide];return t.createElement("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}},t.createElement(Nse,X({},o,{ref:n,style:{...o.style,display:"block"}})))}));function Xse(e){return null!==e}const Jse=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Qse(l),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?g:`${m}px`,b=-f+"px"):"top"===p?(y=c?g:`${m}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?g:`${v}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?g:`${v}px`),{data:{x:y,y:b}}}});function Qse(e){const[t,n="center"]=e.split("-");return[t,n]}const eue=e=>{const{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return t.createElement(zse,{scope:n,anchor:o,onAnchorChange:i},r)},tue=Vse,nue=Wse,rue=Yse,oue=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(ae.div,X({},a,{ref:n})),i):null})),iue=t.forwardRef(((e,n)=>t.createElement(ae.span,X({},e,{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",...e.style}})))),[aue,lue]=W("Tooltip",[$se]),sue=$se(),uue=700,cue="tooltip.open",[due,fue]=aue("TooltipProvider"),pue="Tooltip",[hue,gue]=aue(pue),mue="TooltipTrigger",vue=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=gue(mue,r),a=fue(mue,r),l=sue(r),s=Y(n,t.useRef(null),i.onTriggerChange),u=t.useRef(!1),c=t.useRef(!1),d=t.useCallback((()=>u.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),t.createElement(tue,Z({asChild:!0},l),t.createElement(ae.button,Z({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:s,onPointerMove:re(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))})),onPointerLeave:re(e.onPointerLeave,(()=>{i.onTriggerLeave(),c.current=!1})),onPointerDown:re(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:re(e.onFocus,(()=>{u.current||i.onOpen()})),onBlur:re(e.onBlur,i.onClose),onClick:re(e.onClick,i.onClose)})))})),yue="TooltipPortal",[bue,wue]=aue(yue,{forceMount:void 0}),xue="TooltipContent",Cue=t.forwardRef(((e,n)=>{const r=wue(xue,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,l=gue(xue,e.__scopeTooltip);return t.createElement(se,{present:o||l.open},l.disableHoverableContent?t.createElement(Oue,Z({side:i},a,{ref:n})):t.createElement(Sue,Z({side:i},a,{ref:n})))})),Sue=t.forwardRef(((e,n)=>{const r=gue(xue,e.__scopeTooltip),o=fue(xue,e.__scopeTooltip),i=t.useRef(null),a=Y(n,i),[l,s]=t.useState(null),{trigger:u,onClose:c}=r,d=i.current,{onPointerInTransitChange:f}=o,p=t.useCallback((()=>{s(null),f(!1)}),[f]),h=t.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())]);s(a),f(!0)}),[f]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(u&&d){const e=e=>h(e,d),t=e=>h(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[u,d,h,p]),t.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==d?void 0:d.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,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,l);r?p():o&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,d,l,c,p]),t.createElement(Oue,Z({},e,{ref:a}))})),[kue,Eue]=aue(pue,{isInside:!1}),Oue=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...s}=e,u=gue(xue,r),c=sue(r),{onClose:d}=u;return t.useEffect((()=>(document.addEventListener(cue,d),()=>document.removeEventListener(cue,d))),[d]),t.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),t.createElement(vle,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:d},t.createElement(nue,Z({"data-state":u.stateAttribute},c,s,{ref:n,style:{...s.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)"}}),t.createElement(ee,null,o),t.createElement(kue,{scope:r,isInside:!0},t.createElement(iue,{id:u.contentId,role:"tooltip"},i||o))))}));const Due=e=>{const{__scopeTooltip:n,delayDuration:r=uue,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=t.useState(!0),u=t.useRef(!1),c=t.useRef(0);return t.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),t.createElement(due,{scope:n,isOpenDelayed:l,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:t.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i},a)},_ue=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,u=fue(pue,e.__scopeTooltip),c=sue(n),[d,f]=t.useState(null),p=fe(),h=t.useRef(0),g=null!=l?l:u.disableHoverableContent,m=null!=s?s:u.delayDuration,v=t.useRef(!1),[y=!1,b]=ie({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(cue))):u.onClose(),null==a||a(e)}}),w=t.useMemo((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),x=t.useCallback((()=>{window.clearTimeout(h.current),v.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,b(!0)}),m)}),[m,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(eue,c,t.createElement(hue,{scope:n,contentId:p,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:t.useCallback((()=>{u.isOpenDelayed?S():x()}),[u.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},jue=vue,Pue=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=gue(yue,n);return t.createElement(bue,{scope:n,forceMount:r},t.createElement(se,{present:r||a.open},t.createElement(oue,{asChild:!0,container:i},o)))},Tue=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=sue(r);return Eue("TooltipArrow",r).isInside?null:t.createElement(rue,Z({},i,o,{ref:n}))})),Mue=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}},Aue=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=t,w=l(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(Due,{children:e.jsxs(_ue,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e.jsx(jue,{asChild:!0,children:e.jsx(Rue,Object.assign({},w,{children:n}))}),e.jsx(Pue,{container:v,children:!p&&e.jsxs(Lue,{side:Mue(i).side,align:Mue(i).align,sideOffset:a,zIndex:s,width:u,maxWidth:c,textAlign:d,id:h,bgColor:g,textColor:m,children:[o||r,e.jsx(Tue,{className:"tooltip-arrow",width:12,height:8})]})})]})})},Lue=U(Cue,{shouldForwardProp:e=>Py(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,u=l.background,c=o||u;return{backgroundColor:c,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:c,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))"}}})),Rue=U.div({display:"inline-flex"}),Iue=U.div((({theme:e})=>({color:e.tooltip.color.default}))),Nue=U.div((({theme:e})=>({color:e.tooltip.color.subtext})));Aue.Header=Iue,Aue.Body=Nue;const Bue=U.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),on),Fue=U.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),$ue=U.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),zue=U.div({display:"flex",flexDirection:"column"}),Kue=U.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Vue=U.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Hue=U.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"}}})),Uue=U.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Zue=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"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 Wue,que={exports:{}};Wue=que,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 u(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 c(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(){c&&o&&s&&(c(u),c=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,u=null,c=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=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=c(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(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 _(e){l(e.c,"body",e.a)}function j(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 P(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 T(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=j(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=j(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=j(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=j(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,_(this.g),_(this.h),_(this.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)},P.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 M={D:"serif",C:"sans-serif"},A=null;function L(){if(null===A){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);A=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return A}function R(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[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=L()&&R(e,o,i)),t?r()-e.A>=e.w?L()&&R(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 B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}T.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var F=null;function $(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function z(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,c=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===F)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);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new P(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new T(n(t.g,t),n(t.h,t),t.c,d,t.s,e,f),c.push(p)}for(s=0;s<c.length;s++)c[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||Z,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&u(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,$(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=c(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")),u(t.f,r,o)}E(t,"fontinactive",e),$(this)},z.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&&u(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 B(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(","),u=0;u<s.length;u+=1)l.push(new y(r[0],s[u]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var Z="https://fonts.googleapis.com/css";function W(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 W(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,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=X.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":Y[c],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}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 z(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)};Wue.exports?Wue.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var Gue=it(que.exports);const Yue="#0074F4",Xue="#FF6068",Jue="#FF9900",Que="#F0BB00",ece="#00C242",tce="#001D32",nce="#FFFFFF",rce={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Yue,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:sr(.95,Yue),brandTint1:sr(.9,Yue),brandTint2:sr(.8,Yue),brandTint3:sr(.7,Yue),brandTint4:sr(.6,Yue),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Xue,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:sr(.95,Xue),errorTint1:sr(.9,Xue),errorTint2:sr(.8,Xue),warning:Jue,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:sr(.95,Jue),warningTint1:sr(.9,Jue),warningTint2:sr(.8,Jue),alert:Que,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:sr(.95,Que),alertTint1:sr(.9,Que),alertTint2:sr(.8,Que),success:ece,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:sr(.95,ece),successTint1:sr(.9,ece),successTint2:sr(.8,ece),grayscale0:sr(.95,tce),grayscale1:sr(.9,tce),grayscale2:sr(.8,tce),grayscale3:sr(.7,tce),grayscale4:sr(.6,tce),grayscale5:sr(.5,tce),grayscale6:sr(.4,tce),grayscale7:sr(.3,tce),grayscale8:sr(.2,tce),grayscale9:sr(.1,tce),grayscale10:tce,contrast0:sr(.95,nce),contrast1:sr(.9,nce),contrast2:sr(.8,nce),contrast3:sr(.7,nce),contrast4:sr(.6,nce),contrast5:sr(.5,nce),contrast6:sr(.4,nce),contrast7:sr(.3,nce),contrast8:sr(.2,nce),contrast9:sr(.1,nce),contrast10:nce};var oce={color:rce,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:ice}=oce;var ace={small:{height:28,iconSize:18,font:ice.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:ice.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:ice.size.lg,padding:14,iconOnlyPadding:6}};const lce="#FFFFFF",sce={scale0:rce.grayscale0,scale1:rce.grayscale1,scale2:rce.grayscale2,scale3:rce.grayscale3,scale4:rce.grayscale4,scale5:rce.grayscale5,scale6:rce.grayscale6,scale7:rce.grayscale7,scale8:rce.grayscale8,scale9:rce.grayscale9,scale10:rce.grayscale10,accent:rce.brand,accentShade:rce.brandShade1,background0:lce,background1:lce,background2:lce,background3:lce,background4:lce,background5:lce},uce="#FFFFFF",cce=rce.grayscale0,dce=rce.grayscale1,fce=rce.grayscale2,pce=rce.grayscale3,hce=rce.grayscale4,gce=rce.grayscale6,mce=rce.grayscale8,vce=rce.grayscale9,yce=rce.grayscale10,bce=Object.assign(Object.assign(Object.assign({},oce),sce),{name:"light",button:Object.assign(Object.assign({},ace),{primary:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},outlineBackground:{default:rce.brandTint0,hover:rce.brandTint1,active:rce.brandTint2},border:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},divider:fce},secondary:{color:{default:yce,hover:yce,active:yce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:dce,hover:fce,active:pce},outlineBackground:{default:dce,hover:fce,active:pce},border:{default:fce,hover:fce,active:fce},divider:fce},positive:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},outlineBackground:{default:rce.successTint0,hover:rce.successTint1,active:rce.successTint2},border:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},divider:fce},negative:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},outlineBackground:{default:rce.errorTint0,hover:rce.errorTint1,active:rce.errorTint2},border:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},divider:fce},caution:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},outlineBackground:{default:rce.warningTint0,hover:rce.warningTint1,active:rce.warningTint2},border:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},divider:fce},subtle:{color:{default:rce.brand,hover:rce.brand,active:rce.brand},outlineColor:{default:rce.brand,hover:rce.brand,active:rce.brand},secondaryColor:{default:yce,hover:yce,active:yce},positiveColor:{default:rce.success,hover:rce.success,active:rce.success},negativeColor:{default:rce.error,hover:rce.error,active:rce.error},cautionColor:{default:rce.warning,hover:rce.warning,active:rce.warning},background:{default:"transparent",hover:dce,active:fce},outlineBackground:{default:"transparent",hover:dce,active:fce},border:{default:"transparent",hover:fce,active:fce},divider:fce},link:{color:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},outlineColor:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},secondaryColor:{default:mce,hover:vce,active:yce},positiveColor:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},negativeColor:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},cautionColor:{default:rce.warning,hover:rce.warningShade1,active:rce.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:hce,hover:hce,active:hce},outlineColor:{default:hce,hover:hce,active:hce},background:{default:dce,hover:dce,active:dce},outlineBackground:{default:cce,hover:cce,active:cce},border:{default:dce,hover:dce,active:dce},divider:dce},color:{default:uce}}),calendar:{background:{container:rce.contrast10,hover:dce,active:rce.brand,activeHover:rce.brandShade1,activeRange:rce.brandTint4},color:{disabled:hce,default:yce,active:rce.contrast10,current:rce.brand,outside:gce,weekday:mce,monthYear:mce,iconDefault:gce,iconDisabled:fce,iconHover:yce}},defaultBorder:`1px solid ${dce}`,formControl:{color:{default:mce,hover:yce,active:rce.brand,activeHover:rce.brandShade1,disabled:hce}},input:{borderRadius:4,background:{default:cce,hover:dce,focused:dce,disabled:cce},color:{default:yce,disabled:hce,placeholder:gce,description:gce,descriptionError:rce.error},borderColor:{default:gce,hover:mce,focused:rce.brand,disabled:hce,error:rce.error},labelColor:{default:mce,hover:mce,filled:gce,focused:rce.brand,disabled:hce}},menu:{background:uce},menuItem:{borderColor:rce.brand,background:{active:cce,hover:dce,inactive:"transparent"},color:{active:yce,hover:yce,inactive:gce}},modal:{background:rce.contrast10,color:{header:yce,body:gce}},options:{background:rce.contrast10},optionItem:{background:{active:dce,inactive:"transparent"},color:{active:yce,inactive:yce,accent:rce.brand}},table:{color:{header:gce,body:yce},borderColor:dce},toast:{color:yce,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:mce,info:rce.brand,success:rce.success,warning:rce.warning,error:rce.error}},toggle:{slider:rce.contrast10},tooltip:{background:"#FFF",color:{default:yce,subtext:gce}}}),wce={scale0:rce.contrast0,scale1:rce.contrast1,scale2:rce.contrast2,scale3:rce.contrast3,scale4:rce.contrast4,scale5:rce.contrast5,scale6:rce.contrast6,scale7:rce.contrast7,scale8:rce.contrast8,scale9:rce.contrast9,scale10:rce.contrast10,accent:rce.brandDark,accentShade:rce.brandDarkShade1,background0:rce.brandBackground0,background1:rce.brandBackground1,background2:rce.brandBackground2,background3:rce.brandBackground3,background4:rce.brandBackground4,background5:rce.brandBackground5},xce=rce.contrast0,Cce=rce.contrast1,Sce=rce.contrast2,kce=rce.contrast3,Ece=rce.contrast4,Oce=rce.contrast6,Dce=rce.contrast8,_ce=rce.contrast9,jce=rce.contrast10,Pce=rce.brandDark,Tce={light:bce,dark:Object.assign(Object.assign(Object.assign({},oce),wce),{name:"dark",button:Object.assign(Object.assign({},ace),{primary:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},outlineBackground:{default:rce.brandTint0,hover:rce.brandTint1,active:rce.brandTint2},border:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},divider:Sce},secondary:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:Cce,hover:Sce,active:kce},outlineBackground:{default:Cce,hover:Sce,active:kce},border:{default:Sce,hover:Sce,active:Sce},divider:Sce},positive:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},outlineBackground:{default:rce.successTint0,hover:rce.successTint1,active:rce.successTint2},border:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},divider:Sce},negative:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},outlineBackground:{default:rce.errorTint0,hover:rce.errorTint1,active:rce.errorTint2},border:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},divider:Sce},caution:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},outlineBackground:{default:rce.warningTint0,hover:rce.warningTint1,active:rce.warningTint2},border:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},divider:Sce},subtle:{color:{default:rce.brand,hover:rce.brand,active:rce.brand},outlineColor:{default:rce.brand,hover:rce.brand,active:rce.brand},secondaryColor:{default:jce,hover:jce,active:jce},positiveColor:{default:rce.success,hover:rce.success,active:rce.success},negativeColor:{default:rce.error,hover:rce.error,active:rce.error},cautionColor:{default:rce.warning,hover:rce.warning,active:rce.warning},background:{default:"transparent",hover:Cce,active:Sce},outlineBackground:{default:"transparent",hover:Cce,active:Sce},border:{default:"transparent",hover:Sce,active:Sce},divider:Sce},link:{color:{default:rce.brandShade2,hover:rce.brandShade1,active:rce.brand},outlineColor:{default:rce.brandShade2,hover:rce.brandShade1,active:rce.brand},secondaryColor:{default:Dce,hover:_ce,active:jce},positiveColor:{default:rce.successShade2,hover:rce.successShade1,active:rce.success},negativeColor:{default:rce.errorShade2,hover:rce.errorShade1,active:rce.error},cautionColor:{default:rce.warningShade2,hover:rce.warningShade1,active:rce.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:Ece,hover:Ece,active:Ece},outlineColor:{default:Ece,hover:Ece,active:Ece},background:{default:Cce,hover:Cce,active:Cce},outlineBackground:{default:xce,hover:xce,active:xce},border:{default:Cce,hover:Cce,active:Cce},divider:Cce},color:{default:"#FFFFFF"}}),calendar:{background:{container:rce.brandBackground3,hover:Cce,active:rce.brand,activeHover:rce.brandShade1,activeRange:rce.brandTint4},color:{disabled:Ece,default:jce,active:jce,current:Pce,outside:Oce,weekday:Dce,monthYear:Dce,iconDefault:Oce,iconDisabled:Sce,iconHover:jce}},defaultBorder:`1px solid ${Cce}`,formControl:{color:{default:Dce,hover:jce,active:rce.brand,activeHover:rce.brandShade1,disabled:Ece}},input:{borderRadius:4,background:{default:xce,hover:Cce,focused:Cce,disabled:xce},color:{default:jce,disabled:Ece,placeholder:Oce,description:Oce,descriptionError:rce.error},borderColor:{default:Oce,hover:Dce,focused:Pce,disabled:Ece,error:rce.error},labelColor:{default:Dce,hover:Dce,filled:Oce,focused:Pce,disabled:Ece}},menu:{background:rce.brandBackground2},menuItem:{borderColor:rce.brand,background:{active:xce,hover:Cce,inactive:"transparent"},color:{active:jce,hover:jce,inactive:Oce}},modal:{background:rce.brandBackground3,color:{header:jce,body:Oce}},options:{background:rce.brandBackground2},optionItem:{background:{active:Cce,inactive:"transparent"},color:{active:jce,inactive:jce,accent:Pce}},table:{color:{header:Oce,body:jce},borderColor:Cce},toast:{color:jce,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:Dce,info:rce.brand,success:rce.success,warning:rce.warning,error:rce.error}},toggle:{slider:rce.brandBackground0},tooltip:{background:rce.brandBackground4,color:{default:jce,subtext:Oce}}})};exports.Accordion=dn,exports.Audio=db,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:u,barSize:c=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=l(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(IY,Object.assign({},v,{children:[e.jsx(RY,{}),e.jsx(IT,{width:"100%",height:"100%",children:e.jsxs(SG,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:c,maxBarSize:d,barGap:s,barCategoryGap:u,children:[e.jsx(rq,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(Cq,{stroke:y,tickMargin:4,tickFormatter:e=>f?kb(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx(kq,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:kb(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),BY(),o&&e.jsx(yj,{content:e.jsx(FY,{})}),i.map((({key:t,color:n},r)=>e.jsx(pZ,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=nb,exports.Calendar=iX,exports.Checkbox=cX,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:c,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?lt.range(r,o+1):lt.rangeRight(o,r+1)}return null})),n=t.flat();return lt.compact(n)})(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(iJ,{method:x,url:k}):e.jsx(nJ,{code:k,language:w,theme:"dark"===h?jX.oceanicNext:jX.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(uJ,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(cJ,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(dJ,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(rJ,{content:k})]}))})},exports.ComboBox=CJ,exports.DatePicker=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,isDisabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,open:v,onChange:y,afterShow:b,afterHide:w}=n,x=l(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","isDisabled","description","errorMessage","preventPast","preventFuture","open","onChange","afterShow","afterHide"]);const[C,S]=t.useState(v||!1),{current:k}=t.useRef(r?nX(r):void 0),[E,O]=t.useState(k),D=t.useRef(null),{min:_,max:j}=rX({past:g,future:m,rel:k||Zie}),P=e=>{const{year:t,month:n,day:r}=e,o=new Nl(t,n,r);O(o);const i=tX(e);y&&y(i)},T=!(E||!o);return e.jsxs(Wie,Object.assign({value:E,hasLabel:!!o,isDisabled:f,minValue:_,maxValue:j,onChange:P,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:D,isOpen:C},x,{children:[a&&iie(a,{marginRight:8}),e.jsxs(mJ,{filled:!!E,disabled:f,children:[o,e.jsx(qie,{ref:i,hide:T,fontSize:c,placeholderColor:d,children:t=>e.jsx($ie,{placeholderColor:d,segment:t})})]}),e.jsx(Uie,{isDisabled:f,children:e.jsx(sn,{name:C?"caret-up":"caret-down",inheritColor:!0})}),s&&iie(s),u&&e.jsx(qy,{}),e.jsx(zie,{description:p,errorMessage:h}),e.jsx(kv,{triggerRef:D,children:e.jsx(jv,{children:e.jsx(iX,{date:E?tX(E):void 0,onChange:e=>{P(nX(e))},preventPast:g,preventFuture:m})})})]}))},exports.DateRangePicker=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:s,iconRight:u,isLoading:c,fontSize:d,placeholderColor:f,isDisabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,open:y,onChange:b,afterShow:w,afterHide:x}=n,C=l(n,["startValue","endValue","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","isDisabled","description","errorMessage","preventPast","preventFuture","open","onChange","afterShow","afterHide"]);const[S,k]=t.useState(y||!1),{current:E}=t.useRef(r?nX(r):void 0),{current:O}=t.useRef(o?nX(o):void 0),[D,_]=t.useState(E),[j,P]=t.useState(O),T=t.useRef(null),{min:M,max:A}=rX({past:m,future:v,rel:E||Jie}),L=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new Nl(r,o,i);_(u);const c=new Nl(a,l,s);P(c);const d=tX(t),f=tX(n);b&&b(d,f)},R=!(!D&&!j),I=!(R||!i);return e.jsxs(Qie,Object.assign({value:D&&j?{start:D,end:j}:void 0,hasLabel:!!i,isDisabled:p,minValue:M,maxValue:A,onChange:L,onOpenChange:e=>{k(e),w&&e&&w(),x&&!e&&x()},ref:T,isOpen:S},C,{children:[s&&iie(s,{marginRight:8}),e.jsxs(mJ,{filled:R,disabled:p,children:[i,e.jsxs(tae,{fontSize:d,hide:I,children:[e.jsx(eae,{slot:"start",ref:a,fontSize:d,placeholderColor:f,children:t=>e.jsx($ie,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(eae,{slot:"end",fontSize:d,placeholderColor:f,children:t=>e.jsx($ie,{placeholderColor:f,segment:t})})]})]}),e.jsx(Uie,{isDisabled:p,children:e.jsx(sn,{name:S?"caret-up":"caret-down",inheritColor:!0})}),u&&iie(u),c&&e.jsx(qy,{}),e.jsx(zie,{description:h,errorMessage:g}),e.jsx(kv,{triggerRef:T,children:e.jsx(jv,{children:e.jsx(Yie,{startDate:D?tX(D):void 0,endDate:j?tX(j):void 0,onChange:(e,t)=>{const n=nX(e),r=nX(t);L({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))},exports.DocTable=kJ,exports.DraftEditor=Koe,exports.Dropdown=wie,exports.DropdownMenu=Vy,exports.Form=Tie,exports.Grid=Oie,exports.Icon=sn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=t.useState(i),f=rt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+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,c]),n?e.jsxs(Rie,{opacity:u,prevNext:o.length>1,children:[e.jsx(Iie,{onClick:r,children:e.jsx(sn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(Nie,{id:"prev",onClick:p,children:e.jsx(sn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(Bie,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(Nie,{next:!0,id:"next",onClick:h,children:e.jsx(sn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=Fie,exports.Input=aie,exports.InputUtils=Poe,exports.Label=jie,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=l(r,["data","legend","keys"]);const[u,c]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(IY,Object.assign({},s,{children:[e.jsx(RY,{}),e.jsx(IT,{width:"100%",height:"100%",children:e.jsxs(CG,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(rq,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(Cq,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx(kq,{stroke:d,tickMargin:4,tickFormatter:e=>kb(e)}),BY(),i&&e.jsx(yj,{content:e.jsx(FY,{toggleData:a.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(wq,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=lae,exports.Message=fae,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(bae,{children:[e.jsx(yae,{}),e.jsx(vae,{color:n,style:r,children:t}),e.jsx(yae,{})]}),exports.Modal=wae,exports.MultiSelect=kae,exports.Notification=EG,exports.NumberInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,isDisabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","isDisabled","description","errorMessage"]);return e.jsxs(nae,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&iie(a,{marginRight:8}),e.jsxs(mJ,{filled:!!n,disabled:f,children:[r,e.jsx(hJ,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d})]}),s&&iie(s),u&&e.jsx(qy,{}),e.jsxs(rae,{children:[e.jsx(oae,{slot:"increment",children:e.jsx(sn,{size:r?23.5:19.5,name:"caret-up"})}),e.jsx(iae,{}),e.jsx(oae,{slot:"decrement",children:e.jsx(sn,{size:r?23.5:19.5,name:"caret-down"})})]}),e.jsx(zie,{description:p,errorMessage:h})]}))},exports.Options=fie,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=l(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,d]=t.useState(Aae(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,Aae(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(Lae,Object.assign({width:s},u,{children:[e.jsx(Iae,{disabled:1===c,onClick:()=>m(1),children:e.jsx(sn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(Iae,{disabled:1===c,onClick:()=>m(c-1),children:e.jsx(sn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(Bae,{children:"... "}):"",e.jsx(Nae,{selected:n===c,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(Bae,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(Iae,{disabled:c===i,onClick:()=>m(c+1),children:e.jsx(sn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(Iae,{disabled:c===i,onClick:()=>m(i),children:e.jsx(sn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=l(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,u=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,c=n/2-1;return e.jsx(IY,Object.assign({width:n,height:n},a,{children:e.jsxs(kG,{width:n,height:n,children:[e.jsx($H,{dataKey:"value",data:u,innerRadius:o,outerRadius:c,children:null==u?void 0:u.map((t=>e.jsx(NT,{fill:t.color||"#999"},t.name)))}),s&&BY()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(Fae,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(Vae,Object.assign({width:o,height:i||l},p,{children:e.jsx(Hae,{color:n,width:h})}))},exports.Radio=Die,exports.RangeCalendar=Yie,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,Gue.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.Select=Uae,exports.Slider=sb,exports.Spacer=qae,exports.Spinner=qy,exports.Table=sle,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=l(t,["items","activeItem","itemWidth","itemGap","onChange"]);const u=n.filter((e=>!1!==e.visible));return e.jsx(cle,Object.assign({gap:i},s,{children:u.map((t=>{const{id:n,label:i,icon:s,iconColor:u,iconPosition:c}=t,d=l(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(dle,Object.assign({active:n===r,itemWidth:o,reverse:"right"===c,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},d,{children:[s&&e.jsx(sn,{name:s,size:"small",color:u,inheritColor:!u}),i]}),n)}))}))},exports.TextInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,isDisabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","isDisabled","description","errorMessage"]);return e.jsxs(aae,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&iie(a,{marginRight:8}),e.jsxs(mJ,{filled:!!n,disabled:f,children:[r,e.jsx(hJ,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d})]}),s&&iie(s),u&&e.jsx(qy,{}),e.jsx(zie,{description:p,errorMessage:h})]}))},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=_ie,exports.Tooltip=Aue,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,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(!lt.isEqual(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(Uue,{children:t.header}),e.jsx(Zue,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(Bue,Object.assign({width:c,readOnly:u},x,{children:[i&&e.jsx(Fue,{children:i}),e.jsxs($ue,{children:[!u&&e.jsxs(zue,{children:[O&&e.jsx(Kue,{children:v.length>0&&!l&&e.jsx(nb,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(Vue,{children:v.map((t=>e.jsxs(Hue,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(sn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(zue,{children:[O&&!u&&e.jsx(Kue,{children:b.length>0&&!s&&!u&&e.jsx(nb,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(Vue,{children:b.map((t=>e.jsxs(Hue,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(sn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=rce,exports.copyToClipboard=AY,exports.darkScale=wce,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,u=jY(n,"EEEE"),c=jY(n,"MMM d"),d=jY(n,"MMM d, y"),f=jY(n,"h:mm aaa"),p=TY(n),h=function(e){return+OG(e)>Date.now()}(n),g=function(e){return $G(e,FG(e))}(n),m=MY(n),v=function(e){return $G(e,_G(FG(e),1))}(n),y=HG(s,n),b=UG(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?`${c}${x}`:`${d}${x}`:`${u}${x}`)},exports.lightScale=sce,exports.marginProps=on,exports.numberWithCommas=LY,exports.paddingProps=rn,exports.positionProps=an,exports.theme=Tce,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=t.useState(c||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};nt(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(wae,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(wae.Header,{children:n}),r&&e.jsx(wae.Text,{children:r}),l&&e.jsx(wae.Body,{marginTop:4,marginBottom:8,children:e.jsx(aie,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(wae.Footer,{children:[e.jsx(nb,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx(nb,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=tn,exports.useEventListener=nt,exports.useOnClickOutside=rt,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=st,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1);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)):t?(s(!0),a(!1)):(s(!1),a(!1))}),[r]),{list:r,partial:l,allSelected:i,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=nn;
|
|
53
|
+
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 u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}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,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,c,typeof e[c]),d=e[c](n,c,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,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";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===u(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=c(e,n,t)),a(t)||(o=c(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},c=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=u(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),u=s?s.length:0,c=d(t),f=p(c,u);return c.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 oie=rie.exports;const iie=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(sn,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(sn,Object.assign({},n,r))},aie=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:u,description:c,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:_,padding:j,paddingLeft:P,paddingRight:T,paddingTop:M,paddingBottom:A,containerRef:L,value:R,disabled:I,readOnly:N,preventFocus:B,pointer:F,hideControls:$,onChange:z,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,Z=l(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:W,handleFocus:q,handleBlur:G}=koe(H,U,!B&&!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:_,marginRight:O,marginLeft:E},ne={padding:j,paddingTop:M,paddingBottom:A,paddingRight:T,paddingLeft:P};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;R&&(e.innerHTML=R.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,R,s,ee]);const re=h?R||s:R,oe=(!!R||"number"==typeof R)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===oie.normalize(R)){const{current:n}=Y;if(n){const r=oie.format(R),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)}}}),[R]);const ie=()=>{W||q()},ae=()=>{W&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:W,select:le}))),t.useEffect((()=>{var e;W&&(null===(e=Y.current)||void 0===e||e.focus())}),[W]);return e.jsxs(Ooe,Object.assign({ref:L,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:W,disabled:I,hasLabel:!!a,onClick:e=>{B||N||ie(),K&&K(e)},pointer:F,readOnly:N},te,ne,{children:[f&&e.jsx(sn,{name:"search",marginRight:8,inheritColor:!0}),g&&iie(g,{marginRight:8}),e.jsxs(Doe,{readOnly:N||B,children:[h&&e.jsx(uie,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(_oe,{htmlFor:i||a,filled:Eoe(R),focused:W,disabled:I,children:a}),e.jsx(lie,Object.assign({id:i||a,ref:Y,value:R,placeholder:s,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=oie.normalize(t);if(n.length>10)return;const r=oie.format(n);z&&z(e,r,n)}else z&&z(e)},onFocus:q,onBlur:G,disabled:I,hide:!(Eoe(R)||!a||W||h),width:J,fontSize:x,hideControls:$},Z))]}),m&&iie(m),d&&e.jsx(qy,{}),oe&&e.jsx(sie,{onClick:V,children:e.jsx(sn,{name:"close-circle-outline",color:X.brand})}),c&&e.jsx(joe,{invalid:v,children:c})]}))})),lie=U.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"}})),sie=U.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),uie=U.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),cie=U("div",{shouldForwardProp:e=>Py(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))"}}))),die=U("div",{shouldForwardProp:e=>Py(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}})),fie=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:u,offsetX:c,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?c:u)||4))}}),[i,p]);const v=e.jsx(pie,{id:n,ref:i||m,offsetX:c,offsetY:u,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};fie.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:u,accented:c,section:d}=t,f=l(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(die,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:s,color:u,accented:c,tabIndex:a?-1:0},f,{children:n}))};const pie=U(cie)((({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}:{}})),hie=(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},gie=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(vie,{children:n.header}),e.jsx(yie,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),mie=(n,r,o,i,a)=>{const{selected:s}=a,u=((t,n,r,o)=>{if(t&&t.length>0)return hie(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(fie.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:gie(t)},t.id)}));return[]})(n,o,i,l(a,["selected"])),c=((e,n,r)=>e?Yoe(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Yoe([...u,...c]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},vie=U.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),yie=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),bie=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),wie=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:u,onBlur:c,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:_,marginLeft:j,label:P,id:T,name:M,trigger:A,centerY:L,centerX:R,offsetY:I,offsetX:N,direction:B,fontSize:F,description:$,disabled:z,invalid:K,search:V,filter:H,restrictInput:U,inputRef:Z,optionsParent:W}=r,q=l(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:_,marginLeft:j},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&s&&s(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(Z||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ue=rt(se,Q,W?[W,`${W} *`]:void 0),ce=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ce(t.label,e);return!n&&"id"in t&&(n=ce(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ce(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:nie(),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=Yoe(m).map((e=>{const t=e;let n=t.props.displayText||"";return!P&&t.props.children&&(n=bie(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...hie(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]=st(me),be=mie(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!z?p||ae.color.default:void 0,Ce=l(q,["onClear","phone"]);return e.jsx(xie,Object.assign({textOnly:x,altTrigger:!!A,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(Cie,{ref:ue,children:[A?e.jsx(Sie,{id:T,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:A}):e.jsx(Eie,{shake:re,children:e.jsx(aie,Object.assign({},Ce,{ref:Z||ie,id:T,name:M,label:P,fontSize:F,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:$,disabled:z,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Z||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),u&&u(e)},onBlur:e=>{var t;if(ne(!1),c&&c(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(fie,{containerRef:ye,parentSelector:W,width:!A&&!x||W?"100%":void 0,centerY:L,centerX:R,offsetY:I,offsetX:N,direction:B,children:be})]})}))};wie.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||bie(i)||"",value:t};r&&r(o,e)};return e.jsx(fie.Item,{id:c,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const xie=U.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`})),nn,on),Cie=U.div({position:"relative",width:"100%",height:"inherit"}),Sie=U.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),kie=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)"}}),Eie=U.div((({shake:e})=>({"& input":{animation:e?`${kie} .5s linear`:void 0}}))),Oie=U.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,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:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),rn,on);Oie.Item=U.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),rn,on);const Die=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=t,p=l(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return e.jsxs(lX,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(uX,{children:r}),e.jsx(sX,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(sn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},_ie=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=l(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:c,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(lX,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(uX,{children:o}),e.jsx(sX,Object.assign({id:r,type:"checkbox",checked:y,disabled:s,onChange:()=>{const e=!y;b(e),u(e)}},g)),e.jsx(sn,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},jie=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=l(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(Pie,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&iie(r,{marginRight:4,size:"small"}),n,o&&iie(o,{marginLeft:4,size:"small"})]}))},Pie=U.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}}),on),Tie=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(Mie,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};Tie.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(Aie,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},Tie.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=l(t,["children","inline","align","disabled"]);return e.jsx(Lie,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Tie.Input=aie,Tie.Dropdown=wie,Tie.Radio=Die,Tie.Toggle=_ie,Tie.Checkbox=cX,Tie.Label=jie;const Mie=U(Oie)({boxSizing:"border-box"}),Aie=U(Oie)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Lie=U.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"}),on),Rie=U.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}))),Iie=U.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Nie=U.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%)`}}))),Bie=U.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Fie=U.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"}))),$ie=U(Vv)((({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}}))),zie=({description:t,errorMessage:n})=>t||n?e.jsxs(Kie,{children:[t&&!n&&e.jsx(Vie,{slot:"description",children:t}),n&&e.jsx(Hie,{children:n})]}):null,Kie=U.div({position:"absolute",left:0,top:"100%"}),Vie=U(Zh)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),Hie=U(Nm)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),Uie=U(Ky)((({theme:{input:e,accent:t},isDisabled:n})=>({color:n?e.labelColor.disabled:e.labelColor.default,outline:"none","&[data-focused]":{outline:`${t} solid 1px`}}))),Zie=eX(),Wie=U(Gv)(gJ),qie=U(zv,fJ)({display:"flex"},pJ),Gie=eX(),Yie=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:s,noShadow:u}=n,c=l(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?nX(r):Gie),{current:f}=t.useRef(o?nX(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),{min:v,max:y}=rX({past:a,future:s,rel:d});return e.jsxs(Xie,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:u}=n,c=new Nl(r,o,a);h(c);const d=new Nl(l,s,u);m(d);const f=tX(t),p=tX(n);i&&i(f,p)},minValue:v,maxValue:y,noShadow:u},c,{children:[e.jsx(YY,{}),e.jsx(UY,{range:!0})]}))},Xie=U(Sm)(HY),Jie=eX(),Qie=U(Xv)(gJ),eae=U(zv,fJ)(pJ,{display:"flex","&:first-of-type":{marginRight:0}}),tae=U(wv,fJ)((({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}}))),nae=U(yy)(gJ),rae=U.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder}))),oae=U(Ky)((({theme:e})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden","&:hover":{backgroundColor:e.scale1},"&:active":{backgroundColor:e.scale0}}))),iae=U.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),aae=U(jy)(gJ),lae=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(sae,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?Yoe(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),sae=U.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:u})=>({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:u})),rn),uae=U.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}))),cae=U.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),dae=U.div({marginLeft:"auto",marginRight:8});lae.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(uae,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),lae.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:u,children:c,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>Yoe(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(c),v=()=>h((e=>!e));return e.jsxs(cae,{backgroundColor:f,children:[e.jsxs(uae,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:u,role:"menuitem",indent:d,children:[n,e.jsx(dae,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(sn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const fae=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,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:u,marginRight:c,marginLeft:d};return e.jsxs(gae,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(sn,{name:h,style:{marginRight:10},color:g}),e.jsx(mae,{children:r||f}),o&&e.jsx(sn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},pae=U.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),hae=U.div((({theme:e})=>({fontWeight:e.font.weight.default})));fae.Header=pae,fae.Body=hae;const gae=U.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})),on),mae=U.div({width:"100%"}),vae=U.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),yae=U.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),bae=U.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),wae=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:u,preventOverlayClose:c,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:_})=>{const j=rt(c?()=>null:s,i),P={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},T=Yoe(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),M=e.jsx(Sae,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:_,blur:d,children:e.jsxs(xae,Object.assign({ref:j,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},P,{children:[T,u&&e.jsx(Cae,{inline:h,children:e.jsx(sn,{name:"close",onClick:s,pointer:!0})})]}))}),A=document.querySelector(o||"#root");return i&&A?r.createPortal(M,A):null};wae.Header=U.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),wae.Text=U.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),wae.Body=U.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),on),wae.Footer=U.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})),on);const xae=U.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"})`}),rn),Cae=U.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),Sae=U.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),kae=t.forwardRef(((o,i)=>{var{children:a,options:s,items:u,listLabel:c,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,_=l(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,P]=t.useState(D||!1),[T,M]=t.useState(!1),[A,L]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),B=rt((()=>P(!1)),j,w?[w,`${w} *`]:void 0),F=t.useRef(null),$=x&&!!c,z=e=>{e&&k(e)},K=()=>{const{current:e}=F;j||c||P(!0),null==e||e.focus()},V=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:K,blur:V})));const H=e=>{L(e),O&&O(e)};t.useEffect((()=>{j||V()}),[j]);nt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(u.length>0){e.preventDefault();const t=u[u.length-1];E(t)}}),j&&!A,[u]);const U=s.filter((e=>!u.find((t=>t.id===e.id)))),Z=t.useMemo((()=>`multi-select-${nie()}`),[]),W=t.useMemo((()=>`multi-select-list-${nie()}`),[]),q=p?u.length>=p:void 0,G=y||!j||q,Y=()=>{const t=e.jsxs(_ae,{id:W,expanded:j,padTop:j&&u.length>0,labeled:!!c,children:[d&&e.jsx(jae,{expanded:j,labeled:!!c,children:d}),a?a(j,!!y):u.map((t=>e.jsx(jie,{pill:!0,iconRight:j&&!y?e.jsx(sn,{name:"close-circle",onClick:()=>E(t),pointer:!0}):void 0,disabled:y,children:t.label},t.id))),e.jsx(wie,Object.assign({},_,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:m,backgroundColor:"transparent",restrictInput:v,options:U,fontSize:I.size.md,placeholder:y||u.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:z,onTextChange:H,onError:e=>M(e),disabled:G,optionsParent:w?`#${W}`:`#${Z}`,autoFocus:D}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(Eae,{width:g,ref:B,labeled:!!c,disabled:y,collapse:$,onClick:e=>{e.stopPropagation(),K()},children:[e.jsxs(Oae,{collapse:$,id:Z,expanded:j&&u.length>0,error:T,labeled:!!c,backgroundColor:C,borderless:S,children:[c?e.jsx(Dae,{collapse:$,children:c}):Y(),e.jsxs(Pae,{children:[p&&!b&&e.jsx(Mae,{children:y&&f?e.jsxs(e.Fragment,{children:[u.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(Tae,{error:u.length>=p,children:u.length}),"/",p," ",f]})}),u.length>0&&e.jsx(sn,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),P(!j)}})]})]}),c&&j&&Y()]})})),Eae=U.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),Oae=U.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"}))),Dae=U.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),_ae=U.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}:{})),jae=U.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}))),Pae=U.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Tae=U.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),Mae=U.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),Aae=e=>e?+e:0,Lae=U.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),on),Rae=U.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`}}))),Iae=U(Rae)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),Nae=U(Rae)((({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}))),Bae=U.span((({theme:e})=>({color:e.scale6}))),Fae=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u})=>{const c={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs($ae,Object.assign({size:n},c,{children:[e.jsx(zae,{cx:h,cy:h,r:d,thickness:r}),e.jsx(Kae,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},$ae=U.svg((({size:e})=>({display:"block",width:e,height:e})),on),zae=U.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Kae=U(zae)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Vae=U.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),on),Hae=U.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),Uae=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:s,options:u,placeholder:c="Select",placeholderColor:d,textOnly:f,value:p,width:h,onChange:g,afterShow:m,afterHide:v}=n,y=l(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,_={margin:S,marginTop:k,marginBottom:E,marginRight:O,marginLeft:D};t.useEffect((()=>{p&&p!==x&&C(p)}),[p,x]);const j=!x&&s;return e.jsxs(Cy,Object.assign({placeholder:c,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(Zae,Object.assign({backgroundColor:r,textOnly:f,width:h,hasLabel:!!s,isDisabled:a,pointer:!0},_,{children:[e.jsxs(mJ,{filled:!!x,disabled:a,children:[s,e.jsx(Wae,{fontSize:i,placeholderColor:d,isDisabled:a,style:({isPlaceholder:e})=>e&&j?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e.jsx(sn,{name:b?"caret-up":"caret-down",inheritColor:!0})]})),e.jsx(Nm,{}),e.jsx(kv,{offset:2,children:e.jsxs(vJ,{autoWidth:f,shouldFocusWrap:!0,children:[null==u?void 0:u.map((t=>e.jsx(yJ,Object.assign({},t),t.id||t.value))),o]})})]}))};Uae.Item=yJ,Uae.Section=xJ;const Zae=U(Vh)(gJ),Wae=U(Ey)((({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)}}))),qae=U.div(nn),Gae=t.createContext({}),Yae=(t,n,r)=>{const o="th"===n?Xae:Jae,i=r?{style:r}:{};return Yoe(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},Xae=U.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),Jae=U.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),Qae=U.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),ele=U(Oie)({alignItems:"center",padding:"8px 24px"},rn),tle=U.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),nle=U(Oie)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),rn),rle=t=>{var{as:n,children:r}=t,o=l(t,["as","children"]);return e.jsx(ile,Object.assign({as:n},o,{children:r}))},ole=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},ile=U.div((({contentPosition:e,direction:t,justify:n,align:r="center",gap:o})=>({display:"flex",justifyContent:ole(e||n),alignItems:ole(r),flexDirection:t,gap:o}))),ale=U.div((({theme:e})=>({color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),rn),lle=U.div((({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),sle=n=>{var{children:r,columns:o,data:i}=n,a=l(n,["children","columns","data"]);const[s,u]=t.useState(i),[c,d]=t.useState(),f=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(c){const{key:t,dir:n}=c;e=lt.orderBy(i,t,n)}lt.isEqual(e,s)||u(e)}),[i,c]);const p=t.useMemo((()=>({activeColumn:c,setActiveColumn:d,parentColumns:o})),[c,d,o]);return e.jsx(Gae.Provider,{value:p,children:e.jsx(ule,Object.assign({},a,{children:f}))})};sle.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=l(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:u}=t.useContext(Gae),c=o||u||"equal";return e.jsx(Qae,{alignToScrollBody:a,children:e.jsx(ele,Object.assign({as:"tr",columns:c},s,{children:Yae(r,"th",i)}))})},sle.HeaderCell=r=>{var{children:o,onClick:i,contentPosition:a,justify:s,align:u,direction:c,gap:d,sorted:f,sortKey:p}=r,h=l(r,["children","onClick","contentPosition","justify","align","direction","gap","sorted","sortKey"]);const[g,m]=t.useState(f||"inactive"),{color:v}=n.useTheme(),{activeColumn:y,setActiveColumn:b}=t.useContext(Gae),w=p||f,x="desc"===g?"arrow-down":"arrow-up",C="asc"===g||"desc"===g,S=e=>{if(m(e),b&&p){b("inactive"===e?void 0:{key:p,dir:e})}};return t.useEffect((()=>{!p||"asc"!==f&&"desc"!==f||S(f)}),[]),t.useEffect((()=>{f&&m(f)}),[f]),t.useEffect((()=>{const e=!y&&f;p&&y&&y.key!==p&&"inactive"!==g&&!e&&m("inactive")}),[y,g]),e.jsxs(rle,Object.assign({as:lle,onClick:e=>{p?S("inactive"===g?"asc":"asc"===g?"desc":"inactive"):i&&i(e)},direction:c,contentPosition:a,justify:s,align:u,gap:d,active:C,sorting:!!w},h,{children:[o,w?e.jsx(sn,{name:x,marginLeft:8,size:"small",color:C?v.brand:void 0,inheritColor:!C}):null]}))},sle.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=l(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(Gae);return e.jsx(tle,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},sle.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=l(n,["children","columns","onClick","columnStyles"]);const{parentColumns:u}=t.useContext(Gae),c=o||u||"equal";return e.jsx(nle,Object.assign({as:"tr",columns:c,onClick:i,hoverEffect:!!i},s,{children:Yae(r,"td",a)}))},sle.Column=t=>{var{children:n,contentPosition:r,direction:o,justify:i,align:a,gap:s,defaultValue:u,padding:c,paddingTop:d,paddingBottom:f,paddingRight:p,paddingLeft:h}=t,g=l(t,["children","contentPosition","direction","justify","align","gap","defaultValue","padding","paddingTop","paddingBottom","paddingRight","paddingLeft"]);const m={padding:c,paddingTop:d,paddingBottom:f,paddingRight:p,paddingLeft:h};return e.jsx(rle,Object.assign({as:ale,direction:o,contentPosition:r,justify:i,align:a,gap:s,showDefault:!!u&&!n},m,g,{children:n||u}))};const ule=U.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),rn,on),cle=U.div((({gap:e=8})=>({display:"flex",gap:e})),on),dle=U.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"})));const fle="dismissableLayer.update",ple="dismissableLayer.pointerDownOutside",hle="dismissableLayer.focusOutside";let gle;const mle=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vle=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=t.useContext(mle),[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=Y(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=oe(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(){ble(ple,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==u||u())}),h),k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){ble(hle,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==u||u())}),h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(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&&u&&(e.preventDefault(),u()))}),h),t.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(gle=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yle(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=gle)}}),[f,h,o,d]),t.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yle())}),[f,d]),t.useEffect((()=>{const e=()=>g({});return document.addEventListener(fle,e),()=>document.removeEventListener(fle,e)}),[]),t.createElement(ae.div,X({},c,{ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,k.onFocusCapture),onBlurCapture:re(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function yle(){const e=new CustomEvent(fle);document.dispatchEvent(e)}function ble(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 wle=["top","right","bottom","left"],xle=Math.min,Cle=Math.max,Sle=Math.round,kle=Math.floor,Ele=e=>({x:e,y:e}),Ole={left:"right",right:"left",bottom:"top",top:"bottom"},Dle={start:"end",end:"start"};function _le(e,t,n){return Cle(e,xle(t,n))}function jle(e,t){return"function"==typeof e?e(t):e}function Ple(e){return e.split("-")[0]}function Tle(e){return e.split("-")[1]}function Mle(e){return"x"===e?"y":"x"}function Ale(e){return"y"===e?"height":"width"}function Lle(e){return["top","bottom"].includes(Ple(e))?"y":"x"}function Rle(e){return Mle(Lle(e))}function Ile(e){return e.replace(/start|end/g,(e=>Dle[e]))}function Nle(e){return e.replace(/left|right|bottom|top/g,(e=>Ole[e]))}function Ble(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 Fle(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function $le(e,t,n){let{reference:r,floating:o}=e;const i=Lle(t),a=Rle(t),l=Ale(a),s=Ple(t),u="y"===i,c=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:c,y:r.y-o.height};break;case"bottom":p={x:c,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(Tle(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function zle(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=jle(t,e),h=Ble(p),g=l[f?"floating"===d?"reference":"floating":d],m=Fle(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:u,rootBoundary:c,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}: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=Fle(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 Kle(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vle(e){return wle.some((t=>e[t]>=0))}const Hle=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=Ple(n),l=Tle(n),s="y"===Lle(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=jle(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*c,y:f*u}:{x:f*u,y:p*c}}(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}}}}};function Ule(e){return qle(e)?(e.nodeName||"").toLowerCase():"#document"}function Zle(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wle(e){var t;return null==(t=(qle(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qle(e){return e instanceof Node||e instanceof Zle(e).Node}function Gle(e){return e instanceof Element||e instanceof Zle(e).Element}function Yle(e){return e instanceof HTMLElement||e instanceof Zle(e).HTMLElement}function Xle(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Zle(e).ShadowRoot)}function Jle(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rse(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qle(e){return["table","td","th"].includes(Ule(e))}function ese(e){const t=tse(),n=rse(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 tse(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nse(e){return["html","body","#document"].includes(Ule(e))}function rse(e){return Zle(e).getComputedStyle(e)}function ose(e){return Gle(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ise(e){if("html"===Ule(e))return e;const t=e.assignedSlot||e.parentNode||Xle(e)&&e.host||Wle(e);return Xle(t)?t.host:t}function ase(e){const t=ise(e);return nse(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yle(t)&&Jle(t)?t:ase(t)}function lse(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ase(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Zle(o);return i?t.concat(a,a.visualViewport||[],Jle(o)?o:[],a.frameElement&&n?lse(a.frameElement):[]):t.concat(o,lse(o,[],n))}function sse(e){const t=rse(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yle(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Sle(n)!==i||Sle(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function use(e){return Gle(e)?e:e.contextElement}function cse(e){const t=use(e);if(!Yle(t))return Ele(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sse(t);let a=(i?Sle(n.width):n.width)/r,l=(i?Sle(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const dse=Ele(0);function fse(e){const t=Zle(e);return tse()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dse}function pse(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=use(e);let a=Ele(1);t&&(r?Gle(r)&&(a=cse(r)):a=cse(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Zle(e))&&t}(i,n,r)?fse(i):Ele(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=Zle(i),t=r&&Gle(r)?Zle(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=cse(o),t=o.getBoundingClientRect(),r=rse(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=Zle(o),o=n.frameElement}}return Fle({width:c,height:d,x:s,y:u})}const hse=[":popover-open",":modal"];function gse(e){return hse.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function mse(e){return pse(Wle(e)).left+ose(e).scrollLeft}function vse(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Zle(e),r=Wle(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=tse();(!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=Wle(e),n=ose(e),r=e.ownerDocument.body,o=Cle(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Cle(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+mse(e);const l=-n.scrollTop;return"rtl"===rse(r).direction&&(a+=Cle(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Wle(e));else if(Gle(t))r=function(e,t){const n=pse(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Yle(e)?cse(e):Ele(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=fse(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Fle(r)}function yse(e,t){const n=ise(e);return!(n===t||!Gle(n)||nse(n))&&("fixed"===rse(n).position||yse(n,t))}function bse(e,t,n){const r=Yle(t),o=Wle(t),i="fixed"===n,a=pse(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Ele(0);if(r||!r&&!i)if(("body"!==Ule(t)||Jle(o))&&(l=ose(t)),r){const e=pse(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=mse(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function wse(e,t){return Yle(e)&&"fixed"!==rse(e).position?t?t(e):e.offsetParent:null}function xse(e,t){const n=Zle(e);if(!Yle(e)||gse(e))return n;let r=wse(e,t);for(;r&&Qle(r)&&"static"===rse(r).position;)r=wse(r,t);return r&&("html"===Ule(r)||"body"===Ule(r)&&"static"===rse(r).position&&!ese(r))?n:r||function(e){let t=ise(e);for(;Yle(t)&&!nse(t);){if(ese(t))return t;t=ise(t)}return null}(e)||n}const Cse={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Wle(r),l=!!t&&gse(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Ele(1);const c=Ele(0),d=Yle(r);if((d||!d&&!i)&&(("body"!==Ule(r)||Jle(a))&&(s=ose(r)),Yle(r))){const e=pse(r);u=cse(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:Wle,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=lse(e,[],!1).filter((e=>Gle(e)&&"body"!==Ule(e))),o=null;const i="fixed"===rse(e).position;let a=i?ise(e):e;for(;Gle(a)&&!nse(a);){const t=rse(a),n=ese(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Jle(a)&&!n&&yse(e,a))?r=r.filter((e=>e!==a)):o=t,a=ise(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=vse(t,n,o);return e.top=Cle(r.top,e.top),e.right=xle(r.right,e.right),e.bottom=xle(r.bottom,e.bottom),e.left=Cle(r.left,e.left),e}),vse(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:xse,getElementRects:async function(e){const t=this.getOffsetParent||xse,n=this.getDimensions;return{reference:bse(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=sse(e);return{width:t,height:n}},getScale:cse,isElement:Gle,isRTL:function(e){return"rtl"===rse(e).direction}};function Sse(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,u=use(e),c=o||i?[...u?lse(u):[],...lse(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=Wle(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:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-kle(c)+"px "+-kle(o.clientWidth-(u+d))+"px "+-kle(o.clientHeight-(c+f))+"px "+-kle(u)+"px",threshold:Cle(0,xle(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)}),100)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!s&&h.observe(u),h.observe(t));let g=s?pse(e):null;return s&&function t(){const r=pse(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;c.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 kse=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}=jle(e,t),u={x:n,y:r},c=await zle(t,s),d=Lle(Ple(o)),f=Mle(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=_le(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=_le(h+c["y"===d?"top":"left"],h,h-c[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Ese=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:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=jle(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Ple(o),y=Ple(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=f||(y||!g?[Nle(l)]:function(e){const t=Nle(e);return[Ile(e),t,Ile(t)]}(l));f||"none"===h||w.push(...function(e,t,n,r){const o=Tle(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[]}}(Ple(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ile)))),i}(l,g,h,b));const x=[l,...w],C=await zle(t,m),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Tle(e),o=Rle(e),i=Ale(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Nle(a)),[a,Nle(a)]}(o,a,b);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,O;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(O=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.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:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Ose=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}=jle(e,t),s=await zle(t,l),u=Ple(n),c=Tle(n),d="y"===Lle(n),{width:f,height:p}=r.floating;let h,g;"top"===u||"bottom"===u?(h=u,g=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,h="end"===c?"top":"bottom");const m=p-s[h],v=f-s[g],y=!t.middlewareData.shift;let b=m,w=v;if(d){const e=f-s.left-s.right;w=c||y?xle(v,e):e}else{const e=p-s.top-s.bottom;b=c||y?xle(m,e):e}if(y&&!c){const e=Cle(s.left,0),t=Cle(s.right,0),n=Cle(s.top,0),r=Cle(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Cle(s.left,s.right)):b=p-2*(0!==n||0!==r?n+r:Cle(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},Dse=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=jle(e,t);switch(r){case"referenceHidden":{const e=Kle(await zle(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vle(e)}}}case"escaped":{const e=Kle(await zle(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vle(e)}}}default:return{}}}}},_se=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:u,padding:c=0}=jle(e,t)||{};if(null==u)return{};const d=Ble(c),f={x:n,y:r},p=Rle(o),h=Ale(p),g=await a.getDimensions(u),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(u));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=xle(d[v],E),D=xle(d[y],E),_=O,j=S-g[h]-D,P=S/2-g[h]/2+k,T=_le(_,P,j),M=!s.arrow&&null!=Tle(o)&&P!==T&&i.reference[h]/2-(P<_?O:D)-g[h]/2<0,A=M?P<_?P-_:P-j:0;return{[p]:f[p]+A,data:{[p]:T,centerOffset:P-T-A,...M&&{alignmentOffset:A}},reset:M}}}),jse=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:u=!0}=jle(e,t),c={x:n,y:r},d=Lle(o),f=Mle(d);let p=c[f],h=c[d];const g=jle(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(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Ple(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}}}},Pse=(e,t,n)=>{const r=new Map,o={platform:Cse,...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 u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=$le(u,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:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,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&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=$le(u,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Tse=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?_se({element:n.current,padding:r}).fn(t):{}:n?_se({element:n,padding:r}).fn(t):{};var o}});var Mse="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Ase(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(!Ase(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)&&!Ase(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Lse(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rse(e,t){const n=Lse(e);return Math.round(t*n)/n}function Ise(e){const t=i.useRef(e);return Mse((()=>{t.current=e})),t}const Nse=t.forwardRef(((e,n)=>{const{children:r,width:o=10,height:i=5,...a}=e;return t.createElement(ae.svg,X({},a,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:t.createElement("polygon",{points:"0,0 30,0 15,10"}))}));const Bse="Popper",[Fse,$se]=W(Bse),[zse,Kse]=Fse(Bse),Vse=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:o,...i}=e,a=Kse("PopperAnchor",r),l=t.useRef(null),s=Y(n,l);return t.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)})),o?null:t.createElement(ae.div,X({},i,{ref:s}))})),Hse="PopperContent",[Use,Zse]=Fse(Hse),Wse=t.forwardRef(((e,n)=>{var r,o,l,s,u,c,d,f;const{__scopePopper:p,side:h="bottom",sideOffset:g=0,align:m="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...O}=e,D=Kse(Hse,p),[_,j]=t.useState(null),P=Y(n,(e=>j(e))),[T,M]=t.useState(null),A=function(e){const[n,r]=t.useState(void 0);return le((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}(T),L=null!==(r=null==A?void 0:A.width)&&void 0!==r?r:0,R=null!==(o=null==A?void 0:A.height)&&void 0!==o?o:0,I=h+("center"!==m?"-"+m:""),N="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},B=Array.isArray(w)?w:[w],F=B.length>0,$={padding:N,boundary:B.filter(Xse),altBoundary:F},{refs:z,floatingStyles:K,placement:V,isPositioned:H,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(r);Ase(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!=c,_=Ise(c),j=Ise(o),P=i.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};j.current&&(e.platform=j.current),Pse(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!Ase(O.current,t)&&(O.current=t,a.flushSync((()=>{p(t)})))}))}),[h,t,n,j]);Mse((()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const T=i.useRef(!1);Mse((()=>(T.current=!0,()=>{T.current=!1})),[]),Mse((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(_.current)return _.current(C,S,P);P()}}),[C,S,P,_,D]);const M=i.useMemo((()=>({reference:k,floating:E,setReference:w,setFloating:x})),[w,x]),A=i.useMemo((()=>({reference:C,floating:S})),[C,S]),L=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Rse(A.floating,f.x),r=Rse(A.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...Lse(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,A.floating,f.x,f.y]);return i.useMemo((()=>({...f,update:P,refs:M,elements:A,floatingStyles:L})),[f,P,M,A,L])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>Sse(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[Hle({mainAxis:g+R,alignmentAxis:v}),b&&kse({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?jse():void 0,...$}),b&&Ese({...$}),Ose({...$,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`)}}),T&&Tse({element:T,padding:y}),Jse({arrowWidth:L,arrowHeight:R}),S&&Dse({strategy:"referenceHidden",...$})]}),[Z,W]=Qse(V),q=oe(E);le((()=>{H&&(null==q||q())}),[H,q]);const G=null===(l=U.arrow)||void 0===l?void 0:l.x,J=null===(s=U.arrow)||void 0===s?void 0:s.y,Q=0!==(null===(u=U.arrow)||void 0===u?void 0:u.centerOffset),[ee,te]=t.useState();return le((()=>{_&&te(window.getComputedStyle(_).zIndex)}),[_]),t.createElement("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:H?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(c=U.transformOrigin)||void 0===c?void 0:c.x,null===(d=U.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:e.dir},t.createElement(Use,{scope:p,placedSide:Z,onArrowChange:M,arrowX:G,arrowY:J,shouldHideArrow:Q},t.createElement(ae.div,X({"data-side":Z,"data-align":W},O,{ref:P,style:{...O.style,animation:H?void 0:"none",opacity:null!==(f=U.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),qse="PopperArrow",Gse={top:"bottom",right:"left",bottom:"top",left:"right"},Yse=t.forwardRef((function(e,n){const{__scopePopper:r,...o}=e,i=Zse(qse,r),a=Gse[i.placedSide];return t.createElement("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}},t.createElement(Nse,X({},o,{ref:n,style:{...o.style,display:"block"}})))}));function Xse(e){return null!==e}const Jse=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Qse(l),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?g:`${m}px`,b=-f+"px"):"top"===p?(y=c?g:`${m}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?g:`${v}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?g:`${v}px`),{data:{x:y,y:b}}}});function Qse(e){const[t,n="center"]=e.split("-");return[t,n]}const eue=e=>{const{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return t.createElement(zse,{scope:n,anchor:o,onAnchorChange:i},r)},tue=Vse,nue=Wse,rue=Yse,oue=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(ae.div,X({},a,{ref:n})),i):null})),iue=t.forwardRef(((e,n)=>t.createElement(ae.span,X({},e,{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",...e.style}})))),[aue,lue]=W("Tooltip",[$se]),sue=$se(),uue=700,cue="tooltip.open",[due,fue]=aue("TooltipProvider"),pue="Tooltip",[hue,gue]=aue(pue),mue="TooltipTrigger",vue=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=gue(mue,r),a=fue(mue,r),l=sue(r),s=Y(n,t.useRef(null),i.onTriggerChange),u=t.useRef(!1),c=t.useRef(!1),d=t.useCallback((()=>u.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),t.createElement(tue,Z({asChild:!0},l),t.createElement(ae.button,Z({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:s,onPointerMove:re(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))})),onPointerLeave:re(e.onPointerLeave,(()=>{i.onTriggerLeave(),c.current=!1})),onPointerDown:re(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:re(e.onFocus,(()=>{u.current||i.onOpen()})),onBlur:re(e.onBlur,i.onClose),onClick:re(e.onClick,i.onClose)})))})),yue="TooltipPortal",[bue,wue]=aue(yue,{forceMount:void 0}),xue="TooltipContent",Cue=t.forwardRef(((e,n)=>{const r=wue(xue,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,l=gue(xue,e.__scopeTooltip);return t.createElement(se,{present:o||l.open},l.disableHoverableContent?t.createElement(Oue,Z({side:i},a,{ref:n})):t.createElement(Sue,Z({side:i},a,{ref:n})))})),Sue=t.forwardRef(((e,n)=>{const r=gue(xue,e.__scopeTooltip),o=fue(xue,e.__scopeTooltip),i=t.useRef(null),a=Y(n,i),[l,s]=t.useState(null),{trigger:u,onClose:c}=r,d=i.current,{onPointerInTransitChange:f}=o,p=t.useCallback((()=>{s(null),f(!1)}),[f]),h=t.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())]);s(a),f(!0)}),[f]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(u&&d){const e=e=>h(e,d),t=e=>h(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[u,d,h,p]),t.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==d?void 0:d.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,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,l);r?p():o&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,d,l,c,p]),t.createElement(Oue,Z({},e,{ref:a}))})),[kue,Eue]=aue(pue,{isInside:!1}),Oue=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...s}=e,u=gue(xue,r),c=sue(r),{onClose:d}=u;return t.useEffect((()=>(document.addEventListener(cue,d),()=>document.removeEventListener(cue,d))),[d]),t.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),t.createElement(vle,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:d},t.createElement(nue,Z({"data-state":u.stateAttribute},c,s,{ref:n,style:{...s.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)"}}),t.createElement(ee,null,o),t.createElement(kue,{scope:r,isInside:!0},t.createElement(iue,{id:u.contentId,role:"tooltip"},i||o))))}));const Due=e=>{const{__scopeTooltip:n,delayDuration:r=uue,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=t.useState(!0),u=t.useRef(!1),c=t.useRef(0);return t.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),t.createElement(due,{scope:n,isOpenDelayed:l,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:t.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i},a)},_ue=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,u=fue(pue,e.__scopeTooltip),c=sue(n),[d,f]=t.useState(null),p=fe(),h=t.useRef(0),g=null!=l?l:u.disableHoverableContent,m=null!=s?s:u.delayDuration,v=t.useRef(!1),[y=!1,b]=ie({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(cue))):u.onClose(),null==a||a(e)}}),w=t.useMemo((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),x=t.useCallback((()=>{window.clearTimeout(h.current),v.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,b(!0)}),m)}),[m,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(eue,c,t.createElement(hue,{scope:n,contentId:p,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:t.useCallback((()=>{u.isOpenDelayed?S():x()}),[u.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},jue=vue,Pue=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=gue(yue,n);return t.createElement(bue,{scope:n,forceMount:r},t.createElement(se,{present:r||a.open},t.createElement(oue,{asChild:!0,container:i},o)))},Tue=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=sue(r);return Eue("TooltipArrow",r).isInside?null:t.createElement(rue,Z({},i,o,{ref:n}))})),Mue=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}},Aue=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=t,w=l(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(Due,{children:e.jsxs(_ue,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e.jsx(jue,{asChild:!0,children:e.jsx(Rue,Object.assign({},w,{children:n}))}),e.jsx(Pue,{container:v,children:!p&&e.jsxs(Lue,{side:Mue(i).side,align:Mue(i).align,sideOffset:a,zIndex:s,width:u,maxWidth:c,textAlign:d,id:h,bgColor:g,textColor:m,children:[o||r,e.jsx(Tue,{className:"tooltip-arrow",width:12,height:8})]})})]})})},Lue=U(Cue,{shouldForwardProp:e=>Py(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,u=l.background,c=o||u;return{backgroundColor:c,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:c,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))"}}})),Rue=U.div({display:"inline-flex"}),Iue=U.div((({theme:e})=>({color:e.tooltip.color.default}))),Nue=U.div((({theme:e})=>({color:e.tooltip.color.subtext})));Aue.Header=Iue,Aue.Body=Nue;const Bue=U.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),on),Fue=U.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),$ue=U.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),zue=U.div({display:"flex",flexDirection:"column"}),Kue=U.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Vue=U.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Hue=U.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"}}})),Uue=U.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Zue=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"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 Wue,que={exports:{}};Wue=que,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 u(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 c(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(){c&&o&&s&&(c(u),c=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,u=null,c=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=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=c(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(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 _(e){l(e.c,"body",e.a)}function j(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 P(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 T(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=j(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=j(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=j(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=j(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,_(this.g),_(this.h),_(this.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)},P.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 M={D:"serif",C:"sans-serif"},A=null;function L(){if(null===A){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);A=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return A}function R(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[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=L()&&R(e,o,i)),t?r()-e.A>=e.w?L()&&R(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 B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}T.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var F=null;function $(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function z(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,c=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===F)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);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new P(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new T(n(t.g,t),n(t.h,t),t.c,d,t.s,e,f),c.push(p)}for(s=0;s<c.length;s++)c[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||Z,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&u(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,$(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=c(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")),u(t.f,r,o)}E(t,"fontinactive",e),$(this)},z.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&&u(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 B(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(","),u=0;u<s.length;u+=1)l.push(new y(r[0],s[u]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var Z="https://fonts.googleapis.com/css";function W(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 W(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,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=X.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":Y[c],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}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 z(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)};Wue.exports?Wue.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var Gue=it(que.exports);const Yue="#0074F4",Xue="#FF6068",Jue="#FF9900",Que="#F0BB00",ece="#00C242",tce="#001D32",nce="#FFFFFF",rce={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Yue,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:sr(.95,Yue),brandTint1:sr(.9,Yue),brandTint2:sr(.8,Yue),brandTint3:sr(.7,Yue),brandTint4:sr(.6,Yue),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Xue,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:sr(.95,Xue),errorTint1:sr(.9,Xue),errorTint2:sr(.8,Xue),warning:Jue,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:sr(.95,Jue),warningTint1:sr(.9,Jue),warningTint2:sr(.8,Jue),alert:Que,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:sr(.95,Que),alertTint1:sr(.9,Que),alertTint2:sr(.8,Que),success:ece,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:sr(.95,ece),successTint1:sr(.9,ece),successTint2:sr(.8,ece),grayscale0:sr(.95,tce),grayscale1:sr(.9,tce),grayscale2:sr(.8,tce),grayscale3:sr(.7,tce),grayscale4:sr(.6,tce),grayscale5:sr(.5,tce),grayscale6:sr(.4,tce),grayscale7:sr(.3,tce),grayscale8:sr(.2,tce),grayscale9:sr(.1,tce),grayscale10:tce,contrast0:sr(.95,nce),contrast1:sr(.9,nce),contrast2:sr(.8,nce),contrast3:sr(.7,nce),contrast4:sr(.6,nce),contrast5:sr(.5,nce),contrast6:sr(.4,nce),contrast7:sr(.3,nce),contrast8:sr(.2,nce),contrast9:sr(.1,nce),contrast10:nce};var oce={color:rce,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:ice}=oce;var ace={small:{height:28,iconSize:18,font:ice.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:ice.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:ice.size.lg,padding:14,iconOnlyPadding:6}};const lce="#FFFFFF",sce={scale0:rce.grayscale0,scale1:rce.grayscale1,scale2:rce.grayscale2,scale3:rce.grayscale3,scale4:rce.grayscale4,scale5:rce.grayscale5,scale6:rce.grayscale6,scale7:rce.grayscale7,scale8:rce.grayscale8,scale9:rce.grayscale9,scale10:rce.grayscale10,accent:rce.brand,accentShade:rce.brandShade1,background0:lce,background1:lce,background2:lce,background3:lce,background4:lce,background5:lce},uce="#FFFFFF",cce=rce.grayscale0,dce=rce.grayscale1,fce=rce.grayscale2,pce=rce.grayscale3,hce=rce.grayscale4,gce=rce.grayscale6,mce=rce.grayscale8,vce=rce.grayscale9,yce=rce.grayscale10,bce=Object.assign(Object.assign(Object.assign({},oce),sce),{name:"light",button:Object.assign(Object.assign({},ace),{primary:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},outlineBackground:{default:rce.brandTint0,hover:rce.brandTint1,active:rce.brandTint2},border:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},divider:fce},secondary:{color:{default:yce,hover:yce,active:yce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:dce,hover:fce,active:pce},outlineBackground:{default:dce,hover:fce,active:pce},border:{default:fce,hover:fce,active:fce},divider:fce},positive:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},outlineBackground:{default:rce.successTint0,hover:rce.successTint1,active:rce.successTint2},border:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},divider:fce},negative:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},outlineBackground:{default:rce.errorTint0,hover:rce.errorTint1,active:rce.errorTint2},border:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},divider:fce},caution:{color:{default:uce,hover:uce,active:uce},outlineColor:{default:yce,hover:yce,active:yce},background:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},outlineBackground:{default:rce.warningTint0,hover:rce.warningTint1,active:rce.warningTint2},border:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},divider:fce},subtle:{color:{default:rce.brand,hover:rce.brand,active:rce.brand},outlineColor:{default:rce.brand,hover:rce.brand,active:rce.brand},secondaryColor:{default:yce,hover:yce,active:yce},positiveColor:{default:rce.success,hover:rce.success,active:rce.success},negativeColor:{default:rce.error,hover:rce.error,active:rce.error},cautionColor:{default:rce.warning,hover:rce.warning,active:rce.warning},background:{default:"transparent",hover:dce,active:fce},outlineBackground:{default:"transparent",hover:dce,active:fce},border:{default:"transparent",hover:fce,active:fce},divider:fce},link:{color:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},outlineColor:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},secondaryColor:{default:mce,hover:vce,active:yce},positiveColor:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},negativeColor:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},cautionColor:{default:rce.warning,hover:rce.warningShade1,active:rce.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:hce,hover:hce,active:hce},outlineColor:{default:hce,hover:hce,active:hce},background:{default:dce,hover:dce,active:dce},outlineBackground:{default:cce,hover:cce,active:cce},border:{default:dce,hover:dce,active:dce},divider:dce},color:{default:uce}}),calendar:{background:{container:rce.contrast10,hover:dce,active:rce.brand,activeHover:rce.brandShade1,activeRange:rce.brandTint4},color:{disabled:hce,default:yce,active:rce.contrast10,current:rce.brand,outside:gce,weekday:mce,monthYear:mce,iconDefault:gce,iconDisabled:fce,iconHover:yce}},defaultBorder:`1px solid ${dce}`,formControl:{color:{default:mce,hover:yce,active:rce.brand,activeHover:rce.brandShade1,disabled:hce}},input:{borderRadius:4,background:{default:cce,hover:dce,focused:dce,disabled:cce},color:{default:yce,disabled:hce,placeholder:gce,description:gce,descriptionError:rce.error},borderColor:{default:gce,hover:mce,focused:rce.brand,disabled:hce,error:rce.error},labelColor:{default:mce,hover:mce,filled:gce,focused:rce.brand,disabled:hce}},menu:{background:uce},menuItem:{borderColor:rce.brand,background:{active:cce,hover:dce,inactive:"transparent"},color:{active:yce,hover:yce,inactive:gce}},modal:{background:rce.contrast10,color:{header:yce,body:gce}},options:{background:rce.contrast10},optionItem:{background:{active:dce,inactive:"transparent"},color:{active:yce,inactive:yce,accent:rce.brand}},table:{color:{header:gce,body:yce},borderColor:dce},toast:{color:yce,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:mce,info:rce.brand,success:rce.success,warning:rce.warning,error:rce.error}},toggle:{slider:rce.contrast10},tooltip:{background:"#FFF",color:{default:yce,subtext:gce}}}),wce={scale0:rce.contrast0,scale1:rce.contrast1,scale2:rce.contrast2,scale3:rce.contrast3,scale4:rce.contrast4,scale5:rce.contrast5,scale6:rce.contrast6,scale7:rce.contrast7,scale8:rce.contrast8,scale9:rce.contrast9,scale10:rce.contrast10,accent:rce.brandDark,accentShade:rce.brandDarkShade1,background0:rce.brandBackground0,background1:rce.brandBackground1,background2:rce.brandBackground2,background3:rce.brandBackground3,background4:rce.brandBackground4,background5:rce.brandBackground5},xce=rce.contrast0,Cce=rce.contrast1,Sce=rce.contrast2,kce=rce.contrast3,Ece=rce.contrast4,Oce=rce.contrast6,Dce=rce.contrast8,_ce=rce.contrast9,jce=rce.contrast10,Pce=rce.brandDark,Tce={light:bce,dark:Object.assign(Object.assign(Object.assign({},oce),wce),{name:"dark",button:Object.assign(Object.assign({},ace),{primary:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},outlineBackground:{default:rce.brandTint0,hover:rce.brandTint1,active:rce.brandTint2},border:{default:rce.brand,hover:rce.brandShade1,active:rce.brandShade2},divider:Sce},secondary:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:Cce,hover:Sce,active:kce},outlineBackground:{default:Cce,hover:Sce,active:kce},border:{default:Sce,hover:Sce,active:Sce},divider:Sce},positive:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},outlineBackground:{default:rce.successTint0,hover:rce.successTint1,active:rce.successTint2},border:{default:rce.success,hover:rce.successShade1,active:rce.successShade2},divider:Sce},negative:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},outlineBackground:{default:rce.errorTint0,hover:rce.errorTint1,active:rce.errorTint2},border:{default:rce.error,hover:rce.errorShade1,active:rce.errorShade2},divider:Sce},caution:{color:{default:jce,hover:jce,active:jce},outlineColor:{default:jce,hover:jce,active:jce},background:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},outlineBackground:{default:rce.warningTint0,hover:rce.warningTint1,active:rce.warningTint2},border:{default:rce.warning,hover:rce.warningShade1,active:rce.warningShade2},divider:Sce},subtle:{color:{default:rce.brand,hover:rce.brand,active:rce.brand},outlineColor:{default:rce.brand,hover:rce.brand,active:rce.brand},secondaryColor:{default:jce,hover:jce,active:jce},positiveColor:{default:rce.success,hover:rce.success,active:rce.success},negativeColor:{default:rce.error,hover:rce.error,active:rce.error},cautionColor:{default:rce.warning,hover:rce.warning,active:rce.warning},background:{default:"transparent",hover:Cce,active:Sce},outlineBackground:{default:"transparent",hover:Cce,active:Sce},border:{default:"transparent",hover:Sce,active:Sce},divider:Sce},link:{color:{default:rce.brandShade2,hover:rce.brandShade1,active:rce.brand},outlineColor:{default:rce.brandShade2,hover:rce.brandShade1,active:rce.brand},secondaryColor:{default:Dce,hover:_ce,active:jce},positiveColor:{default:rce.successShade2,hover:rce.successShade1,active:rce.success},negativeColor:{default:rce.errorShade2,hover:rce.errorShade1,active:rce.error},cautionColor:{default:rce.warningShade2,hover:rce.warningShade1,active:rce.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:Ece,hover:Ece,active:Ece},outlineColor:{default:Ece,hover:Ece,active:Ece},background:{default:Cce,hover:Cce,active:Cce},outlineBackground:{default:xce,hover:xce,active:xce},border:{default:Cce,hover:Cce,active:Cce},divider:Cce},color:{default:"#FFFFFF"}}),calendar:{background:{container:rce.brandBackground3,hover:Cce,active:rce.brand,activeHover:rce.brandShade1,activeRange:rce.brandTint4},color:{disabled:Ece,default:jce,active:jce,current:Pce,outside:Oce,weekday:Dce,monthYear:Dce,iconDefault:Oce,iconDisabled:Sce,iconHover:jce}},defaultBorder:`1px solid ${Cce}`,formControl:{color:{default:Dce,hover:jce,active:rce.brand,activeHover:rce.brandShade1,disabled:Ece}},input:{borderRadius:4,background:{default:xce,hover:Cce,focused:Cce,disabled:xce},color:{default:jce,disabled:Ece,placeholder:Oce,description:Oce,descriptionError:rce.error},borderColor:{default:Oce,hover:Dce,focused:Pce,disabled:Ece,error:rce.error},labelColor:{default:Dce,hover:Dce,filled:Oce,focused:Pce,disabled:Ece}},menu:{background:rce.brandBackground2},menuItem:{borderColor:rce.brand,background:{active:xce,hover:Cce,inactive:"transparent"},color:{active:jce,hover:jce,inactive:Oce}},modal:{background:rce.brandBackground3,color:{header:jce,body:Oce}},options:{background:rce.brandBackground2},optionItem:{background:{active:Cce,inactive:"transparent"},color:{active:jce,inactive:jce,accent:Pce}},table:{color:{header:Oce,body:jce},borderColor:Cce},toast:{color:jce,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:Dce,info:rce.brand,success:rce.success,warning:rce.warning,error:rce.error}},toggle:{slider:rce.brandBackground0},tooltip:{background:rce.brandBackground4,color:{default:jce,subtext:Oce}}})};exports.Accordion=dn,exports.Audio=db,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:u,barSize:c=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=l(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(IY,Object.assign({},v,{children:[e.jsx(RY,{}),e.jsx(IT,{width:"100%",height:"100%",children:e.jsxs(SG,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:c,maxBarSize:d,barGap:s,barCategoryGap:u,children:[e.jsx(rq,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(Cq,{stroke:y,tickMargin:4,tickFormatter:e=>f?kb(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx(kq,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:kb(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),BY(),o&&e.jsx(yj,{content:e.jsx(FY,{})}),i.map((({key:t,color:n},r)=>e.jsx(pZ,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=nb,exports.Calendar=iX,exports.Checkbox=cX,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:c,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?lt.range(r,o+1):lt.rangeRight(o,r+1)}return null})),n=t.flat();return lt.compact(n)})(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(iJ,{method:x,url:k}):e.jsx(nJ,{code:k,language:w,theme:"dark"===h?jX.oceanicNext:jX.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(uJ,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(cJ,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(dJ,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(rJ,{content:k})]}))})},exports.ComboBox=CJ,exports.DatePicker=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,onChange:v,afterShow:y,afterHide:b}=n,w=l(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?nX(r):void 0),[k,E]=t.useState(S),O=t.useRef(null),{min:D,max:_}=rX({past:g,future:m,rel:S||Zie}),j=e=>{const{year:t,month:n,day:r}=e,o=new Nl(t,n,r);E(o);const i=tX(e);v&&v(i)},P=!(k||!o);return e.jsxs(Wie,Object.assign({value:k,hasLabel:!!o,isDisabled:f,minValue:D,maxValue:_,onChange:j,onOpenChange:e=>{C(e),y&&e&&y(),b&&!e&&b()},ref:O},w,{children:[a&&iie(a,{marginRight:8}),e.jsxs(mJ,{filled:!!k,disabled:f,children:[o,e.jsx(qie,{ref:i,hide:P,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e.jsx($ie,{placeholderColor:d,segment:t})})]}),e.jsx(Uie,{isDisabled:f,children:e.jsx(sn,{name:x?"caret-up":"caret-down",inheritColor:!0})}),s&&iie(s),u&&e.jsx(qy,{}),e.jsx(zie,{description:p,errorMessage:h}),e.jsx(kv,{triggerRef:O,children:e.jsx(jv,{children:e.jsx(iX,{date:k?tX(k):void 0,onChange:e=>{j(nX(e))},preventPast:g,preventFuture:m})})})]}))},exports.DateRangePicker=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:s,iconRight:u,isLoading:c,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=n,x=l(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?nX(r):void 0),{current:E}=t.useRef(o?nX(o):void 0),[O,D]=t.useState(k),[_,j]=t.useState(E),P=t.useRef(null),{min:T,max:M}=rX({past:m,future:v,rel:k||Jie}),A=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new Nl(r,o,i);D(u);const c=new Nl(a,l,s);j(c);const d=tX(t),f=tX(n);y&&y(d,f)},L=!(!O&&!_),R=!(L||!i);return e.jsxs(Qie,Object.assign({value:O&&_?{start:O,end:_}:void 0,hasLabel:!!i,isDisabled:p,minValue:T,maxValue:M,onChange:A,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:P},x,{children:[s&&iie(s,{marginRight:8}),e.jsxs(mJ,{filled:L,disabled:p,children:[i,e.jsxs(tae,{fontSize:d,hide:R,isDisabled:p,children:[e.jsx(eae,{slot:"start",ref:a,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx($ie,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(eae,{slot:"end",fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx($ie,{placeholderColor:f,segment:t})})]})]}),e.jsx(Uie,{isDisabled:p,children:e.jsx(sn,{name:C?"caret-up":"caret-down",inheritColor:!0})}),u&&iie(u),c&&e.jsx(qy,{}),e.jsx(zie,{description:h,errorMessage:g}),e.jsx(kv,{triggerRef:P,children:e.jsx(jv,{children:e.jsx(Yie,{startDate:O?tX(O):void 0,endDate:_?tX(_):void 0,onChange:(e,t)=>{const n=nX(e),r=nX(t);A({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))},exports.DocTable=kJ,exports.DraftEditor=Koe,exports.Dropdown=wie,exports.DropdownMenu=Vy,exports.Form=Tie,exports.Grid=Oie,exports.Icon=sn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=t.useState(i),f=rt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+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,c]),n?e.jsxs(Rie,{opacity:u,prevNext:o.length>1,children:[e.jsx(Iie,{onClick:r,children:e.jsx(sn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(Nie,{id:"prev",onClick:p,children:e.jsx(sn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(Bie,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(Nie,{next:!0,id:"next",onClick:h,children:e.jsx(sn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=Fie,exports.Input=aie,exports.InputUtils=Poe,exports.Label=jie,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=l(r,["data","legend","keys"]);const[u,c]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(IY,Object.assign({},s,{children:[e.jsx(RY,{}),e.jsx(IT,{width:"100%",height:"100%",children:e.jsxs(CG,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(rq,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(Cq,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx(kq,{stroke:d,tickMargin:4,tickFormatter:e=>kb(e)}),BY(),i&&e.jsx(yj,{content:e.jsx(FY,{toggleData:a.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(wq,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=lae,exports.Message=fae,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(bae,{children:[e.jsx(yae,{}),e.jsx(vae,{color:n,style:r,children:t}),e.jsx(yae,{})]}),exports.Modal=wae,exports.MultiSelect=kae,exports.Notification=EG,exports.NumberInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return e.jsxs(nae,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&iie(a,{marginRight:8}),e.jsxs(mJ,{filled:!!n,disabled:f,children:[r,e.jsx(hJ,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&iie(s),u&&e.jsx(qy,{}),e.jsxs(rae,{children:[e.jsx(oae,{slot:"increment",children:e.jsx(sn,{size:r?23.5:19.5,name:"caret-up"})}),e.jsx(iae,{}),e.jsx(oae,{slot:"decrement",children:e.jsx(sn,{size:r?23.5:19.5,name:"caret-down"})})]}),e.jsx(zie,{description:p,errorMessage:h})]}))},exports.Options=fie,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=l(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,d]=t.useState(Aae(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,Aae(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(Lae,Object.assign({width:s},u,{children:[e.jsx(Iae,{disabled:1===c,onClick:()=>m(1),children:e.jsx(sn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(Iae,{disabled:1===c,onClick:()=>m(c-1),children:e.jsx(sn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(Bae,{children:"... "}):"",e.jsx(Nae,{selected:n===c,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(Bae,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(Iae,{disabled:c===i,onClick:()=>m(c+1),children:e.jsx(sn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(Iae,{disabled:c===i,onClick:()=>m(i),children:e.jsx(sn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=l(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,u=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,c=n/2-1;return e.jsx(IY,Object.assign({width:n,height:n},a,{children:e.jsxs(kG,{width:n,height:n,children:[e.jsx($H,{dataKey:"value",data:u,innerRadius:o,outerRadius:c,children:null==u?void 0:u.map((t=>e.jsx(NT,{fill:t.color||"#999"},t.name)))}),s&&BY()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(Fae,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(Vae,Object.assign({width:o,height:i||l},p,{children:e.jsx(Hae,{color:n,width:h})}))},exports.Radio=Die,exports.RangeCalendar=Yie,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,Gue.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.Select=Uae,exports.Slider=sb,exports.Spacer=qae,exports.Spinner=qy,exports.Table=sle,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=l(t,["items","activeItem","itemWidth","itemGap","onChange"]);const u=n.filter((e=>!1!==e.visible));return e.jsx(cle,Object.assign({gap:i},s,{children:u.map((t=>{const{id:n,label:i,icon:s,iconColor:u,iconPosition:c}=t,d=l(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(dle,Object.assign({active:n===r,itemWidth:o,reverse:"right"===c,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},d,{children:[s&&e.jsx(sn,{name:s,size:"small",color:u,inheritColor:!u}),i]}),n)}))}))},exports.TextInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return e.jsxs(aae,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&iie(a,{marginRight:8}),e.jsxs(mJ,{filled:!!n,disabled:f,children:[r,e.jsx(hJ,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&iie(s),u&&e.jsx(qy,{}),e.jsx(zie,{description:p,errorMessage:h})]}))},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=_ie,exports.Tooltip=Aue,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,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(!lt.isEqual(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(Uue,{children:t.header}),e.jsx(Zue,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(Bue,Object.assign({width:c,readOnly:u},x,{children:[i&&e.jsx(Fue,{children:i}),e.jsxs($ue,{children:[!u&&e.jsxs(zue,{children:[O&&e.jsx(Kue,{children:v.length>0&&!l&&e.jsx(nb,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(Vue,{children:v.map((t=>e.jsxs(Hue,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(sn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(zue,{children:[O&&!u&&e.jsx(Kue,{children:b.length>0&&!s&&!u&&e.jsx(nb,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(Vue,{children:b.map((t=>e.jsxs(Hue,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(sn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=rce,exports.copyToClipboard=AY,exports.darkScale=wce,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,u=jY(n,"EEEE"),c=jY(n,"MMM d"),d=jY(n,"MMM d, y"),f=jY(n,"h:mm aaa"),p=TY(n),h=function(e){return+OG(e)>Date.now()}(n),g=function(e){return $G(e,FG(e))}(n),m=MY(n),v=function(e){return $G(e,_G(FG(e),1))}(n),y=HG(s,n),b=UG(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?`${c}${x}`:`${d}${x}`:`${u}${x}`)},exports.lightScale=sce,exports.marginProps=on,exports.numberWithCommas=LY,exports.paddingProps=rn,exports.positionProps=an,exports.theme=Tce,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=t.useState(c||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};nt(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(wae,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(wae.Header,{children:n}),r&&e.jsx(wae.Text,{children:r}),l&&e.jsx(wae.Body,{marginTop:4,marginBottom:8,children:e.jsx(aie,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(wae.Footer,{children:[e.jsx(nb,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx(nb,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=tn,exports.useEventListener=nt,exports.useOnClickOutside=rt,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=st,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1);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)):t?(s(!0),a(!1)):(s(!1),a(!1))}),[r]),{list:r,partial:l,allSelected:i,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=nn;
|
|
54
54
|
//# sourceMappingURL=index.js.map
|