asma-core-ui 3.0.6 → 3.0.8
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/dist/asma-core-ui.es.js +6 -6
- package/dist/src/components/custom/module/module-title/StyledModuleTitle.d.ts +1 -1
- package/dist/src/components/{data-display/icons → icons}/Icons.d.ts +1 -1
- package/dist/src/components/inputs/label/StyledLabel.d.ts +2 -1
- package/dist/src/helpers/cn.d.ts +1 -1
- package/dist/src/helpers/index.d.ts +2 -1
- package/dist/src/helpers/reflections.helper.d.ts +0 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/src/helpers/tokenOptimizer.helper.d.ts +0 -1
- package/dist/src/interfaces/index.d.ts +0 -5
- /package/dist/src/components/{data-display/icons → icons}/IconTemplate.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/Icons.types.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/archive-icon/ArchiveIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/archive-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/assignment/AssignmentIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/assignment/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/assignment-outline-icon/AssignmentOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/assignment-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/badge-icon/BadgeIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/badge-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/bell-icon/BellIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/bell-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/bell-outline-icon/BellOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/bell-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/calendar-blank-outline-icon/CalendarBlankOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/calendar-blank-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/calendar-icon/CalendarIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/calendar-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/calendar-range-icon/CalendarIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/calendar-range-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/check-fact-outline-icon/CheckFactOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/check-fact-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/check-icon/CheckIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/check-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/check-outline-icon/CheckOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/check-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/checkbox-checked-icon/CheckBoxCheckedIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/checkbox-checked-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-double-left-icon/ChevronDoubleLeftIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-double-left-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-double-right-icon/ChevronDoubleRightIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-double-right-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-down-icon/ChevronDownIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-down-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-left-icon/ChevronLeftIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-left-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-right-icon/ChevronRightIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-right-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-up-icon/ChevronUpIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/chevron-up-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/clock-outline-icon/ClockOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/clock-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/close-icon/CloseIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/close-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/consents-icon/ConsentsIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/consents-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dashboard-view-icon/DashboardViewIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dashboard-view-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dashboard-view-outline-icon/DashboardViewOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dashboard-view-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/delete-outline-icon/DeleteOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/delete-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dots-vertical-icon/DotsVerticalIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dots-vertical-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/download-icon/DownloadIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/download-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/drag-horizontal-icon/DragHorizontalIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/drag-horizontal-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/drop-down-icon/DropDownIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/drop-down-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/drop-up-icon/DropUpIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/drop-up-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dvr-icon/DvrIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/dvr-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/earth-icon/EarthIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/earth-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/empty-page-icon/EmptyPageIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/empty-page-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/error-outline-icon/ErrorOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/error-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/fast-check-outline-icon/FastCheckOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/fast-check-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/file-pdf-icon/FilePdfIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/file-pdf-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/filter-icon/FilterIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/filter-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/find-replace-icon/FindReplaceIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/find-replace-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/find-replace-people-icon/FindReplacePeopleIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/find-replace-people-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/hamburger-icon/HamburgerIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/hamburger-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/inbox-outbox-icon/InboxOutboxIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/inbox-outbox-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/inbox-outbox-outline-icon/InboxOutboxOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/inbox-outbox-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/keyboard-capslock-icon/KeyboardCapslockIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/keyboard-capslock-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/link-outline-icon/LinkOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/link-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/list-numbered-icon/ListNumberedIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/list-numbered-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/list-settings-line-icon/ListSettingsLineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/list-settings-line-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/list-status-icon/ListStatusIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/list-status-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/loading-icon/LoadingIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/loading-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/lock-icon/LockIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/lock-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/message-processing-icon/MessageProcessingIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/message-processing-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/message-processing-outline-icon/MessageProcessingOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/message-processing-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/message-reply-icon/MessageReplyIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/message-reply-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/minimize-icon/MinimizeIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/minimize-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/outline-calendar-month/OutlineCalendarMonth.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/outline-calendar-month/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/pdf-icon/PdfIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/pdf-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/pencil-outline-icon/PencilOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/pencil-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/people-icon/PeopleIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/people-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/people-outline-icon/PeopleOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/people-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/perm-media-icon/PermMediaIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/perm-media-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/perm-media-outline-icon/PermMediaOutline.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/perm-media-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/person-icon/PersonIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/person-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/person-outline-icon/PersonOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/person-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/qnr-icon/QnrIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/qnr-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/replay-icon/ReplayIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/replay-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/report-box-icon/ReportBoxIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/report-box-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/report-box-outline-icon/ReportBoxOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/report-box-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/search-icon/SearchIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/search-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/settings-icon/SettingsIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/settings-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/settings-menu-horizontal-icon/SettingsMenuHorizontalIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/settings-menu-horizontal-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/settings-outline-icon/SettingsOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/settings-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/text-box-check-outline-icon/TextBoxCheckOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/text-box-check-outline-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/topic-icon/TopicIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/topic-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/unknown-document-outline-rounded-icon/UnknownDocumentOutlineRoundedIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/unknown-document-outline-rounded-icon/index.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/warning-icon/WarningAmberOutlineIcon.d.ts +0 -0
- /package/dist/src/components/{data-display/icons → icons}/warning-icon/index.d.ts +0 -0
- /package/dist/src/helpers/{date.helpers.d.ts → date.helper.d.ts} +0 -0
package/dist/asma-core-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{Children as n,forwardRef as o,useRef as r,useCallback as i,useEffect as a,createElement as l,cloneElement as s,useContext as u,useMemo as c,Component as d,useLayoutEffect as f,useState as p,memo as h,isValidElement as g,createContext as m,Fragment as v}from"react";import{Badge as y,Chip as b,Tooltip as w,Typography as x,Dialog as _,DialogActions as k,DialogContent as E,DialogTitle as C,Alert as O,AlertTitle as S,Snackbar as N,Checkbox as j,TextField as T,Select as P,MenuItem as M,Autocomplete as A,Paper as R,Slider as D,Switch as I,Radio as L,RadioGroup as q,FormControl as F,Popover as z,Popper as V,Fade as B,ClickAwayListener as H,FormControlLabel as U,FormHelperText as W,FormLabel as G,InputLabel as $,Stack as K,FormGroup as Y,Drawer as Z,Menu as X,MenuList as Q,Tab as J,Tabs as ee,Container as te,Accordion as ne,AccordionSummary as oe,AccordionDetails as re,Skeleton as ie}from"@mui/material";import{Avatar as ae,ClickAwayListener as le,Fade as se,Paper as ue,Popper as ce,Skeleton as de}from"@mui/material";import fe from"prop-types";import{ThemeContext as pe}from"@emotion/react";import he,{createPortal as ge}from"react-dom";const me=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e)))),ve=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))));function ye(e){const t={};for(const[n,o]of Object.entries(e))o.includes("var")?Object.assign(t,{[`${n}`]:JSON.parse(JSON.stringify(getComputedStyle(document.body).getPropertyValue(o.replaceAll(/((var)|\(|\))/g,"")))).trim()}):Object.assign(t,{[`${n}`]:o});return t}var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function we(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xe,_e={exports:{}},ke={};
|
|
1
|
+
import*as e from"react";import t,{Children as n,forwardRef as o,useRef as r,useCallback as i,useEffect as a,createElement as l,cloneElement as s,useContext as u,useMemo as c,Component as d,useLayoutEffect as f,useState as p,memo as h,isValidElement as g,createContext as m,Fragment as v}from"react";import{Badge as y,Chip as b,Tooltip as w,Typography as x,Dialog as _,DialogActions as k,DialogContent as E,DialogTitle as C,Alert as O,AlertTitle as S,Snackbar as N,Checkbox as j,TextField as T,Select as P,MenuItem as M,Autocomplete as A,Paper as R,Slider as D,Switch as I,Radio as L,RadioGroup as q,FormControl as F,Popover as z,Popper as V,Fade as B,ClickAwayListener as H,FormControlLabel as U,FormHelperText as W,FormLabel as G,InputLabel as $,Stack as K,FormGroup as Y,Drawer as Z,Menu as X,MenuList as Q,Tab as J,Tabs as ee,Container as te,Accordion as ne,AccordionSummary as oe,AccordionDetails as re,Skeleton as ie}from"@mui/material";import{Avatar as ae,ClickAwayListener as le,Fade as se,Paper as ue,Popper as ce,Skeleton as de}from"@mui/material";import fe from"prop-types";import{ThemeContext as pe}from"@emotion/react";import he,{createPortal as ge}from"react-dom";const me=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function be(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function we(e){be(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ve(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function xe(e,t){be(2,arguments);var n=we(e),o=ye(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function _e(e,t){be(2,arguments);var n=we(e),o=ye(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var ke={};function Ee(){return ke}function Ce(e,t){var n,o,r,i,a,l,s,u;be(1,arguments);var c=Ee(),d=ye(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=we(e),p=f.getDay(),h=(p<d?7:0)+p-d;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f}function Oe(e){return be(1,arguments),Ce(e,{weekStartsOn:1})}function Se(e){be(1,arguments);var t=function(e){be(1,arguments);var t=we(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=Oe(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var a=Oe(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Oe(n)}function Ne(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function je(e){be(1,arguments);var t=we(e);return t.setHours(0,0,0,0),t}var Te=864e5;function Pe(e,t){be(2,arguments);var n=je(e),o=je(t),r=n.getTime()-Ne(n),i=o.getTime()-Ne(o);return Math.round((r-i)/Te)}function Me(e,t){return be(2,arguments),xe(e,7*ye(t))}function Ae(e,t){return be(2,arguments),_e(e,12*ye(t))}function Re(e,t){be(2,arguments);var n=je(e),o=je(t);return n.getTime()===o.getTime()}function De(e){return be(1,arguments),e instanceof Date||"object"===ve(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Ie(e,t){be(2,arguments);var n=we(e),o=we(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var Le=6048e5;function qe(e){be(1,arguments);var t=we(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Fe(e){be(1,arguments);var t=we(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ze(e){be(1,arguments);var t=we(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Ve(e,t){var n,o,r,i,a,l,s,u;be(1,arguments);var c=Ee(),d=ye(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=we(e),p=f.getDay(),h=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+h),f.setHours(23,59,59,999),f}function Be(e){return be(1,arguments),Ve(e,{weekStartsOn:1})}function He(e,t){return be(2,arguments),function(e,t){be(2,arguments);var n=we(e).getTime(),o=ye(t);return new Date(n+o)}(e,-ye(t))}function Ue(e){be(1,arguments);var t=we(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function We(e){be(1,arguments);var t=we(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ue(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Ue(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Ge(e){be(1,arguments);var t=we(e),n=Ue(t).getTime()-function(e){be(1,arguments);var t=We(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Ue(n)}(t).getTime();return Math.round(n/6048e5)+1}function $e(e,t){var n,o,r,i,a,l,s,u;be(1,arguments);var c=Ee(),d=ye(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=we(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Ke(e,t){var n,o,r,i,a,l,s,u;be(1,arguments);var c=we(e),d=c.getUTCFullYear(),f=Ee(),p=ye(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=$e(h,t),m=new Date(0);m.setUTCFullYear(d,0,p),m.setUTCHours(0,0,0,0);var v=$e(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Ye(e,t){be(1,arguments);var n=we(e),o=$e(n,t).getTime()-function(e,t){var n,o,r,i,a,l,s,u;be(1,arguments);var c=Ee(),d=ye(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=Ke(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),$e(p,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function Ze(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}const Xe={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return Ze("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Ze(n+1,2)},d:function(e,t){return Ze(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Ze(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ze(e.getUTCHours(),t.length)},m:function(e,t){return Ze(e.getUTCMinutes(),t.length)},s:function(e,t){return Ze(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return Ze(Math.floor(o*Math.pow(10,n-3)),t.length)}};var Qe="midnight",Je="noon",et="morning",tt="afternoon",nt="evening",ot="night",rt={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Xe.y(e,t)},Y:function(e,t,n,o){var r=Ke(e,o),i=r>0?r:1-r;return"YY"===t?Ze(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Ze(i,t.length)},R:function(e,t){return Ze(We(e),t.length)},u:function(e,t){return Ze(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Ze(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Ze(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Xe.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return Ze(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=Ye(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Ze(r,t.length)},I:function(e,t,n){var o=Ge(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):Ze(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Xe.d(e,t)},D:function(e,t,n){var o=function(e){be(1,arguments);var t=we(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):Ze(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ze(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ze(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return Ze(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?Je:0===r?Qe:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?nt:r>=12?tt:r>=4?et:ot,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Xe.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Xe.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):Ze(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):Ze(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Xe.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Xe.s(e,t)},S:function(e,t){return Xe.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return at(r);case"XXXX":case"XX":return lt(r);default:return lt(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return at(r);case"xxxx":case"xx":return lt(r);default:return lt(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+it(r,":");default:return"GMT"+lt(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+it(r,":");default:return"GMT"+lt(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return Ze(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return Ze((o._originalDate||e).getTime(),t.length)}};function it(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+Ze(i,2)}function at(e,t){return e%60==0?(e>0?"-":"+")+Ze(Math.abs(e)/60,2):lt(e,t)}function lt(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+Ze(Math.floor(r/60),2)+n+Ze(r%60,2)}const st=rt;var ut=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ct=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const dt={p:ct,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return ut(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",ut(r,t)).replace("{{time}}",ct(i,t))}};var ft=["D","DD"],pt=["YY","YYYY"];function ht(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const mt=function(e,t,n){var o,r=gt[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function vt(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const yt={date:vt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:vt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var bt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const wt=function(e,t,n,o){return bt[e]};function xt(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var a=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const _t={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:xt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:xt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:xt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:xt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:xt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function kt(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,l=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(l)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(l.length)}}}var Et;const Ct={ordinalNumber:(Et={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Et.matchPattern);if(!n)return null;var o=n[0],r=e.match(Et.parsePattern);if(!r)return null;var i=Et.valueCallback?Et.valueCallback(r[0]):r[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(o.length)}}),era:kt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:kt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:kt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:kt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Ot={code:"en-US",formatDistance:mt,formatLong:yt,formatRelative:wt,localize:_t,match:Ct,options:{weekStartsOn:0,firstWeekContainsDate:1}};var St=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jt=/^'([^]*?)'?$/,Tt=/''/g,Pt=/[a-zA-Z]/;function Mt(e,t,n){var o,r,i,a,l,s,u,c,d,f,p,h,g,m,v,y,b,w;be(2,arguments);var x=String(t),_=Ee(),k=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:_.locale)&&void 0!==o?o:Ot,E=ye(null!==(i=null!==(a=null!==(l=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=ye(null!==(p=null!==(h=null!==(g=null!==(m=null==n?void 0:n.weekStartsOn)&&void 0!==m?m:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var O=we(e);if(!function(e){if(be(1,arguments),!De(e)&&"number"!=typeof e)return!1;var t=we(e);return!isNaN(Number(t))}(O))throw new RangeError("Invalid time value");var S=He(O,Ne(O)),N={firstWeekContainsDate:E,weekStartsOn:C,locale:k,_originalDate:O},j=x.match(Nt).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,dt[t])(e,k.formatLong):e})).join("").match(St).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(jt);return t?t[1].replace(Tt,"'"):e}(o);var i=st[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==pt.indexOf(e)}(o)&&ht(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==ft.indexOf(e)}(o)&&ht(o,t,String(e)),i(S,o,k.localize,N);if(r.match(Pt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return j}var At=6048e5;function Rt(e){return be(1,arguments),Math.floor(function(e){return be(1,arguments),we(e).getTime()}(e)/1e3)}function Dt(e,t){var n,o,r,i,a,l,s,u;be(1,arguments);var c=Ee(),d=ye(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=function(e,t){var n,o,r,i,a,l,s,u;be(1,arguments);var c=we(e),d=c.getFullYear(),f=Ee(),p=ye(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,p),h.setHours(0,0,0,0);var g=Ce(h,t),m=new Date(0);m.setFullYear(d,0,p),m.setHours(0,0,0,0);var v=Ce(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}(e,t),p=new Date(0);return p.setFullYear(f,0,d),p.setHours(0,0,0,0),Ce(p,t)}var It=6048e5;function Lt(e,t){return be(1,arguments),function(e,t,n){be(2,arguments);var o=Ce(e,n),r=Ce(t,n),i=o.getTime()-Ne(o),a=r.getTime()-Ne(r);return Math.round((i-a)/Le)}(function(e){be(1,arguments);var t=we(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),Fe(e),t)+1}function qt(e,t){be(2,arguments);var n=we(e),o=we(t);return n.getTime()>o.getTime()}function Ft(e,t){be(2,arguments);var n=we(e),o=we(t);return n.getTime()<o.getTime()}function zt(e,t){return(zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e,t){be(2,arguments);var n=we(e),o=we(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Bt(e,t){return be(2,arguments),xe(e,-ye(t))}function Ht(e,t){be(2,arguments);var n=we(e),o=ye(t),r=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(r,o,15),a.setHours(0,0,0,0);var l=function(e){be(1,arguments);var t=we(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(a);return n.setMonth(o,Math.min(i,l)),n}function Ut(e,t){if(be(2,arguments),"object"!==ve(t)||null===t)throw new RangeError("values parameter must be an object");var n=we(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Ht(n,t.month)),null!=t.date&&n.setDate(ye(t.date)),null!=t.hours&&n.setHours(ye(t.hours)),null!=t.minutes&&n.setMinutes(ye(t.minutes)),null!=t.seconds&&n.setSeconds(ye(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(ye(t.milliseconds)),n)}function Wt(e,t){be(2,arguments);var n=we(e),o=ye(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const Gt=e=>Ut(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),$t=e=>Ut(e,{hours:0,minutes:0,seconds:0,milliseconds:0});function Kt(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Kt(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Yt(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Kt(e))&&(o&&(o+=" "),o+=t);return o}const Zt="-";function Xt(e){const t=function(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return function(e,t){return t?e.map((([e,n])=>{const o=n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e));return[e,o]})):e}(Object.entries(e.classGroups),n).forEach((([e,n])=>{en(n,o,e,t)})),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const n=e.split(Zt);return""===n[0]&&1!==n.length&&n.shift(),Qt(n,t)||function(e){if(Jt.test(e)){const t=Jt.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}function Qt(e,t){var n;if(0===e.length)return t.classGroupId;const o=e[0],r=t.nextPart.get(o),i=r?Qt(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join(Zt);return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId}const Jt=/^\[(.+)\]$/;function en(e,t,n,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return function(e){return e.isThemeGetter}(e)?void en(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{en(r,tn(t,e),n,o)}))}else{(""===e?t:tn(t,e)).classGroupId=n}}))}function tn(e,t){let n=e;return t.split(Zt).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function nn(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(r,i){n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}const on="!";function rn(e){const t=e.separator,n=1===t.length,o=t[0],r=t.length;return function(e){const i=[];let a,l=0,s=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===l){if(c===o&&(n||e.slice(u,u+r)===t)){i.push(e.slice(s,u)),s=u+r;continue}if("/"===c){a=u;continue}}"["===c?l++:"]"===c&&l--}const u=0===i.length?e:e.substring(s),c=u.startsWith(on);return{modifiers:i,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}const an=/\s+/;function ln(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=sn(e))&&(o&&(o+=" "),o+=t);return o}function sn(e){if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=sn(e[o]))&&(n&&(n+=" "),n+=t);return n}function un(e,...t){let n,o,r,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:nn(e.cacheSize),splitModifiers:rn(e),...Xt(e)}}(s),o=n.cache.get,r=n.cache.set,i=a,a(l)};function a(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(an).map((e=>{const{modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let l=o(a?i.substring(0,a):i),s=!!a;if(!l){if(!a)return{isTailwindClass:!1,originalClassName:e};if(l=o(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:r?u+on:u,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:o}=e,a=t+n;return!i.has(a)&&(i.add(a),r(n,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return r(e,i),i}return function(){return i(ln.apply(null,arguments))}}function cn(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const dn=/^\[(?:([a-z-]+):)?(.+)\]$/i,fn=/^\d+\/\d+$/,pn=new Set(["px","full","screen"]),hn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mn=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function yn(e){return wn(e)||pn.has(e)||fn.test(e)}function bn(e){return An(e,"length",Rn)}function wn(e){return!!e&&!Number.isNaN(Number(e))}function xn(e){return An(e,"number",wn)}function _n(e){return!!e&&Number.isInteger(Number(e))}function kn(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function En(e){return dn.test(e)}function Cn(e){return hn.test(e)}const On=new Set(["length","size","percentage"]);function Sn(e){return An(e,On,Dn)}function Nn(e){return An(e,"position",Dn)}const jn=new Set(["image","url"]);function Tn(e){return An(e,jn,Ln)}function Pn(e){return An(e,"",In)}function Mn(){return!0}function An(e,t,n){const o=dn.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))}function Rn(e){return gn.test(e)}function Dn(){return!1}function In(e){return mn.test(e)}function Ln(e){return vn.test(e)}function qn(){const e=cn("colors"),t=cn("spacing"),n=cn("blur"),o=cn("brightness"),r=cn("borderColor"),i=cn("borderRadius"),a=cn("borderSpacing"),l=cn("borderWidth"),s=cn("contrast"),u=cn("grayscale"),c=cn("hueRotate"),d=cn("invert"),f=cn("gap"),p=cn("gradientColorStops"),h=cn("gradientColorStopPositions"),g=cn("inset"),m=cn("margin"),v=cn("opacity"),y=cn("padding"),b=cn("saturate"),w=cn("scale"),x=cn("sepia"),_=cn("skew"),k=cn("space"),E=cn("translate"),C=()=>["auto",En,t],O=()=>[En,t],S=()=>["",yn,bn],N=()=>["auto",wn,En],j=()=>["","0",En],T=()=>[wn,xn],P=()=>[wn,En];return{cacheSize:500,separator:":",theme:{colors:[Mn],spacing:[yn,bn],blur:["none","",Cn,En],brightness:T(),borderColor:[e],borderRadius:["none","","full",Cn,En],borderSpacing:O(),borderWidth:S(),contrast:T(),grayscale:j(),hueRotate:P(),invert:j(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[kn,bn],inset:C(),margin:C(),opacity:T(),padding:O(),saturate:T(),scale:T(),sepia:j(),skew:P(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",En]}],container:["container"],columns:[{columns:[Cn]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",En]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_n,En]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",En]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",_n,En]}],"grid-cols":[{"grid-cols":[Mn]}],"col-start-end":[{col:["auto",{span:["full",_n,En]},En]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Mn]}],"row-start-end":[{row:["auto",{span:[_n,En]},En]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",En]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",En]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",En,t]}],"min-w":[{"min-w":[En,t,"min","max","fit"]}],"max-w":[{"max-w":[En,t,"none","full","min","max","fit","prose",{screen:[Cn]},Cn]}],h:[{h:[En,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[En,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[En,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[En,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Cn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xn]}],"font-family":[{font:[Mn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",En]}],"line-clamp":[{"line-clamp":["none",wn,xn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yn,En]}],"list-image":[{"list-image":["none",En]}],"list-style-type":[{list:["none","disc","decimal",En]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yn,bn]}],"underline-offset":[{"underline-offset":["auto",yn,En]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",En]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",En]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Nn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tn]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[yn,En]}],"outline-w":[{outline:[yn,bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[yn,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Cn,Pn]}],"shadow-color":[{shadow:[Mn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Cn,En]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",En]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",En]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",En]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[_n,En]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",En]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",En]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",En]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yn,bn,xn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Fn=un(qn),zn=(...e)=>Fn(Yt(e));var Vn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hn,Un={exports:{}},Wn={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -7,7 +7,7 @@ import*as e from"react";import t,{Children as n,forwardRef as o,useRef as r,useC
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var Gn,$n={};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
@@ -16,13 +16,13 @@ import*as e from"react";import t,{Children as n,forwardRef as o,useRef as r,useC
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/"production"===process.env.NODE_ENV?_e.exports=function(){if(xe)return ke;xe=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,o){var l,s={},u=null,c=null;for(l in void 0!==o&&(u=""+o),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)r.call(t,l)&&!a.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:n,type:e,key:u,ref:c,props:s,_owner:i.current}}return ke.Fragment=o,ke.jsx=l,ke.jsxs=l,ke}():_e.exports=(Ee||(Ee=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame,r=o.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,w=!1,x=!1,_=!1,k=!1,E=!1;function C(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return C(e)+".Consumer";case l:return C(e._context)+".Provider";case u:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case p:var n=e,h=n._payload,g=n._init;try{return O(g(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var S,N,j,T,P,M,A,R=Object.assign,D=0;function I(){}I.__reactDisabledLog=!0;var L,q=v.ReactCurrentDispatcher;function F(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var z,V=!1,B="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||V)return"";var n,o=z.get(e);if(void 0!==o)return o;V=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=q.current,q.current=null,function(){if(0===D){S=console.log,N=console.info,j=console.warn,T=console.error,P=console.group,M=console.groupCollapsed,A=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),u=l.length-1,c=s.length-1;u>=1&&c>=0&&l[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==s[c]){var d="\n"+l[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&z.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{V=!1,q.current=r,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:S}),info:R({},e,{value:N}),warn:R({},e,{value:j}),error:R({},e,{value:T}),group:R({},e,{value:P}),groupCollapsed:R({},e,{value:M}),groupEnd:R({},e,{value:A})})}D<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?F(f):"";return"function"==typeof e&&z.set(e,p),p}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return F(e);switch(e){case c:return F("Suspense");case d:return F("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return function(e,t,n){return H(e,!1)}(e.render);case f:return U(e.type,t,n);case p:var o=e,r=o._payload,i=o._init;try{return U(i(r),t,n)}catch{}}return""}z=new B;var W=Object.prototype.hasOwnProperty,G={},$=v.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);$.setExtraStackFrame(n)}else $.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function X(e){return""+e}function Q(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var J,ee,te,ne=v.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};te={};var re=function(e,t,o,r,i,a,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,t,n,o,r){var i,a={},l=null,s=null;for(i in void 0!==n&&(Q(n),l=""+n),function(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),l=""+t.key),function(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=O(ne.current.type);te[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(ne.current.type),e.ref),te[n]=!0)}}(t,r)),t)W.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(l||s){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){J||(J=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,c),s&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,c)}return re(e,l,s,r,o,ne.current,a)}var ae,le=v.ReactCurrentOwner,se=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=O(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var fe={};function pe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!fe[n]){fe[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" It was passed a child from "+O(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function he(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&pe(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)ce(i.value)&&pe(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var o=O(n);!function(e,t,n,o,r){var i=Function.call.bind(W);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((o||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(K(r),y("%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).",o||"React class",n,a,typeof l),K(null)),l instanceof Error&&!(l.message in G)&&(G[l.message]=!0,K(r),y("Failed %s type: %s",n,l.message),K(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||ae||(ae=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function me(e,t,o,g,m,v){var C=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===a||E||e===i||e===c||e===d||k||e===h||w||x||_||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!C){var S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var N,j=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);S+=j||de(),null===e?N="null":Z(e)?N="array":void 0!==e&&e.$$typeof===n?(N="<"+(O(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):N=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,S)}var T=ie(e,t,o,m,v);if(null==T)return T;if(C){var P=t.children;if(void 0!==P)if(g)if(Z(P)){for(var M=0;M<P.length;M++)he(P[M],e);Object.freeze&&Object.freeze(P)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(P,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(T):ge(T),T}var ve=function(e,t,n){return me(e,t,n,!1)},ye=function(e,t,n){return me(e,t,n,!0)};Ce.Fragment=r,Ce.jsx=ve,Ce.jsxs=ye}()),Ce);var Oe=_e.exports;const Se=({color:e="primary",dataTest:t,...n})=>Oe.jsx(y,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-badge-background)",color:"var(--colors-badge-text)"},...n.sx}}),Ne=({dataTest:e,...t})=>Oe.jsx(b,{...t,"data-test":e});function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},je.apply(this,arguments)}function Te(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Pe(e,t){return(Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const Me=!1;var Ae="production"!==process.env.NODE_ENV?fe.oneOfType([fe.number,fe.shape({enter:fe.number,exit:fe.number,appear:fe.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&fe.oneOfType([fe.string,fe.shape({enter:fe.string,exit:fe.string,active:fe.string}),fe.shape({enter:fe.string,enterDone:fe.string,enterActive:fe.string,exit:fe.string,exitDone:fe.string,exitActive:fe.string})]);const Re=t.createContext(null);var De="unmounted",Ie="exited",Le="entering",qe="entered",Fe="exiting",ze=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=Ie,o.appearStatus=Le):r=qe:r=t.unmountOnExit||t.mountOnEnter?De:Ie,o.state={status:r},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pe(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===De?{status:Ie}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Le&&n!==qe&&(t=Le):(n===Le||n===qe)&&(t=Fe)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Le){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ie&&this.setState({status:De})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[he.findDOMNode(this),o],i=r[0],a=r[1],l=this.getTimeouts(),s=o?l.appear:l.enter;!e&&!n||Me?this.safeSetState({status:qe},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Le},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:qe},(function(){t.props.onEntered(i,a)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:he.findDOMNode(this);t&&!Me?(this.props.onExit(o),this.safeSetState({status:Fe},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ie},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Ie},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===De)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=Te(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Re.Provider,{value:null},"function"==typeof o?o(e,r):t.cloneElement(t.Children.only(o),r))},n}(t.Component);function Ve(){}ze.contextType=Re,ze.propTypes="production"!==process.env.NODE_ENV?{nodeRef:fe.shape({current:typeof Element>"u"?fe.any:function(e,t,n,o,r,i){var a=e[t];return fe.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:fe.oneOfType([fe.func.isRequired,fe.element.isRequired]).isRequired,in:fe.bool,mountOnEnter:fe.bool,unmountOnExit:fe.bool,appear:fe.bool,enter:fe.bool,exit:fe.bool,timeout:function(e){var t=Ae;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.apply(void 0,[e].concat(o))},addEndListener:fe.func,onEnter:fe.func,onEntering:fe.func,onEntered:fe.func,onExit:fe.func,onExiting:fe.func,onExited:fe.func}:{},ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ve,onEntering:Ve,onEntered:Ve,onExit:Ve,onExiting:Ve,onExited:Ve},ze.UNMOUNTED=De,ze.EXITED=Ie,ze.ENTERING=Le,ze.ENTERED=qe,ze.EXITING=Fe;const Be=ze;function He(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Ue(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function We(e){if(!Ue(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=We(e[n])})),t}function Ge(e,t,n={clone:!0}){const o=n.clone?je({},e):e;return Ue(e)&&Ue(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(Ue(t[r])&&r in e&&Ue(e[r])?o[r]=Ge(e[r],t[r],n):n.clone?o[r]=Ue(t[r])?We(t[r]):t[r]:o[r]=t[r])})),o}function $e(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||typeof window>"u")return null;let l;const s=i.type;return"function"==typeof s&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(s)&&(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ke=He(fe.element,$e);Ke.isRequired=He(fe.element.isRequired,$e);const Ye=Ke;function Ze(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Xe(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Ze(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Qe=e=>e,Je=(()=>{let e=Qe;return{configure(t){e=t},generate:t=>e(t),reset(){e=Qe}}})(),et=Je,tt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function nt(e,t,n="Mui"){const o=tt[t];return o?`${n}-${o}`:`${et.generate(e)}-${t}`}const ot=["values","unit","step"],rt=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>je({},e,{[t.key]:t.val})),{})};const it={borderRadius:4},at="production"!==process.env.NODE_ENV?fe.oneOfType([fe.number,fe.string,fe.object,fe.array]):{};function lt(e,t){return t?Ge(e,t,{clone:!1}):e}const st={xs:0,sm:600,md:900,lg:1200,xl:1536},ut={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${st[e]}px)`};function ct(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||ut;return t.reduce(((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||ut;return Object.keys(t).reduce(((o,r)=>{if(-1!==Object.keys(e.values||st).indexOf(r)){o[e.up(r)]=n(t[r],r)}else{const e=r;o[e]=t[e]}return o}),{})}return n(t)}function dt(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ft(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:dt(e,n)||o,t&&(r=t(r,o,e)),r}function pt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=dt(e.theme,o)||{};return ct(e,i,(e=>{let o=ft(a,r,e);return e===o&&"string"==typeof e&&(o=ft(a,r,`${t}${"default"===e?"":Xe(e)}`,e)),!1===n?o:{[n]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:at}:{},i.filterProps=[t],i}const ht={m:"margin",p:"padding"},gt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vt=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!mt[e])return[e];e=mt[e]}const[t,n]=e.split(""),o=ht[t],r=gt[n]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),yt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wt=[...yt,...bt];function xt(e,t,n,o){var r;const i=null!=(r=dt(e,t,!1))?r:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function _t(e){return xt(e,"spacing",8,"spacing")}function kt(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Et(e,t,n,o){if(-1===t.indexOf(n))return null;const r=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=kt(t,n),e)),{})}(vt(n),o);return ct(e,e[n],r)}function Ct(e,t){const n=_t(e.theme);return Object.keys(e).map((o=>Et(e,t,o,n))).reduce(lt,{})}function Ot(e){return Ct(e,yt)}function St(e){return Ct(e,bt)}function Nt(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,o)=>t[o]?lt(n,t[o](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function jt(e){return"number"!=typeof e?e:`${e}px solid`}Ot.propTypes="production"!==process.env.NODE_ENV?yt.reduce(((e,t)=>(e[t]=at,e)),{}):{},Ot.filterProps=yt,St.propTypes="production"!==process.env.NODE_ENV?bt.reduce(((e,t)=>(e[t]=at,e)),{}):{},St.filterProps=bt,"production"!==process.env.NODE_ENV&&wt.reduce(((e,t)=>(e[t]=at,e)),{});const Tt=pt({prop:"border",themeKey:"borders",transform:jt}),Pt=pt({prop:"borderTop",themeKey:"borders",transform:jt}),Mt=pt({prop:"borderRight",themeKey:"borders",transform:jt}),At=pt({prop:"borderBottom",themeKey:"borders",transform:jt}),Rt=pt({prop:"borderLeft",themeKey:"borders",transform:jt}),Dt=pt({prop:"borderColor",themeKey:"palette"}),It=pt({prop:"borderTopColor",themeKey:"palette"}),Lt=pt({prop:"borderRightColor",themeKey:"palette"}),qt=pt({prop:"borderBottomColor",themeKey:"palette"}),Ft=pt({prop:"borderLeftColor",themeKey:"palette"}),zt=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xt(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:kt(t,e)});return ct(e,e.borderRadius,n)}return null};zt.propTypes="production"!==process.env.NODE_ENV?{borderRadius:at}:{},zt.filterProps=["borderRadius"],Nt(Tt,Pt,Mt,At,Rt,Dt,It,Lt,qt,Ft,zt);const Vt=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xt(e.theme,"spacing",8,"gap"),n=e=>({gap:kt(t,e)});return ct(e,e.gap,n)}return null};Vt.propTypes="production"!==process.env.NODE_ENV?{gap:at}:{},Vt.filterProps=["gap"];const Bt=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xt(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:kt(t,e)});return ct(e,e.columnGap,n)}return null};Bt.propTypes="production"!==process.env.NODE_ENV?{columnGap:at}:{},Bt.filterProps=["columnGap"];const Ht=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xt(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:kt(t,e)});return ct(e,e.rowGap,n)}return null};Ht.propTypes="production"!==process.env.NODE_ENV?{rowGap:at}:{},Ht.filterProps=["rowGap"];function Ut(e,t){return"grey"===t?t:e}Nt(Vt,Bt,Ht,pt({prop:"gridColumn"}),pt({prop:"gridRow"}),pt({prop:"gridAutoFlow"}),pt({prop:"gridAutoColumns"}),pt({prop:"gridAutoRows"}),pt({prop:"gridTemplateColumns"}),pt({prop:"gridTemplateRows"}),pt({prop:"gridTemplateAreas"}),pt({prop:"gridArea"}));function Wt(e){return e<=1&&0!==e?100*e+"%":e}Nt(pt({prop:"color",themeKey:"palette",transform:Ut}),pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),pt({prop:"backgroundColor",themeKey:"palette",transform:Ut}));const Gt=pt({prop:"width",transform:Wt}),$t=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,o,r;return{maxWidth:(null==(n=e.theme)||null==(o=n.breakpoints)||null==(r=o.values)?void 0:r[t])||st[t]||Wt(t)}};return ct(e,e.maxWidth,t)}return null};$t.filterProps=["maxWidth"];const Kt=pt({prop:"minWidth",transform:Wt}),Yt=pt({prop:"height",transform:Wt}),Zt=pt({prop:"maxHeight",transform:Wt}),Xt=pt({prop:"minHeight",transform:Wt});pt({prop:"size",cssProperty:"width",transform:Wt}),pt({prop:"size",cssProperty:"height",transform:Wt});Nt(Gt,$t,Kt,Yt,Zt,Xt,pt({prop:"boxSizing"}));const Qt={border:{themeKey:"borders",transform:jt},borderTop:{themeKey:"borders",transform:jt},borderRight:{themeKey:"borders",transform:jt},borderBottom:{themeKey:"borders",transform:jt},borderLeft:{themeKey:"borders",transform:jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zt},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:St},pt:{style:St},pr:{style:St},pb:{style:St},pl:{style:St},px:{style:St},py:{style:St},padding:{style:St},paddingTop:{style:St},paddingRight:{style:St},paddingBottom:{style:St},paddingLeft:{style:St},paddingX:{style:St},paddingY:{style:St},paddingInline:{style:St},paddingInlineStart:{style:St},paddingInlineEnd:{style:St},paddingBlock:{style:St},paddingBlockStart:{style:St},paddingBlockEnd:{style:St},m:{style:Ot},mt:{style:Ot},mr:{style:Ot},mb:{style:Ot},ml:{style:Ot},mx:{style:Ot},my:{style:Ot},margin:{style:Ot},marginTop:{style:Ot},marginRight:{style:Ot},marginBottom:{style:Ot},marginLeft:{style:Ot},marginX:{style:Ot},marginY:{style:Ot},marginInline:{style:Ot},marginInlineStart:{style:Ot},marginInlineEnd:{style:Ot},marginBlock:{style:Ot},marginBlockStart:{style:Ot},marginBlockEnd:{style:Ot},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Vt},rowGap:{style:Ht},columnGap:{style:Bt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wt},maxWidth:{style:$t},minWidth:{transform:Wt},height:{transform:Wt},maxHeight:{transform:Wt},minHeight:{transform:Wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Jt=Qt;const en=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=dt(n,l)||{};return u?u(r):ct(r,t,(t=>{let n=ft(c,s,t);return t===n&&"string"==typeof t&&(n=ft(c,s,`${e}${"default"===t?"":Xe(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var o;const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=null!=(o=i.unstable_sxConfig)?o:Jt;function l(n){let o=n;if("function"==typeof n)o=n(i);else if("object"!=typeof n)return n;if(!o)return null;const r=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(r);let s=r;return Object.keys(o).forEach((n=>{const r=function(e,t){return"function"==typeof e?e(t):e}(o[n],i);if(null!=r)if("object"==typeof r)if(a[n])s=lt(s,e(n,r,i,a));else{const e=ct({theme:i},r,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,r)?s=lt(s,e):s[n]=t({sx:r,theme:i})}else s=lt(s,e(n,r,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(r)?r.map(l):l(r)}}();en.filterProps=["sx"];const tn=en,nn=["breakpoints","palette","spacing","shape"];function on(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={}}=e,a=Te(e,nn),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,r=Te(e,ot),i=rt(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function u(e,r){const i=a.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:r)-o/100}${n})`}return je({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},r)}(n),s=function(e=8){if(e.mui)return e;const t=_t({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(r);let u=Ge({breakpoints:l,direction:"ltr",components:{},palette:je({mode:"light"},o),spacing:s,shape:je({},it,i)},a);return u=t.reduce(((e,t)=>Ge(e,t)),u),u.unstable_sxConfig=je({},Jt,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tn({sx:e,theme:this})},u}function rn(t=null){const n=e.useContext(pe);return!n||function(e){return 0===Object.keys(e).length}(n)?t:n}const an=on();function ln(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ln(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function sn(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=ln(e))&&(o&&(o+=" "),o+=t);return o}function un(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function cn(e){if(e.type)return e;if("#"===e.charAt(0))return cn(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ze(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ze(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function dn(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function fn(e){let t="hsl"===(e=cn(e)).type||"hsla"===e.type?cn(function(e){e=cn(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),dn({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pn(e,t){const n=fn(e),o=fn(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function hn(e,t){return je({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const gn={black:"#000",white:"#fff"},mn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},vn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},bn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},xn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},kn=["mode","contrastThreshold","tonalOffset"],En={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:gn.white,default:gn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Cn={text:{primary:gn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:gn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function On(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=cn(e),t=un(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dn(e)}(e.main,r):"dark"===t&&(e.dark=function(e,t){if(e=cn(e),t=un(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dn(e)}(e.main,i)))}function Sn(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=Te(e,kn),i=e.primary||function(e="light"){return"dark"===e?{main:wn[200],light:wn[50],dark:wn[400]}:{main:wn[700],light:wn[400],dark:wn[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:yn[500],light:yn[300],dark:yn[700]}:{main:yn[700],light:yn[400],dark:yn[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[500],dark:xn[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:_n[400],light:_n[300],dark:_n[700]}:{main:_n[800],light:_n[500],dark:_n[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:bn[400],light:bn[300],dark:bn[700]}:{main:"#ed6c02",light:bn[500],dark:bn[900]}}(t);function d(e){const t=pn(e,Cn.text.primary)>=n?Cn.text.primary:En.text.primary;if("production"!==process.env.NODE_ENV){const n=pn(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const f=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=je({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:Ze(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:Ze(12,t?` (${t})`:"",JSON.stringify(e.main)));return On(e,"light",r,o),On(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Cn,light:En};return"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ge(je({common:je({},gn),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:mn,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:o},p[t]),r)}const Nn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jn(e){return Math.round(1e5*e)/1e5}const Tn={textTransform:"uppercase"},Pn='"Roboto", "Helvetica", "Arial", sans-serif';function Mn(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=Pn,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Te(n,Nn);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=d||(e=>e/u*p+"rem"),g=(e,t,n,r,i)=>je({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===Pn?{letterSpacing:`${jn(r/t)}em`}:{},i,c),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,Tn),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Tn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge(je({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},m),f,{clone:!1})}function An(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Rn=["none",An(0,2,1,-1,0,1,1,0,0,1,3,0),An(0,3,1,-2,0,2,2,0,0,1,5,0),An(0,3,3,-2,0,3,4,0,0,1,8,0),An(0,2,4,-1,0,4,5,0,0,1,10,0),An(0,3,5,-1,0,5,8,0,0,1,14,0),An(0,3,5,-1,0,6,10,0,0,1,18,0),An(0,4,5,-2,0,7,10,1,0,2,16,1),An(0,5,5,-3,0,8,10,1,0,3,14,2),An(0,5,6,-3,0,9,12,1,0,3,16,2),An(0,6,6,-3,0,10,14,1,0,4,18,3),An(0,6,7,-4,0,11,15,1,0,4,20,3),An(0,7,8,-4,0,12,17,2,0,5,22,4),An(0,7,8,-4,0,13,19,2,0,5,24,4),An(0,7,9,-4,0,14,21,2,0,5,26,4),An(0,8,9,-5,0,15,22,2,0,6,28,5),An(0,8,10,-5,0,16,24,2,0,6,30,5),An(0,8,11,-5,0,17,26,2,0,6,32,5),An(0,9,11,-5,0,18,28,2,0,7,34,6),An(0,9,12,-6,0,19,29,2,0,7,36,6),An(0,10,13,-6,0,20,31,3,0,8,38,7),An(0,10,13,-6,0,21,33,3,0,8,40,7),An(0,10,14,-6,0,22,35,3,0,8,42,7),An(0,11,14,-7,0,23,36,3,0,9,44,8),An(0,11,15,-7,0,24,38,3,0,9,46,8)],Dn=["duration","easing","delay"],In={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ln={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qn(e){return`${Math.round(e)}ms`}function Fn(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zn(e){const t=je({},In,e.easing),n=je({},Ln,e.duration);return je({getAutoHeightDuration:Fn,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:a=0}=o,l=Te(o,Dn);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(a)&&!t(a)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(l).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:qn(r)} ${i} ${"string"==typeof a?a:qn(a)}`)).join(",")}},e,{easing:t,duration:n})}const Vn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Bn=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Hn=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,a=Te(e,Bn);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ze(18));const l=Sn(o),s=on(e);let u=Ge(s,{mixins:hn(s.breakpoints,n),palette:l,shadows:Rn.slice(),typography:Mn(l,i),transitions:zn(r),zIndex:je({},Vn)});if(u=Ge(u,a),u=t.reduce(((e,t)=>Ge(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=nt("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=je({},Jt,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tn({sx:e,theme:this})},u}(),Un=Hn;function Wn(){const t=function(e=an){return rn(e)}(Un);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t.$$material||t}function Gn(e,t){var n,o;const{timeout:r,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=a.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const $n=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Kn={entering:{opacity:1},entered:{opacity:1}},Yn=e.forwardRef((function(t,n){const o=Wn(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:v=r,TransitionComponent:y=Be}=t,b=Te(t,$n),w=e.useRef(null),x=function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}(w,l.ref,n),_=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=_(f),E=_(((e,t)=>{e.scrollTop;const n=Gn({style:m,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),C=_(d),O=_(g),S=_((e=>{const t=Gn({style:m,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),p&&p(e)})),N=_(h);return Oe.jsx(y,je({appear:a,in:u,nodeRef:w,onEnter:E,onEntered:C,onEntering:k,onExit:S,onExited:N,onExiting:O,addEndListener:e=>{i&&i(w.current,e)},timeout:v},b,{children:(t,n)=>e.cloneElement(l,je({style:je({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},Kn[t],m,l.props.style),ref:x},n))}))}));"production"!==process.env.NODE_ENV&&(Yn.propTypes={addEndListener:fe.func,appear:fe.bool,children:Ye.isRequired,easing:fe.oneOfType([fe.shape({enter:fe.string,exit:fe.string}),fe.string]),in:fe.bool,onEnter:fe.func,onEntered:fe.func,onEntering:fe.func,onExit:fe.func,onExited:fe.func,onExiting:fe.func,style:fe.object,timeout:fe.oneOfType([fe.number,fe.shape({appear:fe.number,enter:fe.number,exit:fe.number})])});const Zn=Yn,Xn=e=>Oe.jsx(w,{TransitionComponent:Zn,TransitionProps:{timeout:300},arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:"var(--colors-gray-800)",borderRadius:"3px","& .MuiTooltip-arrow":{color:"var(--colors-gray-800)"}}}},...e}),Qn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Jn=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!eo(i)?null:i}const i=r[0],a=i.split("-");if(a.length>1){const e={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!eo(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!eo(e,n)?null:e}return null},eo=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(Qn)||!(t&&""===e.prefix||e.prefix.match(Qn))||!e.name.match(Qn)),to=Object.freeze({left:0,top:0,width:16,height:16}),no=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),oo=Object.freeze({...to,...no}),ro=Object.freeze({...oo,body:"",hidden:!1});function io(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in ro)o in no?o in e&&!(o in n)&&(n[o]=no[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function ao(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(e){i=io(o[e]||r[e],i)}return a(t),n.forEach(a),io(e,i)}function lo(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,ao(e,r,i)),n.push(r))}return n}const so={provider:"",aliases:{},not_found:{},...to};function uo(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function co(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!uo(e,so))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(Qn)||"string"!=typeof t.body||!uo(t,ro))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(Qn)||"string"!=typeof r||!n[r]&&!o[r]||!uo(t,ro))return null}return t}const fo=Object.create(null);function po(e,t){const n=fo[e]||(fo[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ho(e,t){return co(t)?lo(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let go=!1;function mo(e){return"boolean"==typeof e&&(go=e),go}function vo(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),go&&!t&&!e.prefix){let t=!1;return co(e)&&(e.prefix="",lo(e,((e,n)=>{n&&function(e,t){const n=Jn(e,!0,go);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(po(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!eo({provider:t,prefix:n,name:"a"}))return!1;return!!ho(po(t,n),e)}const yo=Object.freeze({width:null,height:null}),bo=Object.freeze({...yo,...no}),wo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,xo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function _o(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(wo);if(null===o||!o.length)return e;const r=[];let i=o.shift(),a=xo.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");a=!a}}const ko=/\sid="(\S+)"/g,Eo="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Co=0;function Oo(e,t=Eo){const n=[];let o;for(;o=ko.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Co++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const So=Object.create(null);function No(e){return So[e]||So[""]}function jo(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const To=Object.create(null),Po=["https://api.simplesvg.com","https://api.unisvg.com"],Mo=[];for(;Po.length>0;)1===Po.length||Math.random()>.5?Mo.push(Po.shift()):Mo.push(Po.pop());function Ao(e,t){const n=jo(t);return null!==n&&(To[e]=n,!0)}function Ro(e){return To[e]}To[""]=jo({resources:["https://api.iconify.design"].concat(Mo)});let Do=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const Io={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=Ro(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},l=0;return n.forEach(((n,s)=>{l+=n.length+1,l>=r&&s>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},l=n.length),a.icons.push(n)})),o.push(a),o},send:(e,t,n)=>{if(!Do)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=Ro(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;Do(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function Lo(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let qo=0;var Fo={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function zo(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let s,u="pending",c=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function g(){"pending"===u&&(u="aborted"),h(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){u="failed",p.forEach((e=>{e(void 0,s)}))}function y(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function b(){if("pending"!==u)return;h();const o=a.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{h(),"pending"===u&&(y(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(f=f.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void v();if(r)return s=o,void(f.length||(a.length?b():v()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};f.push(r),c++,d=setTimeout(b,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&p.push(o),setTimeout(b),function(){return{startTime:l,payload:t,status:u,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}}function Vo(e){const t={...Fo,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const a=zo(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function Bo(){}const Ho=Object.create(null);function Uo(e,t,n){let o,r;if("string"==typeof e){const t=No(e);if(!t)return n(void 0,424),Bo;r=t.send;const i=function(e){if(!Ho[e]){const t=Ro(e);if(!t)return;const n={config:t,redundancy:Vo(t)};Ho[e]=n}return Ho[e]}(e);i&&(o=i.redundancy)}else{const t=jo(e);if(t){o=Vo(t);const n=No(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),Bo)}const Wo="iconify2",Go="iconify",$o=Go+"-count",Ko=Go+"-version",Yo=36e5,Zo=168;function Xo(e,t){try{return e.getItem(t)}catch{}}function Qo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Jo(e,t){try{e.removeItem(t)}catch{}}function er(e,t){return Qo(e,$o,t.toString())}function tr(e){return parseInt(Xo(e,$o))||0}const nr={local:!0,session:!0},or={local:new Set,session:new Set};let rr=!1;let ir=typeof window>"u"?{}:window;function ar(e){const t=e+"Storage";try{if(ir&&ir[t]&&"number"==typeof ir[t].length)return ir[t]}catch{}nr[e]=!1}function lr(e,t){const n=ar(e);if(!n)return;const o=Xo(n,Ko);if(o!==Wo){if(o){const e=tr(n);for(let t=0;t<e;t++)Jo(n,Go+t.toString())}return Qo(n,Ko,Wo),void er(n,0)}const r=Math.floor(Date.now()/Yo)-Zo,i=e=>{const o=Go+e.toString(),i=Xo(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}Jo(n,o)}};let a=tr(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,er(n,a)):or[e].add(t))}function sr(){if(!rr){rr=!0;for(const e in nr)lr(e,(e=>{const t=e.data,n=po(e.provider,t.prefix);if(!ho(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function ur(e,t){function n(n){let o;if(!nr[n]||!(o=ar(n)))return;const r=or[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=tr(o),!er(o,i+1))return;const a={cached:Math.floor(Date.now()/Yo),provider:e.provider,data:t};return Qo(o,Go+i.toString(),JSON.stringify(a))}rr||sr(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in nr)lr(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function cr(){}function dr(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:a})}return!1})),i.pending.length!==a&&(n||Lo([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const fr=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?Jn(e,t,n):e;r&&o.push(r)})),o}(e,!0,mo()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,a=e.name,l=n[r]||(n[r]=Object.create(null)),s=l[i]||(l[i]=po(r,i));let u;u=a in s.icons?t.loaded:""===i||s.missing.has(a)?t.missing:t.pending;const c={provider:r,prefix:i,name:a};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,cr)})),()=>{e=!1}}const r=Object.create(null),i=[];let a,l;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===l&&t===a)return;a=t,l=n,i.push(po(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=po(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(o)||(a.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=No(t))&&r.prepare(t,n,o).forEach((n=>{Uo(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=ho(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),ur(e,t)}catch(e){console.error(e)}dr(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=qo++,r=Lo.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):cr};const pr=/[\s,]+/;function hr(e,t){t.split(pr).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function gr(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function mr(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let vr;function yr(e){return void 0===vr&&function(){try{vr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{vr=null}}(),vr?vr.createHTML(e):e}const br={...bo,inline:!1},wr={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},xr={display:"inline-block"},_r={backgroundColor:"currentColor"},kr={backgroundColor:"transparent"},Er={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Cr={WebkitMask:_r,mask:_r,background:kr};for(const e in Cr){const t=Cr[e];for(const n in Er)t[e+n]=Er[n]}const Or={...br,inline:!0};function Sr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Nr=(e,n,o,r)=>{const i=o?Or:br,a=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in yo?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),l=n.mode||"svg",s={},u=n.style||{},c={..."svg"===l?wr:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&hr(a,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?a[e]=gr(t):"number"==typeof t&&(a[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={...oo,...e},o={...bo,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let a,l=e.rotate;switch(n?o?l+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),l<0&&(l-=4*Math.floor(l/4)),l%=4,l){case 1:a=r.height/2+r.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:a=r.width/2+r.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}l%2==1&&(r.left!==r.top&&(a=r.left,r.left=r.top,r.top=a),r.width!==r.height&&(a=r.width,r.width=r.height,r.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=o.width,l=o.height,s=r.width,u=r.height;let c,d;null===a?(d=null===l?"1em":"auto"===l?u:l,c=_o(d,s/u)):(c="auto"===a?s:a,d=null===l?_o(c,u/s):"auto"===l?u:l);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",c),p("height",d),f.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:f,body:i}}(e,a),f=d.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===l){c.style={...s,...u},Object.assign(c,f);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:yr(Oo(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:p,width:h,height:g}=e,m="mask"===l||"bg"!==l&&-1!==p.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(p,{...f,width:h+"",height:g+""});return c.style={...s,"--svg":mr(v),width:Sr(f.width),height:Sr(f.height),...xr,...m?_r:kr,...u},t.createElement("span",c)};var jr;if(mo(!0),jr=Io,So[""]=jr,typeof document<"u"&&typeof window<"u"){sr();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!vo(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;Ao(e,o)||console.error(n)}catch{console.error(n)}}}}class Tr extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=Jn(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?Jn(e,!0,go):e;if(t){const e=po(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:fr([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Nr({...oo,...n.data},o,e._inline,e._ref)}}const Pr=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement(Tr,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement(Tr,o)}));const Mr="_icon_z9w7e_5",Ar=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:a=!1})=>Oe.jsx(Pr,{onClick:r,icon:o,width:e,height:t,className:`${Mr} ${n}`,color:i,vFlip:a}),Rr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),Dr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),Ir=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),Lr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),qr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),Fr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),zr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),Vr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),Br=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Oe.jsx(Ar,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),Hr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),Ur=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),Wr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),Gr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r}),$r=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-fact-check",width:e,height:t,className:n,onClick:o,color:r}),Kr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:fact-check",width:e,height:t,className:n,onClick:o,color:r}),Yr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),Zr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),Xr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),Qr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),Jr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),ei=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),ti=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),ni=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),oi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),ri=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),ii=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),ai=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),li=({color:e="black",size:t="20",className:n=""})=>Oe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[Oe.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),Oe.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),Oe.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),Oe.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),si=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),ui=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),ci=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),di=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),fi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),pi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),hi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),gi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),mi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),vi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),yi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),bi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),wi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),xi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),_i=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),ki=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Ei=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),Ci=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),Oi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Si=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Ni=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),ji=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),Ti=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),Pi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),Mi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),Ai=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:r}),Ri=({width:e=20,height:t=20,className:n="",onClick:o,color:r="var(--colors-error-500)"})=>Oe.jsx(Ar,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:r}),Di=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:r}),Ii=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:r}),Li=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:r}),qi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:r}),Fi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:r}),zi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:r}),Vi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:r}),Bi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:r}),Hi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:r}),Ui=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:r}),Wi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:r});function Gi(e){return Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const $i=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:r});function Ki(e){return Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const Yi=e=>Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),Zi=e=>Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function Xi(e){return Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function Qi(e){return Oe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[Oe.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),Oe.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),Oe.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),Oe.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}const Ji=e=>Oe.jsx(x,{...e}),ea={button:"_button_2p4hz_1",contained:"_contained_2p4hz_10",common:"_common_2p4hz_10",medium:"_medium_2p4hz_40",small:"_small_2p4hz_43",large:"_large_2p4hz_46",error:"_error_2p4hz_49",outlined:"_outlined_2p4hz_88",text:"_text_2p4hz_166",textGray:"_textGray_2p4hz_244"},ta=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:a,dataTest:l,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{style:{display:"none"},children:Oe.jsxs("button",{...u,className:sn(c?"px-2":"px-1.5",ea.button,ea[e],ea[d],ea[n],t),ref:r,"data-test":l,children:[i&&i,o&&Oe.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),a&&a]})}),Oe.jsxs("button",{...u,className:sn(c?"px-2":"px-1.5","asma-core-ui-button",e,d,n,t),ref:r,"data-test":l,children:[i&&i,o&&Oe.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),a&&a]})]})},na=({onCloseText:e,children:t,dataTest:n,showCloseIcon:o=!0,dialogTitle:r,...i})=>Oe.jsxs(_,{...i,"data-test":n,style:{zIndex:999,...i.style},children:[Oe.jsxs("div",{className:"flex items-center",children:[r&&Oe.jsx("div",{className:"pl-4 pt-2 flex justify-start text-sm text-[var(--colors-gray-700)] ",children:r}),o&&Oe.jsx("div",{className:"mr-2 mt-2 flex justify-end flex-grow",children:Oe.jsx(ta,{dataTest:`close-button-${n}`,variant:"textGray",endIcon:Oe.jsx(Pr,{icon:"ic:baseline-close",className:"text-2xl"}),onClick:e=>{i.onClose&&i.onClose(e,"escapeKeyDown")},className:"text-gray-800",children:e})})]}),t]}),oa=e=>Oe.jsx(k,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:"p-0 m-0 justify-center"},children:Oe.jsx("div",{className:sn("flex w-full justify-end space-x-4 p-4",e.className),children:e.children})}),ra=({children:e,classes:t,className:n,...o})=>Oe.jsx(E,{...o,"data-test":"styled-dialog-content",classes:{...t,root:"p-4 mx-0 mt-0 w-full"},className:n,children:e}),ia=({children:e,...t})=>e?Oe.jsx(C,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:"space-x-3 p-4 text-xl font-semibold leading-tight"},children:e}):null,aa=e=>{var t,o,r,i,a,l,s,u,c,d,f,p,h;return Oe.jsx(O,{...e,classes:{...e.classes,root:sn("border-solid text-sm font-normal px-3 py-2",n.count(e.children)>1?"items-start":"items-center",null==(t=e.classes)?void 0:t.root),action:sn("p-0 pl-4",null==(o=e.classes)?void 0:o.action),icon:sn("text-2xl text-inherit",null==(r=e.classes)?void 0:r.icon),filled:sn("border",null==(i=e.classes)?void 0:i.filled),filledError:sn("border-error-500 bg-error-100 text-error-700",null==(a=e.classes)?void 0:a.filledError),filledInfo:sn("border-info-500 bg-info-300 text-info-700",null==(l=e.classes)?void 0:l.filledInfo),filledSuccess:sn("border-success-500 bg-success-100 text-success-700",null==(s=e.classes)?void 0:s.filledSuccess),filledWarning:sn("border-warning-500 bg-warning-100 text-warning-700",null==(u=e.classes)?void 0:u.filledWarning),outlined:sn("border-2",null==(c=e.classes)?void 0:c.outlined),outlinedError:sn("border-error-700 text-error-700",null==(d=e.classes)?void 0:d.outlinedError),outlinedInfo:sn("border-info-700 text-info-700",null==(f=e.classes)?void 0:f.outlinedInfo),outlinedSuccess:sn("border-success-700 text-success-700",null==(p=e.classes)?void 0:p.outlinedSuccess),outlinedWarning:sn("border-warning-700 text-warning-700",null==(h=e.classes)?void 0:h.outlinedWarning)},iconMapping:{...e.iconMapping,success:Oe.jsx(Pr,{icon:"material-symbols:check-circle-outline",fontSize:"inherit"})}})},la=e=>Oe.jsx(S,{...e,classes:{root:sn("mb-0.5 font-semibold text-sm",e.className)}});let sa={data:""},ua=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||sa,ca=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,da=/\/\*[^]*?\*\/| +/g,fa=/\n+/g,pa=(e,t)=>{let n="",o="",r="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":o+="f"==i[1]?pa(a,i):i+"{"+pa(a,"k"==i[1]?"":t)+"}":"object"==typeof a?o+=pa(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=pa.p?pa.p(i,a):i+":"+a+";")}return n+(t&&r?t+"{"+r+"}":r)+o},ha={},ga=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ga(e[n]);return t}return e},ma=(e,t,n,o,r)=>{let i=ga(e),a=ha[i]||(ha[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!ha[a]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=ca.exec(e.replace(da,""));)t[4]?o.shift():t[3]?(n=t[3].replace(fa," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(fa," ").trim();return o[0]})(e);ha[a]=pa(r?{["@keyframes "+a]:t}:t,n?"":"."+a)}let l=n&&ha.g?ha.g:null;return n&&(ha.g=ha[a]),s=ha[a],u=t,c=o,(d=l)?u.data=u.data.replace(d,s):-1===u.data.indexOf(s)&&(u.data=c?s+u.data:u.data+s),a;var s,u,c,d},va=(e,t,n)=>e.reduce(((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":pa(e,""):!1===e?"":e}return e+o+(i??"")}),"");function ya(e){let t=this||{},n=e.call?e(t.p):e;return ma(n.unshift?n.raw?va(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,ua(t.target),t.g,t.o,t.k)}function ba(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wa(e,t,n){return t&&ba(e.prototype,t),n&&ba(e,n),e}function xa(){return xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xa.apply(this,arguments)}function _a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ka(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Ea(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}ya.bind({g:1}),ya.bind({k:1});var Ca=function(){return""},Oa=t.createContext({enqueueSnackbar:Ca,closeSnackbar:Ca}),Sa="@media (max-width:599.95px)",Na="@media (min-width:600px)",ja=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ta=function(e){return""+ja(e.vertical)+ja(e.horizontal)},Pa=function(e){return!!e||0===e},Ma="unmounted",Aa="exited",Ra="entering",Da="entered",Ia="exiting",La=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=Aa,n.appearStatus=Ra):o=Da:o=t.unmountOnExit||t.mountOnEnter?Ma:Aa,n.state={status:o},n.nextCallback=null,n}_a(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ma?{status:Aa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ra&&n!==Da&&(t=Ra):(n===Ra||n===Da)&&(t=Ia)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Ra?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Aa&&this.setState({status:Ma})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:Ra},(function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,(function(){t.safeSetState({status:Da},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))}))}))):this.safeSetState({status:Da},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Ia},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Aa},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:Aa},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ma)return null;var t=this.props;return(0,t.children)(e,ka(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},wa(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(t.Component);function qa(){}function Fa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function za(e,t){return c((function(){return null==e&&null==t?null:function(n){Fa(e,n),Fa(t,n)}}),[e,t])}function Va(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}La.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qa,onEntering:qa,onEntered:qa,onExit:qa,onExiting:qa,onExited:qa};var Ba="cubic-bezier(0.4, 0, 0.2, 1)",Ha="cubic-bezier(0.0, 0, 0.2, 1)",Ua="cubic-bezier(0.4, 0, 0.6, 1)",Wa=function(e){e.scrollTop=e.scrollTop},Ga=function(e){return Math.round(e)+"ms"};function $a(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,a=void 0===i?Ba:i,l=n.delay,s=void 0===l?0:l;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof r?r:Ga(r),n="string"==typeof s?s:Ga(s);return e+" "+t+" "+a+" "+n})).join(",")}function Ka(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Ya(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=Ka(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");a=parseInt(s[4],10),l=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-l)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Za=o((function(e,t){var n=e.children,o=e.direction,u=void 0===o?"down":o,c=e.in,d=e.style,f=e.timeout,p=void 0===f?0:f,h=e.onEnter,g=e.onEntered,m=e.onExit,v=e.onExited,y=ka(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),b=r(null),w=za(n.ref,b),x=za(w,t),_=i((function(){b.current&&Ya(u,b.current)}),[u]);return a((function(){if(!c&&"down"!==u&&"right"!==u){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}((function(){b.current&&Ya(u,b.current)})),t=Ka(b.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[u,c]),a((function(){c||_()}),[c,_]),l(La,Object.assign({appear:!0,nodeRef:b,onEnter:function(e,t){Ya(u,e),Wa(e),h&&h(e,t)},onEntered:g,onEntering:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||Ha,n=Va({timeout:p,mode:"enter",style:xa({},d,{transitionTimingFunction:t})});e.style.webkitTransition=$a("-webkit-transform",n),e.style.transition=$a("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||Ua,n=Va({timeout:p,mode:"exit",style:xa({},d,{transitionTimingFunction:t})});e.style.webkitTransition=$a("-webkit-transform",n),e.style.transition=$a("transform",n),Ya(u,e),m&&m(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",v&&v(e)},in:c,timeout:p},y),(function(e,t){return s(n,xa({ref:x,style:xa({visibility:"exited"!==e||c?void 0:"hidden"},d,{},n.props.style)},t))}))}));Za.displayName="Slide";var Xa=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},Qa=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},Ja=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},el=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},tl=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},nl={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:t.createElement(Qa,null),warning:t.createElement(Ja,null),error:t.createElement(el,null),info:t.createElement(tl,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Za,transitionDuration:{enter:225,exit:195}},ol=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?xa({},nl[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:nl.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?xa({},nl.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?xa({},nl.transitionDuration,{},t):nl.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||nl[n]}};function rl(e){return Object.entries(e).reduce((function(e,t){var n,o=t[0],r=t[1];return xa({},e,((n={})[o]=ya(r),n))}),{})}var il="notistack-SnackbarContainer",al="notistack-Snackbar",ll="notistack-CollapseWrapper",sl="notistack-MuiContent",ul=function(e){return"notistack-MuiContent-"+e},cl=rl({root:{height:0},entered:{height:"auto"}}),dl="0px",fl=o((function(e,t){var n=e.children,o=e.in,i=e.onExited,a=r(null),s=r(null),u=za(t,s),c=function(){return a.current?a.current.clientHeight:0};return l(La,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=dl},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=Va({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=c()+"px"},onExited:i,onExiting:function(e){Wa(e);var t=Va({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=dl,e.style.transitionTimingFunction=o||""},nodeRef:s,timeout:175},(function(e,t){return l("div",Object.assign({ref:u,className:sn(cl.root,"entered"===e&&cl.entered),style:xa({pointerEvents:"all",overflow:"hidden",minHeight:dl,transition:$a("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),l("div",{ref:a,className:ll,style:{display:"flex",width:"100%"}},n))}))}));fl.displayName="Collapse";var pl={right:"left",left:"right",bottom:"up",top:"down"},hl=function(e){return"center"!==e.horizontal?pl[e.horizontal]:pl[e.vertical]},gl=function(e){return"anchorOrigin"+Ta(e)},ml=function(){};function vl(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var a=[].concat(r);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),ml)}var yl=typeof window<"u"?f:a;function bl(e){var t=r(e);return yl((function(){t.current=e})),i((function(){return t.current.apply(void 0,arguments)}),[])}var wl=o((function(e,t){var n=e.children,o=e.className,s=e.autoHideDuration,u=e.disableWindowBlurListener,c=void 0!==u&&u,d=e.onClose,f=e.id,p=e.open,h=e.SnackbarProps,g=void 0===h?{}:h,m=r(),v=bl((function(){d&&d.apply(void 0,arguments)})),y=bl((function(e){!d||null==e||(m.current&&clearTimeout(m.current),m.current=setTimeout((function(){v(null,"timeout",f)}),e))}));a((function(){return p&&y(s),function(){m.current&&clearTimeout(m.current)}}),[p,s,y]);var b=function(){m.current&&clearTimeout(m.current)},w=i((function(){null!=s&&y(.5*s)}),[s,y]);return a((function(){if(!c&&p)return window.addEventListener("focus",w),window.addEventListener("blur",b),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",b)}}),[c,w,p]),l("div",Object.assign({ref:t},g,{className:sn(al,o),onMouseEnter:function(e){g.onMouseEnter&&g.onMouseEnter(e),b()},onMouseLeave:function(e){g.onMouseLeave&&g.onMouseLeave(e),w()}}),n)}));wl.displayName="Snackbar";var xl,_l=rl({root:(xl={display:"flex",flexWrap:"wrap",flexGrow:1},xl[Na]={flexGrow:"initial",minWidth:"288px"},xl)}),kl=o((function(e,n){var o=e.className,r=ka(e,["className"]);return t.createElement("div",Object.assign({ref:n,className:sn(_l.root,o)},r))}));kl.displayName="SnackbarContent";var El=rl({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Cl="notistack-snackbar",Ol=o((function(e,n){var o=e.id,r=e.message,i=e.action,a=e.iconVariant,l=e.variant,s=e.hideIconVariant,u=e.style,c=e.className,d=a[l],f=i;return"function"==typeof f&&(f=f(o)),t.createElement(kl,{ref:n,role:"alert","aria-describedby":Cl,style:u,className:sn(sl,ul(l),El.root,El[l],c,!s&&d&&El.lessPadding)},t.createElement("div",{id:Cl,className:El.message},s?null:d,r),f&&t.createElement("div",{className:El.action},f))}));Ol.displayName="MaterialDesignContent";var Sl,Nl,jl,Tl,Pl,Ml,Al,Rl=h(Ol),Dl=rl({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Il=function(e){var n=r(),o=p(!0),l=o[0],s=o[1],u=vl([e.snack.onClose,e.onClose]),d=i((function(){n.current=setTimeout((function(){s((function(e){return!e}))}),125)}),[]);a((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var f=e.snack,h=e.classes,g=e.Component,m=void 0===g?Rl:g,v=c((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var o;return xa({},t,((o={})[n]=e[n],o))}),{})}(h)}),[h]),y=f.open,b=f.SnackbarProps,w=f.TransitionComponent,x=f.TransitionProps,_=f.transitionDuration,k=f.disableWindowBlurListener,E=f.content,C=ka(f,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=xa({direction:hl(C.anchorOrigin),timeout:_},x),S=E;"function"==typeof S&&(S=S(C.id,C.message));var N=["onEnter","onEntered","onExit","onExited"].reduce((function(t,n){var o;return xa({},t,((o={})[n]=vl([e.snack[n],e[n]],C.id),o))}),{});return t.createElement(fl,{in:l,onExited:N.onExited},t.createElement(wl,{open:y,id:C.id,disableWindowBlurListener:k,autoHideDuration:C.autoHideDuration,className:sn(Dl.wrappedRoot,v.root,v[gl(C.anchorOrigin)]),SnackbarProps:b,onClose:u},t.createElement(w,Object.assign({},O,{appear:!0,in:y,onExit:N.onExit,onExited:d,onEnter:N.onEnter,onEntered:vl([N.onEntered,function(){e.snack.requestClose&&u(null,"instructed",e.snack.id)}],C.id)}),S||t.createElement(m,Object.assign({},C)))))},Ll={default:20,dense:4},ql={default:6,dense:2},Fl="."+ll,zl=rl({root:(Sl={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:$a(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Sl[Fl]={padding:ql.default+"px 0px",transition:"padding 300ms ease 0ms"},Sl.maxWidth="calc(100% - "+2*Ll.default+"px)",Sl[Sa]={width:"100%",maxWidth:"calc(100% - 32px)"},Sl),rootDense:(Nl={},Nl[Fl]={padding:ql.dense+"px 0px"},Nl),top:{top:Ll.default-ql.default+"px",flexDirection:"column"},bottom:{bottom:Ll.default-ql.default+"px",flexDirection:"column-reverse"},left:(jl={left:Ll.default+"px"},jl[Na]={alignItems:"flex-start"},jl[Sa]={left:"16px"},jl),right:(Tl={right:Ll.default+"px"},Tl[Na]={alignItems:"flex-end"},Tl[Sa]={right:"16px"},Tl),center:(Pl={left:"50%",transform:"translateX(-50%)"},Pl[Na]={alignItems:"center"},Pl)}),Vl=function(e){var n=e.classes,o=void 0===n?{}:n,r=e.anchorOrigin,i=e.dense,a=e.children,l=sn(il,zl[r.vertical],zl[r.horizontal],zl.root,o.containerRoot,o["containerAnchorOrigin"+Ta(r)],i&&zl.rootDense);return t.createElement("div",{className:l},a)},Bl=h(Vl),Hl="production"!==process.env.NODE_ENV,Ul={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},Wl=function(e){return!("string"==typeof e||g(e))},Gl=function(e){function n(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=Wl(e)?e:t,r=Wl(e)?e.message:e,i=o.key,a=o.preventDuplicate,l=ka(o,["key","preventDuplicate"]),s=Pa(i),u=s?i:(new Date).getTime()+Math.random(),c=ol(l,n.props),d=xa({id:u},l,{message:r,open:!0,entered:!1,requestClose:!1,persist:c("persist"),action:c("action"),content:c("content"),variant:c("variant"),anchorOrigin:c("anchorOrigin"),disableWindowBlurListener:c("disableWindowBlurListener"),autoHideDuration:c("autoHideDuration"),hideIconVariant:c("hideIconVariant"),TransitionComponent:c("TransitionComponent"),transitionDuration:c("transitionDuration"),TransitionProps:c("TransitionProps",!0),iconVariant:c("iconVariant",!0),style:c("style",!0),SnackbarProps:c("SnackbarProps",!0),className:sn(n.props.className,l.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState((function(e){if(void 0===a&&n.props.preventDuplicate||a){var t=function(e){return s?e.id===u:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(xa({},e,{queue:[].concat(e.queue,[d])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?xa({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,o=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&("production"!==process.env.NODE_ENV&&function(e){if(Hl){var t=Ul[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}("NO_PERSIST_ALL"),o=!0);var r=e.snacks.map((function(e){return t||e.persist&&!o?xa({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),xa({},e,{open:!1})):xa({},e,{requestClose:!0}))}));return xa({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!Pa(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===o?xa({},e,{entered:!0}):xa({},e)}))}}))},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return r||e.id===o?e.entered?xa({},e,{open:!1}):xa({},e,{requestClose:!0}):xa({},e)})),queue:n.filter((function(e){return e.id!==o}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));Pa(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!Pa(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var o=n.processQueue(xa({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===o.queue.length?o:n.handleDismissOldest(o)}))},Ml=n.enqueueSnackbar,Al=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(Ea(n)),closeSnackbar:n.closeSnackbar.bind(Ea(n))}},n}return _a(n,e),n.prototype.render=function(){var e=this,n=this.state.contextValue,o=this.props,r=o.domRoot,i=o.children,a=o.dense,l=void 0!==a&&a,s=o.Components,u=void 0===s?{}:s,c=o.classes,d=this.state.snacks.reduce((function(e,t){var n,o=Ta(t.anchorOrigin),r=e[o]||[];return xa({},e,((n={})[o]=[].concat(r,[t]),n))}),{}),f=Object.keys(d).map((function(n){var o=d[n],r=o[0];return t.createElement(Bl,{key:n,dense:l,anchorOrigin:r.anchorOrigin,classes:c},o.map((function(n){return t.createElement(Il,{key:n.id,snack:n,classes:c,Component:u[n.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:vl([e.handleExitedSnack,e.props.onExited],n.id),onEntered:vl([e.handleEnteredSnack,e.props.onEntered],n.id)})})))}));return t.createElement(Oa.Provider,{value:n},i,r?ge(f,r):f)},wa(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||nl.maxSnack}}]),n}(d),$l=function(){return u(Oa)};const Kl=o(((e,t)=>{const{id:n,message:o,severity:r,alertClassName:i,alertVariant:a,closeButton:l,...s}=me(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:u}=$l();return Oe.jsx(kl,{ref:t,role:"alert",...s,children:Oe.jsx(aa,{className:i,severity:r,variant:a,onClose:l?()=>u(n):void 0,children:o})})})),Yl=o(((e,t)=>{const{id:n,message:o,closeButton:r,type:i,...a}=me(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:l}=$l(),s="loading"===i;return Oe.jsx(kl,{ref:t,role:"alert",...a,children:Oe.jsxs("div",{className:sn("flex items-center justify-center w-full",s&&"pl-6",r&&"pr-6"),children:["loading"===i?Oe.jsx(fi,{width:20,height:20,className:"left-2 absolute top-1/2 -translate-y-1/2"}):null,Oe.jsx("div",{children:o}),r?Oe.jsx(wi,{onClick:()=>l(n),width:20,height:20,className:"right-2 absolute top-1/2 -translate-y-1/2"}):null]})})})),Zl=e=>Oe.jsx(Gl,{...e,Components:{alert:Kl,info:Yl},autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"},domRoot:document.body,maxSnack:3,classes:{root:"min-w-fit"},className:"w-fit min-w-fit max-w-fit ",children:e.children}),Xl=({children:e,...t})=>Oe.jsx(N,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&Oe.jsx("div",{children:e})});function Ql(e){Ml({message:e,variant:"alert",severity:"error",alertClassName:"min-w-[350px] max-w-[350px]",alertVariant:"filled",closeButton:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"}})}function Jl(e){Ml({variant:"alert",message:e,severity:"success",alertClassName:"min-w-[350px] bg-theta-700 flex w-full text-center justify-center items-center !text-[color:var(--colors-link-text-standart)]",alertVariant:"filled",autoHideDuration:6e3,closeButton:!0,anchorOrigin:{vertical:"top",horizontal:"right"}})}function es(e,t){return Ml({variant:"info",message:e,autoHideDuration:6e3,className:"bg-gama-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Al(null==t?void 0:t.id)}const ts={info:(e,t)=>es(e,t),error:(e,t)=>function(e,t){return Ml({variant:"info",message:e,autoHideDuration:6e3,className:"bg-red-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Al(null==t?void 0:t.id)}(e,t),loading:(e,t)=>es(e,{...t,type:"loading"})},ns=({dataTest:e,...t})=>Oe.jsx(j,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),os=({allowClear:e,onClear:t,readOnly:n,disabled:o,dataTest:r,...i})=>Oe.jsx(T,{...i,"data-test":r,disabled:o||n,type:i.type||"mui-input",InputProps:e&&i.value?{endAdornment:Oe.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Oe.jsx(wi,{width:18,height:18})})}:i.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"}},...i.sx}}),rs={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},is=({id:e,variant:t="active",label:n="",labelClassName:o="",description:i="",value:l="",minRows:s=3,maxRows:u=1/0,disabled:c,error:d,errorMessage:h,containerClassName:g="",className:m="",maxLength:v=1/0,counter:y,refLink:b,dataTest:w,counterLimit:x,..._})=>{const k=r(null),E=b||k,C=!(!y||!x),[O,S]=p(!1);a((()=>{S(!0)}),[]),((e,t,n,o,r,i)=>{f((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,r=e.scrollHeight-24;Math.ceil(r/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,r,i])})(E.current,l,s,u,O,C),u<s&&(s=u);const[N,j]=p(l.length);a((()=>{j(l.length)}),[l]);const T=d?"error":"active",P=d?"error":c?"disabled":"active";return Oe.jsxs("div",{className:`flex flex-col gap-1 relative ${g}`,"data-test":w,children:[Oe.jsx("label",{htmlFor:e,className:`${rs.label} ${rs[P]} ${o}`,children:n}),Oe.jsx("span",{className:`${rs.description} ${rs[P]}`,children:d?h:i}),"view_only"===t?Oe.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:l}):"not_editable"===t?Oe.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:l}):Oe.jsx("textarea",{..._,id:e,ref:E,className:`${rs.textarea} ${rs[T]} ${m} ${C?"pb-[32px]":""}`,wrap:"soft",value:l,disabled:c,maxLength:v}),C&&Oe.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[N,"/",x]})]})};var as=function(){this.__data__=[],this.size=0};var ls=function(e,t){return e===t||e!=e&&t!=t},ss=ls;var us=function(e,t){for(var n=e.length;n--;)if(ss(e[n][0],t))return n;return-1},cs=us,ds=Array.prototype.splice;var fs=function(e){var t=this.__data__,n=cs(t,e);return!(n<0)&&(n==t.length-1?t.pop():ds.call(t,n,1),--this.size,!0)},ps=us;var hs=function(e){var t=this.__data__,n=ps(t,e);return n<0?void 0:t[n][1]},gs=us;var ms=function(e){return gs(this.__data__,e)>-1},vs=us;var ys=function(e,t){var n=this.__data__,o=vs(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},bs=as,ws=fs,xs=hs,_s=ms,ks=ys;function Es(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Es.prototype.clear=bs,Es.prototype.delete=ws,Es.prototype.get=xs,Es.prototype.has=_s,Es.prototype.set=ks;var Cs=Es,Os=Cs;var Ss=function(){this.__data__=new Os,this.size=0};var Ns=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var js=function(e){return this.__data__.get(e)};var Ts=function(e){return this.__data__.has(e)},Ps="object"==typeof be&&be&&be.Object===Object&&be,Ms=Ps,As="object"==typeof self&&self&&self.Object===Object&&self,Rs=Ms||As||Function("return this")(),Ds=Rs.Symbol,Is=Ds,Ls=Object.prototype,qs=Ls.hasOwnProperty,Fs=Ls.toString,zs=Is?Is.toStringTag:void 0;var Vs=function(e){var t=qs.call(e,zs),n=e[zs];try{e[zs]=void 0;var o=!0}catch{}var r=Fs.call(e);return o&&(t?e[zs]=n:delete e[zs]),r},Bs=Object.prototype.toString;var Hs=function(e){return Bs.call(e)},Us=Vs,Ws=Hs,Gs=Ds?Ds.toStringTag:void 0;var $s=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Gs&&Gs in Object(e)?Us(e):Ws(e)};var Ks=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ys=$s,Zs=Ks;var Xs=function(e){if(!Zs(e))return!1;var t=Ys(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Qs=Rs["__core-js_shared__"],Js=function(){var e=/[^.]+$/.exec(Qs&&Qs.keys&&Qs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var eu=function(e){return!!Js&&Js in e},tu=Function.prototype.toString;var nu=function(e){if(null!=e){try{return tu.call(e)}catch{}try{return e+""}catch{}}return""},ou=Xs,ru=eu,iu=Ks,au=nu,lu=/^\[object .+?Constructor\]$/,su=Function.prototype,uu=Object.prototype,cu=su.toString,du=uu.hasOwnProperty,fu=RegExp("^"+cu.call(du).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pu=function(e){return!(!iu(e)||ru(e))&&(ou(e)?fu:lu).test(au(e))};var hu=function(e,t){return null==e?void 0:e[t]},gu=pu,mu=hu;var vu=function(e,t){var n=mu(e,t);return gu(n)?n:void 0},yu=vu(Rs,"Map"),bu=vu(Object,"create"),wu=bu;var xu=function(){this.__data__=wu?wu(null):{},this.size=0};var _u=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ku=bu,Eu=Object.prototype.hasOwnProperty;var Cu=function(e){var t=this.__data__;if(ku){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Eu.call(t,e)?t[e]:void 0},Ou=bu,Su=Object.prototype.hasOwnProperty;var Nu=function(e){var t=this.__data__;return Ou?void 0!==t[e]:Su.call(t,e)},ju=bu;var Tu=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ju&&void 0===t?"__lodash_hash_undefined__":t,this},Pu=xu,Mu=_u,Au=Cu,Ru=Nu,Du=Tu;function Iu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Iu.prototype.clear=Pu,Iu.prototype.delete=Mu,Iu.prototype.get=Au,Iu.prototype.has=Ru,Iu.prototype.set=Du;var Lu=Iu,qu=Cs,Fu=yu;var zu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Vu=zu;var Bu=function(e,t){var n=e.__data__;return Vu(t)?n["string"==typeof t?"string":"hash"]:n.map},Hu=Bu;var Uu=function(e){var t=Hu(this,e).delete(e);return this.size-=t?1:0,t},Wu=Bu;var Gu=function(e){return Wu(this,e).get(e)},$u=Bu;var Ku=function(e){return $u(this,e).has(e)},Yu=Bu;var Zu=function(e,t){var n=Yu(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Xu=function(){this.size=0,this.__data__={hash:new Lu,map:new(Fu||qu),string:new Lu}},Qu=Uu,Ju=Gu,ec=Ku,tc=Zu;function nc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}nc.prototype.clear=Xu,nc.prototype.delete=Qu,nc.prototype.get=Ju,nc.prototype.has=ec,nc.prototype.set=tc;var oc=nc,rc=Cs,ic=yu,ac=oc;var lc=function(e,t){var n=this.__data__;if(n instanceof rc){var o=n.__data__;if(!ic||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ac(o)}return n.set(e,t),this.size=n.size,this},sc=Cs,uc=Ss,cc=Ns,dc=js,fc=Ts,pc=lc;function hc(e){var t=this.__data__=new sc(e);this.size=t.size}hc.prototype.clear=uc,hc.prototype.delete=cc,hc.prototype.get=dc,hc.prototype.has=fc,hc.prototype.set=pc;var gc=hc;var mc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var vc=function(e){return this.__data__.has(e)},yc=oc,bc=mc,wc=vc;function xc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new yc;++t<n;)this.add(e[t])}xc.prototype.add=xc.prototype.push=bc,xc.prototype.has=wc;var _c=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var kc=function(e,t){return e.has(t)},Ec=xc,Cc=_c,Oc=kc;var Sc=function(e,t,n,o,r,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Ec:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(o)var m=a?o(g,h,d,t,e,i):o(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!Cc(t,(function(e,t){if(!Oc(p,t)&&(h===e||r(h,e,n,o,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!r(h,g,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Nc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var jc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Tc=Rs.Uint8Array,Pc=ls,Mc=Sc,Ac=Nc,Rc=jc,Dc=Ds?Ds.prototype:void 0,Ic=Dc?Dc.valueOf:void 0;var Lc=function(e,t,n,o,r,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Tc(e),new Tc(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Pc(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Ac;case"[object Set]":var s=1&o;if(l||(l=Rc),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;o|=2,a.set(e,t);var c=Mc(l(e),l(t),o,r,i,a);return a.delete(e),c;case"[object Symbol]":if(Ic)return Ic.call(e)==Ic.call(t)}return!1};var qc=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},Fc=Array.isArray,zc=qc,Vc=Fc;var Bc=function(e,t,n){var o=t(e);return Vc(e)?o:zc(o,n(e))};var Hc=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};var Uc=Hc,Wc=function(){return[]},Gc=Object.prototype.propertyIsEnumerable,$c=Object.getOwnPropertySymbols,Kc=$c?function(e){return null==e?[]:(e=Object(e),Uc($c(e),(function(t){return Gc.call(e,t)})))}:Wc,Yc=Kc;var Zc=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var Xc=function(e){return null!=e&&"object"==typeof e},Qc=$s,Jc=Xc;var ed=function(e){return Jc(e)&&"[object Arguments]"==Qc(e)},td=ed,nd=Xc,od=Object.prototype,rd=od.hasOwnProperty,id=od.propertyIsEnumerable,ad=td(function(){return arguments}())?td:function(e){return nd(e)&&rd.call(e,"callee")&&!id.call(e,"callee")},ld=ad,sd={exports:{}};var ud=function(){return!1};!function(e,t){var n=Rs,o=ud,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l}(sd,sd.exports);var cd=sd.exports,dd=/^(?:0|[1-9]\d*)$/;var fd=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&dd.test(e))&&e>-1&&e%1==0&&e<t};var pd=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},hd=$s,gd=pd,md=Xc,vd={};vd["[object Float32Array]"]=vd["[object Float64Array]"]=vd["[object Int8Array]"]=vd["[object Int16Array]"]=vd["[object Int32Array]"]=vd["[object Uint8Array]"]=vd["[object Uint8ClampedArray]"]=vd["[object Uint16Array]"]=vd["[object Uint32Array]"]=!0,vd["[object Arguments]"]=vd["[object Array]"]=vd["[object ArrayBuffer]"]=vd["[object Boolean]"]=vd["[object DataView]"]=vd["[object Date]"]=vd["[object Error]"]=vd["[object Function]"]=vd["[object Map]"]=vd["[object Number]"]=vd["[object Object]"]=vd["[object RegExp]"]=vd["[object Set]"]=vd["[object String]"]=vd["[object WeakMap]"]=!1;var yd=function(e){return md(e)&&gd(e.length)&&!!vd[hd(e)]};var bd=function(e){return function(t){return e(t)}},wd={exports:{}};!function(e,t){var n=Ps,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,a=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a}(wd,wd.exports);var xd=wd.exports,_d=yd,kd=bd,Ed=xd&&xd.isTypedArray,Cd=Ed?kd(Ed):_d,Od=Zc,Sd=ld,Nd=Fc,jd=cd,Td=fd,Pd=Cd,Md=Object.prototype.hasOwnProperty;var Ad=function(e,t){var n=Nd(e),o=!n&&Sd(e),r=!n&&!o&&jd(e),i=!n&&!o&&!r&&Pd(e),a=n||o||r||i,l=a?Od(e.length,String):[],s=l.length;for(var u in e)(t||Md.call(e,u))&&(!a||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Td(u,s)))&&l.push(u);return l},Rd=Object.prototype;var Dd=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rd)};var Id=function(e,t){return function(n){return e(t(n))}},Ld=Id(Object.keys,Object),qd=Dd,Fd=Ld,zd=Object.prototype.hasOwnProperty;var Vd=function(e){if(!qd(e))return Fd(e);var t=[];for(var n in Object(e))zd.call(e,n)&&"constructor"!=n&&t.push(n);return t},Bd=Xs,Hd=pd;var Ud=function(e){return null!=e&&Hd(e.length)&&!Bd(e)},Wd=Ad,Gd=Vd,$d=Ud;var Kd=function(e){return $d(e)?Wd(e):Gd(e)},Yd=Bc,Zd=Yc,Xd=Kd;var Qd=function(e){return Yd(e,Xd,Zd)},Jd=Qd,ef=Object.prototype.hasOwnProperty;var tf=function(e,t,n,o,r,i){var a=1&n,l=Jd(e),s=l.length;if(s!=Jd(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:ef.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<s;){var g=e[c=l[u]],m=t[c];if(o)var v=a?o(m,g,c,t,e,i):o(g,m,c,e,t,i);if(!(void 0===v?g===m||r(g,m,n,o,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p},nf=vu(Rs,"DataView"),of=yu,rf=vu(Rs,"Promise"),af=vu(Rs,"Set"),lf=vu(Rs,"WeakMap"),sf=$s,uf=nu,cf="[object Map]",df="[object Promise]",ff="[object Set]",pf="[object WeakMap]",hf="[object DataView]",gf=uf(nf),mf=uf(of),vf=uf(rf),yf=uf(af),bf=uf(lf),wf=sf;(nf&&wf(new nf(new ArrayBuffer(1)))!=hf||of&&wf(new of)!=cf||rf&&wf(rf.resolve())!=df||af&&wf(new af)!=ff||lf&&wf(new lf)!=pf)&&(wf=function(e){var t=sf(e),n="[object Object]"==t?e.constructor:void 0,o=n?uf(n):"";if(o)switch(o){case gf:return hf;case mf:return cf;case vf:return df;case yf:return ff;case bf:return pf}return t});var xf=gc,_f=Sc,kf=Lc,Ef=tf,Cf=wf,Of=Fc,Sf=cd,Nf=Cd,jf="[object Arguments]",Tf="[object Array]",Pf="[object Object]",Mf=Object.prototype.hasOwnProperty;var Af=function(e,t,n,o,r,i){var a=Of(e),l=Of(t),s=a?Tf:Cf(e),u=l?Tf:Cf(t),c=(s=s==jf?Pf:s)==Pf,d=(u=u==jf?Pf:u)==Pf,f=s==u;if(f&&Sf(e)){if(!Sf(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new xf),a||Nf(e)?_f(e,t,n,o,r,i):kf(e,t,s,n,o,r,i);if(!(1&n)){var p=c&&Mf.call(e,"__wrapped__"),h=d&&Mf.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new xf),r(g,m,n,o,i)}}return!!f&&(i||(i=new xf),Ef(e,t,n,o,r,i))},Rf=Af,Df=Xc;var If=function e(t,n,o,r,i){return t===n||(null==t||null==n||!Df(t)&&!Df(n)?t!=t&&n!=n:Rf(t,n,o,r,e,i))},Lf=If;var qf=function(e,t){return Lf(e,t)},Ff={exports:{}};
|
|
19
|
+
*/"production"===process.env.NODE_ENV?Un.exports=function(){if(Hn)return Wn;Hn=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,o){var l,s={},u=null,c=null;for(l in void 0!==o&&(u=""+o),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)r.call(t,l)&&!a.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:n,type:e,key:u,ref:c,props:s,_owner:i.current}}return Wn.Fragment=o,Wn.jsx=l,Wn.jsxs=l,Wn}():Un.exports=(Gn||(Gn=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame,r=o.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,w=!1,x=!1,_=!1,k=!1,E=!1;function C(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return C(e)+".Consumer";case l:return C(e._context)+".Provider";case u:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case p:var n=e,h=n._payload,g=n._init;try{return O(g(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var S,N,j,T,P,M,A,R=Object.assign,D=0;function I(){}I.__reactDisabledLog=!0;var L,q=v.ReactCurrentDispatcher;function F(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var z,V=!1,B="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||V)return"";var n,o=z.get(e);if(void 0!==o)return o;V=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=q.current,q.current=null,function(){if(0===D){S=console.log,N=console.info,j=console.warn,T=console.error,P=console.group,M=console.groupCollapsed,A=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),u=l.length-1,c=s.length-1;u>=1&&c>=0&&l[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==s[c]){var d="\n"+l[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&z.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{V=!1,q.current=r,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:S}),info:R({},e,{value:N}),warn:R({},e,{value:j}),error:R({},e,{value:T}),group:R({},e,{value:P}),groupCollapsed:R({},e,{value:M}),groupEnd:R({},e,{value:A})})}D<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?F(f):"";return"function"==typeof e&&z.set(e,p),p}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return F(e);switch(e){case c:return F("Suspense");case d:return F("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return function(e,t,n){return H(e,!1)}(e.render);case f:return U(e.type,t,n);case p:var o=e,r=o._payload,i=o._init;try{return U(i(r),t,n)}catch{}}return""}z=new B;var W=Object.prototype.hasOwnProperty,G={},$=v.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);$.setExtraStackFrame(n)}else $.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function X(e){return""+e}function Q(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var J,ee,te,ne=v.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};te={};var re=function(e,t,o,r,i,a,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,t,n,o,r){var i,a={},l=null,s=null;for(i in void 0!==n&&(Q(n),l=""+n),function(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),l=""+t.key),function(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=O(ne.current.type);te[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(ne.current.type),e.ref),te[n]=!0)}}(t,r)),t)W.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(l||s){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){J||(J=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,c),s&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,c)}return re(e,l,s,r,o,ne.current,a)}var ae,le=v.ReactCurrentOwner,se=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=O(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var fe={};function pe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!fe[n]){fe[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" It was passed a child from "+O(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function he(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&pe(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)ce(i.value)&&pe(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var o=O(n);!function(e,t,n,o,r){var i=Function.call.bind(W);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((o||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(K(r),y("%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).",o||"React class",n,a,typeof l),K(null)),l instanceof Error&&!(l.message in G)&&(G[l.message]=!0,K(r),y("Failed %s type: %s",n,l.message),K(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||ae||(ae=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function me(e,t,o,g,m,v){var C=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===a||E||e===i||e===c||e===d||k||e===h||w||x||_||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!C){var S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var N,j=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);S+=j||de(),null===e?N="null":Z(e)?N="array":void 0!==e&&e.$$typeof===n?(N="<"+(O(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):N=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,S)}var T=ie(e,t,o,m,v);if(null==T)return T;if(C){var P=t.children;if(void 0!==P)if(g)if(Z(P)){for(var M=0;M<P.length;M++)he(P[M],e);Object.freeze&&Object.freeze(P)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(P,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(T):ge(T),T}var ve=function(e,t,n){return me(e,t,n,!1)},ye=function(e,t,n){return me(e,t,n,!0)};$n.Fragment=r,$n.jsx=ve,$n.jsxs=ye}()),$n);var Kn=Un.exports;const Yn=({color:e="primary",dataTest:t,...n})=>Kn.jsx(y,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-badge-background)",color:"var(--colors-badge-text)"},...n.sx}}),Zn=({dataTest:e,...t})=>Kn.jsx(b,{...t,"data-test":e});function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xn.apply(this,arguments)}function Qn(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}const Jn=!1;var eo="production"!==process.env.NODE_ENV?fe.oneOfType([fe.number,fe.shape({enter:fe.number,exit:fe.number,appear:fe.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&fe.oneOfType([fe.string,fe.shape({enter:fe.string,exit:fe.string,active:fe.string}),fe.shape({enter:fe.string,enterDone:fe.string,enterActive:fe.string,exit:fe.string,exitDone:fe.string,exitActive:fe.string})]);const to=t.createContext(null);var no="unmounted",oo="exited",ro="entering",io="entered",ao="exiting",lo=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=oo,o.appearStatus=ro):r=io:r=t.unmountOnExit||t.mountOnEnter?no:oo,o.state={status:r},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zt(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===no?{status:oo}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ro&&n!==io&&(t=ro):(n===ro||n===io)&&(t=ao)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ro){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oo&&this.setState({status:no})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[he.findDOMNode(this),o],i=r[0],a=r[1],l=this.getTimeouts(),s=o?l.appear:l.enter;!e&&!n||Jn?this.safeSetState({status:io},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ro},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:io},(function(){t.props.onEntered(i,a)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:he.findDOMNode(this);t&&!Jn?(this.props.onExit(o),this.safeSetState({status:ao},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:oo},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:oo},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===no)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=Qn(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(to.Provider,{value:null},"function"==typeof o?o(e,r):t.cloneElement(t.Children.only(o),r))},n}(t.Component);function so(){}lo.contextType=to,lo.propTypes="production"!==process.env.NODE_ENV?{nodeRef:fe.shape({current:typeof Element>"u"?fe.any:function(e,t,n,o,r,i){var a=e[t];return fe.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:fe.oneOfType([fe.func.isRequired,fe.element.isRequired]).isRequired,in:fe.bool,mountOnEnter:fe.bool,unmountOnExit:fe.bool,appear:fe.bool,enter:fe.bool,exit:fe.bool,timeout:function(e){var t=eo;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.apply(void 0,[e].concat(o))},addEndListener:fe.func,onEnter:fe.func,onEntering:fe.func,onEntered:fe.func,onExit:fe.func,onExiting:fe.func,onExited:fe.func}:{},lo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:so,onEntering:so,onEntered:so,onExit:so,onExiting:so,onExited:so},lo.UNMOUNTED=no,lo.EXITED=oo,lo.ENTERING=ro,lo.ENTERED=io,lo.EXITING=ao;const uo=lo;function co(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function fo(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function po(e){if(!fo(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=po(e[n])})),t}function ho(e,t,n={clone:!0}){const o=n.clone?Xn({},e):e;return fo(e)&&fo(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(fo(t[r])&&r in e&&fo(e[r])?o[r]=ho(e[r],t[r],n):n.clone?o[r]=fo(t[r])?po(t[r]):t[r]:o[r]=t[r])})),o}function go(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||typeof window>"u")return null;let l;const s=i.type;return"function"==typeof s&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(s)&&(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const mo=co(fe.element,go);mo.isRequired=co(fe.element.isRequired,go);const vo=mo;function yo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function bo(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":yo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const wo=e=>e,xo=(()=>{let e=wo;return{configure(t){e=t},generate:t=>e(t),reset(){e=wo}}})(),_o=xo,ko={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Eo(e,t,n="Mui"){const o=ko[t];return o?`${n}-${o}`:`${_o.generate(e)}-${t}`}const Co=["values","unit","step"],Oo=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Xn({},e,{[t.key]:t.val})),{})};const So={borderRadius:4},No="production"!==process.env.NODE_ENV?fe.oneOfType([fe.number,fe.string,fe.object,fe.array]):{};function jo(e,t){return t?ho(e,t,{clone:!1}):e}const To={xs:0,sm:600,md:900,lg:1200,xl:1536},Po={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${To[e]}px)`};function Mo(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||Po;return t.reduce(((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||Po;return Object.keys(t).reduce(((o,r)=>{if(-1!==Object.keys(e.values||To).indexOf(r)){o[e.up(r)]=n(t[r],r)}else{const e=r;o[e]=t[e]}return o}),{})}return n(t)}function Ao(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Ro(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:Ao(e,n)||o,t&&(r=t(r,o,e)),r}function Do(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ao(e.theme,o)||{};return Mo(e,i,(e=>{let o=Ro(a,r,e);return e===o&&"string"==typeof e&&(o=Ro(a,r,`${t}${"default"===e?"":bo(e)}`,e)),!1===n?o:{[n]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:No}:{},i.filterProps=[t],i}const Io={m:"margin",p:"padding"},Lo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fo=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qo[e])return[e];e=qo[e]}const[t,n]=e.split(""),o=Io[t],r=Lo[n]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),zo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Bo=[...zo,...Vo];function Ho(e,t,n,o){var r;const i=null!=(r=Ao(e,t,!1))?r:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Uo(e){return Ho(e,"spacing",8,"spacing")}function Wo(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Go(e,t,n,o){if(-1===t.indexOf(n))return null;const r=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=Wo(t,n),e)),{})}(Fo(n),o);return Mo(e,e[n],r)}function $o(e,t){const n=Uo(e.theme);return Object.keys(e).map((o=>Go(e,t,o,n))).reduce(jo,{})}function Ko(e){return $o(e,zo)}function Yo(e){return $o(e,Vo)}function Zo(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,o)=>t[o]?jo(n,t[o](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xo(e){return"number"!=typeof e?e:`${e}px solid`}Ko.propTypes="production"!==process.env.NODE_ENV?zo.reduce(((e,t)=>(e[t]=No,e)),{}):{},Ko.filterProps=zo,Yo.propTypes="production"!==process.env.NODE_ENV?Vo.reduce(((e,t)=>(e[t]=No,e)),{}):{},Yo.filterProps=Vo,"production"!==process.env.NODE_ENV&&Bo.reduce(((e,t)=>(e[t]=No,e)),{});const Qo=Do({prop:"border",themeKey:"borders",transform:Xo}),Jo=Do({prop:"borderTop",themeKey:"borders",transform:Xo}),er=Do({prop:"borderRight",themeKey:"borders",transform:Xo}),tr=Do({prop:"borderBottom",themeKey:"borders",transform:Xo}),nr=Do({prop:"borderLeft",themeKey:"borders",transform:Xo}),or=Do({prop:"borderColor",themeKey:"palette"}),rr=Do({prop:"borderTopColor",themeKey:"palette"}),ir=Do({prop:"borderRightColor",themeKey:"palette"}),ar=Do({prop:"borderBottomColor",themeKey:"palette"}),lr=Do({prop:"borderLeftColor",themeKey:"palette"}),sr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ho(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Wo(t,e)});return Mo(e,e.borderRadius,n)}return null};sr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:No}:{},sr.filterProps=["borderRadius"],Zo(Qo,Jo,er,tr,nr,or,rr,ir,ar,lr,sr);const ur=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ho(e.theme,"spacing",8,"gap"),n=e=>({gap:Wo(t,e)});return Mo(e,e.gap,n)}return null};ur.propTypes="production"!==process.env.NODE_ENV?{gap:No}:{},ur.filterProps=["gap"];const cr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ho(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Wo(t,e)});return Mo(e,e.columnGap,n)}return null};cr.propTypes="production"!==process.env.NODE_ENV?{columnGap:No}:{},cr.filterProps=["columnGap"];const dr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ho(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Wo(t,e)});return Mo(e,e.rowGap,n)}return null};dr.propTypes="production"!==process.env.NODE_ENV?{rowGap:No}:{},dr.filterProps=["rowGap"];function fr(e,t){return"grey"===t?t:e}Zo(ur,cr,dr,Do({prop:"gridColumn"}),Do({prop:"gridRow"}),Do({prop:"gridAutoFlow"}),Do({prop:"gridAutoColumns"}),Do({prop:"gridAutoRows"}),Do({prop:"gridTemplateColumns"}),Do({prop:"gridTemplateRows"}),Do({prop:"gridTemplateAreas"}),Do({prop:"gridArea"}));function pr(e){return e<=1&&0!==e?100*e+"%":e}Zo(Do({prop:"color",themeKey:"palette",transform:fr}),Do({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fr}),Do({prop:"backgroundColor",themeKey:"palette",transform:fr}));const hr=Do({prop:"width",transform:pr}),gr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,o,r;return{maxWidth:(null==(n=e.theme)||null==(o=n.breakpoints)||null==(r=o.values)?void 0:r[t])||To[t]||pr(t)}};return Mo(e,e.maxWidth,t)}return null};gr.filterProps=["maxWidth"];const mr=Do({prop:"minWidth",transform:pr}),vr=Do({prop:"height",transform:pr}),yr=Do({prop:"maxHeight",transform:pr}),br=Do({prop:"minHeight",transform:pr});Do({prop:"size",cssProperty:"width",transform:pr}),Do({prop:"size",cssProperty:"height",transform:pr});Zo(hr,gr,mr,vr,yr,br,Do({prop:"boxSizing"}));const wr={border:{themeKey:"borders",transform:Xo},borderTop:{themeKey:"borders",transform:Xo},borderRight:{themeKey:"borders",transform:Xo},borderBottom:{themeKey:"borders",transform:Xo},borderLeft:{themeKey:"borders",transform:Xo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sr},color:{themeKey:"palette",transform:fr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fr},backgroundColor:{themeKey:"palette",transform:fr},p:{style:Yo},pt:{style:Yo},pr:{style:Yo},pb:{style:Yo},pl:{style:Yo},px:{style:Yo},py:{style:Yo},padding:{style:Yo},paddingTop:{style:Yo},paddingRight:{style:Yo},paddingBottom:{style:Yo},paddingLeft:{style:Yo},paddingX:{style:Yo},paddingY:{style:Yo},paddingInline:{style:Yo},paddingInlineStart:{style:Yo},paddingInlineEnd:{style:Yo},paddingBlock:{style:Yo},paddingBlockStart:{style:Yo},paddingBlockEnd:{style:Yo},m:{style:Ko},mt:{style:Ko},mr:{style:Ko},mb:{style:Ko},ml:{style:Ko},mx:{style:Ko},my:{style:Ko},margin:{style:Ko},marginTop:{style:Ko},marginRight:{style:Ko},marginBottom:{style:Ko},marginLeft:{style:Ko},marginX:{style:Ko},marginY:{style:Ko},marginInline:{style:Ko},marginInlineStart:{style:Ko},marginInlineEnd:{style:Ko},marginBlock:{style:Ko},marginBlockStart:{style:Ko},marginBlockEnd:{style:Ko},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ur},rowGap:{style:dr},columnGap:{style:cr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pr},maxWidth:{style:gr},minWidth:{transform:pr},height:{transform:pr},maxHeight:{transform:pr},minHeight:{transform:pr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},xr=wr;const _r=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ao(n,l)||{};return u?u(r):Mo(r,t,(t=>{let n=Ro(c,s,t);return t===n&&"string"==typeof t&&(n=Ro(c,s,`${e}${"default"===t?"":bo(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var o;const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=null!=(o=i.unstable_sxConfig)?o:xr;function l(n){let o=n;if("function"==typeof n)o=n(i);else if("object"!=typeof n)return n;if(!o)return null;const r=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(r);let s=r;return Object.keys(o).forEach((n=>{const r=function(e,t){return"function"==typeof e?e(t):e}(o[n],i);if(null!=r)if("object"==typeof r)if(a[n])s=jo(s,e(n,r,i,a));else{const e=Mo({theme:i},r,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,r)?s=jo(s,e):s[n]=t({sx:r,theme:i})}else s=jo(s,e(n,r,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(r)?r.map(l):l(r)}}();_r.filterProps=["sx"];const kr=_r,Er=["breakpoints","palette","spacing","shape"];function Cr(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={}}=e,a=Qn(e,Er),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,r=Qn(e,Co),i=Oo(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function u(e,r){const i=a.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:r)-o/100}${n})`}return Xn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},r)}(n),s=function(e=8){if(e.mui)return e;const t=Uo({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(r);let u=ho({breakpoints:l,direction:"ltr",components:{},palette:Xn({mode:"light"},o),spacing:s,shape:Xn({},So,i)},a);return u=t.reduce(((e,t)=>ho(e,t)),u),u.unstable_sxConfig=Xn({},xr,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return kr({sx:e,theme:this})},u}function Or(t=null){const n=e.useContext(pe);return!n||function(e){return 0===Object.keys(e).length}(n)?t:n}const Sr=Cr();function Nr(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function jr(e){if(e.type)return e;if("#"===e.charAt(0))return jr(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:yo(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:yo(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function Tr(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Pr(e){let t="hsl"===(e=jr(e)).type||"hsla"===e.type?jr(function(e){e=jr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Tr({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Mr(e,t){const n=Pr(e),o=Pr(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Ar(e,t){return Xn({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Rr={black:"#000",white:"#fff"},Dr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ir={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Lr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},qr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Fr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},zr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Vr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Br=["mode","contrastThreshold","tonalOffset"],Hr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rr.white,default:Rr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ur={text:{primary:Rr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Wr(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=jr(e),t=Nr(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Tr(e)}(e.main,r):"dark"===t&&(e.dark=function(e,t){if(e=jr(e),t=Nr(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Tr(e)}(e.main,i)))}function Gr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=Qn(e,Br),i=e.primary||function(e="light"){return"dark"===e?{main:Fr[200],light:Fr[50],dark:Fr[400]}:{main:Fr[700],light:Fr[400],dark:Fr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ir[200],light:Ir[50],dark:Ir[400]}:{main:Ir[500],light:Ir[300],dark:Ir[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Lr[500],light:Lr[300],dark:Lr[700]}:{main:Lr[700],light:Lr[400],dark:Lr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:zr[400],light:zr[300],dark:zr[700]}:{main:zr[700],light:zr[500],dark:zr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Vr[400],light:Vr[300],dark:Vr[700]}:{main:Vr[800],light:Vr[500],dark:Vr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:qr[400],light:qr[300],dark:qr[700]}:{main:"#ed6c02",light:qr[500],dark:qr[900]}}(t);function d(e){const t=Mr(e,Ur.text.primary)>=n?Ur.text.primary:Hr.text.primary;if("production"!==process.env.NODE_ENV){const n=Mr(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const f=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=Xn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:yo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:yo(12,t?` (${t})`:"",JSON.stringify(e.main)));return Wr(e,"light",r,o),Wr(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Ur,light:Hr};return"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ho(Xn({common:Xn({},Rr),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:Dr,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:o},p[t]),r)}const $r=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Kr(e){return Math.round(1e5*e)/1e5}const Yr={textTransform:"uppercase"},Zr='"Roboto", "Helvetica", "Arial", sans-serif';function Xr(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=Zr,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Qn(n,$r);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=d||(e=>e/u*p+"rem"),g=(e,t,n,r,i)=>Xn({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===Zr?{letterSpacing:`${Kr(r/t)}em`}:{},i,c),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,Yr),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Yr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ho(Xn({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},m),f,{clone:!1})}function Qr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jr=["none",Qr(0,2,1,-1,0,1,1,0,0,1,3,0),Qr(0,3,1,-2,0,2,2,0,0,1,5,0),Qr(0,3,3,-2,0,3,4,0,0,1,8,0),Qr(0,2,4,-1,0,4,5,0,0,1,10,0),Qr(0,3,5,-1,0,5,8,0,0,1,14,0),Qr(0,3,5,-1,0,6,10,0,0,1,18,0),Qr(0,4,5,-2,0,7,10,1,0,2,16,1),Qr(0,5,5,-3,0,8,10,1,0,3,14,2),Qr(0,5,6,-3,0,9,12,1,0,3,16,2),Qr(0,6,6,-3,0,10,14,1,0,4,18,3),Qr(0,6,7,-4,0,11,15,1,0,4,20,3),Qr(0,7,8,-4,0,12,17,2,0,5,22,4),Qr(0,7,8,-4,0,13,19,2,0,5,24,4),Qr(0,7,9,-4,0,14,21,2,0,5,26,4),Qr(0,8,9,-5,0,15,22,2,0,6,28,5),Qr(0,8,10,-5,0,16,24,2,0,6,30,5),Qr(0,8,11,-5,0,17,26,2,0,6,32,5),Qr(0,9,11,-5,0,18,28,2,0,7,34,6),Qr(0,9,12,-6,0,19,29,2,0,7,36,6),Qr(0,10,13,-6,0,20,31,3,0,8,38,7),Qr(0,10,13,-6,0,21,33,3,0,8,40,7),Qr(0,10,14,-6,0,22,35,3,0,8,42,7),Qr(0,11,14,-7,0,23,36,3,0,9,44,8),Qr(0,11,15,-7,0,24,38,3,0,9,46,8)],ei=["duration","easing","delay"],ti={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ni={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function oi(e){return`${Math.round(e)}ms`}function ri(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ii(e){const t=Xn({},ti,e.easing),n=Xn({},ni,e.duration);return Xn({getAutoHeightDuration:ri,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:a=0}=o,l=Qn(o,ei);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(a)&&!t(a)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(l).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:oi(r)} ${i} ${"string"==typeof a?a:oi(a)}`)).join(",")}},e,{easing:t,duration:n})}const ai={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},li=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const si=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,a=Qn(e,li);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":yo(18));const l=Gr(o),s=Cr(e);let u=ho(s,{mixins:Ar(s.breakpoints,n),palette:l,shadows:Jr.slice(),typography:Xr(l,i),transitions:ii(r),zIndex:Xn({},ai)});if(u=ho(u,a),u=t.reduce(((e,t)=>ho(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=Eo("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=Xn({},xr,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return kr({sx:e,theme:this})},u}(),ui=si;function ci(){const t=function(e=Sr){return Or(e)}(ui);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t.$$material||t}function di(e,t){var n,o;const{timeout:r,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=a.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const fi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pi={entering:{opacity:1},entered:{opacity:1}},hi=e.forwardRef((function(t,n){const o=ci(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:v=r,TransitionComponent:y=uo}=t,b=Qn(t,fi),w=e.useRef(null),x=function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}(w,l.ref,n),_=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=_(f),E=_(((e,t)=>{(e=>{e.scrollTop})(e);const n=di({style:m,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),C=_(d),O=_(g),S=_((e=>{const t=di({style:m,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),p&&p(e)})),N=_(h);return Kn.jsx(y,Xn({appear:a,in:u,nodeRef:w,onEnter:E,onEntered:C,onEntering:k,onExit:S,onExited:N,onExiting:O,addEndListener:e=>{i&&i(w.current,e)},timeout:v},b,{children:(t,n)=>e.cloneElement(l,Xn({style:Xn({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},pi[t],m,l.props.style),ref:x},n))}))}));"production"!==process.env.NODE_ENV&&(hi.propTypes={addEndListener:fe.func,appear:fe.bool,children:vo.isRequired,easing:fe.oneOfType([fe.shape({enter:fe.string,exit:fe.string}),fe.string]),in:fe.bool,onEnter:fe.func,onEntered:fe.func,onEntering:fe.func,onExit:fe.func,onExited:fe.func,onExiting:fe.func,style:fe.object,timeout:fe.oneOfType([fe.number,fe.shape({appear:fe.number,enter:fe.number,exit:fe.number})])});const gi=hi,mi=e=>Kn.jsx(w,{TransitionComponent:gi,TransitionProps:{timeout:300},arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:"var(--colors-gray-800)",borderRadius:"3px","& .MuiTooltip-arrow":{color:"var(--colors-gray-800)"}}}},...e}),vi=/^[a-z0-9]+(-[a-z0-9]+)*$/,yi=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!bi(i)?null:i}const i=r[0],a=i.split("-");if(a.length>1){const e={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!bi(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!bi(e,n)?null:e}return null},bi=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(vi)||!(t&&""===e.prefix||e.prefix.match(vi))||!e.name.match(vi)),wi=Object.freeze({left:0,top:0,width:16,height:16}),xi=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_i=Object.freeze({...wi,...xi}),ki=Object.freeze({..._i,body:"",hidden:!1});function Ei(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in ki)o in xi?o in e&&!(o in n)&&(n[o]=xi[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Ci(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(e){i=Ei(o[e]||r[e],i)}return a(t),n.forEach(a),Ei(e,i)}function Oi(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,Ci(e,r,i)),n.push(r))}return n}const Si={provider:"",aliases:{},not_found:{},...wi};function Ni(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ji(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Ni(e,Si))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(vi)||"string"!=typeof t.body||!Ni(t,ki))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(vi)||"string"!=typeof r||!n[r]&&!o[r]||!Ni(t,ki))return null}return t}const Ti=Object.create(null);function Pi(e,t){const n=Ti[e]||(Ti[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Mi(e,t){return ji(t)?Oi(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Ai=!1;function Ri(e){return"boolean"==typeof e&&(Ai=e),Ai}function Di(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Ai&&!t&&!e.prefix){let t=!1;return ji(e)&&(e.prefix="",Oi(e,((e,n)=>{n&&function(e,t){const n=yi(e,!0,Ai);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Pi(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!bi({provider:t,prefix:n,name:"a"}))return!1;return!!Mi(Pi(t,n),e)}const Ii=Object.freeze({width:null,height:null}),Li=Object.freeze({...Ii,...xi}),qi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function zi(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(qi);if(null===o||!o.length)return e;const r=[];let i=o.shift(),a=Fi.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");a=!a}}const Vi=/\sid="(\S+)"/g,Bi="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Hi=0;function Ui(e,t=Bi){const n=[];let o;for(;o=Vi.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Hi++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const Wi=Object.create(null);function Gi(e){return Wi[e]||Wi[""]}function $i(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ki=Object.create(null),Yi=["https://api.simplesvg.com","https://api.unisvg.com"],Zi=[];for(;Yi.length>0;)1===Yi.length||Math.random()>.5?Zi.push(Yi.shift()):Zi.push(Yi.pop());function Xi(e,t){const n=$i(t);return null!==n&&(Ki[e]=n,!0)}function Qi(e){return Ki[e]}Ki[""]=$i({resources:["https://api.iconify.design"].concat(Zi)});let Ji=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const ea={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=Qi(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},l=0;return n.forEach(((n,s)=>{l+=n.length+1,l>=r&&s>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},l=n.length),a.icons.push(n)})),o.push(a),o},send:(e,t,n)=>{if(!Ji)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=Qi(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;Ji(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function ta(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let na=0;var oa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ra(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let s,u="pending",c=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function g(){"pending"===u&&(u="aborted"),h(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){u="failed",p.forEach((e=>{e(void 0,s)}))}function y(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function b(){if("pending"!==u)return;h();const o=a.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{h(),"pending"===u&&(y(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(f=f.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void v();if(r)return s=o,void(f.length||(a.length?b():v()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};f.push(r),c++,d=setTimeout(b,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&p.push(o),setTimeout(b),function(){return{startTime:l,payload:t,status:u,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}}function ia(e){const t={...oa,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const a=ra(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function aa(){}const la=Object.create(null);function sa(e,t,n){let o,r;if("string"==typeof e){const t=Gi(e);if(!t)return n(void 0,424),aa;r=t.send;const i=function(e){if(!la[e]){const t=Qi(e);if(!t)return;const n={config:t,redundancy:ia(t)};la[e]=n}return la[e]}(e);i&&(o=i.redundancy)}else{const t=$i(e);if(t){o=ia(t);const n=Gi(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),aa)}const ua="iconify2",ca="iconify",da=ca+"-count",fa=ca+"-version",pa=36e5,ha=168;function ga(e,t){try{return e.getItem(t)}catch{}}function ma(e,t,n){try{return e.setItem(t,n),!0}catch{}}function va(e,t){try{e.removeItem(t)}catch{}}function ya(e,t){return ma(e,da,t.toString())}function ba(e){return parseInt(ga(e,da))||0}const wa={local:!0,session:!0},xa={local:new Set,session:new Set};let _a=!1;let ka=typeof window>"u"?{}:window;function Ea(e){const t=e+"Storage";try{if(ka&&ka[t]&&"number"==typeof ka[t].length)return ka[t]}catch{}wa[e]=!1}function Ca(e,t){const n=Ea(e);if(!n)return;const o=ga(n,fa);if(o!==ua){if(o){const e=ba(n);for(let t=0;t<e;t++)va(n,ca+t.toString())}return ma(n,fa,ua),void ya(n,0)}const r=Math.floor(Date.now()/pa)-ha,i=e=>{const o=ca+e.toString(),i=ga(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}va(n,o)}};let a=ba(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,ya(n,a)):xa[e].add(t))}function Oa(){if(!_a){!function(e){_a=e}(!0);for(const e in wa)Ca(e,(e=>{const t=e.data,n=Pi(e.provider,t.prefix);if(!Mi(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function Sa(e,t){function n(n){let o;if(!wa[n]||!(o=Ea(n)))return;const r=xa[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=ba(o),!ya(o,i+1))return;const a={cached:Math.floor(Date.now()/pa),provider:e.provider,data:t};return ma(o,ca+i.toString(),JSON.stringify(a))}_a||Oa(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in wa)Ca(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Na(){}function ja(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:a})}return!1})),i.pending.length!==a&&(n||ta([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Ta=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?yi(e,t,n):e;r&&o.push(r)})),o}(e,!0,Ri()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,a=e.name,l=n[r]||(n[r]=Object.create(null)),s=l[i]||(l[i]=Pi(r,i));let u;u=a in s.icons?t.loaded:""===i||s.missing.has(a)?t.missing:t.pending;const c={provider:r,prefix:i,name:a};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,Na)})),()=>{e=!1}}const r=Object.create(null),i=[];let a,l;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===l&&t===a)return;a=t,l=n,i.push(Pi(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=Pi(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(o)||(a.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=Gi(t))&&r.prepare(t,n,o).forEach((n=>{sa(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Mi(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),Sa(e,t)}catch(e){console.error(e)}ja(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=na++,r=ta.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):Na};const Pa=/[\s,]+/;function Ma(e,t){t.split(Pa).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Aa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function Ra(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let Da;function Ia(e){return void 0===Da&&function(){try{Da=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Da=null}}(),Da?Da.createHTML(e):e}const La={...Li,inline:!1},qa={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Fa={display:"inline-block"},za={backgroundColor:"currentColor"},Va={backgroundColor:"transparent"},Ba={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ha={WebkitMask:za,mask:za,background:Va};for(const e in Ha){const t=Ha[e];for(const n in Ba)t[e+n]=Ba[n]}const Ua={...La,inline:!0};function Wa(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ga=(e,n,o,r)=>{const i=o?Ua:La,a=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in Ii?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),l=n.mode||"svg",s={},u=n.style||{},c={..."svg"===l?qa:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Ma(a,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?a[e]=Aa(t):"number"==typeof t&&(a[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={..._i,...e},o={...Li,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let a,l=e.rotate;switch(n?o?l+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),l<0&&(l-=4*Math.floor(l/4)),l%=4,l){case 1:a=r.height/2+r.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:a=r.width/2+r.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}l%2==1&&(r.left!==r.top&&(a=r.left,r.left=r.top,r.top=a),r.width!==r.height&&(a=r.width,r.width=r.height,r.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=o.width,l=o.height,s=r.width,u=r.height;let c,d;null===a?(d=null===l?"1em":"auto"===l?u:l,c=zi(d,s/u)):(c="auto"===a?s:a,d=null===l?zi(c,u/s):"auto"===l?u:l);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",c),p("height",d),f.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:f,body:i}}(e,a),f=d.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===l){c.style={...s,...u},Object.assign(c,f);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:Ia(Ui(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:p,width:h,height:g}=e,m="mask"===l||"bg"!==l&&-1!==p.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(p,{...f,width:h+"",height:g+""});return c.style={...s,"--svg":Ra(v),width:Wa(f.width),height:Wa(f.height),...Fa,...m?za:Va,...u},t.createElement("span",c)};if(Ri(!0),function(e,t){Wi[e]=t}("",ea),typeof document<"u"&&typeof window<"u"){Oa();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Di(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;Xi(e,o)||console.error(n)}catch{console.error(n)}}}}class $a extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=yi(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?yi(e,!0,Ai):e;if(t){const e=Pi(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:Ta([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Ga({..._i,...n.data},o,e._inline,e._ref)}}const Ka=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement($a,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement($a,o)}));const Ya="_icon_z9w7e_5",Za=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:a=!1})=>Kn.jsx(Ka,{onClick:r,icon:o,width:e,height:t,className:`${Ya} ${n}`,color:i,vFlip:a}),Xa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),Qa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),Ja=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),el=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),tl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),nl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),ol=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),il=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Kn.jsx(Za,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r}),cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:outline-fact-check",width:e,height:t,className:n,onClick:o,color:r}),dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:fact-check",width:e,height:t,className:n,onClick:o,color:r}),fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),_l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),El=({color:e="black",size:t="20",className:n=""})=>Kn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[Kn.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),Kn.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),Kn.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),Kn.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),Cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),Ol=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),Sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),Nl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),Tl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),Pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),Ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),Al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),Rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),Dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),Il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),Ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),Fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),Bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),Hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),Gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),$l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),Kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),Yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),Zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:r}),Xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r="var(--colors-error-500)"})=>Kn.jsx(Za,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:r}),Ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:r}),Jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:r}),es=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:r}),ts=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:r}),ns=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:r}),os=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:r}),rs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:r}),is=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:r}),as=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:r}),ls=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:r}),ss=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:r});function us(e){return Kn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kn.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const cs=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:r});function ds(e){return Kn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Kn.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const fs=e=>Kn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kn.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),ps=e=>Kn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kn.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function hs(e){return Kn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kn.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function gs(e){return Kn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[Kn.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),Kn.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),Kn.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),Kn.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}const ms=e=>Kn.jsx(x,{...e}),vs=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:a,dataTest:l,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Kn.jsxs("button",{...u,className:zn("asma-core-ui-button",e,d,n,t),ref:r,"data-test":l,children:[i&&i,o&&Kn.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center",gap:c?"8px":"4px",paddingLeft:c?"8px":"4px",paddingRight:c?"8px":"4px"},children:o}),a&&a]})},ys=({onCloseText:e,children:t,dataTest:n,showCloseIcon:o=!0,dialogTitle:r,...i})=>Kn.jsxs(_,{...i,"data-test":n,style:{zIndex:999,...i.style},children:[Kn.jsxs("div",{className:"flex items-center",children:[r&&Kn.jsx("div",{className:"pl-4 pt-2 flex justify-start text-sm text-[var(--colors-gray-700)] ",children:r}),o&&Kn.jsx("div",{className:"mr-2 mt-2 flex justify-end flex-grow",children:Kn.jsx(vs,{dataTest:`close-button-${n}`,variant:"textGray",endIcon:Kn.jsx(Ka,{icon:"ic:baseline-close",className:"text-2xl"}),onClick:e=>{i.onClose&&i.onClose(e,"escapeKeyDown")},className:"text-gray-800",children:e})})]}),t]}),bs=e=>Kn.jsx(k,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:"p-0 m-0 justify-center"},children:Kn.jsx("div",{className:Yt("flex w-full justify-end space-x-4 p-4",e.className),children:e.children})}),ws=({children:e,classes:t,className:n,...o})=>Kn.jsx(E,{...o,"data-test":"styled-dialog-content",classes:{...t,root:"p-4 mx-0 mt-0 w-full"},className:n,children:e}),xs=({children:e,...t})=>e?Kn.jsx(C,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:"space-x-3 p-4 text-xl font-semibold leading-tight"},children:e}):null,_s=e=>{var t,o,r,i,a,l,s,u,c,d,f,p,h;return Kn.jsx(O,{...e,classes:{...e.classes,root:Yt("border-solid text-sm font-normal px-3 py-2",n.count(e.children)>1?"items-start":"items-center",null==(t=e.classes)?void 0:t.root),action:Yt("p-0 pl-4",null==(o=e.classes)?void 0:o.action),icon:Yt("text-2xl text-inherit",null==(r=e.classes)?void 0:r.icon),filled:Yt("border",null==(i=e.classes)?void 0:i.filled),filledError:Yt("border-error-500 bg-error-100 text-error-700",null==(a=e.classes)?void 0:a.filledError),filledInfo:Yt("border-info-500 bg-info-300 text-info-700",null==(l=e.classes)?void 0:l.filledInfo),filledSuccess:Yt("border-success-500 bg-success-100 text-success-700",null==(s=e.classes)?void 0:s.filledSuccess),filledWarning:Yt("border-warning-500 bg-warning-100 text-warning-700",null==(u=e.classes)?void 0:u.filledWarning),outlined:Yt("border-2",null==(c=e.classes)?void 0:c.outlined),outlinedError:Yt("border-error-700 text-error-700",null==(d=e.classes)?void 0:d.outlinedError),outlinedInfo:Yt("border-info-700 text-info-700",null==(f=e.classes)?void 0:f.outlinedInfo),outlinedSuccess:Yt("border-success-700 text-success-700",null==(p=e.classes)?void 0:p.outlinedSuccess),outlinedWarning:Yt("border-warning-700 text-warning-700",null==(h=e.classes)?void 0:h.outlinedWarning)},iconMapping:{...e.iconMapping,success:Kn.jsx(Ka,{icon:"material-symbols:check-circle-outline",fontSize:"inherit"})}})},ks=e=>Kn.jsx(S,{...e,classes:{root:Yt("mb-0.5 font-semibold text-sm",e.className)}});let Es={data:""},Cs=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Es,Os=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ss=/\/\*[^]*?\*\/| +/g,Ns=/\n+/g,js=(e,t)=>{let n="",o="",r="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":o+="f"==i[1]?js(a,i):i+"{"+js(a,"k"==i[1]?"":t)+"}":"object"==typeof a?o+=js(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=js.p?js.p(i,a):i+":"+a+";")}return n+(t&&r?t+"{"+r+"}":r)+o},Ts={},Ps=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Ps(e[n]);return t}return e},Ms=(e,t,n,o,r)=>{let i=Ps(e),a=Ts[i]||(Ts[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!Ts[a]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=Os.exec(e.replace(Ss,""));)t[4]?o.shift():t[3]?(n=t[3].replace(Ns," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(Ns," ").trim();return o[0]})(e);Ts[a]=js(r?{["@keyframes "+a]:t}:t,n?"":"."+a)}let l=n&&Ts.g?Ts.g:null;return n&&(Ts.g=Ts[a]),s=Ts[a],u=t,c=o,(d=l)?u.data=u.data.replace(d,s):-1===u.data.indexOf(s)&&(u.data=c?s+u.data:u.data+s),a;var s,u,c,d},As=(e,t,n)=>e.reduce(((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":js(e,""):!1===e?"":e}return e+o+(i??"")}),"");function Rs(e){let t=this||{},n=e.call?e(t.p):e;return Ms(n.unshift?n.raw?As(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Cs(t.target),t.g,t.o,t.k)}function Ds(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Is(e,t,n){return t&&Ds(e.prototype,t),n&&Ds(e,n),e}function Ls(){return Ls=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ls.apply(this,arguments)}function qs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Fs(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function zs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Rs.bind({g:1}),Rs.bind({k:1});var Vs=function(){return""},Bs=t.createContext({enqueueSnackbar:Vs,closeSnackbar:Vs}),Hs="@media (max-width:599.95px)",Us="@media (min-width:600px)",Ws=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Gs=function(e){return""+Ws(e.vertical)+Ws(e.horizontal)},$s=function(e){return!!e||0===e},Ks="unmounted",Ys="exited",Zs="entering",Xs="entered",Qs="exiting",Js=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=Ys,n.appearStatus=Zs):o=Xs:o=t.unmountOnExit||t.mountOnEnter?Ks:Ys,n.state={status:o},n.nextCallback=null,n}qs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ks?{status:Ys}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Zs&&n!==Xs&&(t=Zs):(n===Zs||n===Xs)&&(t=Qs)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Zs?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Ys&&this.setState({status:Ks})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:Zs},(function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,(function(){t.safeSetState({status:Xs},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))}))}))):this.safeSetState({status:Xs},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Qs},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ys},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:Ys},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ks)return null;var t=this.props;return(0,t.children)(e,Fs(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},Is(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(t.Component);function eu(){}function tu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function nu(e,t){return c((function(){return null==e&&null==t?null:function(n){tu(e,n),tu(t,n)}}),[e,t])}function ou(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}Js.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:eu,onEntering:eu,onEntered:eu,onExit:eu,onExiting:eu,onExited:eu};var ru="cubic-bezier(0.4, 0, 0.2, 1)",iu="cubic-bezier(0.0, 0, 0.2, 1)",au="cubic-bezier(0.4, 0, 0.6, 1)",lu=function(e){e.scrollTop=e.scrollTop},su=function(e){return Math.round(e)+"ms"};function uu(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,a=void 0===i?ru:i,l=n.delay,s=void 0===l?0:l;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof r?r:su(r),n="string"==typeof s?s:su(s);return e+" "+t+" "+a+" "+n})).join(",")}function cu(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function du(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=cu(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");a=parseInt(s[4],10),l=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-l)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var fu=o((function(e,t){var n=e.children,o=e.direction,u=void 0===o?"down":o,c=e.in,d=e.style,f=e.timeout,p=void 0===f?0:f,h=e.onEnter,g=e.onEntered,m=e.onExit,v=e.onExited,y=Fs(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),b=r(null),w=nu(n.ref,b),x=nu(w,t),_=i((function(){b.current&&du(u,b.current)}),[u]);return a((function(){if(!c&&"down"!==u&&"right"!==u){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}((function(){b.current&&du(u,b.current)})),t=cu(b.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[u,c]),a((function(){c||_()}),[c,_]),l(Js,Object.assign({appear:!0,nodeRef:b,onEnter:function(e,t){du(u,e),lu(e),h&&h(e,t)},onEntered:g,onEntering:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||iu,n=ou({timeout:p,mode:"enter",style:Ls({},d,{transitionTimingFunction:t})});e.style.webkitTransition=uu("-webkit-transform",n),e.style.transition=uu("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||au,n=ou({timeout:p,mode:"exit",style:Ls({},d,{transitionTimingFunction:t})});e.style.webkitTransition=uu("-webkit-transform",n),e.style.transition=uu("transform",n),du(u,e),m&&m(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",v&&v(e)},in:c,timeout:p},y),(function(e,t){return s(n,Ls({ref:x,style:Ls({visibility:"exited"!==e||c?void 0:"hidden"},d,{},n.props.style)},t))}))}));fu.displayName="Slide";var pu=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},hu=function(){return t.createElement(pu,null,t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},gu=function(){return t.createElement(pu,null,t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},mu=function(){return t.createElement(pu,null,t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},vu=function(){return t.createElement(pu,null,t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},yu={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:t.createElement(hu,null),warning:t.createElement(gu,null),error:t.createElement(mu,null),info:t.createElement(vu,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:fu,transitionDuration:{enter:225,exit:195}},bu=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?Ls({},yu[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:yu.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?Ls({},yu.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?Ls({},yu.transitionDuration,{},t):yu.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||yu[n]}};function wu(e){return Object.entries(e).reduce((function(e,t){var n,o=t[0],r=t[1];return Ls({},e,((n={})[o]=Rs(r),n))}),{})}var xu="notistack-SnackbarContainer",_u="notistack-Snackbar",ku="notistack-CollapseWrapper",Eu="notistack-MuiContent",Cu=function(e){return"notistack-MuiContent-"+e},Ou=wu({root:{height:0},entered:{height:"auto"}}),Su="0px",Nu=o((function(e,t){var n=e.children,o=e.in,i=e.onExited,a=r(null),s=r(null),u=nu(t,s),c=function(){return a.current?a.current.clientHeight:0};return l(Js,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=Su},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=ou({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=c()+"px"},onExited:i,onExiting:function(e){lu(e);var t=ou({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=Su,e.style.transitionTimingFunction=o||""},nodeRef:s,timeout:175},(function(e,t){return l("div",Object.assign({ref:u,className:Yt(Ou.root,"entered"===e&&Ou.entered),style:Ls({pointerEvents:"all",overflow:"hidden",minHeight:Su,transition:uu("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),l("div",{ref:a,className:ku,style:{display:"flex",width:"100%"}},n))}))}));Nu.displayName="Collapse";var ju={right:"left",left:"right",bottom:"up",top:"down"},Tu=function(e){return"center"!==e.horizontal?ju[e.horizontal]:ju[e.vertical]},Pu=function(e){return"anchorOrigin"+Gs(e)},Mu=function(){};function Au(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var a=[].concat(r);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),Mu)}var Ru=typeof window<"u"?f:a;function Du(e){var t=r(e);return Ru((function(){t.current=e})),i((function(){return t.current.apply(void 0,arguments)}),[])}var Iu=o((function(e,t){var n=e.children,o=e.className,s=e.autoHideDuration,u=e.disableWindowBlurListener,c=void 0!==u&&u,d=e.onClose,f=e.id,p=e.open,h=e.SnackbarProps,g=void 0===h?{}:h,m=r(),v=Du((function(){d&&d.apply(void 0,arguments)})),y=Du((function(e){!d||null==e||(m.current&&clearTimeout(m.current),m.current=setTimeout((function(){v(null,"timeout",f)}),e))}));a((function(){return p&&y(s),function(){m.current&&clearTimeout(m.current)}}),[p,s,y]);var b=function(){m.current&&clearTimeout(m.current)},w=i((function(){null!=s&&y(.5*s)}),[s,y]);return a((function(){if(!c&&p)return window.addEventListener("focus",w),window.addEventListener("blur",b),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",b)}}),[c,w,p]),l("div",Object.assign({ref:t},g,{className:Yt(_u,o),onMouseEnter:function(e){g.onMouseEnter&&g.onMouseEnter(e),b()},onMouseLeave:function(e){g.onMouseLeave&&g.onMouseLeave(e),w()}}),n)}));Iu.displayName="Snackbar";var Lu,qu=wu({root:(Lu={display:"flex",flexWrap:"wrap",flexGrow:1},Lu[Us]={flexGrow:"initial",minWidth:"288px"},Lu)}),Fu=o((function(e,n){var o=e.className,r=Fs(e,["className"]);return t.createElement("div",Object.assign({ref:n,className:Yt(qu.root,o)},r))}));Fu.displayName="SnackbarContent";var zu=wu({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Vu="notistack-snackbar",Bu=o((function(e,n){var o=e.id,r=e.message,i=e.action,a=e.iconVariant,l=e.variant,s=e.hideIconVariant,u=e.style,c=e.className,d=a[l],f=i;return"function"==typeof f&&(f=f(o)),t.createElement(Fu,{ref:n,role:"alert","aria-describedby":Vu,style:u,className:Yt(Eu,Cu(l),zu.root,zu[l],c,!s&&d&&zu.lessPadding)},t.createElement("div",{id:Vu,className:zu.message},s?null:d,r),f&&t.createElement("div",{className:zu.action},f))}));Bu.displayName="MaterialDesignContent";var Hu,Uu,Wu,Gu,$u,Ku,Yu,Zu=h(Bu),Xu=wu({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Qu=function(e){var n=r(),o=p(!0),l=o[0],s=o[1],u=Au([e.snack.onClose,e.onClose]),d=i((function(){n.current=setTimeout((function(){s((function(e){return!e}))}),125)}),[]);a((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var f=e.snack,h=e.classes,g=e.Component,m=void 0===g?Zu:g,v=c((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var o;return Ls({},t,((o={})[n]=e[n],o))}),{})}(h)}),[h]),y=f.open,b=f.SnackbarProps,w=f.TransitionComponent,x=f.TransitionProps,_=f.transitionDuration,k=f.disableWindowBlurListener,E=f.content,C=Fs(f,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=Ls({direction:Tu(C.anchorOrigin),timeout:_},x),S=E;"function"==typeof S&&(S=S(C.id,C.message));var N=["onEnter","onEntered","onExit","onExited"].reduce((function(t,n){var o;return Ls({},t,((o={})[n]=Au([e.snack[n],e[n]],C.id),o))}),{});return t.createElement(Nu,{in:l,onExited:N.onExited},t.createElement(Iu,{open:y,id:C.id,disableWindowBlurListener:k,autoHideDuration:C.autoHideDuration,className:Yt(Xu.wrappedRoot,v.root,v[Pu(C.anchorOrigin)]),SnackbarProps:b,onClose:u},t.createElement(w,Object.assign({},O,{appear:!0,in:y,onExit:N.onExit,onExited:d,onEnter:N.onEnter,onEntered:Au([N.onEntered,function(){e.snack.requestClose&&u(null,"instructed",e.snack.id)}],C.id)}),S||t.createElement(m,Object.assign({},C)))))},Ju={default:20,dense:4},ec={default:6,dense:2},tc="."+ku,nc=wu({root:(Hu={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:uu(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Hu[tc]={padding:ec.default+"px 0px",transition:"padding 300ms ease 0ms"},Hu.maxWidth="calc(100% - "+2*Ju.default+"px)",Hu[Hs]={width:"100%",maxWidth:"calc(100% - 32px)"},Hu),rootDense:(Uu={},Uu[tc]={padding:ec.dense+"px 0px"},Uu),top:{top:Ju.default-ec.default+"px",flexDirection:"column"},bottom:{bottom:Ju.default-ec.default+"px",flexDirection:"column-reverse"},left:(Wu={left:Ju.default+"px"},Wu[Us]={alignItems:"flex-start"},Wu[Hs]={left:"16px"},Wu),right:(Gu={right:Ju.default+"px"},Gu[Us]={alignItems:"flex-end"},Gu[Hs]={right:"16px"},Gu),center:($u={left:"50%",transform:"translateX(-50%)"},$u[Us]={alignItems:"center"},$u)}),oc=h((function(e){var n=e.classes,o=void 0===n?{}:n,r=e.anchorOrigin,i=e.dense,a=e.children,l=Yt(xu,nc[r.vertical],nc[r.horizontal],nc.root,o.containerRoot,o["containerAnchorOrigin"+Gs(r)],i&&nc.rootDense);return t.createElement("div",{className:l},a)})),rc="production"!==process.env.NODE_ENV,ic={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},ac=function(e){return!("string"==typeof e||g(e))},lc=function(e){function n(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=ac(e)?e:t,r=ac(e)?e.message:e,i=o.key,a=o.preventDuplicate,l=Fs(o,["key","preventDuplicate"]),s=$s(i),u=s?i:(new Date).getTime()+Math.random(),c=bu(l,n.props),d=Ls({id:u},l,{message:r,open:!0,entered:!1,requestClose:!1,persist:c("persist"),action:c("action"),content:c("content"),variant:c("variant"),anchorOrigin:c("anchorOrigin"),disableWindowBlurListener:c("disableWindowBlurListener"),autoHideDuration:c("autoHideDuration"),hideIconVariant:c("hideIconVariant"),TransitionComponent:c("TransitionComponent"),transitionDuration:c("transitionDuration"),TransitionProps:c("TransitionProps",!0),iconVariant:c("iconVariant",!0),style:c("style",!0),SnackbarProps:c("SnackbarProps",!0),className:Yt(n.props.className,l.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState((function(e){if(void 0===a&&n.props.preventDuplicate||a){var t=function(e){return s?e.id===u:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(Ls({},e,{queue:[].concat(e.queue,[d])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?Ls({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,o=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&("production"!==process.env.NODE_ENV&&function(e){if(rc){var t=ic[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}("NO_PERSIST_ALL"),o=!0);var r=e.snacks.map((function(e){return t||e.persist&&!o?Ls({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),Ls({},e,{open:!1})):Ls({},e,{requestClose:!0}))}));return Ls({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!$s(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===o?Ls({},e,{entered:!0}):Ls({},e)}))}}))},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return r||e.id===o?e.entered?Ls({},e,{open:!1}):Ls({},e,{requestClose:!0}):Ls({},e)})),queue:n.filter((function(e){return e.id!==o}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));$s(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!$s(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var o=n.processQueue(Ls({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===o.queue.length?o:n.handleDismissOldest(o)}))},Ku=n.enqueueSnackbar,Yu=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(zs(n)),closeSnackbar:n.closeSnackbar.bind(zs(n))}},n}return qs(n,e),n.prototype.render=function(){var e=this,n=this.state.contextValue,o=this.props,r=o.domRoot,i=o.children,a=o.dense,l=void 0!==a&&a,s=o.Components,u=void 0===s?{}:s,c=o.classes,d=this.state.snacks.reduce((function(e,t){var n,o=Gs(t.anchorOrigin),r=e[o]||[];return Ls({},e,((n={})[o]=[].concat(r,[t]),n))}),{}),f=Object.keys(d).map((function(n){var o=d[n],r=o[0];return t.createElement(oc,{key:n,dense:l,anchorOrigin:r.anchorOrigin,classes:c},o.map((function(n){return t.createElement(Qu,{key:n.id,snack:n,classes:c,Component:u[n.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:Au([e.handleExitedSnack,e.props.onExited],n.id),onEntered:Au([e.handleEnteredSnack,e.props.onEntered],n.id)})})))}));return t.createElement(Bs.Provider,{value:n},i,r?ge(f,r):f)},Is(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||yu.maxSnack}}]),n}(d),sc=function(){return u(Bs)};const uc=o(((e,t)=>{const{id:n,message:o,severity:r,alertClassName:i,alertVariant:a,closeButton:l,...s}=me(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:u}=sc();return Kn.jsx(Fu,{ref:t,role:"alert",...s,children:Kn.jsx(_s,{className:i,severity:r,variant:a,onClose:l?()=>u(n):void 0,children:o})})})),cc=o(((e,t)=>{const{id:n,message:o,closeButton:r,type:i,...a}=me(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:l}=sc(),s="loading"===i;return Kn.jsx(Fu,{ref:t,role:"alert",...a,children:Kn.jsxs("div",{className:Yt("flex items-center justify-center w-full",s&&"pl-6",r&&"pr-6"),children:["loading"===i?Kn.jsx(jl,{width:20,height:20,className:"left-2 absolute top-1/2 -translate-y-1/2"}):null,Kn.jsx("div",{children:o}),r?Kn.jsx(Ll,{onClick:()=>l(n),width:20,height:20,className:"right-2 absolute top-1/2 -translate-y-1/2"}):null]})})})),dc=e=>Kn.jsx(lc,{...e,Components:{alert:uc,info:cc},autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"},domRoot:document.body,maxSnack:3,classes:{root:"min-w-fit"},className:"w-fit min-w-fit max-w-fit ",children:e.children}),fc=({children:e,...t})=>Kn.jsx(N,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&Kn.jsx("div",{children:e})});function pc(e){Ku({message:e,variant:"alert",severity:"error",alertClassName:"min-w-[350px] max-w-[350px]",alertVariant:"filled",closeButton:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"}})}function hc(e){Ku({variant:"alert",message:e,severity:"success",alertClassName:"min-w-[350px] bg-theta-700 flex w-full text-center justify-center items-center !text-[color:var(--colors-link-text-standart)]",alertVariant:"filled",autoHideDuration:6e3,closeButton:!0,anchorOrigin:{vertical:"top",horizontal:"right"}})}function gc(e,t){return Ku({variant:"info",message:e,autoHideDuration:6e3,className:"bg-gama-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Yu(null==t?void 0:t.id)}const mc={info:(e,t)=>gc(e,t),error:(e,t)=>function(e,t){return Ku({variant:"info",message:e,autoHideDuration:6e3,className:"bg-red-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Yu(null==t?void 0:t.id)}(e,t),loading:(e,t)=>gc(e,{...t,type:"loading"})},vc=({dataTest:e,...t})=>Kn.jsx(j,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),yc=({allowClear:e,onClear:t,readOnly:n,disabled:o,dataTest:r,...i})=>Kn.jsx(T,{...i,"data-test":r,disabled:o||n,type:i.type||"mui-input",InputProps:e&&i.value?{endAdornment:Kn.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Kn.jsx(Ll,{width:18,height:18})})}:i.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"}},...i.sx}}),bc={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},wc=({id:e,variant:t="active",label:n="",labelClassName:o="",description:i="",value:l="",minRows:s=3,maxRows:u=1/0,disabled:c,error:d,errorMessage:h,containerClassName:g="",className:m="",maxLength:v=1/0,counter:y,refLink:b,dataTest:w,counterLimit:x,..._})=>{const k=r(null),E=b||k,C=!(!y||!x),[O,S]=p(!1);a((()=>{S(!0)}),[]),((e,t,n,o,r,i)=>{f((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,r=e.scrollHeight-24;Math.ceil(r/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,r,i])})(E.current,l,s,u,O,C),u<s&&(s=u);const[N,j]=p(l.length);a((()=>{j(l.length)}),[l]);const T=d?"error":"active",P=d?"error":c?"disabled":"active";return Kn.jsxs("div",{className:`flex flex-col gap-1 relative ${g}`,"data-test":w,children:[Kn.jsx("label",{htmlFor:e,className:`${bc.label} ${bc[P]} ${o}`,children:n}),Kn.jsx("span",{className:`${bc.description} ${bc[P]}`,children:d?h:i}),"view_only"===t?Kn.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:l}):"not_editable"===t?Kn.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:l}):Kn.jsx("textarea",{..._,id:e,ref:E,className:`${bc.textarea} ${bc[T]} ${m} ${C?"pb-[32px]":""}`,wrap:"soft",value:l,disabled:c,maxLength:v}),C&&Kn.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[N,"/",x]})]})};var xc=function(){this.__data__=[],this.size=0};var _c=function(e,t){return e===t||e!=e&&t!=t},kc=_c;var Ec=function(e,t){for(var n=e.length;n--;)if(kc(e[n][0],t))return n;return-1},Cc=Ec,Oc=Array.prototype.splice;var Sc=function(e){var t=this.__data__,n=Cc(t,e);return!(n<0)&&(n==t.length-1?t.pop():Oc.call(t,n,1),--this.size,!0)},Nc=Ec;var jc=function(e){var t=this.__data__,n=Nc(t,e);return n<0?void 0:t[n][1]},Tc=Ec;var Pc=function(e){return Tc(this.__data__,e)>-1},Mc=Ec;var Ac=function(e,t){var n=this.__data__,o=Mc(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Rc=xc,Dc=Sc,Ic=jc,Lc=Pc,qc=Ac;function Fc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Fc.prototype.clear=Rc,Fc.prototype.delete=Dc,Fc.prototype.get=Ic,Fc.prototype.has=Lc,Fc.prototype.set=qc;var zc=Fc,Vc=zc;var Bc=function(){this.__data__=new Vc,this.size=0};var Hc=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Uc=function(e){return this.__data__.get(e)};var Wc=function(e){return this.__data__.has(e)},Gc="object"==typeof Vn&&Vn&&Vn.Object===Object&&Vn,$c=Gc,Kc="object"==typeof self&&self&&self.Object===Object&&self,Yc=$c||Kc||Function("return this")(),Zc=Yc.Symbol,Xc=Zc,Qc=Object.prototype,Jc=Qc.hasOwnProperty,ed=Qc.toString,td=Xc?Xc.toStringTag:void 0;var nd=function(e){var t=Jc.call(e,td),n=e[td];try{e[td]=void 0;var o=!0}catch{}var r=ed.call(e);return o&&(t?e[td]=n:delete e[td]),r},od=Object.prototype.toString;var rd=function(e){return od.call(e)},id=nd,ad=rd,ld=Zc?Zc.toStringTag:void 0;var sd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ld&&ld in Object(e)?id(e):ad(e)};var ud=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},cd=sd,dd=ud;var fd=function(e){if(!dd(e))return!1;var t=cd(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},pd=Yc["__core-js_shared__"],hd=function(){var e=/[^.]+$/.exec(pd&&pd.keys&&pd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var gd=function(e){return!!hd&&hd in e},md=Function.prototype.toString;var vd=function(e){if(null!=e){try{return md.call(e)}catch{}try{return e+""}catch{}}return""},yd=fd,bd=gd,wd=ud,xd=vd,_d=/^\[object .+?Constructor\]$/,kd=Function.prototype,Ed=Object.prototype,Cd=kd.toString,Od=Ed.hasOwnProperty,Sd=RegExp("^"+Cd.call(Od).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Nd=function(e){return!(!wd(e)||bd(e))&&(yd(e)?Sd:_d).test(xd(e))};var jd=function(e,t){return null==e?void 0:e[t]},Td=Nd,Pd=jd;var Md=function(e,t){var n=Pd(e,t);return Td(n)?n:void 0},Ad=Md(Yc,"Map"),Rd=Md(Object,"create"),Dd=Rd;var Id=function(){this.__data__=Dd?Dd(null):{},this.size=0};var Ld=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qd=Rd,Fd=Object.prototype.hasOwnProperty;var zd=function(e){var t=this.__data__;if(qd){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fd.call(t,e)?t[e]:void 0},Vd=Rd,Bd=Object.prototype.hasOwnProperty;var Hd=function(e){var t=this.__data__;return Vd?void 0!==t[e]:Bd.call(t,e)},Ud=Rd;var Wd=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ud&&void 0===t?"__lodash_hash_undefined__":t,this},Gd=Id,$d=Ld,Kd=zd,Yd=Hd,Zd=Wd;function Xd(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Xd.prototype.clear=Gd,Xd.prototype.delete=$d,Xd.prototype.get=Kd,Xd.prototype.has=Yd,Xd.prototype.set=Zd;var Qd=Xd,Jd=zc,ef=Ad;var tf=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},nf=tf;var of=function(e,t){var n=e.__data__;return nf(t)?n["string"==typeof t?"string":"hash"]:n.map},rf=of;var af=function(e){var t=rf(this,e).delete(e);return this.size-=t?1:0,t},lf=of;var sf=function(e){return lf(this,e).get(e)},uf=of;var cf=function(e){return uf(this,e).has(e)},df=of;var ff=function(e,t){var n=df(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},pf=function(){this.size=0,this.__data__={hash:new Qd,map:new(ef||Jd),string:new Qd}},hf=af,gf=sf,mf=cf,vf=ff;function yf(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}yf.prototype.clear=pf,yf.prototype.delete=hf,yf.prototype.get=gf,yf.prototype.has=mf,yf.prototype.set=vf;var bf=yf,wf=zc,xf=Ad,_f=bf;var kf=function(e,t){var n=this.__data__;if(n instanceof wf){var o=n.__data__;if(!xf||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new _f(o)}return n.set(e,t),this.size=n.size,this},Ef=zc,Cf=Bc,Of=Hc,Sf=Uc,Nf=Wc,jf=kf;function Tf(e){var t=this.__data__=new Ef(e);this.size=t.size}Tf.prototype.clear=Cf,Tf.prototype.delete=Of,Tf.prototype.get=Sf,Tf.prototype.has=Nf,Tf.prototype.set=jf;var Pf=Tf;var Mf=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Af=function(e){return this.__data__.has(e)},Rf=bf,Df=Mf,If=Af;function Lf(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Rf;++t<n;)this.add(e[t])}Lf.prototype.add=Lf.prototype.push=Df,Lf.prototype.has=If;var qf=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var Ff=function(e,t){return e.has(t)},zf=Lf,Vf=qf,Bf=Ff;var Hf=function(e,t,n,o,r,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new zf:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(o)var m=a?o(g,h,d,t,e,i):o(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!Vf(t,(function(e,t){if(!Bf(p,t)&&(h===e||r(h,e,n,o,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!r(h,g,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Uf=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var Wf=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Gf=Yc.Uint8Array,$f=_c,Kf=Hf,Yf=Uf,Zf=Wf,Xf=Zc?Zc.prototype:void 0,Qf=Xf?Xf.valueOf:void 0;var Jf=function(e,t,n,o,r,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Gf(e),new Gf(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $f(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Yf;case"[object Set]":var s=1&o;if(l||(l=Zf),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;o|=2,a.set(e,t);var c=Kf(l(e),l(t),o,r,i,a);return a.delete(e),c;case"[object Symbol]":if(Qf)return Qf.call(e)==Qf.call(t)}return!1};var ep=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},tp=Array.isArray,np=ep,op=tp;var rp=function(e,t,n){var o=t(e);return op(e)?o:np(o,n(e))};var ip=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};var ap=ip,lp=function(){return[]},sp=Object.prototype.propertyIsEnumerable,up=Object.getOwnPropertySymbols,cp=up?function(e){return null==e?[]:(e=Object(e),ap(up(e),(function(t){return sp.call(e,t)})))}:lp,dp=cp;var fp=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var pp=function(e){return null!=e&&"object"==typeof e},hp=sd,gp=pp;var mp=function(e){return gp(e)&&"[object Arguments]"==hp(e)},vp=mp,yp=pp,bp=Object.prototype,wp=bp.hasOwnProperty,xp=bp.propertyIsEnumerable,_p=vp(function(){return arguments}())?vp:function(e){return yp(e)&&wp.call(e,"callee")&&!xp.call(e,"callee")},kp=_p,Ep={exports:{}};var Cp=function(){return!1};!function(e,t){var n=Yc,o=Cp,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l}(Ep,Ep.exports);var Op=Ep.exports,Sp=/^(?:0|[1-9]\d*)$/;var Np=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&Sp.test(e))&&e>-1&&e%1==0&&e<t};var jp=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Tp=sd,Pp=jp,Mp=pp,Ap={};Ap["[object Float32Array]"]=Ap["[object Float64Array]"]=Ap["[object Int8Array]"]=Ap["[object Int16Array]"]=Ap["[object Int32Array]"]=Ap["[object Uint8Array]"]=Ap["[object Uint8ClampedArray]"]=Ap["[object Uint16Array]"]=Ap["[object Uint32Array]"]=!0,Ap["[object Arguments]"]=Ap["[object Array]"]=Ap["[object ArrayBuffer]"]=Ap["[object Boolean]"]=Ap["[object DataView]"]=Ap["[object Date]"]=Ap["[object Error]"]=Ap["[object Function]"]=Ap["[object Map]"]=Ap["[object Number]"]=Ap["[object Object]"]=Ap["[object RegExp]"]=Ap["[object Set]"]=Ap["[object String]"]=Ap["[object WeakMap]"]=!1;var Rp=function(e){return Mp(e)&&Pp(e.length)&&!!Ap[Tp(e)]};var Dp=function(e){return function(t){return e(t)}},Ip={exports:{}};!function(e,t){var n=Gc,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,a=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a}(Ip,Ip.exports);var Lp=Ip.exports,qp=Rp,Fp=Dp,zp=Lp&&Lp.isTypedArray,Vp=zp?Fp(zp):qp,Bp=fp,Hp=kp,Up=tp,Wp=Op,Gp=Np,$p=Vp,Kp=Object.prototype.hasOwnProperty;var Yp=function(e,t){var n=Up(e),o=!n&&Hp(e),r=!n&&!o&&Wp(e),i=!n&&!o&&!r&&$p(e),a=n||o||r||i,l=a?Bp(e.length,String):[],s=l.length;for(var u in e)(t||Kp.call(e,u))&&(!a||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Gp(u,s)))&&l.push(u);return l},Zp=Object.prototype;var Xp=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Zp)};var Qp=function(e,t){return function(n){return e(t(n))}},Jp=Qp(Object.keys,Object),eh=Xp,th=Jp,nh=Object.prototype.hasOwnProperty;var oh=function(e){if(!eh(e))return th(e);var t=[];for(var n in Object(e))nh.call(e,n)&&"constructor"!=n&&t.push(n);return t},rh=fd,ih=jp;var ah=function(e){return null!=e&&ih(e.length)&&!rh(e)},lh=Yp,sh=oh,uh=ah;var ch=function(e){return uh(e)?lh(e):sh(e)},dh=rp,fh=dp,ph=ch;var hh=function(e){return dh(e,ph,fh)},gh=hh,mh=Object.prototype.hasOwnProperty;var vh=function(e,t,n,o,r,i){var a=1&n,l=gh(e),s=l.length;if(s!=gh(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:mh.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<s;){var g=e[c=l[u]],m=t[c];if(o)var v=a?o(m,g,c,t,e,i):o(g,m,c,e,t,i);if(!(void 0===v?g===m||r(g,m,n,o,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p},yh=Md(Yc,"DataView"),bh=Ad,wh=Md(Yc,"Promise"),xh=Md(Yc,"Set"),_h=Md(Yc,"WeakMap"),kh=sd,Eh=vd,Ch="[object Map]",Oh="[object Promise]",Sh="[object Set]",Nh="[object WeakMap]",jh="[object DataView]",Th=Eh(yh),Ph=Eh(bh),Mh=Eh(wh),Ah=Eh(xh),Rh=Eh(_h),Dh=kh;(yh&&Dh(new yh(new ArrayBuffer(1)))!=jh||bh&&Dh(new bh)!=Ch||wh&&Dh(wh.resolve())!=Oh||xh&&Dh(new xh)!=Sh||_h&&Dh(new _h)!=Nh)&&(Dh=function(e){var t=kh(e),n="[object Object]"==t?e.constructor:void 0,o=n?Eh(n):"";if(o)switch(o){case Th:return jh;case Ph:return Ch;case Mh:return Oh;case Ah:return Sh;case Rh:return Nh}return t});var Ih=Pf,Lh=Hf,qh=Jf,Fh=vh,zh=Dh,Vh=tp,Bh=Op,Hh=Vp,Uh="[object Arguments]",Wh="[object Array]",Gh="[object Object]",$h=Object.prototype.hasOwnProperty;var Kh=function(e,t,n,o,r,i){var a=Vh(e),l=Vh(t),s=a?Wh:zh(e),u=l?Wh:zh(t),c=(s=s==Uh?Gh:s)==Gh,d=(u=u==Uh?Gh:u)==Gh,f=s==u;if(f&&Bh(e)){if(!Bh(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new Ih),a||Hh(e)?Lh(e,t,n,o,r,i):qh(e,t,s,n,o,r,i);if(!(1&n)){var p=c&&$h.call(e,"__wrapped__"),h=d&&$h.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new Ih),r(g,m,n,o,i)}}return!!f&&(i||(i=new Ih),Fh(e,t,n,o,r,i))},Yh=Kh,Zh=pp;var Xh=function e(t,n,o,r,i){return t===n||(null==t||null==n||!Zh(t)&&!Zh(n)?t!=t&&n!=n:Yh(t,n,o,r,e,i))},Qh=Xh;var Jh=function(e,t){return Qh(e,t)},eg={exports:{}};
|
|
20
20
|
/*!
|
|
21
21
|
* Quill Editor v1.3.7
|
|
22
22
|
* https://quilljs.com/
|
|
23
23
|
* Copyright (c) 2014, Jason Chen
|
|
24
24
|
* Copyright (c) 2013, salesforce.com
|
|
25
|
-
*/typeof self<"u"&&self;var zf=Ff.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),d=n(12),f=n(32),p=n(33),h=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var a,l={},s={},u={},c={};function d(e,t){var n=p(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function p(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=c[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=c.block:e&a.LEVEL&a.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?l[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=d,t.find=f,t.query=p,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=a.length(i)}return new s(n)},s.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),o.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=c:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&r(u.ops[u.ops.length-1],p)){var g=new s(t.rest());return u.concat(g).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&u.push(f)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var l=c.next(n),s=d.next(n);r(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),l=n.next(i),u=o.next(i);if(l.delete)continue;u.delete?r.push(u):r.retain(i,a.attributes.transform(l.attributes,u.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(l(r)||(i=a(r)))?(i?(i=!1,c=o&&a(o)?o:[]):c=o&&l(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=d(n(3)),a=d(n(2)),l=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=1,m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))}),new a.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(l.default.query(o,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-g)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:y(e.parent,t)}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var a=m(n(2)),l=m(n(14)),s=m(n(8)),u=m(n(9)),c=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),g=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;_.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return _.call(this,(function(){var o=n.getSelection(!0),r=new a.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatLine(e,t,l)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatText(e,t,l)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return _.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,0,n,o,i),u=r(s,4);return e=u[0],l=u[2],i=u[3],_.call(this,(function(){return a.editor.insertText(e,t,l)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,o),a=r(i,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function _(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=E(r,l,t):0!==o&&(r=E(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),l.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,l,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return l}function k(e,t,n,r,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||s.default.sources.API]}function E(e,t,n,o){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],l=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":g.default},t.expandConfig=x,t.overload=k,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&a.default.query(o,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);d.allowedChildren=[d,a.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(0)).default.Text);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){l(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){r=e},t.default=a},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(l(e)||l(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),a(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),f=r(t)}catch{return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=d(n(2)),l=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);g.blotName="code",g.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),a=o(r,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=l.default.query(o,l.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,u=this.isolate(a,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-a+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=g,t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=v(n(2)),l=v(n(20)),s=v(n(0)),u=v(n(13)),c=v(n(24)),d=n(4),f=v(d),p=v(n(16)),h=v(n(21)),g=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,x=function(){function e(t){b(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=k(e)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=r(h,2),v=g[0],y=g[1],b=(0,m.default)({},(0,d.bubbleFormats)(v));if(v instanceof f.default){var w=v.descendant(s.default.Leaf,y),x=r(w,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(x))}c=l.default.attributes.diff(b,c)||{}}else if("object"===o(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,r,o[r])}else t.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(y({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==f.default.blotName||e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),l=i[0],s=i[1],c=0,d=new a.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),l=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new a.default).insert(u),p=(new a.default).insert(r.value());e=(new a.default).retain(l).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,g.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function k(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new a.default)}t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),a=u(n(21)),l=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;o.setNativeRange(r,i,a,l)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),a=o(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var f=this.scroll.leaf(e+t),p=o(f,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),g=o(h,2);return r=g[0],s=g[1],d.setEnd(r,s),d.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),m="right"),v=d.getBoundingClientRect()):(v=l.domNode.getBoundingClientRect(),s>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],a=n[1],l=i.default.find(r,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(r,a)})),a=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(r)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a=void 0,l=t.scroll.leaf(e),s=o(l,2),u=s[0],c=s[1],d=u.position(c,0!==n),f=o(d,2);a=f[0],c=f[1],r.push(a,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),a=o(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));l=o(s,1)[0]}if(null!=a&&null!=l){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,o),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function g(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=a})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],a=[[this,e]];return r instanceof t?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(a.default);function u(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch{t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(l.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,a,l,s,c){"object"==typeof a&&(l=a.depth,s=a.prototype,c=a.includeNonEnumerable,a=a.circular);var d=[],f=[],p=typeof Buffer<"u";function h(i,l){if(null===i)return null;if(0===l)return i;var g,m;if("object"!=typeof i)return i;if(e(i,t))g=new t;else if(e(i,n))g=new n;else if(e(i,o))g=new o((function(e,t){i.then((function(t){e(h(t,l-1))}),(function(e){t(h(e,l-1))}))}));else if(r.__isArray(i))g=[];else if(r.__isRegExp(i))g=new RegExp(i.source,u(i)),i.lastIndex&&(g.lastIndex=i.lastIndex);else if(r.__isDate(i))g=new Date(i.getTime());else{if(p&&Buffer.isBuffer(i))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(g),g;e(i,Error)?g=Object.create(i):typeof s>"u"?(m=Object.getPrototypeOf(i),g=Object.create(m)):(g=Object.create(s),m=s)}if(a){var v=d.indexOf(i);if(-1!=v)return f[v];d.push(i),f.push(g)}for(var y in e(i,t)&&i.forEach((function(e,t){var n=h(t,l-1),o=h(e,l-1);g.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,l-1);g.add(t)})),i){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),(!b||null!=b.set)&&(g[y]=h(i[y],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(y=0;y<w.length;y++){var x=w[y];(k=Object.getOwnPropertyDescriptor(i,x))&&!k.enumerable&&!c||(g[x]=h(i[x],l-1),k.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(c){var _=Object.getOwnPropertyNames(i);for(y=0;y<_.length;y++){var k,E=_[y];(k=Object.getOwnPropertyDescriptor(i,E))&&k.enumerable||(g[E]=h(i[E],l-1),Object.defineProperty(g,E,{enumerable:!1}))}}return g}return typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0),h(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){return"object"==typeof e&&"[object Date]"===i(e)}function l(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=a,r.__isArray=l,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=p(n(0)),l=p(n(8)),s=n(4),u=p(s),c=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e){return e instanceof u.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return m(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),a=o(r,2),l=a[0],u=a[1],f=this.line(e+n),p=o(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&u>0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var m=p.children.head instanceof c.default?null:p.children.head;l.moveChildren(p,m),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var l=a.default.create(n,o);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(v,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){v(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,f.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=g(n(21)),l=g(n(11)),s=g(n(3)),u=g(n(2)),c=g(n(20)),d=g(n(0)),f=g(n(5)),p=g(n(10)),h=g(n(9));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,p.default)("quill:keyboard"),x=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_=function(e){function t(e,n){v(this,t);var o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},S),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0},C)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},C)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},O),o.addBinding({key:t.keys.DELETE},{collapsed:!1},O),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),o.listen(),o}return b(t,e),i(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=T(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),f=c[0],p=c[1],h=e.quill.getLeaf(s.index),g=r(h,2),m=g[0],v=g[1],y=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),b=r(y,2),w=b[0],x=b[1],_=m instanceof d.default.Text?m.value().slice(0,v):"",k=w instanceof d.default.Text?w.value().slice(x):"",E={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:_,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed||null!=t.empty&&t.empty!==E.empty||null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,s,E)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function k(e,t){var n,o=e===_.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},o,/^$/),m(n,"handler",(function(n){var o=n.index;e===_.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===_.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=r(a,1)[0];if(null!=l&&l.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function C(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(e.index),l=r(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=l.formats(),p=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,f.default.sources.USER)}}function O(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function S(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function N(e){return{key:_.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,a=this.quill.scroll.descendant(n,o),l=r(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),g=s.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(t,r){e?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(o,i,f.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=_.keys[e.key.toUpperCase()])e.key=_.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[x]=e.shortKey,delete e.shortKey),e}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:_.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:_.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:_.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(0,s.default)({},o.formats(),{list:"checked"}),l=(new u.default).retain(e.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],a=o[1],l=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":k(_.keys.LEFT,!1),"embed left shift":k(_.keys.LEFT,!0),"embed right":k(_.keys.RIGHT,!1),"embed right shift":k(_.keys.RIGHT,!0)}},t.default=_,t.SHORTKEY=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=s(n(0)),l=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),f=o(d,2);return i=f[0],s=f[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\ufeff",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),f=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),a=v(i),l=v(n(16)),s=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),f=v(n(22)),p=v(n(7)),h=v(n(55)),g=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":m.default}),o.default.register(a.default,l.default,u.default,d.default,f.default,p.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",f=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),l=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),l=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),f=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),p=new f("font","font-family",c);t.FontStyle=p,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){l(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=f(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function f(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=h(n(3)),a=h(n(2)),l=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],_=["small",!1,"large","huge"],k=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return v(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&O(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&O(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?O(e,w):e.classList.contains("ql-header")?O(e,x):e.classList.contains("ql-size")&&O(e,_)),new f.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(l.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(o.index).delete(o.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(o.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return v(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,l.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=C(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",l.default.sources.USER),this.quill.setSelection(o+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function C(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=E,t.default=k},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],a=e-r[1],l=this.iterator(i);(o=l())&&a<e+t;){var s=o.length();e>a?n(o,e-a,Math.min(t,a+s-e)):n(o,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null==e.domNode[a.DATA_KEY]||null==e.domNode[a.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[a.DATA_KEY]||e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1);function l(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&l(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=a.query(o,a.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=a.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var l=e.substring(e.length-o),s=a(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),l&&s.push([r,l]),f(s),null!=n&&(s=g(s,n)),s=m(s)}function a(e,t){var a;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return a=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[o,t]];var f=d(e,t);if(f){var p=f[0],h=f[1],g=f[2],m=f[3],v=f[4],y=i(p,g),b=i(h,m);return y.concat([[r,v]],b)}return l(e,t)}function l(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,u=2*a,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[l+1]=0,d[l+1]=0;for(var p=r-i,h=p%2!=0,g=0,m=0,v=0,y=0,b=0;b<a;b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=l+w,_=(S=w==-b||w!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;S<r&&_<i&&e.charAt(S)==t.charAt(_);)S++,_++;if(c[x]=S,S>r)m+=2;else if(_>i)g+=2;else if(h&&(C=l+p-w)>=0&&C<u&&-1!=d[C]&&S>=(E=r-d[C]))return s(e,t,S,_)}for(var k=-b+v;k<=b-y;k+=2){for(var E,C=l+k,O=(E=k==-b||k!=b&&d[C-1]<d[C+1]?d[C+1]:d[C-1]+1)-k;E<r&&O<i&&e.charAt(r-E-1)==t.charAt(i-O-1);)E++,O++;if(d[C]=E,E>r)y+=2;else if(O>i)v+=2;else if(!h){var S;if((x=l+p-k)>=0&&x<u&&-1!=c[x]&&(_=l+(S=c[x])-x,S>=(E=r-E)))return s(e,t,S,_)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),s=t.substring(o),u=i(r,a),c=i(l,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,a,l=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(l,s+1));){var f=u(e.substring(n),t.substring(s)),p=c(e.substring(0,n),t.substring(0,s));d.length<p+f&&(d=t.substring(s-p,s)+t.substring(s,s+f),o=e.substring(0,n-p),r=e.substring(n+f),i=t.substring(0,s-p),a=t.substring(s+f))}return 2*d.length>=e.length?[o,r,i,a,d]:null}var i,a,l,s,d,f=r(n,o,Math.ceil(n.length/4)),p=r(n,o,Math.ceil(n.length/2));return f||p?(i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=i[0],l=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],a=i[2],l=i[3]),[a,l,s,d,i[4]]):null}function f(e){e.push([r,""]);for(var t,i=0,a=0,l=0,s="",d="";i<e.length;)switch(e[i][0]){case o:l++,d+=e[i][1],i++;break;case n:a++,s+=e[i][1],i++;break;case r:a+l>1?(0!==a&&0!==l&&(0!==(t=u(d,s))&&(i-a-l>0&&e[i-a-l-1][0]==r?e[i-a-l-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===a?e.splice(i-l,a+l,[o,d]):0===l?e.splice(i-a,a+l,[n,s]):e.splice(i-a-l,a+l,[n,s],[o,d]),i=i-a-l+(a?1:0)+(l?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,l=0,a=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&f(e)}var p=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var a=e[i];if(a[0]===n||a[0]===r){var l=o+a[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var s=t-o,u=[a[0],a[1].slice(0,s)],c=[a[0],a[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=l}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=h(e,t),o=n[1],i=n[0],a=o[i],l=o[i+1];if(null==a)return e;if(a[0]!==r)return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),v(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var s=l[1].slice(a[1].length);return s.length>0&&o.splice(i+2,0,[l[0],s]),v(o,i,3)}return e}function m(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l<e.length;l+=1)e[l-2][0]===r&&a(e[l-2][1])&&e[l-1][0]===n&&i(e[l-1][1])&&e[l][0]===o&&i(e[l][1])&&(t=!0,e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1],e[l][1]=e[l-2][1].slice(-1)+e[l][1],e[l-2][1]=e[l-2][1].slice(0,-1));if(!t)return e;var s=[];for(l=0;l<e.length;l+=1)e[l][1].length>0&&s.push(e[l]);return s}function v(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}p.INSERT=o,p.DELETE=n,p.EQUAL=r,e.exports=p},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,l=new Array(a);i<a;i++)l[i]=r[i].fn;return l},a.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},a.prototype.on=function(e,t,n){var r=new i(t,n||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn===t&&(!i||l.once)&&(!n||l.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&u.push(l[s]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,typeof e<"u"&&(e.exports=a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=b(n(3)),l=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),d=b(n(9)),f=n(36),p=n(37),h=b(n(13)),g=n(26),m=n(38),v=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=(0,c.default)("quill:clipboard"),C="__ql-matcher",O=[[Node.TEXT_NODE,U],[Node.TEXT_NODE,V],["br",q],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,H],["li",z],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",F]],S=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=[f.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),j=function(e){function t(e,n){x(this,t);var o=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],O.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],a=t[1];!n.matchVisual&&a===B||o.addMatcher(i,a)})),o}return k(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],s=i[1],u=R(this.container,a,s);return M(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),E.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new l.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[C]=e[C]||[],e[C].push(l)}))}})),[t,n]}}]),t}(d.default);function T(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return T(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},w({},t,n),o.attributes))}),new l.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function M(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function A(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=R(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[C]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new l.default):new l.default}function D(e,t,n){return T(n,e,!0)}function I(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=S[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=N[t])&&(n.attrName===t||n.keyName===t)&&(n=N[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=T(t,i)),t}function L(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new l.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function q(e,t){return M(t,"\n")||t.insert("\n"),t}function F(){return new l.default}function z(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!M(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:o}))}function V(e,t){return M(t,"\n")||(A(e)||t.length()>0&&e.nextSibling&&A(e.nextSibling))&&t.insert("\n"),t}function B(e,t){if(A(e)&&null!=e.nextElementSibling&&!M(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),o.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=T(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}function U(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&A(e.parentNode)||null!=e.previousSibling&&A(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&A(e.parentNode)||null!=e.nextSibling&&A(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},t.default=j,t.matchAttributor=I,t.matchBlot=L,t.matchNewline=V,t.matchSpacing=B,t.matchText=U},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),a=c(n(0)),l=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=(0,s.default)("quill:toolbar"),m=function(e){function t(e,n){f(this,t);var r,i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");y(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=g.error("Container required for toolbar",i.options),p(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void g.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void g.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(d({},n,s)),l.default.sources.USER)}else t.quill.format(n,s,l.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],a=r[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function v(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)v(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?b(n,t,o):v(n,t,o)}})),e.appendChild(n)}))}function b(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}m.DEFAULTS={},m.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=m,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var a=r.bottom-r.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=p(n(3)),l=p(n(8)),s=n(43),u=p(s),c=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);y.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===l.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),a=o(i,2),s=a[0],u=a[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var f=c.default.formats(s.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=D(n(29)),r=n(36),i=n(38),a=n(64),l=D(n(65)),s=D(n(66)),u=n(67),c=D(u),d=n(37),f=n(26),p=n(39),h=n(40),g=D(n(56)),m=D(n(68)),v=D(n(27)),y=D(n(69)),b=D(n(70)),w=D(n(71)),x=D(n(72)),_=D(n(73)),k=n(13),E=D(k),C=D(n(74)),O=D(n(75)),S=D(n(57)),N=D(n(41)),j=D(n(28)),T=D(n(59)),P=D(n(60)),M=D(n(61)),A=D(n(108)),R=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":_.default,"formats/list/item":u.ListItem,"modules/formula":C.default,"modules/syntax":O.default,"modules/toolbar":S.default,"themes/bubble":A.default,"themes/snow":R.default,"ui/icons":N.default,"ui/picker":j.default,"ui/icon-picker":P.default,"ui/color-picker":T.default,"ui/tooltip":M.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(4)).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(4)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return f(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof p)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(56)).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,a.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=n(4),a=l(n(27));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return a.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(35)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),s=d(l),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);m.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){f(this,t);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var l=i[i.length-1],s=o.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default,Vf=be&&be.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bf=be&&be.__assign||function(){return Bf=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Bf.apply(this,arguments)},Hf=be&&be.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,r++)o[r]=i[a];return o},Uf=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Wf=Uf(t),Gf=Uf(he),$f=Uf(qf),Kf=Uf(zf),Yf=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,a,l,s;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(l=n).onEditorChangeSelection)||void 0===s||s.call(l,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return Vf(t,e),t.prototype.validateProps=function(e){var t;if(Wf.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(Wf.default.Children.count(e.children)&&"textarea"===(null===(t=Wf.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),Hf(this.cleanProps,this.dirtyProps).some((function(t){return!$f.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!$f.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(o),Zf((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new Kf.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?$f.default(e.ops,t.ops):$f.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),Zf((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=Gf.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return Wf.default.Children.count(n)?Wf.default.cloneElement(Wf.default.Children.only(n),r):o?Wf.default.createElement("pre",Bf({},r)):Wf.default.createElement("div",Bf({},r))},t.prototype.render=function(){var e;return Wf.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var a=this.isDelta(this.value)?o.getContents():o.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,a,l,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;$f.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(s=(l=this.props).onBlur)||void 0===s||s.call(l,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=Kf.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(Wf.default.Component);function Zf(e){Promise.resolve().then(e)}const Xf=we(Yf),Qf="_viewMode_dgzrp_1",Jf="_editMode_dgzrp_2",ep="_text-label_dgzrp_24",tp="_error-message_dgzrp_28",np={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},op=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],rp=({dataTest:e,...t})=>Oe.jsxs(Oe.Fragment,{children:[t.label&&Oe.jsx("span",{className:sn(ep),"data-test":`label-${e}`,children:t.label}),t.disabled?Oe.jsx(Xf,{...t,className:sn(Qf,t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Oe.jsx(Xf,{...t,className:sn(Jf,t.className),modules:{...np,...t.modules},formats:{...op,...t.formats},"data-test":e}),(t.is_error?"error":t.is_warning?"warning":!!t.isRequired||null)&&Oe.jsx("span",{className:tp,"data-test":`error-${e}`,children:t.error?t.error:"error"})]}),ip=({dataTest:e,allowClear:t,...n})=>Oe.jsx(P,{...n,"data-test":e,value:n.value,IconComponent:e=>Oe.jsx(Pr,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:sn(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Oe.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Oe.jsx(wi,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...n.sx}}),ap=e=>Oe.jsx(M,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children});function lp({dataTest:e,...t}){return Oe.jsx(A,{...t,className:sn("!text-sm",t.className),popupIcon:t.popupIcon||Oe.jsx(Pr,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:sn("select-custom-icon")}),"data-test":e,PaperComponent:({children:t})=>Oe.jsx(R,{"data-test":`paper-${e}`,sx:{"& ul":{padding:"0 !important"},"& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...t.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})}const sp=({dataTest:e,...t})=>{var n,o,r;return Oe.jsx(D,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:sn("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:sn("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},up=({dataTest:e,...t})=>Oe.jsx(I,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),cp=({dataTest:e,...t})=>Oe.jsx(L,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),dp=({dataTest:e,...t})=>Oe.jsx(q,{"data-test":e,...t}),fp="-";function pp(e){const t=function(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return function(e,t){return t?e.map((([e,n])=>{const o=n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e));return[e,o]})):e}(Object.entries(e.classGroups),n).forEach((([e,n])=>{mp(n,o,e,t)})),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const n=e.split(fp);return""===n[0]&&1!==n.length&&n.shift(),hp(n,t)||function(e){if(gp.test(e)){const t=gp.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}function hp(e,t){var n;if(0===e.length)return t.classGroupId;const o=e[0],r=t.nextPart.get(o),i=r?hp(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join(fp);return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId}const gp=/^\[(.+)\]$/;function mp(e,t,n,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return function(e){return e.isThemeGetter}(e)?void mp(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{mp(r,vp(t,e),n,o)}))}else{(""===e?t:vp(t,e)).classGroupId=n}}))}function vp(e,t){let n=e;return t.split(fp).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function yp(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(r,i){n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}const bp="!";function wp(e){const t=e.separator,n=1===t.length,o=t[0],r=t.length;return function(e){const i=[];let a,l=0,s=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===l){if(c===o&&(n||e.slice(u,u+r)===t)){i.push(e.slice(s,u)),s=u+r;continue}if("/"===c){a=u;continue}}"["===c?l++:"]"===c&&l--}const u=0===i.length?e:e.substring(s),c=u.startsWith(bp);return{modifiers:i,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}const xp=/\s+/;function _p(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=kp(e))&&(o&&(o+=" "),o+=t);return o}function kp(e){if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=kp(e[o]))&&(n&&(n+=" "),n+=t);return n}function Ep(e,...t){let n,o,r,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:yp(e.cacheSize),splitModifiers:wp(e),...pp(e)}}(s),o=n.cache.get,r=n.cache.set,i=a,a(l)};function a(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(xp).map((e=>{const{modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let l=o(a?i.substring(0,a):i),s=!!a;if(!l){if(!a)return{isTailwindClass:!1,originalClassName:e};if(l=o(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:r?u+bp:u,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:o}=e,a=t+n;return!i.has(a)&&(i.add(a),r(n,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return r(e,i),i}return function(){return i(_p.apply(null,arguments))}}function Cp(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const Op=/^\[(?:([a-z-]+):)?(.+)\]$/i,Sp=/^\d+\/\d+$/,Np=new Set(["px","full","screen"]),jp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pp=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ap(e){return Dp(e)||Np.has(e)||Sp.test(e)}function Rp(e){return Kp(e,"length",Yp)}function Dp(e){return!!e&&!Number.isNaN(Number(e))}function Ip(e){return Kp(e,"number",Dp)}function Lp(e){return!!e&&Number.isInteger(Number(e))}function qp(e){return e.endsWith("%")&&Dp(e.slice(0,-1))}function Fp(e){return Op.test(e)}function zp(e){return jp.test(e)}const Vp=new Set(["length","size","percentage"]);function Bp(e){return Kp(e,Vp,Zp)}function Hp(e){return Kp(e,"position",Zp)}const Up=new Set(["image","url"]);function Wp(e){return Kp(e,Up,Qp)}function Gp(e){return Kp(e,"",Xp)}function $p(){return!0}function Kp(e,t,n){const o=Op.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))}function Yp(e){return Tp.test(e)}function Zp(){return!1}function Xp(e){return Pp.test(e)}function Qp(e){return Mp.test(e)}function Jp(){const e=Cp("colors"),t=Cp("spacing"),n=Cp("blur"),o=Cp("brightness"),r=Cp("borderColor"),i=Cp("borderRadius"),a=Cp("borderSpacing"),l=Cp("borderWidth"),s=Cp("contrast"),u=Cp("grayscale"),c=Cp("hueRotate"),d=Cp("invert"),f=Cp("gap"),p=Cp("gradientColorStops"),h=Cp("gradientColorStopPositions"),g=Cp("inset"),m=Cp("margin"),v=Cp("opacity"),y=Cp("padding"),b=Cp("saturate"),w=Cp("scale"),x=Cp("sepia"),_=Cp("skew"),k=Cp("space"),E=Cp("translate"),C=()=>["auto",Fp,t],O=()=>[Fp,t],S=()=>["",Ap,Rp],N=()=>["auto",Dp,Fp],j=()=>["","0",Fp],T=()=>[Dp,Ip],P=()=>[Dp,Fp];return{cacheSize:500,separator:":",theme:{colors:[$p],spacing:[Ap,Rp],blur:["none","",zp,Fp],brightness:T(),borderColor:[e],borderRadius:["none","","full",zp,Fp],borderSpacing:O(),borderWidth:S(),contrast:T(),grayscale:j(),hueRotate:P(),invert:j(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[qp,Rp],inset:C(),margin:C(),opacity:T(),padding:O(),saturate:T(),scale:T(),sepia:j(),skew:P(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Fp]}],container:["container"],columns:[{columns:[zp]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Fp]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lp,Fp]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Fp]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Lp,Fp]}],"grid-cols":[{"grid-cols":[$p]}],"col-start-end":[{col:["auto",{span:["full",Lp,Fp]},Fp]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[$p]}],"row-start-end":[{row:["auto",{span:[Lp,Fp]},Fp]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Fp]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Fp]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Fp,t]}],"min-w":[{"min-w":[Fp,t,"min","max","fit"]}],"max-w":[{"max-w":[Fp,t,"none","full","min","max","fit","prose",{screen:[zp]},zp]}],h:[{h:[Fp,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Fp,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Fp,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Fp,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zp,Rp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ip]}],"font-family":[{font:[$p]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Fp]}],"line-clamp":[{"line-clamp":["none",Dp,Ip]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ap,Fp]}],"list-image":[{"list-image":["none",Fp]}],"list-style-type":[{list:["none","disc","decimal",Fp]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ap,Rp]}],"underline-offset":[{"underline-offset":["auto",Ap,Fp]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Fp]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Fp]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Hp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Ap,Fp]}],"outline-w":[{outline:[Ap,Rp]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ap,Rp]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zp,Gp]}],"shadow-color":[{shadow:[$p]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",zp,Fp]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Fp]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",Fp]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",Fp]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Lp,Fp]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Fp]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Fp]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Fp]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ap,Rp,Ip]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const eh=Ep(Jp);function th(...e){return eh(sn(e))}const nh=({children:e,onClick:t,className:n,dataTest:o})=>Oe.jsx("div",{className:th("text-[10px] font-semibold flex items-center justify-center w-fit uppercase h-4 px-1.5 py-0.5 rounded-[3px] bg-gama-50 text-gama-700",n),onClick:t,"data-test":o,children:e});function oh(e){return oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oh(e)}function rh(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ih(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ah(e){ih(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===oh(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function lh(e,t){ih(2,arguments);var n=ah(e),o=rh(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function sh(e,t){ih(2,arguments);var n=ah(e),o=rh(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var uh={};function ch(){return uh}function dh(e,t){var n,o,r,i,a,l,s,u;ih(1,arguments);var c=ch(),d=rh(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ah(e),p=f.getDay(),h=(p<d?7:0)+p-d;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f}function fh(e){return ih(1,arguments),dh(e,{weekStartsOn:1})}function ph(e){ih(1,arguments);var t=function(e){ih(1,arguments);var t=ah(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=fh(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var a=fh(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),fh(n)}function hh(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function gh(e){ih(1,arguments);var t=ah(e);return t.setHours(0,0,0,0),t}var mh=864e5;function vh(e,t){ih(2,arguments);var n=gh(e),o=gh(t),r=n.getTime()-hh(n),i=o.getTime()-hh(o);return Math.round((r-i)/mh)}function yh(e,t){return ih(2,arguments),lh(e,7*rh(t))}function bh(e,t){return ih(2,arguments),sh(e,12*rh(t))}function wh(e,t){ih(2,arguments);var n=gh(e),o=gh(t);return n.getTime()===o.getTime()}function xh(e){return ih(1,arguments),e instanceof Date||"object"===oh(e)&&"[object Date]"===Object.prototype.toString.call(e)}function _h(e,t){ih(2,arguments);var n=ah(e),o=ah(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var kh=6048e5;function Eh(e){ih(1,arguments);var t=ah(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Ch(e){ih(1,arguments);var t=ah(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Oh(e){ih(1,arguments);var t=ah(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Sh(e,t){var n,o,r,i,a,l,s,u;ih(1,arguments);var c=ch(),d=rh(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ah(e),p=f.getDay(),h=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+h),f.setHours(23,59,59,999),f}function Nh(e){return ih(1,arguments),Sh(e,{weekStartsOn:1})}function jh(e,t){return ih(2,arguments),function(e,t){ih(2,arguments);var n=ah(e).getTime(),o=rh(t);return new Date(n+o)}(e,-rh(t))}function Th(e){ih(1,arguments);var t=ah(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Ph(e){ih(1,arguments);var t=ah(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Th(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Th(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Mh(e){ih(1,arguments);var t=ah(e),n=Th(t).getTime()-function(e){ih(1,arguments);var t=Ph(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Th(n)}(t).getTime();return Math.round(n/6048e5)+1}function Ah(e,t){var n,o,r,i,a,l,s,u;ih(1,arguments);var c=ch(),d=rh(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ah(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Rh(e,t){var n,o,r,i,a,l,s,u;ih(1,arguments);var c=ah(e),d=c.getUTCFullYear(),f=ch(),p=rh(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=Ah(h,t),m=new Date(0);m.setUTCFullYear(d,0,p),m.setUTCHours(0,0,0,0);var v=Ah(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Dh(e,t){ih(1,arguments);var n=ah(e),o=Ah(n,t).getTime()-function(e,t){var n,o,r,i,a,l,s,u;ih(1,arguments);var c=ch(),d=rh(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=Rh(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),Ah(p,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function Ih(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var Lh={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return Ih("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Ih(n+1,2)},d:function(e,t){return Ih(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Ih(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ih(e.getUTCHours(),t.length)},m:function(e,t){return Ih(e.getUTCMinutes(),t.length)},s:function(e,t){return Ih(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return Ih(Math.floor(o*Math.pow(10,n-3)),t.length)}};const qh=Lh;var Fh="midnight",zh="noon",Vh="morning",Bh="afternoon",Hh="evening",Uh="night",Wh={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return qh.y(e,t)},Y:function(e,t,n,o){var r=Rh(e,o),i=r>0?r:1-r;return"YY"===t?Ih(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Ih(i,t.length)},R:function(e,t){return Ih(Ph(e),t.length)},u:function(e,t){return Ih(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Ih(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Ih(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return qh.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return Ih(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=Dh(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Ih(r,t.length)},I:function(e,t,n){var o=Mh(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):Ih(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):qh.d(e,t)},D:function(e,t,n){var o=function(e){ih(1,arguments);var t=ah(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):Ih(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ih(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ih(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return Ih(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?zh:0===r?Fh:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?Hh:r>=12?Bh:r>=4?Vh:Uh,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return qh.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):qh.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):Ih(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):Ih(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):qh.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):qh.s(e,t)},S:function(e,t){return qh.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return $h(r);case"XXXX":case"XX":return Kh(r);default:return Kh(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return $h(r);case"xxxx":case"xx":return Kh(r);default:return Kh(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gh(r,":");default:return"GMT"+Kh(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gh(r,":");default:return"GMT"+Kh(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return Ih(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return Ih((o._originalDate||e).getTime(),t.length)}};function Gh(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+Ih(i,2)}function $h(e,t){return e%60==0?(e>0?"-":"+")+Ih(Math.abs(e)/60,2):Kh(e,t)}function Kh(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+Ih(Math.floor(r/60),2)+n+Ih(r%60,2)}const Yh=Wh;var Zh=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Xh=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Qh={p:Xh,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return Zh(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Zh(r,t)).replace("{{time}}",Xh(i,t))}};const Jh=Qh;var eg=["D","DD"],tg=["YY","YYYY"];function ng(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var og={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const rg=function(e,t,n){var o,r=og[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function ig(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ag={date:ig({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ig({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ig({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var lg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const sg=function(e,t,n,o){return lg[e]};function ug(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var a=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}var cg={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ug({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ug({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ug({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ug({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ug({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const dg=cg;function fg(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,l=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(l)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(l.length)}}}var pg={ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:fg({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:fg({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:fg({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:fg({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:fg({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const hg=pg;const gg={code:"en-US",formatDistance:rg,formatLong:ag,formatRelative:sg,localize:dg,match:hg,options:{weekStartsOn:0,firstWeekContainsDate:1}};var mg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yg=/^'([^]*?)'?$/,bg=/''/g,wg=/[a-zA-Z]/;function xg(e,t,n){var o,r,i,a,l,s,u,c,d,f,p,h,g,m,v,y,b,w;ih(2,arguments);var x=String(t),_=ch(),k=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:_.locale)&&void 0!==o?o:gg,E=rh(null!==(i=null!==(a=null!==(l=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=rh(null!==(p=null!==(h=null!==(g=null!==(m=null==n?void 0:n.weekStartsOn)&&void 0!==m?m:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var O=ah(e);if(!function(e){if(ih(1,arguments),!xh(e)&&"number"!=typeof e)return!1;var t=ah(e);return!isNaN(Number(t))}(O))throw new RangeError("Invalid time value");var S=jh(O,hh(O)),N={firstWeekContainsDate:E,weekStartsOn:C,locale:k,_originalDate:O},j=x.match(vg).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Jh[t])(e,k.formatLong):e})).join("").match(mg).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(yg);return t?t[1].replace(bg,"'"):e}(o);var i=Yh[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==tg.indexOf(e)}(o)&&ng(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==eg.indexOf(e)}(o)&&ng(o,t,String(e)),i(S,o,k.localize,N);if(r.match(wg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return j}var _g=6048e5;function kg(e){return ih(1,arguments),Math.floor(function(e){return ih(1,arguments),ah(e).getTime()}(e)/1e3)}function Eg(e,t){var n,o,r,i,a,l,s,u;ih(1,arguments);var c=ch(),d=rh(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=function(e,t){var n,o,r,i,a,l,s,u;ih(1,arguments);var c=ah(e),d=c.getFullYear(),f=ch(),p=rh(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,p),h.setHours(0,0,0,0);var g=dh(h,t),m=new Date(0);m.setFullYear(d,0,p),m.setHours(0,0,0,0);var v=dh(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}(e,t),p=new Date(0);return p.setFullYear(f,0,d),p.setHours(0,0,0,0),dh(p,t)}var Cg=6048e5;function Og(e,t){return ih(1,arguments),function(e,t,n){ih(2,arguments);var o=dh(e,n),r=dh(t,n),i=o.getTime()-hh(o),a=r.getTime()-hh(r);return Math.round((i-a)/kh)}(function(e){ih(1,arguments);var t=ah(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),Ch(e),t)+1}function Sg(e,t){ih(2,arguments);var n=ah(e),o=ah(t);return n.getTime()>o.getTime()}function Ng(e,t){ih(2,arguments);var n=ah(e),o=ah(t);return n.getTime()<o.getTime()}function jg(e,t){ih(2,arguments);var n=ah(e),o=ah(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Tg(e,t){return ih(2,arguments),lh(e,-rh(t))}function Pg(e,t){ih(2,arguments);var n=ah(e),o=rh(t),r=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(r,o,15),a.setHours(0,0,0,0);var l=function(e){ih(1,arguments);var t=ah(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(a);return n.setMonth(o,Math.min(i,l)),n}function Mg(e,t){ih(2,arguments);var n=ah(e),o=rh(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const Ag={code:"en-GB",formatDistance:rg,formatLong:{date:ig({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:ig({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ig({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:sg,localize:dg,match:hg,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Rg=function(){return Rg=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Rg.apply(this,arguments)};function Dg(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Ig(e){return"multiple"===e.mode}function Lg(e){return"range"===e.mode}function qg(e){return"single"===e.mode}var Fg={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var zg=Object.freeze({__proto__:null,formatCaption:function(e,t){return xg(e,"LLLL y",t)},formatDay:function(e,t){return xg(e,"d",t)},formatMonthCaption:function(e,t){return xg(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return xg(e,"cccccc",t)},formatYearCaption:function(e,t){return xg(e,"yyyy",t)}}),Vg=Object.freeze({__proto__:null,labelDay:function(e,t,n){return xg(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return xg(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Bg=m(void 0);function Hg(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:Fg,formatters:zg,labels:Vg,locale:gg,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},a=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,a=e.toDate;return o?i=Ch(o):t&&(i=new Date(t,0,1)),r?a=Eh(r):n&&(a=new Date(n,11,31)),{fromDate:i?gh(i):void 0,toDate:a?gh(a):void 0}}(r),l=a.fromDate,s=a.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!l||!s)&&(u="buttons"),(qg(r)||Ig(r)||Lg(r))&&(o=r.onSelect);var c=Rg(Rg(Rg({},i),r),{captionLayout:u,classNames:Rg(Rg({},i.classNames),r.classNames),components:Rg({},r.components),formatters:Rg(Rg({},i.formatters),r.formatters),fromDate:l,labels:Rg(Rg({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:Rg(Rg({},i.modifiers),r.modifiers),modifiersClassNames:Rg(Rg({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:Rg(Rg({},i.styles),r.styles),toDate:s});return t.createElement(Bg.Provider,{value:c},e.children)}function Ug(){var e=u(Bg);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Wg(e){var n=Ug(),o=n.locale,r=n.classNames,i=n.styles,a=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},a(e.displayMonth,{locale:o}))}function Gg(e){return t.createElement("svg",Rg({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function $g(e){var n,o,r=e.onChange,i=e.value,a=e.children,l=e.caption,s=e.className,u=e.style,c=Ug(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:Gg;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},a),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},l,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function Kg(e){var n,o=Ug(),r=o.fromDate,i=o.toDate,a=o.styles,l=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var f=[];if(function(e,t){ih(2,arguments);var n=ah(e),o=ah(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var p=Ch(r),h=r.getMonth();h<=i.getMonth();h++)f.push(Pg(p,h));else for(p=Ch(new Date),h=0;h<=11;h++)f.push(Pg(p,h));var g=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:$g;return t.createElement(g,{name:"months","aria-label":d(),className:u.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=Pg(Ch(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:l})},f.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:l}))})))}function Yg(e){var n,o=e.displayMonth,r=Ug(),i=r.fromDate,a=r.toDate,l=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,p=[];if(!i)return t.createElement(t.Fragment,null);if(!a)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),g=a.getFullYear(),m=h;m<=g;m++)p.push(Mg(Oh(new Date),m));var v=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:$g;return t.createElement(v,{name:"years","aria-label":f(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=Mg(Ch(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:l})},p.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:l}))})))}function Zg(){var e=Ug(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,a=e.fromDate,l=e.numberOfMonths,s=void 0===l?1:l;return i&&_h(i,r)<0&&(r=sh(i,-1*(s-1))),a&&_h(r,a)<0&&(r=a),Ch(r)}(e),n=function(e,t){var n=p(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=Ch(t);r(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var Xg=m(void 0);function Qg(e){var n=Ug(),o=Zg(),r=o[0],i=o[1],a=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=Ch(e),i=_h(Ch(sh(r,o)),r),a=[],l=0;l<i;l++){var s=sh(r,l);a.push(s)}return n&&(a=a.reverse()),a}(r,n),l=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,a=o?i:1,l=Ch(e);if(!n)return sh(l,a);if(!(_h(n,e)<i))return sh(l,a)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,a=Ch(e);if(!n)return sh(a,-i);if(!(_h(a,n)<=0))return sh(a,-i)}}(r,n),u=function(e){return a.some((function(t){return jg(e,t)}))},c={currentMonth:r,displayMonths:a,goToMonth:i,goToDate:function(e,t){u(e)||(t&&Ng(e,t)?i(sh(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:l,isDateDisplayed:u};return t.createElement(Xg.Provider,{value:c},e.children)}function Jg(){var e=u(Xg);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function em(e){var n,o=Ug(),r=o.classNames,i=o.styles,a=o.components,l=Jg().goToMonth,s=function(t){l(sh(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==a?void 0:a.CaptionLabel)&&void 0!==n?n:Wg,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(Kg,{onChange:s,displayMonth:e.displayMonth}),t.createElement(Yg,{onChange:s,displayMonth:e.displayMonth}))}function tm(e){return t.createElement("svg",Rg({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function nm(e){return t.createElement("svg",Rg({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var om=o((function(e,n){var o=Ug(),r=o.classNames,i=o.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var l=a.join(" "),s=Rg(Rg({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",Rg({},e,{ref:n,type:"button",className:l,style:s}))}));function rm(e){var n,o,r=Ug(),i=r.dir,a=r.locale,l=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var p=c(e.previousMonth,{locale:a}),h=[l.nav_button,l.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:a}),m=[l.nav_button,l.nav_button_next].join(" "),v=null!==(n=null==f?void 0:f.IconRight)&&void 0!==n?n:nm,y=null!==(o=null==f?void 0:f.IconLeft)&&void 0!==o?o:tm;return t.createElement("div",{className:l.nav,style:s.nav},!e.hidePrevious&&t.createElement(om,{name:"previous-month","aria-label":p,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(v,{className:l.nav_icon,style:s.nav_icon}):t.createElement(y,{className:l.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement(om,{name:"next-month","aria-label":g,className:m,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(y,{className:l.nav_icon,style:s.nav_icon}):t.createElement(v,{className:l.nav_icon,style:s.nav_icon})))}function im(e){var n=Ug().numberOfMonths,o=Jg(),r=o.previousMonth,i=o.nextMonth,a=o.goToMonth,l=o.displayMonths,s=l.findIndex((function(t){return jg(e.displayMonth,t)})),u=0===s,c=s===l.length-1,d=n>1&&(u||!c),f=n>1&&(c||!u);return t.createElement(rm,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){i&&a(i)}})}function am(e){var n,o,r=Ug(),i=r.classNames,a=r.disableNavigation,l=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:Wg;return o=a?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(em,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(em,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(im,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(im,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:l.caption},o)}function lm(e){var n=Ug(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function sm(){var e=Ug(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,l=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?fh(new Date):dh(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var a=lh(o,i);r.push(a)}return r}(i,a,l);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function um(){var e,n=Ug(),o=n.classNames,r=n.styles,i=n.components,a=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:sm;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(a,null))}function cm(e){var n=Ug(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var dm=m(void 0);function fm(e){if(!Ig(e.initialProps)){return t.createElement(dm.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(pm,{initialProps:e.initialProps,children:e.children})}function pm(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,a=n.max,l={disabled:[]};r&&l.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return wh(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var l,s;if((null===(l=n.onDayClick)||void 0===l||l.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!a||(null==r?void 0:r.length)!==a)){var u=r?Dg([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return wh(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:l};return t.createElement(dm.Provider,{value:s},o)}function hm(){var e=u(dm);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var gm,mm=m(void 0);function vm(e){if(!Lg(e.initialProps)){return t.createElement(mm.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(ym,{initialProps:e.initialProps,children:e.children})}function ym(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},a=i.from,l=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],l?(c.range_end=[l],wh(a,l)||(c.range_middle=[{after:a,before:l}])):c.range_end=[a]):l&&(c.range_start=[l],c.range_end=[l]),s&&(a&&!l&&c.disabled.push({after:Tg(a,s-1),before:lh(a,s-1)}),a&&l&&c.disabled.push({after:a,before:lh(a,s-1)}),!a&&l&&c.disabled.push({after:Tg(l,s-1),before:lh(l,s-1)})),u){if(a&&!l&&(c.disabled.push({before:lh(a,1-u)}),c.disabled.push({after:lh(a,u-1)})),a&&l){var d=u-(vh(l,a)+1);c.disabled.push({before:Tg(a,d)}),c.disabled.push({after:lh(l,d)})}!a&&l&&(c.disabled.push({before:lh(l,1-u)}),c.disabled.push({after:lh(l,u-1)}))}return t.createElement(mm.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,a;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var l=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?wh(r,e)&&wh(o,e)?void 0:wh(r,e)?{from:r,to:void 0}:wh(o,e)?void 0:Sg(o,e)?{from:e,to:r}:{from:o,to:e}:r?Sg(e,r)?{from:r,to:e}:{from:e,to:r}:o?Ng(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(a=n.onSelect)||void 0===a||a.call(n,l,e,t,o)},modifiers:c}},o)}function bm(){var e=u(mm);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function wm(e){return Array.isArray(e)?Dg([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(gm||(gm={}));var xm=gm.Selected,_m=gm.Disabled,km=gm.Hidden,Em=gm.Today,Cm=gm.RangeEnd,Om=gm.RangeMiddle,Sm=gm.RangeStart,Nm=gm.Outside;var jm=m(void 0);function Tm(e){var n=Ug(),o=function(e,t,n){var o,r=((o={})[xm]=wm(e.selected),o[_m]=wm(e.disabled),o[km]=wm(e.hidden),o[Em]=[e.today],o[Cm]=[],o[Om]=[],o[Sm]=[],o[Nm]=[],o);return e.fromDate&&r[_m].push({before:e.fromDate}),e.toDate&&r[_m].push({after:e.toDate}),Ig(e)?r[_m]=r[_m].concat(t.modifiers[_m]):Lg(e)&&(r[_m]=r[_m].concat(n.modifiers[_m]),r[Sm]=n.modifiers[Sm],r[Om]=n.modifiers[Om],r[Cm]=n.modifiers[Cm]),r}(n,hm(),bm()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=wm(o)})),t}(n.modifiers),i=Rg(Rg({},o),r);return t.createElement(jm.Provider,{value:i},e.children)}function Pm(){var e=u(jm);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Mm(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return xh(e)}(t))return wh(e,t);if(function(e){return Array.isArray(e)&&e.every(xh)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(vh(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),vh(e,o)>=0&&vh(r,e)>=0):r?wh(r,e):!!o&&wh(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=vh(t.before,e)>0,o=vh(t.after,e)<0;return Sg(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?vh(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?vh(t.before,e)>0:"function"==typeof t&&t(e)}))}function Am(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return Mm(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!jg(e,n)&&(r.outside=!0),r}var Rm=365;function Dm(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,a=t.retry,l=void 0===a?{count:0,lastFocused:e}:a,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,f={day:lh,week:yh,month:sh,year:bh,startOfWeek:function(e){return r.ISOWeek?fh(e):dh(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?Nh(e):Sh(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?f=function(e){var t,n;if(ih(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==oh(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=ah(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,f]):"after"===o&&c&&(f=function(e){var t,n;if(ih(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==oh(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=ah(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,f]));var p=!0;if(i){var h=Am(f,i);p=!h.disabled&&!h.hidden}return p?f:l.count>Rm?l.lastFocused:Dm(f,{moveBy:n,direction:o,context:r,modifiers:i,retry:Rg(Rg({},l),{count:l.count+1})})}var Im=m(void 0);function Lm(e){var n=Jg(),o=Pm(),r=p(),i=r[0],a=r[1],l=p(),s=l[0],u=l[1],c=function(e,t){for(var n,o,r=Ch(e[0]),i=Eh(e[e.length-1]),a=r;a<=i;){var l=Am(a,t);if(l.disabled||l.hidden)a=lh(a,1);else{if(l.selected)return a;l.today&&!o&&(o=a),n||(n=a),a=lh(a,1)}}return o||n}(n.displayMonths,o),d=i??(s&&n.isDateDisplayed(s))?s:c,f=function(e){a(e)},h=Ug(),g=function(e,t){if(i){var r=Dm(i,{moveBy:e,direction:t,context:h,modifiers:o});wh(i,r)||(n.goToDate(r,i),f(r))}},m={focusedDay:i,focusTarget:d,blur:function(){u(i),a(void 0)},focus:f,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return t.createElement(Im.Provider,{value:m},e.children)}function qm(){var e=u(Im);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Fm=m(void 0);function zm(e){if(!qg(e.initialProps)){return t.createElement(Fm.Provider,{value:{selected:void 0}},e.children)}return t.createElement(Vm,{initialProps:e.initialProps,children:e.children})}function Vm(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,a;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(a=n.onSelect)||void 0===a||a.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(Fm.Provider,{value:r},o)}function Bm(){var e=u(Fm);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Hm(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(gm).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function Um(e,n,o){var r,i,l,s=Ug(),u=qm(),c=function(e,t){return Am(e,Pm(),t)}(e,n),d=function(e,t){var n=Ug(),o=Bm(),r=hm(),i=bm(),a=qm(),l=a.focusDayAfter,s=a.focusDayBefore,u=a.focusWeekAfter,c=a.focusWeekBefore,d=a.blur,f=a.focus,p=a.focusMonthBefore,h=a.focusMonthAfter,g=a.focusYearBefore,m=a.focusYearAfter,v=a.focusStartOfWeek,y=a.focusEndOfWeek;return{onClick:function(a){var l,s,u,c;qg(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):Ig(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,a):Lg(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,a):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,a)},onFocus:function(o){var r;f(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():p();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():h();break;case"Home":o.preventDefault(),o.stopPropagation(),v();break;case"End":o.preventDefault(),o.stopPropagation(),y()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,c),f=function(){var e=Ug(),t=Bm(),n=hm(),o=bm();return qg(e)?t.selected:Ig(e)?n.selected:Lg(e)?o.selected:void 0}(),p=!(!s.onDayClick&&"default"===s.mode);a((function(){var t;c.outside||u.focusedDay&&p&&wh(u.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[u.focusedDay,e,o,p,c.outside]);var h=Hm(s,c).join(" "),g=function(e,t){var n=Rg({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=Rg(Rg({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(s,c),m=!!(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(l=null===(i=s.components)||void 0===i?void 0:i.DayContent)&&void 0!==l?l:cm,y={style:g,className:h,children:t.createElement(v,{date:e,displayMonth:n,activeModifiers:c}),role:"gridcell"},b=u.focusTarget&&wh(u.focusTarget,e)&&!c.outside,w=u.focusedDay&&wh(u.focusedDay,e),x=Rg(Rg(Rg({},y),((r={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,r.tabIndex=w||b?0:-1,r)),d);return{isButton:p,isHidden:m,activeModifiers:c,selectedDays:f,buttonProps:x,divProps:y}}function Wm(e){var n=r(null),o=Um(e.date,e.displayMonth,n);return o.isHidden?t.createElement("div",{role:"gridcell"}):o.isButton?t.createElement(om,Rg({name:"day",ref:n},o.buttonProps)):t.createElement("div",Rg({},o.divProps))}function Gm(e){var n=e.number,o=e.dates,r=Ug(),i=r.onWeekNumberClick,a=r.styles,l=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:l.weeknumber,style:a.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement(om,{name:"week-number","aria-label":d,className:l.weeknumber,style:a.weeknumber,onClick:function(e){i(n,o,e)}},c)}function $m(e){var n,o,r,i=Ug(),a=i.styles,l=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:Wm,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:Gm;return s&&(r=t.createElement("td",{className:l.cell,style:a.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:l.row,style:a.row},r,e.dates.map((function(n){return t.createElement("td",{className:l.cell,style:a.cell,key:kg(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function Km(e,t,n){for(var o=null!=n&&n.ISOWeek?Nh(t):Sh(t,n),r=null!=n&&n.ISOWeek?fh(e):dh(e,n),i=vh(o,r),a=[],l=0;l<=i;l++)a.push(lh(r,l));var s=a.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){ih(1,arguments);var t=ah(e),n=fh(t).getTime()-ph(t).getTime();return Math.round(n/_g)+1}(t):function(e,t){ih(1,arguments);var n=ah(e),o=dh(n,t).getTime()-Eg(n,t).getTime();return Math.round(o/Cg)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function Ym(e){var n,o,r,i=Ug(),a=i.locale,l=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,f=i.weekStartsOn,p=i.firstWeekContainsDate,h=i.ISOWeek,g=function(e,t){var n=Km(Ch(e),Eh(e),t);if(null!=t&&t.useFixedWeeks){var o=Og(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],a=yh(i,6-o),l=Km(yh(i,1),a,t);n.push.apply(n,l)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:f,firstWeekContainsDate:p}),m=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:um,v=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:$m,y=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:lm;return t.createElement("table",{id:e.id,className:l.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(m,null),t.createElement("tbody",{className:l.tbody,style:s.tbody},g.map((function(n){return t.createElement(v,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(y,{displayMonth:e.displayMonth}))}var Zm=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Xm=!1,Qm=0;function Jm(){return"react-day-picker-".concat(++Qm)}function ev(n){var o,r,i=Ug(),a=i.dir,l=i.classNames,s=i.styles,u=i.components,c=Jg().displayMonths,d=function(t){var n,o=t??(Xm?Jm():null),r=e.useState(o),i=r[0],a=r[1];return Zm((function(){null===i&&a(Jm())}),[]),e.useEffect((function(){!1===Xm&&(Xm=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),f=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,p=[l.month],h=s.month,g=0===n.displayIndex,m=n.displayIndex===c.length-1,v=!g&&!m;"rtl"===a&&(m=(o=[g,m])[0],g=o[1]),g&&(p.push(l.caption_start),h=Rg(Rg({},h),s.caption_start)),m&&(p.push(l.caption_end),h=Rg(Rg({},h),s.caption_end)),v&&(p.push(l.caption_between),h=Rg(Rg({},h),s.caption_between));var y=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:am;return t.createElement("div",{key:n.displayIndex,className:p.join(" "),style:h},t.createElement(y,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(Ym,{id:f,"aria-labelledby":d,displayMonth:n.displayMonth}))}function tv(e){var n=e.initialProps,o=Ug(),r=qm(),i=Jg(),l=p(!1),s=l[0],u=l[1];a((function(){o.initialFocus&&r.focusTarget&&(s||(r.focus(r.focusTarget),u(!0)))}),[o.initialFocus,s,r.focus,r.focusTarget,r]);var c=[o.classNames.root,o.className];o.numberOfMonths>1&&c.push(o.classNames.multiple_months),o.showWeekNumber&&c.push(o.classNames.with_weeknumber);var d=Rg(Rg({},o.styles.root),o.style),f=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return Rg(Rg({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",Rg({className:c.join(" "),style:d,dir:o.dir,id:o.id},f),t.createElement("div",{className:o.classNames.months,style:o.styles.months},i.displayMonths.map((function(e,n){return t.createElement(ev,{key:n,displayIndex:n,displayMonth:e})}))))}function nv(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(Hg,{initialProps:o},t.createElement(Qg,null,t.createElement(zm,{initialProps:o},t.createElement(fm,{initialProps:o},t.createElement(vm,{initialProps:o},t.createElement(Tm,null,t.createElement(Lm,null,n)))))))}function ov(e){return t.createElement(nv,Rg({},e),t.createElement(tv,{initialProps:e}))}const rv="object"==typeof global&&global&&global.Object===Object&&global;var iv="object"==typeof self&&self&&self.Object===Object&&self;const av=(rv||iv||Function("return this")()).Symbol;var lv=Object.prototype,sv=lv.hasOwnProperty,uv=lv.toString,cv=av?av.toStringTag:void 0;var dv=Object.prototype.toString;var fv="[object Null]",pv="[object Undefined]",hv=av?av.toStringTag:void 0;function gv(e){return null==e?void 0===e?pv:fv:hv&&hv in Object(e)?function(e){var t=sv.call(e,cv),n=e[cv];try{e[cv]=void 0;var o=!0}catch{}var r=uv.call(e);return o&&(t?e[cv]=n:delete e[cv]),r}(e):function(e){return dv.call(e)}(e)}var mv="[object Symbol]";const vv=Array.isArray;var yv=1/0,bv=av?av.prototype:void 0,wv=bv?bv.toString:void 0;function xv(e){if("string"==typeof e)return e;if(vv(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,xv)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&gv(e)==mv}(e))return wv?wv.call(e):"";var t=e+"";return"0"==t&&1/e==-yv?"-0":t}function _v(e){return null==e?"":xv(e)}function kv(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var Ev=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Cv(e){return Ev.test(e)}var Ov="\\ud800-\\udfff",Sv="["+Ov+"]",Nv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jv="\\ud83c[\\udffb-\\udfff]",Tv="[^"+Ov+"]",Pv="(?:\\ud83c[\\udde6-\\uddff]){2}",Mv="[\\ud800-\\udbff][\\udc00-\\udfff]",Av="(?:"+Nv+"|"+jv+")"+"?",Rv="[\\ufe0e\\ufe0f]?",Dv=Rv+Av+("(?:\\u200d(?:"+[Tv,Pv,Mv].join("|")+")"+Rv+Av+")*"),Iv="(?:"+[Tv+Nv+"?",Nv,Pv,Mv,Sv].join("|")+")",Lv=RegExp(jv+"(?="+jv+")|"+Iv+Dv,"g");function qv(e){return Cv(e)?function(e){return e.match(Lv)||[]}(e):function(e){return e.split("")}(e)}var Fv=function(e){return function(t){var n=Cv(t=_v(t))?qv(t):void 0,o=n?n[0]:t.charAt(0),r=n?kv(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const zv=Fv;function Vv(e){return zv(_v(e).toLowerCase())}const Bv=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:a})=>{const{goToMonth:l,nextMonth:s,previousMonth:u}=Jg(),c=vv(n)?!n.length:xh(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Oe.jsxs("div",{className:"mt-2 flex justify-between mr-3",children:[Oe.jsx(ta,{variant:"text",onClick:e=>{a?a():o(e),r(new Date(Date.now()))},size:"small",disabled:c,dataTest:"select-today",className:"!min-w-[60px]",startIcon:Oe.jsx(Pr,{icon:"ph:eraser-duotone",width:24,height:24})}),Oe.jsxs("div",{className:"rdp-custom-caption-navigation flex gap-1",children:[Oe.jsx(ta,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&l(u),startIcon:Oe.jsx(qr,{})}),Oe.jsx(ta,{size:"small",disabled:i&&jg(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",className:"!disabled:cursor-default",children:t?"I dag":"Today"}),Oe.jsx(ta,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&l(s),startIcon:Oe.jsx(Lr,{})})]}),Oe.jsx(ta,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",className:"!min-w-[60px]",children:t?"Velg":"Select"})]})};function Hv(e){const{month:t}=e;return Oe.jsx("div",{className:"rdp-custom-caption flex justify-between items-center h-[30px] ml-4",children:t&&Oe.jsx(am,{displayMonth:t})})}const Uv=e=>Oe.jsx(F,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),Wv=e=>{const{caption:t,children:n}=e,{goToMonth:o}=Jg(),{month:r}=Ug(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Oe.jsx(Uv,{className:"w-[105px] ml-[-5px]",children:Oe.jsx(ip,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Pg(r,Number(a)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Oe.jsx(ap,{value:e.label,children:Vv(e.label)},e.id)))})})},Gv=e=>{const{caption:t,children:n}=e,{goToMonth:o}=Jg(),{month:r}=Ug(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Oe.jsx(Uv,{className:"w-[70px] ml-[5px]",children:Oe.jsx(ip,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Mg(r,Number(a)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Oe.jsx(ap,{value:e.label,children:e.label},e.id)))})})},$v=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:r,selected:i,numberOfMonths:a,disabledDays:l,onClear:s}=e,{open:u,anchorEl:c,onClose:d}=t,[f,h]=p(new Date(Date.now())),g="nb"===(null==r?void 0:r.code),m=(a||1)<2;return Oe.jsx(z,{open:u,anchorEl:c,onClose:d,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Oe.jsx(ov,{disabled:l,month:f,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:r||Ag,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:"font-roboto",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-base text-[var(--colors-gray-700)] font-medium",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 flex text-[var(--colors-gray-700)] items-center justify-center border border-[var(--colors-gray-500)] hover:bg-[var(--colors-gray-50)] rounded",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",head_row:"flex text-sm cursor-pointer",head_cell:"text-[var(--colors-gray-600)] w-9 cursor-pointer capitalize",row:"flex w-full mt-2",cell:"text-sm w-9 text-[var(--colors-gray-800)] relative [&:has([aria-selected])]:bg-gama-50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md ",day:"h-10 w-9 p-0 font-normal rounded-md hover:bg-[var(--colors-gray-50)] focus-visible:border-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-gama-500 focus-visible:z-50",day_today:"text-gama-700 text-base bg-gray-100 font-bold hover:bg-gama-50",day_selected:"[&.bg-gray-100]:bg-gama-500 bg-gama-500 text-white hover:bg-gama-500 hover:text-white",day_outside:"text-[var(--colors-gray-400)]",day_disabled:"text-[var(--colors-gray-400)]",day_range_middle:"aria-selected:bg-gama-50 [&.bg-gray-100.bg-gama-500]:bg-gama-50 aria-selected:text-[var(--colors-gray-800)]",day_hidden:"invisible",caption_end:m?"":"[&_tfoot]:hidden [&_.rdp-custom-caption]:opacity-0 [&_.rdp-custom-caption]:pointer-events-none"},components:{IconLeft:()=>Oe.jsx(qr,{className:"h-4 w-4 "}),IconRight:()=>Oe.jsx(Lr,{className:"h-4 w-4"}),Caption:e=>Oe.jsx(Hv,{...e,setMonth:h,month:f,isNb:g}),Dropdown:e=>"months"===e.name?Oe.jsx(Wv,{...e}):Oe.jsx(Gv,{...e})},footer:Oe.jsx(Bv,{onClose:d,isNb:g,selected:i,removeSelection:t=>{var n;return i&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:f,onClear:s}),...e})})},Kv=(e,t="dd.MM.yy")=>e?xg(e,t):"",Yv=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:a,onClick:l,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:f}=e;if("range"!==e.mode)return null;const p=Kv(null==(t=e.selected)?void 0:t.from,d),h=Kv(null==(n=e.selected)?void 0:n.to,d),g=null!=(o=e.selected)&&o.from?e.selected.to?`${p} - ${h}`:p:"";return Oe.jsx(os,{dataTest:r,placeholder:i,label:f,size:"small",onClick:e=>!a&&l(e),InputProps:{endAdornment:Oe.jsx($i,{width:24,height:24})},value:g,disabled:!!a,className:th(`w-60 ${s}`),allowClear:c,onClear:()=>{null==u||u()}})},Zv=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:a,placeholderFrom:l,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:f}=e;if("range"!==e.mode)return null;const p=Kv(null==(t=e.selected)?void 0:t.from,u),h=Kv(null==(n=e.selected)?void 0:n.to,u);return Oe.jsxs("div",{"data-test":o,className:`${r} ${a?"cursor-default text-[var(--colors-gray-300)]":"cursor-pointer"} inline-flex gap-4 w-fit items-center`,onClick:e=>!a&&c(e),children:[Oe.jsx(os,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:l,value:p,disabled:!!a,className:`${i} w-36`,InputProps:{endAdornment:Oe.jsx($i,{width:24,height:24})}}),Oe.jsx(os,{label:f,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!a,className:`${i} w-36`,InputProps:{endAdornment:Oe.jsx($i,{width:24,height:24})}})]})},Xv=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:a,allowClear:l,dateFormat:s,error:u=!1,helperText:c}=e;return"single"!==e.mode?null:Oe.jsx(os,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Oe.jsx($i,{width:24,height:24})},value:Kv(e.selected,s),disabled:!!o,className:th(`w-36 ${i}`),allowClear:l,onClear:()=>{null==a||a()},label:e.label,error:u,helperText:c})},Qv=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Oe.jsx(Yv,{...e,onClick:e.onClick}):n?Oe.jsx(Zv,{...e,onClick:e.onClick}):Oe.jsx(Xv,{...e,onClick:e.onClick})},Jv=e=>{const[t,n]=p(null),[o,r]=p(!1);return Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(Qv,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,r)}}),Oe.jsx($v,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})};function ey(t){if(typeof window>"u")return t;const n=e.useRef(null);return e.useLayoutEffect((()=>{n.current=t})),e.useCallback(((...e)=>{var t;null===(t=n.current)||void 0===t||t.call(n,...e)}),[])}const ty={};const ny={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function oy({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:o}){const l=r(!0);a((()=>(l.current=!0,()=>{l.current=!1})),[]);const[s,u]=p(ny),c=i((e=>{l.current&&u(e)}),[]),d=i((e=>c((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),f=ey((e=>(s.isOpen?m(e):h(e),s))),h=ey((t=>{const o=t instanceof Element?void 0:t,r=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void c((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,a=null==o?void 0:o.clientY,l="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,s=i=>{if(!t&&!i.setAnchorElUsed&&"dialog"!==n&&function(e,t){ty[e]||(ty[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(x)))}const a={...i,isOpen:!0,anchorPosition:l,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return null!=o&&o.currentTarget?i.setAnchorElUsed||(a.anchorEl=null==o?void 0:o.currentTarget):r&&(a.anchorEl=r),a};c((e=>e._deferNextOpen?(setTimeout((()=>c(s)),0),{...e,_deferNextOpen:!1}):s(e)))})),g=t=>{const{_childPopupState:n}=t;return setTimeout((()=>{null==n||n.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},m=ey((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?c((e=>e._deferNextClose?(setTimeout((()=>c(g)),0),{...e,_deferNextClose:!1}):g(e))):c((e=>({...e,_deferNextClose:!0})))})),v=i(((e,t)=>{e?h(t):m(t)}),[]),y=ey((e=>{const{relatedTarget:t}=e;c((e=>!e.hovered||t instanceof Element&&ly(t,x)?e:e.focused?{...e,hovered:!1}:g(e)))})),b=ey((e=>{if(!e)return;const{relatedTarget:t}=e;c((e=>!e.focused||t instanceof Element&&ly(t,x)?e:e.hovered?{...e,focused:!1}:g(e)))})),w=i((e=>c((t=>({...t,_childPopupState:e})))),[]),x={...s,setAnchorEl:d,popupId:t,variant:n,open:h,close:m,toggle:f,setOpen:v,onBlur:b,onMouseLeave:y,disableAutoFocus:o??!(!s.hovered&&!s.focused),_setChildPopupState:w};return x}function ry({isOpen:e,popupId:t,variant:n}){return{..."popover"===n?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===n?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function iy(e){return{...ry(e),onClick:e.open,onTouchStart:e.open}}function ay({isOpen:e,anchorEl:t,popupId:n,onMouseLeave:o}){return{id:n,anchorEl:t,open:e,onMouseLeave:o}}function ly(e,t){const{anchorEl:n,_childPopupState:o}=t;return sy(n,e)||sy(function(e,{popupId:t}){if(!t)return null;const n="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof n.getElementById?n.getElementById(t):null}(e,t),e)||null!=o&&ly(e,o)}function sy(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function uy({children:e,popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}){return e(oy({popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}))??null}uy.propTypes={children:fe.func.isRequired,popupId:fe.string,variant:fe.oneOf(["popover","popper"]).isRequired,parentPopupState:fe.object,disableAutoFocus:fe.bool};const cy=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:12,a=r?o.getHours():o.getMinutes();return Oe.jsx("div",{className:"styled-time-picker-root_column overflow-y-scroll scrollbar-track-transparent scrollbar-thumb-delta-100 scrollbar-thin",children:new Array(i).fill(null).map(((e,o)=>{const i=r?o:5*o,l=t&&i===(r?function(e){return ih(1,arguments),ah(e).getHours()}(t):function(e){return ih(1,arguments),ah(e).getMinutes()}(t)),s=a==i;return Oe.jsx("div",{className:sn("styled-time-picker-root_cell",l&&"styled-time-picker-root_cell__cell-selected",s&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(function(e,t){if(ih(2,arguments),"object"!==oh(t)||null===t)throw new RangeError("values parameter must be an object");var n=ah(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Pg(n,t.month)),null!=t.date&&n.setDate(rh(t.date)),null!=t.hours&&n.setHours(rh(t.hours)),null!=t.minutes&&n.setMinutes(rh(t.minutes)),null!=t.seconds&&n.setSeconds(rh(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(rh(t.milliseconds)),n)}(t||new Date,r?{hours:i}:{minutes:i}))},children:i.toString().padStart(2,"0")},i)}))})},dy=({value:e,onSelect:t,dataTest:n})=>{const o=r(null);return a((()=>{var e;null==(e=o.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[o]),Oe.jsxs("div",{ref:o,"data-test":n,className:"styled-time-picker-root",children:[Oe.jsx(cy,{type:"hours",value:e,onSelect:t}),Oe.jsx(cy,{type:"minutes",value:e,onSelect:t})]})},fy=e=>{const{popupState:t,dataTest:n,value:o,onSelect:r,handleClear:i}=e;return Oe.jsx(V,{...ay(t),transition:!0,className:"z-[1300] absolute top-2",children:({TransitionProps:e})=>Oe.jsx(B,{...e,timeout:350,children:Oe.jsxs(R,{className:"pb-[1px]",children:[Oe.jsx(dy,{dataTest:`${n}-time-picker-body`,value:o,onSelect:r}),Oe.jsxs("div",{className:"flex my-3 justify-between",children:[Oe.jsx(ta,{variant:"text",onClick:i,size:"small",disabled:!o,dataTest:"select-today",className:"!min-w-[40px] ml-2.5",startIcon:Oe.jsx(Pr,{icon:"ph:eraser-duotone",width:24,height:24})}),Oe.jsx(ta,{size:"small",onClick:()=>t.close(),dataTest:"select-time",className:"!min-w-[40px] mr-4",startIcon:Oe.jsx(Pr,{icon:"bi:check-lg",width:20,height:20})})]})]})})})},py=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),hy=({isValidTime:e,error:t=!1,localization:n="en",helperText:o})=>{if(e&&!t)return null;let r=o;return e||(r="en"===n?"Not valid":"Ikke gyldig"),Oe.jsx("span",{className:"absolute",children:r})},gy=e=>{const{placeholder:t,disabled:n,inputClassName:o,dataTest:r,width:i,error:a,helperText:l,label:s,locale:u="en",popupState:c,handleChange:d,isValidTime:f,localValue:p}=e;return Oe.jsx(os,{name:"password",autoComplete:"off",type:"text",dataTest:r,placeholder:t,size:"small",error:!f||a,helperText:Oe.jsx(hy,{isValidTime:f,error:a,localization:u,helperText:l}),onChange:d,InputProps:{endAdornment:Oe.jsx(py,{width:24,height:24,onClick:()=>!n&&c.open()})},value:p,sx:{maxWidth:i||130,width:i,minWidth:i},disabled:n,className:th(o),label:s})},my=e=>{const{value:t,onSelect:n}=e,[o,r]=p(t?xg(t,"HH:mm"):""),[i,a]=p(!0),l=e=>{const t=e.target.value;r(t);const o=(e=>{var t,n;const o=e.split(":"),r=Number(o[0]),i=Number(o[1]);if(2==(null==(t=o[0])?void 0:t.length)&&2==(null==(n=o[1])?void 0:n.length)&&r>=0&&r<=23&&i>=0&&i<=59){const e=new Date;return e.setHours(r),e.setMinutes(i),e}return null})(t);n(o||void 0),a(!!o)},s=e=>{n(e),r(e?xg(e,"HH:mm"):""),a(!0)},u=()=>{n(void 0),r(""),a(!0)};return Oe.jsx(uy,{variant:"popper",popupId:"time-picker-popper",children:t=>Oe.jsx(H,{mouseEvent:"onMouseDown",onClickAway:()=>{t.close()},children:Oe.jsxs("div",{className:"w-fit h-fit relative",children:[Oe.jsx("div",{...iy(t),children:Oe.jsx(gy,{...e,popupState:t,localValue:o,isValidTime:i,handleChange:l})}),t.isOpen&&Oe.jsx(fy,{...e,popupState:t,handleClear:u,onSelect:s})]})})})},vy=e=>Oe.jsx(U,{...e}),yy=e=>Oe.jsx(W,{...e}),by=e=>Oe.jsx(G,{...e}),wy=e=>Oe.jsx($,{...e}),xy=e=>Oe.jsx(K,{...e}),_y=e=>Oe.jsx(Y,{...e}),ky=e=>Oe.jsx(Z,{...e}),Ey=e=>{var t,n;return Oe.jsx(X,{...e,classes:{paper:sn("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:sn("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},Cy=e=>{var t;return Oe.jsx(M,{...e,classes:{root:sn("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},Oy=e=>Oe.jsx(Q,{...e}),Sy="_link_gyvti_1",Ny=({href:e,title:t,disabled:n,size:o="large",dataTest:r,reflink:i,className:a,...l})=>{let s="text-sm";return"large"===o&&(s="text-base"),n?Oe.jsx("span",{className:`font-roboto font-semibold w-fit underline rounded px-1 py-0.5 outline-none border-none text-delta-300 ${s}`,children:t}):Oe.jsx("a",{...l,"data-test":r,ref:i,href:e,className:sn(`${Sy} + ${s}`,a),children:t})},jy=e=>Oe.jsx(J,{...e,sx:{"&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"}}}),Ty=e=>Oe.jsx(ee,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),Py=e=>Oe.jsx(te,{...e}),My=e=>Oe.jsx(ne,{...e}),Ay=e=>Oe.jsx(oe,{...e,className:sn("flex-row-reverse gap-2.5",e.className),expandIcon:Oe.jsx(yi,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),Ry=e=>Oe.jsx(re,{...e}),Dy="select",Iy="expand-column-id",Ly="actions";
|
|
25
|
+
*/typeof self<"u"&&self;var tg=eg.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),d=n(12),f=n(32),p=n(33),h=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var a,l={},s={},u={},c={};function d(e,t){var n=p(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function p(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=c[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=c.block:e&a.LEVEL&a.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?l[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=d,t.find=f,t.query=p,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=a.length(i)}return new s(n)},s.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),o.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=c:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&r(u.ops[u.ops.length-1],p)){var g=new s(t.rest());return u.concat(g).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&u.push(f)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var l=c.next(n),s=d.next(n);r(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),l=n.next(i),u=o.next(i);if(l.delete)continue;u.delete?r.push(u):r.retain(i,a.attributes.transform(l.attributes,u.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(l(r)||(i=a(r)))?(i?(i=!1,c=o&&a(o)?o:[]):c=o&&l(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=d(n(3)),a=d(n(2)),l=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=1,m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))}),new a.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(l.default.query(o,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-g)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:y(e.parent,t)}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var a=m(n(2)),l=m(n(14)),s=m(n(8)),u=m(n(9)),c=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),g=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;_.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return _.call(this,(function(){var o=n.getSelection(!0),r=new a.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatLine(e,t,l)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatText(e,t,l)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return _.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,0,n,o,i),u=r(s,4);return e=u[0],l=u[2],i=u[3],_.call(this,(function(){return a.editor.insertText(e,t,l)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,o),a=r(i,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function _(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=E(r,l,t):0!==o&&(r=E(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),l.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,l,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return l}function k(e,t,n,r,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||s.default.sources.API]}function E(e,t,n,o){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],l=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":g.default},t.expandConfig=x,t.overload=k,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&a.default.query(o,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);d.allowedChildren=[d,a.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(0)).default.Text);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){l(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){r=e},t.default=a},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(l(e)||l(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),a(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),f=r(t)}catch{return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=d(n(2)),l=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);g.blotName="code",g.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),a=o(r,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=l.default.query(o,l.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,u=this.isolate(a,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-a+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=g,t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=v(n(2)),l=v(n(20)),s=v(n(0)),u=v(n(13)),c=v(n(24)),d=n(4),f=v(d),p=v(n(16)),h=v(n(21)),g=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,x=function(){function e(t){b(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=k(e)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=r(h,2),v=g[0],y=g[1],b=(0,m.default)({},(0,d.bubbleFormats)(v));if(v instanceof f.default){var w=v.descendant(s.default.Leaf,y),x=r(w,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(x))}c=l.default.attributes.diff(b,c)||{}}else if("object"===o(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,r,o[r])}else t.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(y({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==f.default.blotName||e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),l=i[0],s=i[1],c=0,d=new a.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),l=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new a.default).insert(u),p=(new a.default).insert(r.value());e=(new a.default).retain(l).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,g.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function k(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new a.default)}t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),a=u(n(21)),l=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;o.setNativeRange(r,i,a,l)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),a=o(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var f=this.scroll.leaf(e+t),p=o(f,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),g=o(h,2);return r=g[0],s=g[1],d.setEnd(r,s),d.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),m="right"),v=d.getBoundingClientRect()):(v=l.domNode.getBoundingClientRect(),s>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],a=n[1],l=i.default.find(r,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(r,a)})),a=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(r)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a=void 0,l=t.scroll.leaf(e),s=o(l,2),u=s[0],c=s[1],d=u.position(c,0!==n),f=o(d,2);a=f[0],c=f[1],r.push(a,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),a=o(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));l=o(s,1)[0]}if(null!=a&&null!=l){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,o),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function g(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=a})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],a=[[this,e]];return r instanceof t?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(a.default);function u(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch{t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(l.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,a,l,s,c){"object"==typeof a&&(l=a.depth,s=a.prototype,c=a.includeNonEnumerable,a=a.circular);var d=[],f=[],p=typeof Buffer<"u";function h(i,l){if(null===i)return null;if(0===l)return i;var g,m;if("object"!=typeof i)return i;if(e(i,t))g=new t;else if(e(i,n))g=new n;else if(e(i,o))g=new o((function(e,t){i.then((function(t){e(h(t,l-1))}),(function(e){t(h(e,l-1))}))}));else if(r.__isArray(i))g=[];else if(r.__isRegExp(i))g=new RegExp(i.source,u(i)),i.lastIndex&&(g.lastIndex=i.lastIndex);else if(r.__isDate(i))g=new Date(i.getTime());else{if(p&&Buffer.isBuffer(i))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(g),g;e(i,Error)?g=Object.create(i):typeof s>"u"?(m=Object.getPrototypeOf(i),g=Object.create(m)):(g=Object.create(s),m=s)}if(a){var v=d.indexOf(i);if(-1!=v)return f[v];d.push(i),f.push(g)}for(var y in e(i,t)&&i.forEach((function(e,t){var n=h(t,l-1),o=h(e,l-1);g.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,l-1);g.add(t)})),i){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),(!b||null!=b.set)&&(g[y]=h(i[y],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(y=0;y<w.length;y++){var x=w[y];(k=Object.getOwnPropertyDescriptor(i,x))&&!k.enumerable&&!c||(g[x]=h(i[x],l-1),k.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(c){var _=Object.getOwnPropertyNames(i);for(y=0;y<_.length;y++){var k,E=_[y];(k=Object.getOwnPropertyDescriptor(i,E))&&k.enumerable||(g[E]=h(i[E],l-1),Object.defineProperty(g,E,{enumerable:!1}))}}return g}return typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0),h(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){return"object"==typeof e&&"[object Date]"===i(e)}function l(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=a,r.__isArray=l,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=p(n(0)),l=p(n(8)),s=n(4),u=p(s),c=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e){return e instanceof u.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return m(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),a=o(r,2),l=a[0],u=a[1],f=this.line(e+n),p=o(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&u>0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var m=p.children.head instanceof c.default?null:p.children.head;l.moveChildren(p,m),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var l=a.default.create(n,o);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(v,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){v(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,f.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=g(n(21)),l=g(n(11)),s=g(n(3)),u=g(n(2)),c=g(n(20)),d=g(n(0)),f=g(n(5)),p=g(n(10)),h=g(n(9));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,p.default)("quill:keyboard"),x=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_=function(e){function t(e,n){v(this,t);var o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},S),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0},C)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},C)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},O),o.addBinding({key:t.keys.DELETE},{collapsed:!1},O),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),o.listen(),o}return b(t,e),i(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=T(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),f=c[0],p=c[1],h=e.quill.getLeaf(s.index),g=r(h,2),m=g[0],v=g[1],y=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),b=r(y,2),w=b[0],x=b[1],_=m instanceof d.default.Text?m.value().slice(0,v):"",k=w instanceof d.default.Text?w.value().slice(x):"",E={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:_,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed||null!=t.empty&&t.empty!==E.empty||null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,s,E)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function k(e,t){var n,o=e===_.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},o,/^$/),m(n,"handler",(function(n){var o=n.index;e===_.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===_.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=r(a,1)[0];if(null!=l&&l.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function C(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(e.index),l=r(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=l.formats(),p=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,f.default.sources.USER)}}function O(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function S(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function N(e){return{key:_.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,a=this.quill.scroll.descendant(n,o),l=r(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),g=s.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(t,r){e?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(o,i,f.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=_.keys[e.key.toUpperCase()])e.key=_.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[x]=e.shortKey,delete e.shortKey),e}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:_.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:_.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:_.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(0,s.default)({},o.formats(),{list:"checked"}),l=(new u.default).retain(e.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],a=o[1],l=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":k(_.keys.LEFT,!1),"embed left shift":k(_.keys.LEFT,!0),"embed right":k(_.keys.RIGHT,!1),"embed right shift":k(_.keys.RIGHT,!0)}},t.default=_,t.SHORTKEY=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=s(n(0)),l=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),f=o(d,2);return i=f[0],s=f[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\ufeff",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),f=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),a=v(i),l=v(n(16)),s=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),f=v(n(22)),p=v(n(7)),h=v(n(55)),g=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":m.default}),o.default.register(a.default,l.default,u.default,d.default,f.default,p.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",f=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),l=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),l=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),f=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),p=new f("font","font-family",c);t.FontStyle=p,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){l(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=f(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function f(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=h(n(3)),a=h(n(2)),l=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],_=["small",!1,"large","huge"],k=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return v(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&O(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&O(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?O(e,w):e.classList.contains("ql-header")?O(e,x):e.classList.contains("ql-size")&&O(e,_)),new f.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(l.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(o.index).delete(o.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(o.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return v(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,l.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=C(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",l.default.sources.USER),this.quill.setSelection(o+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function C(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=E,t.default=k},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],a=e-r[1],l=this.iterator(i);(o=l())&&a<e+t;){var s=o.length();e>a?n(o,e-a,Math.min(t,a+s-e)):n(o,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null==e.domNode[a.DATA_KEY]||null==e.domNode[a.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[a.DATA_KEY]||e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1);function l(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&l(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=a.query(o,a.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=a.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var l=e.substring(e.length-o),s=a(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),l&&s.push([r,l]),f(s),null!=n&&(s=g(s,n)),s=m(s)}function a(e,t){var a;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return a=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[o,t]];var f=d(e,t);if(f){var p=f[0],h=f[1],g=f[2],m=f[3],v=f[4],y=i(p,g),b=i(h,m);return y.concat([[r,v]],b)}return l(e,t)}function l(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,u=2*a,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[l+1]=0,d[l+1]=0;for(var p=r-i,h=p%2!=0,g=0,m=0,v=0,y=0,b=0;b<a;b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=l+w,_=(S=w==-b||w!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;S<r&&_<i&&e.charAt(S)==t.charAt(_);)S++,_++;if(c[x]=S,S>r)m+=2;else if(_>i)g+=2;else if(h&&(C=l+p-w)>=0&&C<u&&-1!=d[C]&&S>=(E=r-d[C]))return s(e,t,S,_)}for(var k=-b+v;k<=b-y;k+=2){for(var E,C=l+k,O=(E=k==-b||k!=b&&d[C-1]<d[C+1]?d[C+1]:d[C-1]+1)-k;E<r&&O<i&&e.charAt(r-E-1)==t.charAt(i-O-1);)E++,O++;if(d[C]=E,E>r)y+=2;else if(O>i)v+=2;else if(!h){var S;if((x=l+p-k)>=0&&x<u&&-1!=c[x]&&(_=l+(S=c[x])-x,S>=(E=r-E)))return s(e,t,S,_)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),s=t.substring(o),u=i(r,a),c=i(l,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,a,l=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(l,s+1));){var f=u(e.substring(n),t.substring(s)),p=c(e.substring(0,n),t.substring(0,s));d.length<p+f&&(d=t.substring(s-p,s)+t.substring(s,s+f),o=e.substring(0,n-p),r=e.substring(n+f),i=t.substring(0,s-p),a=t.substring(s+f))}return 2*d.length>=e.length?[o,r,i,a,d]:null}var i,a,l,s,d,f=r(n,o,Math.ceil(n.length/4)),p=r(n,o,Math.ceil(n.length/2));return f||p?(i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=i[0],l=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],a=i[2],l=i[3]),[a,l,s,d,i[4]]):null}function f(e){e.push([r,""]);for(var t,i=0,a=0,l=0,s="",d="";i<e.length;)switch(e[i][0]){case o:l++,d+=e[i][1],i++;break;case n:a++,s+=e[i][1],i++;break;case r:a+l>1?(0!==a&&0!==l&&(0!==(t=u(d,s))&&(i-a-l>0&&e[i-a-l-1][0]==r?e[i-a-l-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===a?e.splice(i-l,a+l,[o,d]):0===l?e.splice(i-a,a+l,[n,s]):e.splice(i-a-l,a+l,[n,s],[o,d]),i=i-a-l+(a?1:0)+(l?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,l=0,a=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&f(e)}var p=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var a=e[i];if(a[0]===n||a[0]===r){var l=o+a[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var s=t-o,u=[a[0],a[1].slice(0,s)],c=[a[0],a[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=l}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=h(e,t),o=n[1],i=n[0],a=o[i],l=o[i+1];if(null==a)return e;if(a[0]!==r)return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),v(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var s=l[1].slice(a[1].length);return s.length>0&&o.splice(i+2,0,[l[0],s]),v(o,i,3)}return e}function m(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l<e.length;l+=1)e[l-2][0]===r&&a(e[l-2][1])&&e[l-1][0]===n&&i(e[l-1][1])&&e[l][0]===o&&i(e[l][1])&&(t=!0,e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1],e[l][1]=e[l-2][1].slice(-1)+e[l][1],e[l-2][1]=e[l-2][1].slice(0,-1));if(!t)return e;var s=[];for(l=0;l<e.length;l+=1)e[l][1].length>0&&s.push(e[l]);return s}function v(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}p.INSERT=o,p.DELETE=n,p.EQUAL=r,e.exports=p},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,l=new Array(a);i<a;i++)l[i]=r[i].fn;return l},a.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},a.prototype.on=function(e,t,n){var r=new i(t,n||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn===t&&(!i||l.once)&&(!n||l.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&u.push(l[s]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,typeof e<"u"&&(e.exports=a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=b(n(3)),l=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),d=b(n(9)),f=n(36),p=n(37),h=b(n(13)),g=n(26),m=n(38),v=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=(0,c.default)("quill:clipboard"),C="__ql-matcher",O=[[Node.TEXT_NODE,U],[Node.TEXT_NODE,V],["br",q],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,H],["li",z],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",F]],S=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=[f.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),j=function(e){function t(e,n){x(this,t);var o=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],O.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],a=t[1];!n.matchVisual&&a===B||o.addMatcher(i,a)})),o}return k(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],s=i[1],u=R(this.container,a,s);return M(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),E.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new l.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[C]=e[C]||[],e[C].push(l)}))}})),[t,n]}}]),t}(d.default);function T(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return T(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},w({},t,n),o.attributes))}),new l.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function M(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function A(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=R(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[C]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new l.default):new l.default}function D(e,t,n){return T(n,e,!0)}function I(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=S[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=N[t])&&(n.attrName===t||n.keyName===t)&&(n=N[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=T(t,i)),t}function L(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new l.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function q(e,t){return M(t,"\n")||t.insert("\n"),t}function F(){return new l.default}function z(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!M(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:o}))}function V(e,t){return M(t,"\n")||(A(e)||t.length()>0&&e.nextSibling&&A(e.nextSibling))&&t.insert("\n"),t}function B(e,t){if(A(e)&&null!=e.nextElementSibling&&!M(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),o.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=T(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}function U(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&A(e.parentNode)||null!=e.previousSibling&&A(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&A(e.parentNode)||null!=e.nextSibling&&A(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},t.default=j,t.matchAttributor=I,t.matchBlot=L,t.matchNewline=V,t.matchSpacing=B,t.matchText=U},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),a=c(n(0)),l=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=(0,s.default)("quill:toolbar"),m=function(e){function t(e,n){f(this,t);var r,i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");y(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=g.error("Container required for toolbar",i.options),p(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void g.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void g.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(d({},n,s)),l.default.sources.USER)}else t.quill.format(n,s,l.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],a=r[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function v(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)v(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?b(n,t,o):v(n,t,o)}})),e.appendChild(n)}))}function b(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}m.DEFAULTS={},m.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=m,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var a=r.bottom-r.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=p(n(3)),l=p(n(8)),s=n(43),u=p(s),c=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);y.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===l.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),a=o(i,2),s=a[0],u=a[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var f=c.default.formats(s.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=D(n(29)),r=n(36),i=n(38),a=n(64),l=D(n(65)),s=D(n(66)),u=n(67),c=D(u),d=n(37),f=n(26),p=n(39),h=n(40),g=D(n(56)),m=D(n(68)),v=D(n(27)),y=D(n(69)),b=D(n(70)),w=D(n(71)),x=D(n(72)),_=D(n(73)),k=n(13),E=D(k),C=D(n(74)),O=D(n(75)),S=D(n(57)),N=D(n(41)),j=D(n(28)),T=D(n(59)),P=D(n(60)),M=D(n(61)),A=D(n(108)),R=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":_.default,"formats/list/item":u.ListItem,"modules/formula":C.default,"modules/syntax":O.default,"modules/toolbar":S.default,"themes/bubble":A.default,"themes/snow":R.default,"ui/icons":N.default,"ui/picker":j.default,"ui/icon-picker":P.default,"ui/color-picker":T.default,"ui/tooltip":M.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(4)).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(4)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return f(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof p)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(56)).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,a.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=n(4),a=l(n(27));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return a.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(35)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),s=d(l),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);m.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){f(this,t);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var l=i[i.length-1],s=o.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default,ng=Vn&&Vn.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),og=Vn&&Vn.__assign||function(){return og=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},og.apply(this,arguments)},rg=Vn&&Vn.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,r++)o[r]=i[a];return o},ig=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ag=ig(t),lg=ig(he),sg=ig(Jh),ug=ig(tg),cg=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,a,l,s;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(l=n).onEditorChangeSelection)||void 0===s||s.call(l,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return ng(t,e),t.prototype.validateProps=function(e){var t;if(ag.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(ag.default.Children.count(e.children)&&"textarea"===(null===(t=ag.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),rg(this.cleanProps,this.dirtyProps).some((function(t){return!sg.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!sg.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(o),dg((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new ug.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?sg.default(e.ops,t.ops):sg.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),dg((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=lg.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return ag.default.Children.count(n)?ag.default.cloneElement(ag.default.Children.only(n),r):o?ag.default.createElement("pre",og({},r)):ag.default.createElement("div",og({},r))},t.prototype.render=function(){var e;return ag.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var a=this.isDelta(this.value)?o.getContents():o.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,a,l,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;sg.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(s=(l=this.props).onBlur)||void 0===s||s.call(l,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=ug.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(ag.default.Component);function dg(e){Promise.resolve().then(e)}const fg=Bn(cg),pg="_viewMode_dgzrp_1",hg="_editMode_dgzrp_2",gg="_text-label_dgzrp_24",mg="_error-message_dgzrp_28",vg={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},yg=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],bg=({dataTest:e,...t})=>Kn.jsxs(Kn.Fragment,{children:[t.label&&Kn.jsx("span",{className:Yt(gg),"data-test":`label-${e}`,children:t.label}),t.disabled?Kn.jsx(fg,{...t,className:Yt(pg,t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Kn.jsx(fg,{...t,className:Yt(hg,t.className),modules:{...vg,...t.modules},formats:{...yg,...t.formats},"data-test":e}),(t.is_error?"error":t.is_warning?"warning":!!t.isRequired||null)&&Kn.jsx("span",{className:mg,"data-test":`error-${e}`,children:t.error?t.error:"error"})]}),wg=({dataTest:e,allowClear:t,...n})=>Kn.jsx(P,{...n,"data-test":e,value:n.value,IconComponent:e=>Kn.jsx(Ka,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Yt(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Kn.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Kn.jsx(Ll,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...n.sx}}),xg=e=>Kn.jsx(M,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children});function _g({dataTest:e,...t}){return Kn.jsx(A,{...t,className:Yt("!text-sm",t.className),popupIcon:t.popupIcon||Kn.jsx(Ka,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:Yt("select-custom-icon")}),"data-test":e,PaperComponent:({children:t})=>Kn.jsx(R,{"data-test":`paper-${e}`,sx:{"& ul":{padding:"0 !important"},"& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...t.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})}const kg=({dataTest:e,...t})=>{var n,o,r;return Kn.jsx(D,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:Yt("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:Yt("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},Eg=({dataTest:e,...t})=>Kn.jsx(I,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),Cg=({dataTest:e,...t})=>Kn.jsx(L,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),Og=({dataTest:e,...t})=>Kn.jsx(q,{"data-test":e,...t}),Sg=({children:e,onClick:t,className:n,dataTest:o,style:r})=>Kn.jsx("div",{className:zn("styled-label",n),style:r,onClick:t,"data-test":o,children:e});const Ng={code:"en-GB",formatDistance:mt,formatLong:{date:vt({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:vt({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:vt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:wt,localize:_t,match:Ct,options:{weekStartsOn:1,firstWeekContainsDate:4}};var jg=function(){return jg=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},jg.apply(this,arguments)};function Tg(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Pg(e){return"multiple"===e.mode}function Mg(e){return"range"===e.mode}function Ag(e){return"single"===e.mode}var Rg={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Dg=Object.freeze({__proto__:null,formatCaption:function(e,t){return Mt(e,"LLLL y",t)},formatDay:function(e,t){return Mt(e,"d",t)},formatMonthCaption:function(e,t){return Mt(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return Mt(e,"cccccc",t)},formatYearCaption:function(e,t){return Mt(e,"yyyy",t)}}),Ig=Object.freeze({__proto__:null,labelDay:function(e,t,n){return Mt(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return Mt(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Lg=m(void 0);function qg(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:Rg,formatters:Dg,labels:Ig,locale:Ot,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},a=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,a=e.toDate;return o?i=Fe(o):t&&(i=new Date(t,0,1)),r?a=qe(r):n&&(a=new Date(n,11,31)),{fromDate:i?je(i):void 0,toDate:a?je(a):void 0}}(r),l=a.fromDate,s=a.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!l||!s)&&(u="buttons"),(Ag(r)||Pg(r)||Mg(r))&&(o=r.onSelect);var c=jg(jg(jg({},i),r),{captionLayout:u,classNames:jg(jg({},i.classNames),r.classNames),components:jg({},r.components),formatters:jg(jg({},i.formatters),r.formatters),fromDate:l,labels:jg(jg({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:jg(jg({},i.modifiers),r.modifiers),modifiersClassNames:jg(jg({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:jg(jg({},i.styles),r.styles),toDate:s});return t.createElement(Lg.Provider,{value:c},e.children)}function Fg(){var e=u(Lg);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function zg(e){var n=Fg(),o=n.locale,r=n.classNames,i=n.styles,a=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},a(e.displayMonth,{locale:o}))}function Vg(e){return t.createElement("svg",jg({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function Bg(e){var n,o,r=e.onChange,i=e.value,a=e.children,l=e.caption,s=e.className,u=e.style,c=Fg(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:Vg;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},a),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},l,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function Hg(e){var n,o=Fg(),r=o.fromDate,i=o.toDate,a=o.styles,l=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var f=[];if(function(e,t){be(2,arguments);var n=we(e),o=we(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var p=Fe(r),h=r.getMonth();h<=i.getMonth();h++)f.push(Ht(p,h));else for(p=Fe(new Date),h=0;h<=11;h++)f.push(Ht(p,h));var g=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:Bg;return t.createElement(g,{name:"months","aria-label":d(),className:u.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=Ht(Fe(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:l})},f.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:l}))})))}function Ug(e){var n,o=e.displayMonth,r=Fg(),i=r.fromDate,a=r.toDate,l=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,p=[];if(!i)return t.createElement(t.Fragment,null);if(!a)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),g=a.getFullYear(),m=h;m<=g;m++)p.push(Wt(ze(new Date),m));var v=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:Bg;return t.createElement(v,{name:"years","aria-label":f(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=Wt(Fe(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:l})},p.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:l}))})))}function Wg(){var e=Fg(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,a=e.fromDate,l=e.numberOfMonths,s=void 0===l?1:l;return i&&Ie(i,r)<0&&(r=_e(i,-1*(s-1))),a&&Ie(r,a)<0&&(r=a),Fe(r)}(e),n=function(e,t){var n=p(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=Fe(t);r(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var Gg=m(void 0);function $g(e){var n=Fg(),o=Wg(),r=o[0],i=o[1],a=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=Fe(e),i=Ie(Fe(_e(r,o)),r),a=[],l=0;l<i;l++){var s=_e(r,l);a.push(s)}return n&&(a=a.reverse()),a}(r,n),l=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,a=o?i:1,l=Fe(e);if(!n)return _e(l,a);if(!(Ie(n,e)<i))return _e(l,a)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,a=Fe(e);if(!n)return _e(a,-i);if(!(Ie(a,n)<=0))return _e(a,-i)}}(r,n),u=function(e){return a.some((function(t){return Vt(e,t)}))},c={currentMonth:r,displayMonths:a,goToMonth:i,goToDate:function(e,t){u(e)||(t&&Ft(e,t)?i(_e(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:l,isDateDisplayed:u};return t.createElement(Gg.Provider,{value:c},e.children)}function Kg(){var e=u(Gg);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Yg(e){var n,o=Fg(),r=o.classNames,i=o.styles,a=o.components,l=Kg().goToMonth,s=function(t){l(_e(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==a?void 0:a.CaptionLabel)&&void 0!==n?n:zg,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(Hg,{onChange:s,displayMonth:e.displayMonth}),t.createElement(Ug,{onChange:s,displayMonth:e.displayMonth}))}function Zg(e){return t.createElement("svg",jg({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function Xg(e){return t.createElement("svg",jg({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var Qg=o((function(e,n){var o=Fg(),r=o.classNames,i=o.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var l=a.join(" "),s=jg(jg({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",jg({},e,{ref:n,type:"button",className:l,style:s}))}));function Jg(e){var n,o,r=Fg(),i=r.dir,a=r.locale,l=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var p=c(e.previousMonth,{locale:a}),h=[l.nav_button,l.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:a}),m=[l.nav_button,l.nav_button_next].join(" "),v=null!==(n=null==f?void 0:f.IconRight)&&void 0!==n?n:Xg,y=null!==(o=null==f?void 0:f.IconLeft)&&void 0!==o?o:Zg;return t.createElement("div",{className:l.nav,style:s.nav},!e.hidePrevious&&t.createElement(Qg,{name:"previous-month","aria-label":p,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(v,{className:l.nav_icon,style:s.nav_icon}):t.createElement(y,{className:l.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement(Qg,{name:"next-month","aria-label":g,className:m,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(y,{className:l.nav_icon,style:s.nav_icon}):t.createElement(v,{className:l.nav_icon,style:s.nav_icon})))}function em(e){var n=Fg().numberOfMonths,o=Kg(),r=o.previousMonth,i=o.nextMonth,a=o.goToMonth,l=o.displayMonths,s=l.findIndex((function(t){return Vt(e.displayMonth,t)})),u=0===s,c=s===l.length-1,d=n>1&&(u||!c),f=n>1&&(c||!u);return t.createElement(Jg,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){i&&a(i)}})}function tm(e){var n,o,r=Fg(),i=r.classNames,a=r.disableNavigation,l=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:zg;return o=a?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(Yg,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(Yg,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(em,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(em,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:l.caption},o)}function nm(e){var n=Fg(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function om(){var e=Fg(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,l=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?Oe(new Date):Ce(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var a=xe(o,i);r.push(a)}return r}(i,a,l);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function rm(){var e,n=Fg(),o=n.classNames,r=n.styles,i=n.components,a=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:om;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(a,null))}function im(e){var n=Fg(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var am=m(void 0);function lm(e){if(!Pg(e.initialProps)){return t.createElement(am.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(sm,{initialProps:e.initialProps,children:e.children})}function sm(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,a=n.max,l={disabled:[]};r&&l.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return Re(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var l,s;if((null===(l=n.onDayClick)||void 0===l||l.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!a||(null==r?void 0:r.length)!==a)){var u=r?Tg([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return Re(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:l};return t.createElement(am.Provider,{value:s},o)}function um(){var e=u(am);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var cm,dm=m(void 0);function fm(e){if(!Mg(e.initialProps)){return t.createElement(dm.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(pm,{initialProps:e.initialProps,children:e.children})}function pm(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},a=i.from,l=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],l?(c.range_end=[l],Re(a,l)||(c.range_middle=[{after:a,before:l}])):c.range_end=[a]):l&&(c.range_start=[l],c.range_end=[l]),s&&(a&&!l&&c.disabled.push({after:Bt(a,s-1),before:xe(a,s-1)}),a&&l&&c.disabled.push({after:a,before:xe(a,s-1)}),!a&&l&&c.disabled.push({after:Bt(l,s-1),before:xe(l,s-1)})),u){if(a&&!l&&(c.disabled.push({before:xe(a,1-u)}),c.disabled.push({after:xe(a,u-1)})),a&&l){var d=u-(Pe(l,a)+1);c.disabled.push({before:Bt(a,d)}),c.disabled.push({after:xe(l,d)})}!a&&l&&(c.disabled.push({before:xe(l,1-u)}),c.disabled.push({after:xe(l,u-1)}))}return t.createElement(dm.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,a;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var l=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?Re(r,e)&&Re(o,e)?void 0:Re(r,e)?{from:r,to:void 0}:Re(o,e)?void 0:qt(o,e)?{from:e,to:r}:{from:o,to:e}:r?qt(e,r)?{from:r,to:e}:{from:e,to:r}:o?Ft(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(a=n.onSelect)||void 0===a||a.call(n,l,e,t,o)},modifiers:c}},o)}function hm(){var e=u(dm);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function gm(e){return Array.isArray(e)?Tg([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(cm||(cm={}));var mm=cm.Selected,vm=cm.Disabled,ym=cm.Hidden,bm=cm.Today,wm=cm.RangeEnd,xm=cm.RangeMiddle,_m=cm.RangeStart,km=cm.Outside;var Em=m(void 0);function Cm(e){var n=Fg(),o=function(e,t,n){var o,r=((o={})[mm]=gm(e.selected),o[vm]=gm(e.disabled),o[ym]=gm(e.hidden),o[bm]=[e.today],o[wm]=[],o[xm]=[],o[_m]=[],o[km]=[],o);return e.fromDate&&r[vm].push({before:e.fromDate}),e.toDate&&r[vm].push({after:e.toDate}),Pg(e)?r[vm]=r[vm].concat(t.modifiers[vm]):Mg(e)&&(r[vm]=r[vm].concat(n.modifiers[vm]),r[_m]=n.modifiers[_m],r[xm]=n.modifiers[xm],r[wm]=n.modifiers[wm]),r}(n,um(),hm()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=gm(o)})),t}(n.modifiers),i=jg(jg({},o),r);return t.createElement(Em.Provider,{value:i},e.children)}function Om(){var e=u(Em);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Sm(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return De(e)}(t))return Re(e,t);if(function(e){return Array.isArray(e)&&e.every(De)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(Pe(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),Pe(e,o)>=0&&Pe(r,e)>=0):r?Re(r,e):!!o&&Re(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=Pe(t.before,e)>0,o=Pe(t.after,e)<0;return qt(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?Pe(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?Pe(t.before,e)>0:"function"==typeof t&&t(e)}))}function Nm(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return Sm(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!Vt(e,n)&&(r.outside=!0),r}var jm=365;function Tm(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,a=t.retry,l=void 0===a?{count:0,lastFocused:e}:a,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,f={day:xe,week:Me,month:_e,year:Ae,startOfWeek:function(e){return r.ISOWeek?Oe(e):Ce(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?Be(e):Ve(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?f=function(e){var t,n;if(be(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==ve(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=we(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,f]):"after"===o&&c&&(f=function(e){var t,n;if(be(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==ve(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=we(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,f]));var p=!0;if(i){var h=Nm(f,i);p=!h.disabled&&!h.hidden}return p?f:l.count>jm?l.lastFocused:Tm(f,{moveBy:n,direction:o,context:r,modifiers:i,retry:jg(jg({},l),{count:l.count+1})})}var Pm=m(void 0);function Mm(e){var n=Kg(),o=Om(),r=p(),i=r[0],a=r[1],l=p(),s=l[0],u=l[1],c=function(e,t){for(var n,o,r=Fe(e[0]),i=qe(e[e.length-1]),a=r;a<=i;){var l=Nm(a,t);if(l.disabled||l.hidden)a=xe(a,1);else{if(l.selected)return a;l.today&&!o&&(o=a),n||(n=a),a=xe(a,1)}}return o||n}(n.displayMonths,o),d=i??(s&&n.isDateDisplayed(s))?s:c,f=function(e){a(e)},h=Fg(),g=function(e,t){if(i){var r=Tm(i,{moveBy:e,direction:t,context:h,modifiers:o});Re(i,r)||(n.goToDate(r,i),f(r))}},m={focusedDay:i,focusTarget:d,blur:function(){u(i),a(void 0)},focus:f,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return t.createElement(Pm.Provider,{value:m},e.children)}function Am(){var e=u(Pm);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Rm=m(void 0);function Dm(e){if(!Ag(e.initialProps)){return t.createElement(Rm.Provider,{value:{selected:void 0}},e.children)}return t.createElement(Im,{initialProps:e.initialProps,children:e.children})}function Im(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,a;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(a=n.onSelect)||void 0===a||a.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(Rm.Provider,{value:r},o)}function Lm(){var e=u(Rm);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function qm(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(cm).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function Fm(e,n,o){var r,i,l,s=Fg(),u=Am(),c=function(e,t){return Nm(e,Om(),t)}(e,n),d=function(e,t){var n=Fg(),o=Lm(),r=um(),i=hm(),a=Am(),l=a.focusDayAfter,s=a.focusDayBefore,u=a.focusWeekAfter,c=a.focusWeekBefore,d=a.blur,f=a.focus,p=a.focusMonthBefore,h=a.focusMonthAfter,g=a.focusYearBefore,m=a.focusYearAfter,v=a.focusStartOfWeek,y=a.focusEndOfWeek;return{onClick:function(a){var l,s,u,c;Ag(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):Pg(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,a):Mg(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,a):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,a)},onFocus:function(o){var r;f(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():p();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():h();break;case"Home":o.preventDefault(),o.stopPropagation(),v();break;case"End":o.preventDefault(),o.stopPropagation(),y()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,c),f=function(){var e=Fg(),t=Lm(),n=um(),o=hm();return Ag(e)?t.selected:Pg(e)?n.selected:Mg(e)?o.selected:void 0}(),p=!(!s.onDayClick&&"default"===s.mode);a((function(){var t;c.outside||u.focusedDay&&p&&Re(u.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[u.focusedDay,e,o,p,c.outside]);var h=qm(s,c).join(" "),g=function(e,t){var n=jg({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=jg(jg({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(s,c),m=!!(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(l=null===(i=s.components)||void 0===i?void 0:i.DayContent)&&void 0!==l?l:im,y={style:g,className:h,children:t.createElement(v,{date:e,displayMonth:n,activeModifiers:c}),role:"gridcell"},b=u.focusTarget&&Re(u.focusTarget,e)&&!c.outside,w=u.focusedDay&&Re(u.focusedDay,e),x=jg(jg(jg({},y),((r={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,r.tabIndex=w||b?0:-1,r)),d);return{isButton:p,isHidden:m,activeModifiers:c,selectedDays:f,buttonProps:x,divProps:y}}function zm(e){var n=r(null),o=Fm(e.date,e.displayMonth,n);return o.isHidden?t.createElement("div",{role:"gridcell"}):o.isButton?t.createElement(Qg,jg({name:"day",ref:n},o.buttonProps)):t.createElement("div",jg({},o.divProps))}function Vm(e){var n=e.number,o=e.dates,r=Fg(),i=r.onWeekNumberClick,a=r.styles,l=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:l.weeknumber,style:a.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement(Qg,{name:"week-number","aria-label":d,className:l.weeknumber,style:a.weeknumber,onClick:function(e){i(n,o,e)}},c)}function Bm(e){var n,o,r,i=Fg(),a=i.styles,l=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:zm,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:Vm;return s&&(r=t.createElement("td",{className:l.cell,style:a.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:l.row,style:a.row},r,e.dates.map((function(n){return t.createElement("td",{className:l.cell,style:a.cell,key:Rt(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function Hm(e,t,n){for(var o=null!=n&&n.ISOWeek?Be(t):Ve(t,n),r=null!=n&&n.ISOWeek?Oe(e):Ce(e,n),i=Pe(o,r),a=[],l=0;l<=i;l++)a.push(xe(r,l));var s=a.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){be(1,arguments);var t=we(e),n=Oe(t).getTime()-Se(t).getTime();return Math.round(n/At)+1}(t):function(e,t){be(1,arguments);var n=we(e),o=Ce(n,t).getTime()-Dt(n,t).getTime();return Math.round(o/It)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function Um(e){var n,o,r,i=Fg(),a=i.locale,l=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,f=i.weekStartsOn,p=i.firstWeekContainsDate,h=i.ISOWeek,g=function(e,t){var n=Hm(Fe(e),qe(e),t);if(null!=t&&t.useFixedWeeks){var o=Lt(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],a=Me(i,6-o),l=Hm(Me(i,1),a,t);n.push.apply(n,l)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:f,firstWeekContainsDate:p}),m=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:rm,v=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:Bm,y=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:nm;return t.createElement("table",{id:e.id,className:l.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(m,null),t.createElement("tbody",{className:l.tbody,style:s.tbody},g.map((function(n){return t.createElement(v,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(y,{displayMonth:e.displayMonth}))}var Wm=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Gm=!1,$m=0;function Km(){return"react-day-picker-".concat(++$m)}function Ym(n){var o,r,i=Fg(),a=i.dir,l=i.classNames,s=i.styles,u=i.components,c=Kg().displayMonths,d=function(t){var n,o=t??(Gm?Km():null),r=e.useState(o),i=r[0],a=r[1];return Wm((function(){null===i&&a(Km())}),[]),e.useEffect((function(){!1===Gm&&(Gm=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),f=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,p=[l.month],h=s.month,g=0===n.displayIndex,m=n.displayIndex===c.length-1,v=!g&&!m;"rtl"===a&&(m=(o=[g,m])[0],g=o[1]),g&&(p.push(l.caption_start),h=jg(jg({},h),s.caption_start)),m&&(p.push(l.caption_end),h=jg(jg({},h),s.caption_end)),v&&(p.push(l.caption_between),h=jg(jg({},h),s.caption_between));var y=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:tm;return t.createElement("div",{key:n.displayIndex,className:p.join(" "),style:h},t.createElement(y,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(Um,{id:f,"aria-labelledby":d,displayMonth:n.displayMonth}))}function Zm(e){var n=e.initialProps,o=Fg(),r=Am(),i=Kg(),l=p(!1),s=l[0],u=l[1];a((function(){o.initialFocus&&r.focusTarget&&(s||(r.focus(r.focusTarget),u(!0)))}),[o.initialFocus,s,r.focus,r.focusTarget,r]);var c=[o.classNames.root,o.className];o.numberOfMonths>1&&c.push(o.classNames.multiple_months),o.showWeekNumber&&c.push(o.classNames.with_weeknumber);var d=jg(jg({},o.styles.root),o.style),f=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return jg(jg({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",jg({className:c.join(" "),style:d,dir:o.dir,id:o.id},f),t.createElement("div",{className:o.classNames.months,style:o.styles.months},i.displayMonths.map((function(e,n){return t.createElement(Ym,{key:n,displayIndex:n,displayMonth:e})}))))}function Xm(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(qg,{initialProps:o},t.createElement($g,null,t.createElement(Dm,{initialProps:o},t.createElement(lm,{initialProps:o},t.createElement(fm,{initialProps:o},t.createElement(Cm,null,t.createElement(Mm,null,n)))))))}function Qm(e){return t.createElement(Xm,jg({},e),t.createElement(Zm,{initialProps:e}))}const Jm="object"==typeof global&&global&&global.Object===Object&&global;var ev="object"==typeof self&&self&&self.Object===Object&&self;const tv=(Jm||ev||Function("return this")()).Symbol;var nv=Object.prototype,ov=nv.hasOwnProperty,rv=nv.toString,iv=tv?tv.toStringTag:void 0;var av=Object.prototype.toString;var lv="[object Null]",sv="[object Undefined]",uv=tv?tv.toStringTag:void 0;function cv(e){return null==e?void 0===e?sv:lv:uv&&uv in Object(e)?function(e){var t=ov.call(e,iv),n=e[iv];try{e[iv]=void 0;var o=!0}catch{}var r=rv.call(e);return o&&(t?e[iv]=n:delete e[iv]),r}(e):function(e){return av.call(e)}(e)}var dv="[object Symbol]";const fv=Array.isArray;var pv=1/0,hv=tv?tv.prototype:void 0,gv=hv?hv.toString:void 0;function mv(e){if("string"==typeof e)return e;if(fv(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,mv)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&cv(e)==dv}(e))return gv?gv.call(e):"";var t=e+"";return"0"==t&&1/e==-pv?"-0":t}function vv(e){return null==e?"":mv(e)}function yv(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var bv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function wv(e){return bv.test(e)}var xv="\\ud800-\\udfff",_v="["+xv+"]",kv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ev="\\ud83c[\\udffb-\\udfff]",Cv="[^"+xv+"]",Ov="(?:\\ud83c[\\udde6-\\uddff]){2}",Sv="[\\ud800-\\udbff][\\udc00-\\udfff]",Nv="(?:"+kv+"|"+Ev+")"+"?",jv="[\\ufe0e\\ufe0f]?",Tv=jv+Nv+("(?:\\u200d(?:"+[Cv,Ov,Sv].join("|")+")"+jv+Nv+")*"),Pv="(?:"+[Cv+kv+"?",kv,Ov,Sv,_v].join("|")+")",Mv=RegExp(Ev+"(?="+Ev+")|"+Pv+Tv,"g");function Av(e){return wv(e)?function(e){return e.match(Mv)||[]}(e):function(e){return e.split("")}(e)}var Rv=function(e){return function(t){var n=wv(t=vv(t))?Av(t):void 0,o=n?n[0]:t.charAt(0),r=n?yv(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const Dv=Rv;function Iv(e){return Dv(vv(e).toLowerCase())}const Lv=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:a})=>{const{goToMonth:l,nextMonth:s,previousMonth:u}=Kg(),c=fv(n)?!n.length:De(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Kn.jsxs("div",{style:{marginTop:"8px",display:"flex",justifyContent:"space-between",marginRight:"12px"},children:[Kn.jsx(vs,{variant:"text",onClick:e=>{a?a():o(e),r(new Date(Date.now()))},size:"small",disabled:c,dataTest:"select-today",style:{minWidth:"60px"},startIcon:Kn.jsx(Ka,{icon:"ph:eraser-duotone",width:24,height:24})}),Kn.jsxs("div",{className:"rdp-custom-caption-navigation",style:{display:"flex",gap:"4px"},children:[Kn.jsx(vs,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&l(u),startIcon:Kn.jsx(tl,{})}),Kn.jsx(vs,{size:"small",disabled:i&&Vt(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",children:t?"I dag":"Today"}),Kn.jsx(vs,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&l(s),startIcon:Kn.jsx(el,{})})]}),Kn.jsx(vs,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",style:{minWidth:"60px"},children:t?"Velg":"Select"})]})};function qv(e){const{month:t}=e;return Kn.jsx("div",{className:"rdp-custom-caption",style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"30px",marginLeft:"16px"},children:t&&Kn.jsx(tm,{displayMonth:t})})}const Fv=e=>Kn.jsx(F,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),zv=e=>{const{caption:t,children:n}=e,{goToMonth:o}=Kg(),{month:r}=Fg(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Kn.jsx(Fv,{style:{width:"105px",marginLeft:"-5px"},children:Kn.jsx(wg,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Ht(r,Number(a)))},MenuProps:{className:"styled-calendar-picker-select-period-menu"},children:null==i?void 0:i.map((e=>Kn.jsx(xg,{value:e.label,children:Iv(e.label)},e.id)))})})},Vv=e=>{const{caption:t,children:n}=e,{goToMonth:o}=Kg(),{month:r}=Fg(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Kn.jsx(Fv,{style:{width:"70px",marginLeft:"5px"},children:Kn.jsx(wg,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Wt(r,Number(a)))},MenuProps:{className:"styled-calendar-picker-select-period-menu"},children:null==i?void 0:i.map((e=>Kn.jsx(xg,{value:e.label,children:e.label},e.id)))})})},Bv=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:r,selected:i,numberOfMonths:a,disabledDays:l,onClear:s}=e,{open:u,anchorEl:c,onClose:d}=t,[f,h]=p(new Date(Date.now())),g="nb"===(null==r?void 0:r.code),m=(a||1)<2;return Kn.jsx(z,{open:u,anchorEl:c,onClose:d,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Kn.jsx(Qm,{disabled:l,month:f,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:r||Ng,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:"styled-calendar-day-picker",classNames:{months:"months",month:"month",caption:"caption",caption_label:"caption_label",nav:"nav",nav_button:"nav_button",nav_button_previous:"nav_button_previous",nav_button_next:"nav_button_next",head_row:"head_row",head_cell:"head_cell",row:"row",cell:"cell",day:"day",day_today:"day_today",day_selected:"day_selected",day_outside:"day_outside",day_disabled:"day_disabled",day_range_middle:"day_range_middle",day_hidden:"day_hidden",caption_end:m?"":"caption_end"},components:{Caption:e=>Kn.jsx(qv,{...e,setMonth:h,month:f,isNb:g}),Dropdown:e=>"months"===e.name?Kn.jsx(zv,{...e}):Kn.jsx(Vv,{...e})},footer:Kn.jsx(Lv,{onClose:d,isNb:g,selected:i,removeSelection:t=>{var n;return i&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:f,onClear:s}),...e})})},Hv=(e,t="dd.MM.yy")=>e?Mt(e,t):"",Uv=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:a,onClick:l,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:f}=e;if("range"!==e.mode)return null;const p=Hv(null==(t=e.selected)?void 0:t.from,d),h=Hv(null==(n=e.selected)?void 0:n.to,d),g=null!=(o=e.selected)&&o.from?e.selected.to?`${p} - ${h}`:p:"";return Kn.jsx(yc,{dataTest:r,placeholder:i,label:f,size:"small",onClick:e=>!a&&l(e),InputProps:{endAdornment:Kn.jsx(cs,{width:24,height:24})},value:g,disabled:!!a,className:s,style:{width:"240px"},allowClear:c,onClear:()=>{null==u||u()}})},Wv=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:a,placeholderFrom:l,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:f}=e;if("range"!==e.mode)return null;const p=Hv(null==(t=e.selected)?void 0:t.from,u),h=Hv(null==(n=e.selected)?void 0:n.to,u);return Kn.jsxs("div",{"data-test":o,className:zn(r,"styled-date-picker-input-range-compact",a&&"range-compact-disabled"),onClick:e=>!a&&c(e),children:[Kn.jsx(yc,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:l,value:p,disabled:!!a,className:i,style:{width:"144px"},InputProps:{endAdornment:Kn.jsx(cs,{width:24,height:24})}}),Kn.jsx(yc,{label:f,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!a,className:i,style:{width:"144px"},InputProps:{endAdornment:Kn.jsx(cs,{width:24,height:24})}})]})},Gv=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:a,allowClear:l,dateFormat:s,error:u=!1,helperText:c}=e;return"single"!==e.mode?null:Kn.jsx(yc,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Kn.jsx(cs,{width:24,height:24})},value:Hv(e.selected,s),disabled:!!o,className:i,style:{width:"144px"},allowClear:l,onClear:()=>{null==a||a()},label:e.label,error:u,helperText:c})},$v=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Kn.jsx(Uv,{...e,onClick:e.onClick}):n?Kn.jsx(Wv,{...e,onClick:e.onClick}):Kn.jsx(Gv,{...e,onClick:e.onClick})},Kv=e=>{const[t,n]=p(null),[o,r]=p(!1);return Kn.jsxs(Kn.Fragment,{children:[Kn.jsx($v,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,r)}}),Kn.jsx(Bv,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})};function Yv(t){if(typeof window>"u")return t;const n=e.useRef(null);return e.useLayoutEffect((()=>{n.current=t})),e.useCallback(((...e)=>{var t;null===(t=n.current)||void 0===t||t.call(n,...e)}),[])}const Zv={};const Xv={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function Qv({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:o}){const l=r(!0);a((()=>(l.current=!0,()=>{l.current=!1})),[]);const[s,u]=p(Xv),c=i((e=>{l.current&&u(e)}),[]),d=i((e=>c((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),f=Yv((e=>(s.isOpen?m(e):h(e),s))),h=Yv((t=>{const o=t instanceof Element?void 0:t,r=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void c((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,a=null==o?void 0:o.clientY,l="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,s=i=>{if(!t&&!i.setAnchorElUsed&&"dialog"!==n&&function(e,t){Zv[e]||(Zv[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(x)))}const a={...i,isOpen:!0,anchorPosition:l,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return null!=o&&o.currentTarget?i.setAnchorElUsed||(a.anchorEl=null==o?void 0:o.currentTarget):r&&(a.anchorEl=r),a};c((e=>e._deferNextOpen?(setTimeout((()=>c(s)),0),{...e,_deferNextOpen:!1}):s(e)))})),g=t=>{const{_childPopupState:n}=t;return setTimeout((()=>{null==n||n.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},m=Yv((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?c((e=>e._deferNextClose?(setTimeout((()=>c(g)),0),{...e,_deferNextClose:!1}):g(e))):c((e=>({...e,_deferNextClose:!0})))})),v=i(((e,t)=>{e?h(t):m(t)}),[]),y=Yv((e=>{const{relatedTarget:t}=e;c((e=>!e.hovered||t instanceof Element&&ny(t,x)?e:e.focused?{...e,hovered:!1}:g(e)))})),b=Yv((e=>{if(!e)return;const{relatedTarget:t}=e;c((e=>!e.focused||t instanceof Element&&ny(t,x)?e:e.hovered?{...e,focused:!1}:g(e)))})),w=i((e=>c((t=>({...t,_childPopupState:e})))),[]),x={...s,setAnchorEl:d,popupId:t,variant:n,open:h,close:m,toggle:f,setOpen:v,onBlur:b,onMouseLeave:y,disableAutoFocus:o??!(!s.hovered&&!s.focused),_setChildPopupState:w};return x}function Jv({isOpen:e,popupId:t,variant:n}){return{..."popover"===n?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===n?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function ey(e){return{...Jv(e),onClick:e.open,onTouchStart:e.open}}function ty({isOpen:e,anchorEl:t,popupId:n,onMouseLeave:o}){return{id:n,anchorEl:t,open:e,onMouseLeave:o}}function ny(e,t){const{anchorEl:n,_childPopupState:o}=t;return oy(n,e)||oy(function(e,{popupId:t}){if(!t)return null;const n="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof n.getElementById?n.getElementById(t):null}(e,t),e)||null!=o&&ny(e,o)}function oy(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function ry({children:e,popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}){return e(Qv({popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}))??null}ry.propTypes={children:fe.func.isRequired,popupId:fe.string,variant:fe.oneOf(["popover","popper"]).isRequired,parentPopupState:fe.object,disableAutoFocus:fe.bool};const iy=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:12,a=r?o.getHours():o.getMinutes();return Kn.jsx("div",{className:"styled-time-picker-root_column",children:new Array(i).fill(null).map(((e,o)=>{const i=r?o:5*o,l=t&&i===(r?function(e){return be(1,arguments),we(e).getHours()}(t):function(e){return be(1,arguments),we(e).getMinutes()}(t)),s=a==i;return Kn.jsx("div",{className:Yt("styled-time-picker-root_cell",l&&"styled-time-picker-root_cell__cell-selected",s&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(Ut(t||new Date,r?{hours:i}:{minutes:i}))},children:i.toString().padStart(2,"0")},i)}))})},ay=({value:e,onSelect:t,dataTest:n})=>{const o=r(null);return a((()=>{var e;null==(e=o.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[o]),Kn.jsxs("div",{ref:o,"data-test":n,className:"styled-time-picker-root",children:[Kn.jsx(iy,{type:"hours",value:e,onSelect:t}),Kn.jsx(iy,{type:"minutes",value:e,onSelect:t})]})},ly=e=>{const{popupState:t,dataTest:n,value:o,onSelect:r,handleClear:i}=e;return Kn.jsx(V,{...ty(t),transition:!0,style:{zIndex:"1300",position:"absolute",top:"2px"},children:({TransitionProps:e})=>Kn.jsx(B,{...e,timeout:350,children:Kn.jsxs(R,{style:{paddingBottom:"1px"},children:[Kn.jsx(ay,{dataTest:`${n}-time-picker-body`,value:o,onSelect:r}),Kn.jsxs("div",{style:{display:"flex",marginTop:"12px",marginBottom:"12px",justifyContent:"space-between"},children:[Kn.jsx(vs,{variant:"text",onClick:i,size:"small",disabled:!o,dataTest:"select-today",style:{minWidth:"40px",marginLeft:"10px"},startIcon:Kn.jsx(Ka,{icon:"ph:eraser-duotone",width:24,height:24})}),Kn.jsx(vs,{size:"small",onClick:()=>t.close(),dataTest:"select-time",style:{minWidth:"40px",marginRight:"16px"},startIcon:Kn.jsx(Ka,{icon:"bi:check-lg",width:20,height:20})})]})]})})})},sy=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Kn.jsx(Za,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),uy=({isValidTime:e,error:t=!1,localization:n="en",helperText:o})=>{if(e&&!t)return null;let r=o;return e||(r="en"===n?"Not valid":"Ikke gyldig"),Kn.jsx("span",{style:{position:"absolute"},children:r})},cy=e=>{const{placeholder:t,disabled:n,inputClassName:o,dataTest:r,width:i,error:a,helperText:l,label:s,locale:u="en",popupState:c,handleChange:d,isValidTime:f,localValue:p}=e;return Kn.jsx(yc,{name:"password",autoComplete:"off",type:"text",dataTest:r,placeholder:t,size:"small",error:!f||a,helperText:Kn.jsx(uy,{isValidTime:f,error:a,localization:u,helperText:l}),onChange:d,InputProps:{endAdornment:Kn.jsx(sy,{width:24,height:24,onClick:()=>!n&&c.open()})},value:p,sx:{maxWidth:i||130,width:i,minWidth:i},disabled:n,className:o,label:s})},dy=e=>{const{value:t,onSelect:n}=e,[o,r]=p(t?Mt(t,"HH:mm"):""),[i,a]=p(!0),l=e=>{const t=e.target.value;r(t);const o=(e=>{var t,n;const o=e.split(":"),r=Number(o[0]),i=Number(o[1]);if(2==(null==(t=o[0])?void 0:t.length)&&2==(null==(n=o[1])?void 0:n.length)&&r>=0&&r<=23&&i>=0&&i<=59){const e=new Date;return e.setHours(r),e.setMinutes(i),e}return null})(t);n(o||void 0),a(!!o)},s=e=>{n(e),r(e?Mt(e,"HH:mm"):""),a(!0)},u=()=>{n(void 0),r(""),a(!0)};return Kn.jsx(ry,{variant:"popper",popupId:"time-picker-popper",children:t=>Kn.jsx(H,{mouseEvent:"onMouseDown",onClickAway:()=>{t.close()},children:Kn.jsxs("div",{style:{width:"auto",height:"auto",position:"relative"},children:[Kn.jsx("div",{...ey(t),children:Kn.jsx(cy,{...e,popupState:t,localValue:o,isValidTime:i,handleChange:l})}),t.isOpen&&Kn.jsx(ly,{...e,popupState:t,handleClear:u,onSelect:s})]})})})},fy=e=>Kn.jsx(U,{...e}),py=e=>Kn.jsx(W,{...e}),hy=e=>Kn.jsx(G,{...e}),gy=e=>Kn.jsx($,{...e}),my=e=>Kn.jsx(K,{...e}),vy=e=>Kn.jsx(Y,{...e}),yy=e=>Kn.jsx(Z,{...e}),by=e=>{var t,n;return Kn.jsx(X,{...e,classes:{paper:Yt("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:Yt("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},wy=e=>{var t;return Kn.jsx(M,{...e,classes:{root:Yt("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},xy=e=>Kn.jsx(Q,{...e}),_y="_link_gyvti_1",ky=({href:e,title:t,disabled:n,size:o="large",dataTest:r,reflink:i,className:a,...l})=>{let s="text-sm";return"large"===o&&(s="text-base"),n?Kn.jsx("span",{className:`font-roboto font-semibold w-fit underline rounded px-1 py-0.5 outline-none border-none text-delta-300 ${s}`,children:t}):Kn.jsx("a",{...l,"data-test":r,ref:i,href:e,className:Yt(`${_y} + ${s}`,a),children:t})},Ey=e=>Kn.jsx(J,{...e,sx:{"&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"}}}),Cy=e=>Kn.jsx(ee,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),Oy=e=>Kn.jsx(te,{...e}),Sy=e=>Kn.jsx(ne,{...e}),Ny=e=>Kn.jsx(oe,{...e,className:Yt("flex-row-reverse gap-2.5",e.className),expandIcon:Kn.jsx(Dl,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),jy=e=>Kn.jsx(re,{...e}),Ty="select",Py="expand-column-id",My="actions";
|
|
26
26
|
/**
|
|
27
27
|
* table-core
|
|
28
28
|
*
|
|
@@ -32,7 +32,7 @@ import*as e from"react";import t,{Children as n,forwardRef as o,useRef as r,useC
|
|
|
32
32
|
* LICENSE.md file in the root directory of this source tree.
|
|
33
33
|
*
|
|
34
34
|
* @license MIT
|
|
35
|
-
*/function qy(e,t){return"function"==typeof e?e(t):e}function Fy(e,t){return n=>{t.setState((t=>({...t,[e]:qy(n,t[e])})))}}function zy(e){return e instanceof Function}function Vy(e,t,n){let o,r=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e();if(a.length===r.length&&!a.some(((e,t)=>r[t]!==e)))return o;let l;if(r=a,n.key&&n.debug&&(l=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function By(e,t,n){var o;let r={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(r,e)})),r}const Hy={createTable:e=>{e.getHeaderGroups=Vy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>{var i,a;const l=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return Uy(t,[...l,...n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=Vy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>Uy(t,n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=Vy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var r;return Uy(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=Vy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var r;return Uy(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=Vy((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=Vy((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=Vy((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=Vy((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=Vy((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=Vy((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=Vy((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=Vy((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=Vy((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=Vy((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=Vy((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=Vy((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,r,i,a,l,s;return[...null!=(o=null==(r=e[0])?void 0:r.headers)?o:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function Uy(e,t,n,o){var r,i;let a=0;const l=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const u=(e,t)=>{const r={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let l,s=!1;if(e.column.depth===r.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{const r=By(n,l,{id:[o,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===l)).length}`:void 0,depth:t,index:i.length});r.subHeaders.push(e),i.push(r)}r.headers.push(e),e.headerGroup=r})),s.push(r),t>0&&u(i,t-1)},c=t.map(((e,t)=>By(n,e,{depth:a,index:t})));u(c,a-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:r}=e;t+=n,o.push(r)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(r=null==(i=s[0])?void 0:i.headers)?r:[]),s}const Wy={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Gy={getDefaultColumnDef:()=>Wy,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Fy("columnSizing",e),onColumnSizingInfoChange:Fy("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Wy.minSize,null!=(o=i??e.columnDef.size)?o:Wy.size),null!=(r=e.columnDef.maxSize)?r:Wy.maxSize)},e.getStart=n=>{const o=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),r=o.findIndex((t=>t.id===e.id));if(r>0){const e=o[r-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),Ky(r)&&r.touches&&r.touches.length>1))return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],l=Ky(r)?Math.round(r.touches[0].clientX):r.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,o;const r=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:r,deltaPercentage:i}})),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing((e=>({...e,...s}))))},c=e=>u("move",e),d=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof $y)return $y;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return $y=e,$y}()&&{passive:!1};Ky(r)?(document.addEventListener("touchmove",p.moveHandler,h),document.addEventListener("touchend",p.upHandler,h)):(document.addEventListener("mousemove",f.moveHandler,h),document.addEventListener("mouseup",f.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let $y=null;function Ky(e){return"touchstart"===e.type}const Yy={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Fy("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some((e=>!e.getIsExpanded())))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var r;const i=!0===o||!(null==o||!o[e.id]);let a={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=o,n=null!=(r=n)?r:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||null!=o&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Zy=(e,t,n)=>{var o;const r=n.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(r))};Zy.autoRemove=e=>ab(e);const Xy=(e,t,n)=>{var o;return!(null==(o=e.getValue(t))||null==(o=o.toString())||!o.includes(n))};Xy.autoRemove=e=>ab(e);const Qy=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};Qy.autoRemove=e=>ab(e);const Jy=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};Jy.autoRemove=e=>ab(e)||!(null!=e&&e.length);const eb=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));eb.autoRemove=e=>ab(e)||!(null!=e&&e.length);const tb=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));tb.autoRemove=e=>ab(e)||!(null!=e&&e.length);const nb=(e,t,n)=>e.getValue(t)===n;nb.autoRemove=e=>ab(e);const ob=(e,t,n)=>e.getValue(t)==n;ob.autoRemove=e=>ab(e);const rb=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};rb.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,a=null===n||Number.isNaN(r)?1/0:r;if(i>a){const e=i;i=a,a=e}return[i,a]},rb.autoRemove=e=>ab(e)||ab(e[0])&&ab(e[1]);const ib={includesString:Zy,includesStringSensitive:Xy,equalsString:Qy,arrIncludes:Jy,arrIncludesAll:eb,arrIncludesSome:tb,equals:nb,weakEquals:ob,inNumberRange:rb};function ab(e){return null==e||""===e}const lb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Fy("columnFilters",e),onGlobalFilterChange:Fy("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?ib.includesString:"number"==typeof o?ib.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?ib.equals:Array.isArray(o)?ib.arrIncludes:ib.weakEquals},e.getFilterFn=()=>{var n,o;return zy(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:ib[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,o,r,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(r=t.options.enableFilters)||r)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=qy(n,r?r.value:void 0);var a;if(sb(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const l={id:e.id,value:i};var s;return r?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ib.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return zy(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:ib[o]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=qy(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(sb(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function sb(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const ub={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=r=n):(o>n&&(o=n),r<n&&(r=n)))})),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,o+=r)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},cb={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Fy("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...t??[],e.id]))},e.getCanGroup=()=>{var n,o,r,i;return null!=(n=null==(o=null!=(r=null==(i=e.columnDef.enableGrouping)||i)?r:t.options.enableGrouping)||o)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?ub.sum:"[object Date]"===Object.prototype.toString.call(o)?ub.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return zy(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:ub[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const db={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Fy("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Vy((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&r.push(n.splice(o,1)[0])}r=[...r,...n]}else r=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(r,t,n)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})}},fb={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Fy("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>qy(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=qy(t,n.pageIndex);const r=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,qy(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=qy(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=Vy((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},pb={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Fy("columnPinning",e),onRowPinningChange:Fy("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,r,i,a,l,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:r}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[r])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=r?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,o,r,i,a,s;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...l]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...l],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return"function"==typeof o?o(e):null==(n=o??r)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=null==(n=t._getPinnedRows(r))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1},e.getCenterVisibleCells=Vy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.column.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=Vy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"development"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=Vy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"development"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.left)&&r.length||null!=(i=o.right)&&i.length)},e.getLeftLeafColumns=Vy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=Vy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=Vy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.top)&&r.length||null!=(i=o.bottom)&&i.length)},e._getPinnedRows=t=>Vy((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,o)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(o??[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(o??[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:"development"===process.env.NODE_ENV&&`row.get${"top"===t?"Top":"Bottom"}Rows`,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Vy((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...t??[],...n??[]]);return e.filter((e=>!o.has(e.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterRows",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},hb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Fy("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):r.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach((t=>{gb(r,t.id,o,e)})),r})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Vy((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?mb(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=Vy((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?mb(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=Vy((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?mb(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!(!t.length||!Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=n=>{const o=e.getIsSelected();t.setRowSelection((r=>{if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return r;const i={...r};return gb(i,e.id,n,t),i}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return vb(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===yb(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===yb(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},gb=(e,t,n,o)=>{var r;const i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>gb(e,t.id,n,o)))};function mb(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(e,t){return e.map((e=>{var t;const a=vb(e,n);if(a&&(o.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function vb(e,t){var n;return null!=(n=t[e.id])&&n}function yb(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let r=!0,i=!1;return e.subRows.forEach((e=>{if((!i||r)&&(e.getCanSelect()&&(vb(e,t)?i=!0:r=!1),e.subRows&&e.subRows.length)){const n=yb(e,t);"all"===n?i=!0:("some"===n&&(i=!0),r=!1)}})),r?"all":!!i&&"some"}const bb=/([0-9]+)/gm;function wb(e,t){return e===t?0:e>t?1:-1}function xb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function _b(e,t){const n=e.split(bb).filter(Boolean),o=t.split(bb).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),r=parseInt(e,10),i=parseInt(t,10),a=[r,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(r)?-1:1;if(r>i)return 1;if(i>r)return-1}}return n.length-o.length}const kb={alphanumeric:(e,t,n)=>_b(xb(e.getValue(n)).toLowerCase(),xb(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>_b(xb(e.getValue(n)),xb(t.getValue(n))),text:(e,t,n)=>wb(xb(e.getValue(n)).toLowerCase(),xb(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>wb(xb(e.getValue(n)),xb(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},basic:(e,t,n)=>wb(e.getValue(n),t.getValue(n))},Eb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Fy("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return kb.datetime;if("string"==typeof n&&(o=!0,n.split(bb).length>1))return kb.alphanumeric}return o?kb.text:kb.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return zy(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:kb[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting((a=>{const l=null==a?void 0:a.find((t=>t.id===e.id)),s=null==a?void 0:a.findIndex((t=>t.id===e.id));let u,c=[],d=i?n:"desc"===r;var f;(u=null!=a&&a.length&&e.getCanMultiSort()&&o?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===u&&(i||r||(u="remove")),"add"===u)?(c=[...a,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return c}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Cb={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Fy("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:n??!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;return null==(n=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Vy((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=Vy((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>Vy((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},Ob=[Hy,Cb,db,pb,lb,Eb,cb,Yy,fb,hb,Gy];function Sb(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Ob};const o=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let r={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const i=[];let a=!1;const l={_features:Ob,options:{...o,...e},initialState:r,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=qy(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,o)=>{var r;return null!=(r=null==n.options.getRowId?void 0:n.options.getRowId(e,t,o))?r:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{const o=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!o)throw"production"!==process.env.NODE_ENV?new Error(`getRow expected an ID, but got ${e}`):new Error;return o},_getDefaultColumnDef:Vy((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:Vy((()=>[n._getColumnDefs()]),(e=>{const t=function(e,o,r){return void 0===r&&(r=0),e.map((e=>{const i=function(e,t,n,o){var r,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let s,u=null!=(r=null!=(i=a.id)?i:l?l.replace(".","_"):void 0)?r:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[a.accessorKey]),!u)throw"production"!==process.env.NODE_ENV?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let c={id:`${String(u)}`,accessorFn:s,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:Vy((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:Vy((()=>[e._getOrderColumnsFn()]),(e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap((e=>e.getLeafColumns()))):[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(n,e,r,o),a=e;return i.columns=a.columns?t(a.columns,i,r+1):[],i}))};return t(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:Vy((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:Vy((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:Vy((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{const t=n._getAllFlatColumnsById()[e];return"production"!==process.env.NODE_ENV&&!t&&console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(n,l);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const Nb=(e,t,n,o,r,i,a)=>{let l={id:t,index:o,original:n,depth:r,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,o),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,o),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const r=t(e);null!=r&&r.length&&o(r)}))};return o(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Vy((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:Vy((()=>[e,n,t,r]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((o=>{null==o.createCell||o.createCell(r,n,t,e)}),{}),r}(e,l,t,t.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:Vy((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l};function jb(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function Tb(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){var u;let d=e[c];const f=Nb(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&o<a){if(f.subRows=l(d.subRows,o+1),d=f,t(d)&&!f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}}else d=f,t(d)&&(s.push(d),i[d.id]=d,r.push(d))}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n):function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&o<a){const e=Nb(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=l(d.subRows,o+1),d=e}s.push(d),r.push(d),i[d.id]=d}}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n)}function Pb(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}
|
|
35
|
+
*/function Ay(e,t){return"function"==typeof e?e(t):e}function Ry(e,t){return n=>{t.setState((t=>({...t,[e]:Ay(n,t[e])})))}}function Dy(e){return e instanceof Function}function Iy(e,t,n){let o,r=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e();if(a.length===r.length&&!a.some(((e,t)=>r[t]!==e)))return o;let l;if(r=a,n.key&&n.debug&&(l=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function Ly(e,t,n){var o;let r={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(r,e)})),r}const qy={createTable:e=>{e.getHeaderGroups=Iy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>{var i,a;const l=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return Fy(t,[...l,...n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=Iy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>Fy(t,n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=Iy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var r;return Fy(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=Iy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var r;return Fy(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=Iy((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=Iy((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=Iy((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=Iy((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=Iy((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=Iy((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=Iy((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=Iy((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=Iy((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=Iy((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=Iy((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=Iy((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,r,i,a,l,s;return[...null!=(o=null==(r=e[0])?void 0:r.headers)?o:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function Fy(e,t,n,o){var r,i;let a=0;const l=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const u=(e,t)=>{const r={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let l,s=!1;if(e.column.depth===r.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{const r=Ly(n,l,{id:[o,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===l)).length}`:void 0,depth:t,index:i.length});r.subHeaders.push(e),i.push(r)}r.headers.push(e),e.headerGroup=r})),s.push(r),t>0&&u(i,t-1)},c=t.map(((e,t)=>Ly(n,e,{depth:a,index:t})));u(c,a-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:r}=e;t+=n,o.push(r)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(r=null==(i=s[0])?void 0:i.headers)?r:[]),s}const zy={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Vy={getDefaultColumnDef:()=>zy,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Ry("columnSizing",e),onColumnSizingInfoChange:Ry("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:zy.minSize,null!=(o=i??e.columnDef.size)?o:zy.size),null!=(r=e.columnDef.maxSize)?r:zy.maxSize)},e.getStart=n=>{const o=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),r=o.findIndex((t=>t.id===e.id));if(r>0){const e=o[r-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),Hy(r)&&r.touches&&r.touches.length>1))return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],l=Hy(r)?Math.round(r.touches[0].clientX):r.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,o;const r=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:r,deltaPercentage:i}})),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing((e=>({...e,...s}))))},c=e=>u("move",e),d=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof By)return By;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return By=e,By}()&&{passive:!1};Hy(r)?(document.addEventListener("touchmove",p.moveHandler,h),document.addEventListener("touchend",p.upHandler,h)):(document.addEventListener("mousemove",f.moveHandler,h),document.addEventListener("mouseup",f.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let By=null;function Hy(e){return"touchstart"===e.type}const Uy={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ry("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some((e=>!e.getIsExpanded())))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var r;const i=!0===o||!(null==o||!o[e.id]);let a={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=o,n=null!=(r=n)?r:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||null!=o&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Wy=(e,t,n)=>{var o;const r=n.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(r))};Wy.autoRemove=e=>tb(e);const Gy=(e,t,n)=>{var o;return!(null==(o=e.getValue(t))||null==(o=o.toString())||!o.includes(n))};Gy.autoRemove=e=>tb(e);const $y=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};$y.autoRemove=e=>tb(e);const Ky=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};Ky.autoRemove=e=>tb(e)||!(null!=e&&e.length);const Yy=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));Yy.autoRemove=e=>tb(e)||!(null!=e&&e.length);const Zy=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));Zy.autoRemove=e=>tb(e)||!(null!=e&&e.length);const Xy=(e,t,n)=>e.getValue(t)===n;Xy.autoRemove=e=>tb(e);const Qy=(e,t,n)=>e.getValue(t)==n;Qy.autoRemove=e=>tb(e);const Jy=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};Jy.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,a=null===n||Number.isNaN(r)?1/0:r;if(i>a){const e=i;i=a,a=e}return[i,a]},Jy.autoRemove=e=>tb(e)||tb(e[0])&&tb(e[1]);const eb={includesString:Wy,includesStringSensitive:Gy,equalsString:$y,arrIncludes:Ky,arrIncludesAll:Yy,arrIncludesSome:Zy,equals:Xy,weakEquals:Qy,inNumberRange:Jy};function tb(e){return null==e||""===e}const nb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ry("columnFilters",e),onGlobalFilterChange:Ry("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?eb.includesString:"number"==typeof o?eb.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?eb.equals:Array.isArray(o)?eb.arrIncludes:eb.weakEquals},e.getFilterFn=()=>{var n,o;return Dy(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:eb[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,o,r,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(r=t.options.enableFilters)||r)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=Ay(n,r?r.value:void 0);var a;if(ob(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const l={id:e.id,value:i};var s;return r?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>eb.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return Dy(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:eb[o]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=Ay(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(ob(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function ob(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const rb={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=r=n):(o>n&&(o=n),r<n&&(r=n)))})),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,o+=r)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},ib={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ry("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...t??[],e.id]))},e.getCanGroup=()=>{var n,o,r,i;return null!=(n=null==(o=null!=(r=null==(i=e.columnDef.enableGrouping)||i)?r:t.options.enableGrouping)||o)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?rb.sum:"[object Date]"===Object.prototype.toString.call(o)?rb.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return Dy(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:rb[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const ab={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ry("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Iy((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&r.push(n.splice(o,1)[0])}r=[...r,...n]}else r=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(r,t,n)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})}},lb={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ry("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Ay(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=Ay(t,n.pageIndex);const r=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,Ay(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=Ay(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=Iy((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},sb={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Ry("columnPinning",e),onRowPinningChange:Ry("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,r,i,a,l,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:r}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[r])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=r?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,o,r,i,a,s;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...l]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...l],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return"function"==typeof o?o(e):null==(n=o??r)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=null==(n=t._getPinnedRows(r))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1},e.getCenterVisibleCells=Iy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.column.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=Iy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"development"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=Iy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"development"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.left)&&r.length||null!=(i=o.right)&&i.length)},e.getLeftLeafColumns=Iy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=Iy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=Iy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.top)&&r.length||null!=(i=o.bottom)&&i.length)},e._getPinnedRows=t=>Iy((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,o)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(o??[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(o??[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:"development"===process.env.NODE_ENV&&`row.get${"top"===t?"Top":"Bottom"}Rows`,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Iy((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...t??[],...n??[]]);return e.filter((e=>!o.has(e.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterRows",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},ub={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ry("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):r.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach((t=>{cb(r,t.id,o,e)})),r})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Iy((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?db(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=Iy((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?db(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=Iy((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?db(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!(!t.length||!Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=n=>{const o=e.getIsSelected();t.setRowSelection((r=>{if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return r;const i={...r};return cb(i,e.id,n,t),i}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return fb(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===pb(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===pb(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},cb=(e,t,n,o)=>{var r;const i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>cb(e,t.id,n,o)))};function db(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(e,t){return e.map((e=>{var t;const a=fb(e,n);if(a&&(o.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function fb(e,t){var n;return null!=(n=t[e.id])&&n}function pb(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let r=!0,i=!1;return e.subRows.forEach((e=>{if((!i||r)&&(e.getCanSelect()&&(fb(e,t)?i=!0:r=!1),e.subRows&&e.subRows.length)){const n=pb(e,t);"all"===n?i=!0:("some"===n&&(i=!0),r=!1)}})),r?"all":!!i&&"some"}const hb=/([0-9]+)/gm;function gb(e,t){return e===t?0:e>t?1:-1}function mb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function vb(e,t){const n=e.split(hb).filter(Boolean),o=t.split(hb).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),r=parseInt(e,10),i=parseInt(t,10),a=[r,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(r)?-1:1;if(r>i)return 1;if(i>r)return-1}}return n.length-o.length}const yb={alphanumeric:(e,t,n)=>vb(mb(e.getValue(n)).toLowerCase(),mb(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>vb(mb(e.getValue(n)),mb(t.getValue(n))),text:(e,t,n)=>gb(mb(e.getValue(n)).toLowerCase(),mb(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>gb(mb(e.getValue(n)),mb(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},basic:(e,t,n)=>gb(e.getValue(n),t.getValue(n))},bb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ry("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return yb.datetime;if("string"==typeof n&&(o=!0,n.split(hb).length>1))return yb.alphanumeric}return o?yb.text:yb.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return Dy(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:yb[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting((a=>{const l=null==a?void 0:a.find((t=>t.id===e.id)),s=null==a?void 0:a.findIndex((t=>t.id===e.id));let u,c=[],d=i?n:"desc"===r;var f;(u=null!=a&&a.length&&e.getCanMultiSort()&&o?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===u&&(i||r||(u="remove")),"add"===u)?(c=[...a,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return c}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},wb={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ry("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:n??!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;return null==(n=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Iy((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=Iy((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>Iy((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},xb=[qy,wb,ab,sb,nb,bb,ib,Uy,lb,ub,Vy];function _b(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:xb};const o=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let r={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const i=[];let a=!1;const l={_features:xb,options:{...o,...e},initialState:r,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=Ay(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,o)=>{var r;return null!=(r=null==n.options.getRowId?void 0:n.options.getRowId(e,t,o))?r:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{const o=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!o)throw"production"!==process.env.NODE_ENV?new Error(`getRow expected an ID, but got ${e}`):new Error;return o},_getDefaultColumnDef:Iy((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:Iy((()=>[n._getColumnDefs()]),(e=>{const t=function(e,o,r){return void 0===r&&(r=0),e.map((e=>{const i=function(e,t,n,o){var r,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let s,u=null!=(r=null!=(i=a.id)?i:l?l.replace(".","_"):void 0)?r:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[a.accessorKey]),!u)throw"production"!==process.env.NODE_ENV?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let c={id:`${String(u)}`,accessorFn:s,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:Iy((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:Iy((()=>[e._getOrderColumnsFn()]),(e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap((e=>e.getLeafColumns()))):[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(n,e,r,o),a=e;return i.columns=a.columns?t(a.columns,i,r+1):[],i}))};return t(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:Iy((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:Iy((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:Iy((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{const t=n._getAllFlatColumnsById()[e];return"production"!==process.env.NODE_ENV&&!t&&console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(n,l);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const kb=(e,t,n,o,r,i,a)=>{let l={id:t,index:o,original:n,depth:r,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,o),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,o),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const r=t(e);null!=r&&r.length&&o(r)}))};return o(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Iy((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:Iy((()=>[e,n,t,r]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((o=>{null==o.createCell||o.createCell(r,n,t,e)}),{}),r}(e,l,t,t.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:Iy((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l};function Eb(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function Cb(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){var u;let d=e[c];const f=kb(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&o<a){if(f.subRows=l(d.subRows,o+1),d=f,t(d)&&!f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}}else d=f,t(d)&&(s.push(d),i[d.id]=d,r.push(d))}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n):function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&o<a){const e=kb(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=l(d.subRows,o+1),d=e}s.push(d),r.push(d),i[d.id]=d}}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n)}function Ob(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}
|
|
36
36
|
/**
|
|
37
37
|
* react-table
|
|
38
38
|
*
|
|
@@ -43,4 +43,4 @@ import*as e from"react";import t,{Children as n,forwardRef as o,useRef as r,useC
|
|
|
43
43
|
*
|
|
44
44
|
* @license MIT
|
|
45
45
|
*/
|
|
46
|
-
function Mb(t,n){return t?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(t)?e.createElement(t,n):t:null}const Ab=e=>{var t;const{header:n,enableResizing:o,element:r}=e;let i=n.getSize();if(!o){i&&(i=`${i}px`);const e="actions"===(null==(t=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(n.headerGroup.headers))?void 0:t.id),o=n.headerGroup.headers[n.headerGroup.headers.length-(e?2:1)];return((null==o?void 0:o.id)===n.id||!i)&&(i="100%"),{width:i||n.column.columnDef.size,maxWidth:i||n.column.columnDef.maxSize,minWidth:i||n.column.columnDef.minSize}}console.log("header",r,null==r?void 0:r.clientWidth),console.log("size",n.column.columnDef.size),console.log("minSize",n.column.columnDef.minSize),console.log("maxSize",n.column.columnDef.maxSize),r&&n.column.columnDef.maxSize&&(null==r?void 0:r.clientWidth)>n.column.columnDef.maxSize&&(console.log("TRUE>>>",(null==r?void 0:r.clientWidth)>n.column.columnDef.maxSize),console.log("header.column.columnDef.maxSize.toString()",n.column.columnDef.maxSize.toString()),r.style.width=`${n.column.columnDef.maxSize}px`),console.log("-----");const a=n.column.columnDef.size,l=n.column.columnDef.minSize;return{width:a,maxWidth:n.column.columnDef.maxSize,minWidth:l}};function Rb({styledTableProps:e,header:t}){const{hideHeader:n=!1,enableResizing:o=!1}=e,i=r(null);return Oe.jsx("th",{ref:i,colSpan:t.colSpan,className:sn("t-cell","actions"===t.column.id&&"t-cell__actions"),style:Ab({enableResizing:o,header:t,element:i.current}),children:Oe.jsxs("div",{className:sn("flex items-center justify-left",n?"hide-table-header":"show-table-header",t.column.getCanSort()&&"sortable-column",t.column.columnDef.className),onClick:t.column.getToggleSortingHandler(),children:[Mb(t.column.columnDef.header,t.getContext()),{asc:Oe.jsx(pi,{className:"sort-icon"}),desc:Oe.jsx(hi,{className:"sort-icon"})}[t.column.getIsSorted()]??null]})},t.id)}function Db({table:e,styledTableProps:t}){const{stickyHeader:n=!1,hideHeader:o=!1}=t;return t.loading?null:Oe.jsx("thead",{className:sn("table-header",o&&"hide-table-header"),style:n&&{position:"sticky",top:-.2}||{},children:e.getHeaderGroups().map((e=>Oe.jsx("tr",{children:e.headers.map((e=>Oe.jsx(Rb,{styledTableProps:t,header:e},e.column.id)))},e.id)))})}const Ib=({colSpan:e})=>Oe.jsx(Oe.Fragment,{children:Array.from({length:5}).map(((t,n)=>Oe.jsx("tr",{children:Oe.jsx("td",{colSpan:e,children:Oe.jsx(ie,{variant:"text",width:"100%",height:50},n)})},n)))});function Lb({styledTableProps:e,row:t,index:n}){const{focusable:o,loading:r,getRowClassName:i,rowHeight:a,onRowClick:l,expandArrow:s,tdClassName:u,customSubRowData:c,renderSubRows:d}=e;return Oe.jsxs(v,{children:[Oe.jsx("tr",{"data-index":n,"data-test":t.id,id:t.id,tabIndex:o?-1:void 0,className:th("t-row",r&&"is-loading",(t.getIsExpanded()||t.getIsSelected())&&"selected",null==i?void 0:i(t)),style:{height:a?`${a}px`:"inherit"},onMouseDown:e=>{var n;e.target.classList.contains("MuiModal-backdrop")||"INPUT"===e.target.nodeName||"BUTTON"===e.target.nodeName||(t.getCanExpand()&&!s&&t.getToggleExpandedHandler()(),null==(n=document.getElementById(t.id))||n.focus(),l&&l(e,t))},children:t.getVisibleCells().map((e=>{const n="actions"===e.column.id;return Oe.jsx("td",{className:th("t-cell",u,n&&"action-cell",n&&(t.getIsExpanded()||t.getIsSelected())&&"selected",n&&(null!=i&&i(t)?null==i?void 0:i(t):"action-cell-default-background")),children:Mb(e.column.columnDef.cell,e.getContext())},e.id)}))}),t.getIsExpanded()&&Oe.jsx(Oe.Fragment,{children:c&&d&&d({rows:c.get(t.original.id.toString())??[],row:t.original})})]},t.id)}function qb({styledTableProps:e,table:t}){const n=e.hideFooter?t.getCoreRowModel().rows:t.getRowModel().rows;return Oe.jsx(Oe.Fragment,{children:n.map(((t,n)=>Oe.jsx(Lb,{styledTableProps:e,row:t,index:n},t.id)))})}const Fb=({colSpan:e,noRowsOverlay:t})=>Oe.jsx("tr",{className:"no-rows-overlay",children:Oe.jsx("td",{colSpan:e,children:t})});function zb({table:e,styledTableProps:t}){const{columns:n,data:o,loading:r,noRowsOverlay:i}=t;return Oe.jsxs("tbody",{className:"tbody",children:[o.length>0&&r&&Oe.jsx(fi,{className:"loading-icon",width:50,height:50}),0===o.length&&r?Oe.jsx(Ib,{colSpan:n.length}):o.length>0?Oe.jsx(qb,{table:e,styledTableProps:t}):Oe.jsx(Fb,{colSpan:n.length,noRowsOverlay:i})]})}const Vb=e=>Oe.jsx(z,{...e}),Bb=()=>{const[e,t]=p(null),n=!!e,o=i((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:i((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}};function Hb({table:e,locale:t}){const{anchorEl:n,open:o,handleClose:i,handleOpen:a}=Bb(),l=r(null),s="no"===t,u=()=>{var e,t,n,o;null==(o=null==(n=null==(t=null==(e=null==l?void 0:l.current)?void 0:e.closest(".asma-core-ui-styled-table"))?void 0:t.querySelectorAll('[data-index="0"]'))?void 0:n[0])||o.scrollIntoView({block:"center",inline:"start"})},c=e.getPageCount(),d=e.getState().pagination.pageIndex+1,f=Array.from({length:c},((e,t)=>t+1));return c>1?Oe.jsxs("div",{ref:l,className:"table-pagination",children:[Oe.jsx(Xn,{title:s?"Nåværende side":"Current Page",children:Oe.jsx("div",{children:Oe.jsxs(ta,{variant:"outlined",dataTest:"list-pages",style:{width:"134px"},onClick:e=>{a(e)},endIcon:o?Oe.jsx(bi,{height:24,width:24}):Oe.jsx(yi,{height:24,width:24}),children:[s?"Side":"Page"," ",d," ",s?"av":"of"," ",c]})})}),Oe.jsx(Vb,{open:o,anchorEl:n,onClose:i,anchorOrigin:{vertical:-5,horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:Oe.jsx("div",{className:"table-pagination__pages-list",children:f.map((t=>Oe.jsxs("div",{className:th("table-pagination__pages-list__page",d===t&&"page-selected"),onClick:()=>{e.setPageIndex(t-1),i(),u()},children:[d===t&&Oe.jsx(xi,{className:"check-icon",height:24,width:24}),Oe.jsxs("span",{children:[s?"Side":"Page"," ",t]})]},t)))})}),Oe.jsx(Xn,{title:1===d?"":s?"Forrige side":"Previous Page",children:Oe.jsx("div",{children:Oe.jsx(ta,{variant:"outlined",dataTest:"pagination-ChevronLeftIcon",startIcon:Oe.jsx(qr,{height:24,width:24}),onClick:()=>{e.previousPage(),u()},disabled:!e.getCanPreviousPage()})})}),Oe.jsx(Xn,{title:d===c?"":s?"Neste side":"Next Page",children:Oe.jsx("div",{children:Oe.jsx(ta,{variant:"outlined",dataTest:"pagination-ChevronRightIcon",startIcon:Oe.jsx(Lr,{height:24,width:24}),onClick:()=>{e.nextPage(),u()},disabled:!e.getCanNextPage()})})})]}):null}function Ub({table:e,styledTableProps:t}){var n;return t.hideFooter?null:Oe.jsxs("div",{className:"table-footer",children:[null==(n=t.footer)?void 0:n.call(t,e),Oe.jsx(Hb,{table:e,locale:t.locale||"en"})]})}const Wb=t=>{const{columns:n,data:o,initialState:r,pageSize:i,enableRowSelection:a,tableInstanceRef:l,...s}=t,u=function(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[o]=e.useState((()=>({current:Sb(n)}))),[r,i]=e.useState((()=>o.current.initialState));return o.current.setOptions((e=>({...e,...t,state:{...r,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),o.current}({columns:n,data:o,initialState:{pagination:{pageIndex:0,pageSize:i||50},columnVisibility:{...null==r?void 0:r.columnVisibility,[Dy]:!1},...r},enableRowSelection:a,getCoreRowModel:e=>Vy((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,r,i){void 0===r&&(r=0);const a=[];for(let s=0;s<t.length;s++){const u=Nb(e,e._getRowId(t[s],s,i),t[s],s,r,void 0,null==i?void 0:i.id);var l;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=u.originalSubRows)&&l.length&&(u.subRows=o(u.originalSubRows,r+1,u)))}return a};return n.rows=o(t),n}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getExpandedRowModel:e=>Vy((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>t.rows.length&&(!0===e||Object.keys(e??{}).length)&&n?Pb(t):t),{key:"development"===process.env.NODE_ENV&&"getExpandedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredRowModel:e=>Vy((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,o)=>{if(!t.rows.length||(null==n||!n.length)&&!o){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach((t=>{var n;const o=e.getColumn(t.id);if(!o)return;const i=o.getFilterFn();i?r.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${o.id}.`)}));const a=n.map((e=>e.id)),l=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let u,c;o&&l&&s.length&&(a.push("__global__"),s.forEach((e=>{var t;i.push({id:e.id,filterFn:l,resolvedValue:null!=(t=null==l.resolveFilterValue?void 0:l.resolveFilterValue(o))?t:o})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},r.length)for(let e=0;e<r.length;e++){u=r[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){c=i[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return Tb(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:"development"===process.env.NODE_ENV&&"getFilteredRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>Vy((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,r=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=[...e];return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const r=i[o],l=a[r.id],s=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(l.sortUndefined){const n=void 0===e.getValue(r.id),o=void 0===t.getValue(r.id);(n||o)&&(u=n&&o?0:n?l.sortUndefined:-l.sortUndefined)}if(0===u&&(u=l.sortingFn(e,t,r.id)),0!==u)return s&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:r,rowsById:n.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>Vy((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:r}=t;let{rows:i,flatRows:a,rowsById:l}=n;const s=o*r,u=s+o;let c;i=i.slice(s,u),c=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:Pb({rows:i,flatRows:a,rowsById:l}),c.flatRows=[];const d=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return c.rows.forEach(d),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowId:s.getRowId||((e,t,n)=>n?[n.id,e.id].join("."):e.id.toString()),defaultColumn:t.enableResizing?{size:void 0}:void 0,...s});return l&&(l.current=u),{table:u}};function Gb({tableData:e,actions:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=Bb(),a=t(e.row).filter((e=>!e.hide));return Oe.jsx("div",{className:"flex justify-center items-center w-[42px]",children:a.length?Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(ta,{dataTest:"test",variant:"text",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),i(e)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:Oe.jsx(ci,{className:"!text-delta-800",width:20,height:20})}),Oe.jsx(Vb,{open:o,anchorEl:n,onClose:r,onClick:r,anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"right"},children:t(e.row).filter((e=>!e.hide)).map(((t,n)=>Oe.jsx(Cy,{className:t.className,disabled:t.disabled,onClick:()=>{var n;null==(n=t.onClick)||n.call(t,e.row)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:t.label},n)))})]}):null})}function $b({headerData:e}){const{anchorEl:t,open:n,handleClose:o,handleOpen:r}=Bb();return Oe.jsxs("div",{className:"w-full flex items-center justify-end ",children:[Oe.jsx("div",{className:"px-2.5 h-[30px] flex items-center justify-center cursor-pointer",onClick:r,children:Oe.jsx(Pr,{icon:"mdi:pin",className:"text-delta-500 hover:text-delta-600 min-w-[20px] min-h-[20px]"})}),Oe.jsx(Vb,{anchorEl:t,anchorOrigin:{horizontal:"left",vertical:"bottom"},open:n,onClose:o,children:e.table.getAllLeafColumns().filter((e=>e.getCanHide()&&e.id!==Dy)).map((e=>e.columnDef.header?Oe.jsxs(Cy,{onClick:()=>e.toggleVisibility(!e.getIsVisible()),children:[Oe.jsx(ns,{size:"small",dataTest:"test",disableRipple:!0,className:"p-0 pr-2",checked:e.getIsVisible()}),"string"==typeof e.columnDef.header?e.columnDef.header:e.id]},e.id):null))})]})}const Kb=e=>{const{columns:t,actions:n,customActionsNode:o,headerPin:r=!0,enableRowSelection:i,expandArrow:a}=e;!t.find((e=>"actions"===e.id))&&(n||o||r)&&t.push(function(e){const{headerPin:t,actions:n,customActionsNode:o}=e;return{id:"actions",enableHiding:!1,enableSorting:!1,accessorFn:e=>e,header:e=>t?Oe.jsx($b,{headerData:e}):null,cell:e=>n||o?Oe.jsxs("div",{className:"flex items-center justify-end",children:[o&&Oe.jsx("div",{className:"mr-1",children:null==o?void 0:o(e)}),n&&Oe.jsx(Gb,{tableData:e,actions:n})]}):null,size:50}}({headerPin:r,actions:n,customActionsNode:o})),i&&!t.find((e=>e.id===Dy))&&t.unshift({id:Dy,minSize:40,maxSize:40,size:40,header:({table:e})=>Oe.jsx("div",{className:"w-[25px]",children:Oe.jsx(ns,{size:"small",dataTest:"cell-select-all",checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()})}),cell:({cell:e})=>Oe.jsx("div",{className:"w-[25px]",children:Oe.jsx(ns,{size:"small",dataTest:"cell-select",checked:e.row.getIsSelected(),disabled:!e.row.getCanSelect(),onClick:e=>e.stopPropagation(),onChange:e.row.getToggleSelectedHandler()})})}),a&&!t.find((e=>e.id===Iy))&&t.unshift({id:Iy,minSize:40,maxSize:40,size:40,enableHiding:!1,enableSorting:!1,header:()=>null,cell:({cell:e})=>{const t=e.row.getIsExpanded();return e.row.getCanExpand()?Oe.jsx("span",{className:"flex w-fit h-fit px-2 bg-transparent outline-none focus:outline-none items-center justify-center",onClick:()=>e.row.getToggleExpandedHandler()(),children:t?Oe.jsx(bi,{width:24,height:24}):Oe.jsx(yi,{width:24,height:24})}):null}})},Yb=e=>{const{className:t,height:n}=e;Kb(e);const{table:o}=Wb(e);return Oe.jsxs("div",{className:"asma-core-ui-styled-table",children:[Oe.jsx("div",{className:th("table-wrapper",t),style:{height:n},children:Oe.jsxs("table",{className:"styled-table",children:[Oe.jsx(Db,{table:o,styledTableProps:e}),Oe.jsx(zb,{table:o,styledTableProps:e})]})}),Oe.jsx(Ub,{table:o,styledTableProps:e})]})},Zb="_title_17oo0_1",Xb=function(e){return Oe.jsx("div",{className:Zb,children:e.children})},Qb=function(e){return Oe.jsx("h1",{"data-test":e.dataTest,className:"font-roboto md:mb-2 mb-5 text-2xl font-bold leading-10 text-[#17232E]",children:e.children})},Jb=()=>{const[e,t]=p(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},ew=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:r="large",variant:i="outlined"})=>{const{onAnchorClick:a,onClose:l,anchorEl:s}=Jb();return Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"w-fit h-fit relative",children:[Oe.jsx(ta,{disabled:o,variant:i,startIcon:Oe.jsx(Pi,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:a,size:r,dataTest:n,children:"Filter"}),e&&Oe.jsx("div",{className:sn("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),Oe.jsx(Vb,{open:!!s,anchorEl:s,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:"my-1",children:t})]})},tw=({onCloseText:e,onMinimizeText:t,onExpandText:n,showCloseIcon:o=!0,showMinimizeIcon:r=!0,showExpandIcon:i=!0,title:a,label:l,children:s,open:u,onClose:c,className:d="",primaryButtonText:f,secondaryButtonText:h,onPrimaryButtonClick:g,onSecondaryButtonClick:m,dataTest:v})=>{const[y,b]=p(!1),w=()=>{b(!y)};return u?y?Oe.jsx("div",{className:"fixed bottom-4 right-4 z-[51] w-[387px] rounded-lg bg-white py-2 pl-4 pr-3 shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",children:Oe.jsxs("div",{className:"flex items-center justify-between","data-test":v,children:[Oe.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:a}),Oe.jsxs("div",{className:"flex gap-x-1",children:[Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"minimize-button",variant:"text",size:"small",onClick:w,endIcon:i&&Oe.jsx(Zi,{height:20,width:20,color:"text-gama-500"}),children:n})}),Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"close-button",variant:"textGray",size:"small",onClick:c,endIcon:o&&Oe.jsx(wi,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]})}):Oe.jsxs("div",{className:sn("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",d),"data-test":v,children:[Oe.jsxs("div",{className:"fixed-top flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[Oe.jsxs("div",{className:"flex items-center justify-between",children:[l?Oe.jsx("div",{className:"text-sm text-delta-700",children:l}):Oe.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a}),Oe.jsxs("div",{className:"flex gap-x-1",children:[Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:w,endIcon:r&&Oe.jsx(Yi,{height:20,width:20,color:"text-delta-700"}),children:t})}),Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"close-button",variant:"textGray",size:"small",onClick:c,endIcon:Oe.jsx(wi,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]}),l&&Oe.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a})]}),Oe.jsx("div",{children:s}),Oe.jsxs("div",{className:"fixed-bottom flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",children:[h&&m&&Oe.jsx(ta,{dataTest:"cancel-button",variant:"outlined",onClick:m,children:h}),f&&g&&Oe.jsx(ta,{dataTest:"save-button",onClick:g,children:f})]})]}):null};export{Ly as ACTIONS_COLUMN_ID,gi as ArchiveIcon,Xr as AssignmentIcon,Qr as AssignmentOutlineIcon,ae as Avatar,Qi as BadgeIcon,Dr as BellIcon,Rr as BellOutlineIcon,Ii as CalendarBlankOutlineIcon,Yr as CalendarIcon,Zr as CalendarRangeIcon,vi as CheckBoxCheckedIcon,Kr as CheckFactOutlineIcon,xi as CheckIcon,$r as CheckOutlineIcon,Fr as ChevronDoubleLeftIcon,zr as ChevronDoubleRightIcon,yi as ChevronDownIcon,qr as ChevronLeftIcon,Lr as ChevronRightIcon,bi as ChevronUpIcon,le as ClickAwayListener,wi as CloseIcon,Ki as ConsentsIcon,Hr as DashboardViewIcon,Ur as DashboardViewOutlineIcon,Ti as DeleteOutlineIcon,ci as DotsVerticalIcon,mi as DownloadIcon,Ni as DragHorizontalIcon,hi as DropDownIcon,pi as DropUpIcon,Ai as DvrIcon,Iy as EXPAND_COLUMN_ID,Hi as EarthIcon,Si as EmptyPageIcon,Ri as ErrorOutlineIcon,se as Fade,qi as FastCheckOutlineIcon,ji as FilePdfIcon,Pi as FilterIcon,ai as FindReplaceIcon,li as FindReplacePeopleIcon,Ir as HamburgerIcon,Ei as InboxOutboxIcon,Ci as InboxOutboxOutlineIcon,Zi as KeyboardCapslockIcon,Li as LinkOutlineIcon,Jr as ListNumberedIcon,Bi as ListSettingsLineIcon,zi as ListStatusIcon,fi as LoadingIcon,Mi as LockIcon,ei as MessageProcessingIcon,ti as MessageProcessingOutlineIcon,Xi as MessageReplyIcon,tw as MinimizableDialog,Yi as MinimizeIcon,$i as OutlineCalendarMonth,ue as Paper,Br as PdfIcon,Wi as PencilOutlineIcon,Gr as PeopleIcon,Wr as PeopleOutlineIcon,_i as PermMediaIcon,ki as PermMediaOutline,si as PersonIcon,ui as PersonOutlineIcon,ce as Popper,Vr as QnrIcon,Di as ReplayIcon,ni as ReportBoxIcon,oi as ReportBoxOutlineIcon,rp as RichInput,Dy as SELECT_COLUMN_ID,di as SearchIcon,ri as SettingsIcon,Ui as SettingsMenuHorizontalIcon,ii as SettingsOutlineIcon,de as Skeleton,Zl as SnackbarProvider,My as StyledAccordion,Ry as StyledAccordionDetails,Ay as StyledAccordionSummary,aa as StyledAlert,la as StyledAlertTitle,Se as StyledBadge,ta as StyledButton,ns as StyledCheckbox,Ne as StyledChip,Py as StyledContainer,Jv as StyledDatePicker,na as StyledDialog,oa as StyledDialogActions,ra as StyledDialogContent,ia as StyledDialogTitle,ky as StyledDrawer,ew as StyledFilterMenu,Uv as StyledFormControl,vy as StyledFormControlLabel,_y as StyledFormGroup,yy as StyledFormHelperText,by as StyledFormLabel,os as StyledInputField,wy as StyledInputLabel,nh as StyledLabel,Ny as StyledLink,Ey as StyledMenu,Cy as StyledMenuItem,Oy as StyledMenuList,Qb as StyledModuleTitle,Vb as StyledPopover,cp as StyledRadio,dp as StyledRadioGroup,ip as StyledSelect,lp as StyledSelectAutocomplete,ap as StyledSelectItem,sp as StyledSlider,Xl as StyledSnackbar,xy as StyledStack,up as StyledSwitch,jy as StyledTab,Yb as StyledTable,Ty as StyledTabs,is as StyledTextarea,my as StyledTimePicker,Xn as StyledTooltip,Ji as StyledTypography,Xb as StyledWidgetTitle,Vi as TextBoxCheckOutlineIcon,Oi as TopicIcon,Fi as UnknownDocumentOutlineRoundedIcon,Gi as WarningAmberOutlineIcon,Al as closeSnackbar,jb as createColumnHelper,Ml as enqueueSnackbar,ts as message,me as omit,ve as pick,Ql as processAlertSnackBar,Jl as processInfoSnackbar,ye as tokenOptimizer,$l as useSnackbar};
|
|
46
|
+
function Sb(t,n){return t?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(t)?e.createElement(t,n):t:null}const Nb=e=>{var t;const{header:n,enableResizing:o,element:r}=e;let i=n.getSize();if(!o){i&&(i=`${i}px`);const e="actions"===(null==(t=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(n.headerGroup.headers))?void 0:t.id),o=n.headerGroup.headers[n.headerGroup.headers.length-(e?2:1)];return((null==o?void 0:o.id)===n.id||!i)&&(i="100%"),{width:i||n.column.columnDef.size,maxWidth:i||n.column.columnDef.maxSize,minWidth:i||n.column.columnDef.minSize}}const a=n.column.columnDef.size,l=n.column.columnDef.minSize;return{width:a,maxWidth:n.column.columnDef.maxSize,minWidth:l}};function jb({styledTableProps:e,header:t}){const{hideHeader:n=!1,enableResizing:o=!1}=e,i=r(null);return Kn.jsx("th",{ref:i,colSpan:t.colSpan,className:Yt("t-cell","actions"===t.column.id&&"t-cell__actions"),style:Nb({enableResizing:o,header:t,element:i.current}),children:Kn.jsxs("div",{className:Yt("flex items-center justify-left",n?"hide-table-header":"show-table-header",t.column.getCanSort()&&"sortable-column",t.column.columnDef.className),onClick:t.column.getToggleSortingHandler(),children:[Sb(t.column.columnDef.header,t.getContext()),{asc:Kn.jsx(Tl,{className:"sort-icon"}),desc:Kn.jsx(Pl,{className:"sort-icon"})}[t.column.getIsSorted()]??null]})},t.id)}function Tb({table:e,styledTableProps:t}){const{stickyHeader:n=!1,hideHeader:o=!1}=t;return t.loading?null:Kn.jsx("thead",{className:Yt("table-header",o&&"hide-table-header"),style:n&&{position:"sticky",top:-.2}||{},children:e.getHeaderGroups().map((e=>Kn.jsx("tr",{children:e.headers.map((e=>Kn.jsx(jb,{styledTableProps:t,header:e},e.column.id)))},e.id)))})}const Pb=({colSpan:e})=>Kn.jsx(Kn.Fragment,{children:Array.from({length:5}).map(((t,n)=>Kn.jsx("tr",{children:Kn.jsx("td",{colSpan:e,children:Kn.jsx(ie,{variant:"text",width:"100%",height:50},n)})},n)))});function Mb({styledTableProps:e,row:t,index:n}){const{focusable:o,loading:r,getRowClassName:i,rowHeight:a,onRowClick:l,expandArrow:s,tdClassName:u,customSubRowData:c,renderSubRows:d}=e;return Kn.jsxs(v,{children:[Kn.jsx("tr",{"data-index":n,"data-test":t.id,id:t.id,tabIndex:o?-1:void 0,className:zn("t-row",r&&"is-loading",(t.getIsExpanded()||t.getIsSelected())&&"selected",null==i?void 0:i(t)),style:{height:a?`${a}px`:"inherit"},onMouseDown:e=>{var n;e.target.classList.contains("MuiModal-backdrop")||"INPUT"===e.target.nodeName||"BUTTON"===e.target.nodeName||(t.getCanExpand()&&!s&&t.getToggleExpandedHandler()(),null==(n=document.getElementById(t.id))||n.focus(),l&&l(e,t))},children:t.getVisibleCells().map((e=>{const n="actions"===e.column.id;return Kn.jsx("td",{className:zn("t-cell",u,n&&"action-cell",n&&(t.getIsExpanded()||t.getIsSelected())&&"selected",n&&(null!=i&&i(t)?null==i?void 0:i(t):"action-cell-default-background")),children:Sb(e.column.columnDef.cell,e.getContext())},e.id)}))}),t.getIsExpanded()&&Kn.jsx(Kn.Fragment,{children:c&&d&&d({rows:c.get(t.original.id.toString())??[],row:t.original})})]},t.id)}function Ab({styledTableProps:e,table:t}){const n=e.hideFooter?t.getCoreRowModel().rows:t.getRowModel().rows;return Kn.jsx(Kn.Fragment,{children:n.map(((t,n)=>Kn.jsx(Mb,{styledTableProps:e,row:t,index:n},t.id)))})}const Rb=({colSpan:e,noRowsOverlay:t})=>Kn.jsx("tr",{className:"no-rows-overlay",children:Kn.jsx("td",{colSpan:e,children:t})});function Db({table:e,styledTableProps:t}){const{columns:n,data:o,loading:r,noRowsOverlay:i}=t;return Kn.jsxs("tbody",{className:"tbody",children:[o.length>0&&r&&Kn.jsx(jl,{className:"loading-icon",width:50,height:50}),0===o.length&&r?Kn.jsx(Pb,{colSpan:n.length}):o.length>0?Kn.jsx(Ab,{table:e,styledTableProps:t}):Kn.jsx(Rb,{colSpan:n.length,noRowsOverlay:i})]})}const Ib=e=>Kn.jsx(z,{...e}),Lb=()=>{const[e,t]=p(null),n=!!e,o=i((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:i((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}};function qb({table:e,locale:t}){const{anchorEl:n,open:o,handleClose:i,handleOpen:a}=Lb(),l=r(null),s="no"===t,u=()=>{var e,t,n,o;null==(o=null==(n=null==(t=null==(e=null==l?void 0:l.current)?void 0:e.closest(".asma-core-ui-styled-table"))?void 0:t.querySelectorAll('[data-index="0"]'))?void 0:n[0])||o.scrollIntoView({block:"center",inline:"start"})},c=e.getPageCount(),d=e.getState().pagination.pageIndex+1,f=Array.from({length:c},((e,t)=>t+1));return c>1?Kn.jsxs("div",{ref:l,className:"table-pagination",children:[Kn.jsx(mi,{title:s?"Nåværende side":"Current Page",children:Kn.jsx("div",{children:Kn.jsxs(vs,{variant:"outlined",dataTest:"list-pages",style:{width:"134px"},onClick:e=>{a(e)},endIcon:o?Kn.jsx(Il,{height:24,width:24}):Kn.jsx(Dl,{height:24,width:24}),children:[s?"Side":"Page"," ",d," ",s?"av":"of"," ",c]})})}),Kn.jsx(Ib,{open:o,anchorEl:n,onClose:i,anchorOrigin:{vertical:-5,horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:Kn.jsx("div",{className:"table-pagination__pages-list",children:f.map((t=>Kn.jsxs("div",{className:zn("table-pagination__pages-list__page",d===t&&"page-selected"),onClick:()=>{e.setPageIndex(t-1),i(),u()},children:[d===t&&Kn.jsx(ql,{className:"check-icon",height:24,width:24}),Kn.jsxs("span",{children:[s?"Side":"Page"," ",t]})]},t)))})}),Kn.jsx(mi,{title:1===d?"":s?"Forrige side":"Previous Page",children:Kn.jsx("div",{children:Kn.jsx(vs,{variant:"outlined",dataTest:"pagination-ChevronLeftIcon",startIcon:Kn.jsx(tl,{height:24,width:24}),onClick:()=>{e.previousPage(),u()},disabled:!e.getCanPreviousPage()})})}),Kn.jsx(mi,{title:d===c?"":s?"Neste side":"Next Page",children:Kn.jsx("div",{children:Kn.jsx(vs,{variant:"outlined",dataTest:"pagination-ChevronRightIcon",startIcon:Kn.jsx(el,{height:24,width:24}),onClick:()=>{e.nextPage(),u()},disabled:!e.getCanNextPage()})})})]}):null}function Fb({table:e,styledTableProps:t}){var n;return t.hideFooter?null:Kn.jsxs("div",{className:"table-footer",children:[null==(n=t.footer)?void 0:n.call(t,e),Kn.jsx(qb,{table:e,locale:t.locale||"en"})]})}const zb=t=>{const{columns:n,data:o,initialState:r,pageSize:i,enableRowSelection:a,tableInstanceRef:l,...s}=t,u=function(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[o]=e.useState((()=>({current:_b(n)}))),[r,i]=e.useState((()=>o.current.initialState));return o.current.setOptions((e=>({...e,...t,state:{...r,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),o.current}({columns:n,data:o,initialState:{pagination:{pageIndex:0,pageSize:i||50},columnVisibility:{...null==r?void 0:r.columnVisibility,[Ty]:!1},...r},enableRowSelection:a,getCoreRowModel:e=>Iy((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,r,i){void 0===r&&(r=0);const a=[];for(let s=0;s<t.length;s++){const u=kb(e,e._getRowId(t[s],s,i),t[s],s,r,void 0,null==i?void 0:i.id);var l;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=u.originalSubRows)&&l.length&&(u.subRows=o(u.originalSubRows,r+1,u)))}return a};return n.rows=o(t),n}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getExpandedRowModel:e=>Iy((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>t.rows.length&&(!0===e||Object.keys(e??{}).length)&&n?Ob(t):t),{key:"development"===process.env.NODE_ENV&&"getExpandedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredRowModel:e=>Iy((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,o)=>{if(!t.rows.length||(null==n||!n.length)&&!o){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach((t=>{var n;const o=e.getColumn(t.id);if(!o)return;const i=o.getFilterFn();i?r.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${o.id}.`)}));const a=n.map((e=>e.id)),l=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let u,c;o&&l&&s.length&&(a.push("__global__"),s.forEach((e=>{var t;i.push({id:e.id,filterFn:l,resolvedValue:null!=(t=null==l.resolveFilterValue?void 0:l.resolveFilterValue(o))?t:o})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},r.length)for(let e=0;e<r.length;e++){u=r[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){c=i[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return Cb(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:"development"===process.env.NODE_ENV&&"getFilteredRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>Iy((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,r=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=[...e];return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const r=i[o],l=a[r.id],s=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(l.sortUndefined){const n=void 0===e.getValue(r.id),o=void 0===t.getValue(r.id);(n||o)&&(u=n&&o?0:n?l.sortUndefined:-l.sortUndefined)}if(0===u&&(u=l.sortingFn(e,t,r.id)),0!==u)return s&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:r,rowsById:n.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>Iy((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:r}=t;let{rows:i,flatRows:a,rowsById:l}=n;const s=o*r,u=s+o;let c;i=i.slice(s,u),c=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:Ob({rows:i,flatRows:a,rowsById:l}),c.flatRows=[];const d=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return c.rows.forEach(d),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowId:s.getRowId||((e,t,n)=>n?[n.id,e.id].join("."):e.id.toString()),defaultColumn:t.enableResizing?{size:void 0}:void 0,...s});return l&&(l.current=u),{table:u}};function Vb({tableData:e,actions:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=Lb(),a=t(e.row).filter((e=>!e.hide));return Kn.jsx("div",{className:"flex justify-center items-center w-[42px]",children:a.length?Kn.jsxs(Kn.Fragment,{children:[Kn.jsx(vs,{dataTest:"test",variant:"text",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),i(e)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:Kn.jsx(Sl,{className:"!text-delta-800",width:20,height:20})}),Kn.jsx(Ib,{open:o,anchorEl:n,onClose:r,onClick:r,anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"right"},children:t(e.row).filter((e=>!e.hide)).map(((t,n)=>Kn.jsx(wy,{className:t.className,disabled:t.disabled,onClick:()=>{var n;null==(n=t.onClick)||n.call(t,e.row)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:t.label},n)))})]}):null})}function Bb({headerData:e}){const{anchorEl:t,open:n,handleClose:o,handleOpen:r}=Lb();return Kn.jsxs("div",{className:"w-full flex items-center justify-end ",children:[Kn.jsx("div",{className:"px-2.5 h-[30px] flex items-center justify-center cursor-pointer",onClick:r,children:Kn.jsx(Ka,{icon:"mdi:pin",className:"text-delta-500 hover:text-delta-600 min-w-[20px] min-h-[20px]"})}),Kn.jsx(Ib,{anchorEl:t,anchorOrigin:{horizontal:"left",vertical:"bottom"},open:n,onClose:o,children:e.table.getAllLeafColumns().filter((e=>e.getCanHide()&&e.id!==Ty)).map((e=>e.columnDef.header?Kn.jsxs(wy,{onClick:()=>e.toggleVisibility(!e.getIsVisible()),children:[Kn.jsx(vc,{size:"small",dataTest:"test",disableRipple:!0,className:"p-0 pr-2",checked:e.getIsVisible()}),"string"==typeof e.columnDef.header?e.columnDef.header:e.id]},e.id):null))})]})}const Hb=e=>{const{columns:t,actions:n,customActionsNode:o,headerPin:r=!0,enableRowSelection:i,expandArrow:a}=e;!t.find((e=>"actions"===e.id))&&(n||o||r)&&t.push(function(e){const{headerPin:t,actions:n,customActionsNode:o}=e;return{id:"actions",enableHiding:!1,enableSorting:!1,accessorFn:e=>e,header:e=>t?Kn.jsx(Bb,{headerData:e}):null,cell:e=>n||o?Kn.jsxs("div",{className:"flex items-center justify-end",children:[o&&Kn.jsx("div",{className:"mr-1",children:null==o?void 0:o(e)}),n&&Kn.jsx(Vb,{tableData:e,actions:n})]}):null,size:50}}({headerPin:r,actions:n,customActionsNode:o})),i&&!t.find((e=>e.id===Ty))&&t.unshift({id:Ty,minSize:40,maxSize:40,size:40,header:({table:e})=>Kn.jsx("div",{className:"w-[25px]",children:Kn.jsx(vc,{size:"small",dataTest:"cell-select-all",checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()})}),cell:({cell:e})=>Kn.jsx("div",{className:"w-[25px]",children:Kn.jsx(vc,{size:"small",dataTest:"cell-select",checked:e.row.getIsSelected(),disabled:!e.row.getCanSelect(),onClick:e=>e.stopPropagation(),onChange:e.row.getToggleSelectedHandler()})})}),a&&!t.find((e=>e.id===Py))&&t.unshift({id:Py,minSize:40,maxSize:40,size:40,enableHiding:!1,enableSorting:!1,header:()=>null,cell:({cell:e})=>{const t=e.row.getIsExpanded();return e.row.getCanExpand()?Kn.jsx("span",{className:"flex w-fit h-fit px-2 bg-transparent outline-none focus:outline-none items-center justify-center",onClick:()=>e.row.getToggleExpandedHandler()(),children:t?Kn.jsx(Il,{width:24,height:24}):Kn.jsx(Dl,{width:24,height:24})}):null}})},Ub=e=>{const{className:t,height:n}=e;Hb(e);const{table:o}=zb(e);return Kn.jsxs("div",{className:"asma-core-ui-styled-table",children:[Kn.jsx("div",{className:zn("table-wrapper",t),style:{height:n},children:Kn.jsxs("table",{className:"styled-table",children:[Kn.jsx(Tb,{table:o,styledTableProps:e}),Kn.jsx(Db,{table:o,styledTableProps:e})]})}),Kn.jsx(Fb,{table:o,styledTableProps:e})]})},Wb=function(e){return Kn.jsx("div",{className:"styled-widget-title",children:e.children})},Gb=function(e){return Kn.jsx("h1",{"data-test":e.dataTest,className:"styled-module-title",children:e.children})},$b=()=>{const[e,t]=p(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},Kb=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:r="large",variant:i="outlined"})=>{const{onAnchorClick:a,onClose:l,anchorEl:s}=$b();return Kn.jsxs(Kn.Fragment,{children:[Kn.jsxs("div",{className:"w-fit h-fit relative",children:[Kn.jsx(vs,{disabled:o,variant:i,startIcon:Kn.jsx(Kl,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:a,size:r,dataTest:n,children:"Filter"}),e&&Kn.jsx("div",{className:Yt("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),Kn.jsx(Ib,{open:!!s,anchorEl:s,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:"my-1",children:t})]})},Yb=({onCloseText:e,onMinimizeText:t,onExpandText:n,showCloseIcon:o=!0,showMinimizeIcon:r=!0,showExpandIcon:i=!0,title:a,label:l,children:s,open:u,onClose:c,className:d="",primaryButtonText:f,secondaryButtonText:h,onPrimaryButtonClick:g,onSecondaryButtonClick:m,dataTest:v})=>{const[y,b]=p(!1),w=()=>{b(!y)};return u?y?Kn.jsx("div",{className:"fixed bottom-4 right-4 z-[51] w-[387px] rounded-lg bg-white py-2 pl-4 pr-3 shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",children:Kn.jsxs("div",{className:"flex items-center justify-between","data-test":v,children:[Kn.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:a}),Kn.jsxs("div",{className:"flex gap-x-1",children:[Kn.jsx("div",{className:"flex items-center gap-x-2",children:Kn.jsx(vs,{dataTest:"minimize-button",variant:"text",size:"small",onClick:w,endIcon:i&&Kn.jsx(ps,{height:20,width:20,color:"text-gama-500"}),children:n})}),Kn.jsx("div",{className:"flex items-center gap-x-2",children:Kn.jsx(vs,{dataTest:"close-button",variant:"textGray",size:"small",onClick:c,endIcon:o&&Kn.jsx(Ll,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]})}):Kn.jsxs("div",{className:Yt("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",d),"data-test":v,children:[Kn.jsxs("div",{className:"fixed-top flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[Kn.jsxs("div",{className:"flex items-center justify-between",children:[l?Kn.jsx("div",{className:"text-sm text-delta-700",children:l}):Kn.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a}),Kn.jsxs("div",{className:"flex gap-x-1",children:[Kn.jsx("div",{className:"flex items-center gap-x-2",children:Kn.jsx(vs,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:w,endIcon:r&&Kn.jsx(fs,{height:20,width:20,color:"text-delta-700"}),children:t})}),Kn.jsx("div",{className:"flex items-center gap-x-2",children:Kn.jsx(vs,{dataTest:"close-button",variant:"textGray",size:"small",onClick:c,endIcon:Kn.jsx(Ll,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]}),l&&Kn.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a})]}),Kn.jsx("div",{children:s}),Kn.jsxs("div",{className:"fixed-bottom flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",children:[h&&m&&Kn.jsx(vs,{dataTest:"cancel-button",variant:"outlined",onClick:m,children:h}),f&&g&&Kn.jsx(vs,{dataTest:"save-button",onClick:g,children:f})]})]}):null};export{My as ACTIONS_COLUMN_ID,Ml as ArchiveIcon,hl as AssignmentIcon,gl as AssignmentOutlineIcon,ae as Avatar,gs as BadgeIcon,Qa as BellIcon,Xa as BellOutlineIcon,Jl as CalendarBlankOutlineIcon,fl as CalendarIcon,pl as CalendarRangeIcon,Rl as CheckBoxCheckedIcon,dl as CheckFactOutlineIcon,ql as CheckIcon,cl as CheckOutlineIcon,nl as ChevronDoubleLeftIcon,ol as ChevronDoubleRightIcon,Dl as ChevronDownIcon,tl as ChevronLeftIcon,el as ChevronRightIcon,Il as ChevronUpIcon,le as ClickAwayListener,Ll as CloseIcon,ds as ConsentsIcon,al as DashboardViewIcon,ll as DashboardViewOutlineIcon,$l as DeleteOutlineIcon,Sl as DotsVerticalIcon,Al as DownloadIcon,Wl as DragHorizontalIcon,Pl as DropDownIcon,Tl as DropUpIcon,Zl as DvrIcon,Py as EXPAND_COLUMN_ID,as as EarthIcon,Ul as EmptyPageIcon,Xl as ErrorOutlineIcon,se as Fade,ts as FastCheckOutlineIcon,Gl as FilePdfIcon,Kl as FilterIcon,kl as FindReplaceIcon,El as FindReplacePeopleIcon,Ja as HamburgerIcon,Vl as InboxOutboxIcon,Bl as InboxOutboxOutlineIcon,ps as KeyboardCapslockIcon,es as LinkOutlineIcon,ml as ListNumberedIcon,is as ListSettingsLineIcon,os as ListStatusIcon,jl as LoadingIcon,Yl as LockIcon,vl as MessageProcessingIcon,yl as MessageProcessingOutlineIcon,hs as MessageReplyIcon,Yb as MinimizableDialog,fs as MinimizeIcon,cs as OutlineCalendarMonth,ue as Paper,il as PdfIcon,ss as PencilOutlineIcon,ul as PeopleIcon,sl as PeopleOutlineIcon,Fl as PermMediaIcon,zl as PermMediaOutline,Cl as PersonIcon,Ol as PersonOutlineIcon,ce as Popper,rl as QnrIcon,Ql as ReplayIcon,bl as ReportBoxIcon,wl as ReportBoxOutlineIcon,bg as RichInput,Ty as SELECT_COLUMN_ID,Nl as SearchIcon,xl as SettingsIcon,ls as SettingsMenuHorizontalIcon,_l as SettingsOutlineIcon,de as Skeleton,dc as SnackbarProvider,Sy as StyledAccordion,jy as StyledAccordionDetails,Ny as StyledAccordionSummary,_s as StyledAlert,ks as StyledAlertTitle,Yn as StyledBadge,vs as StyledButton,vc as StyledCheckbox,Zn as StyledChip,Oy as StyledContainer,Kv as StyledDatePicker,ys as StyledDialog,bs as StyledDialogActions,ws as StyledDialogContent,xs as StyledDialogTitle,yy as StyledDrawer,Kb as StyledFilterMenu,Fv as StyledFormControl,fy as StyledFormControlLabel,vy as StyledFormGroup,py as StyledFormHelperText,hy as StyledFormLabel,yc as StyledInputField,gy as StyledInputLabel,Sg as StyledLabel,ky as StyledLink,by as StyledMenu,wy as StyledMenuItem,xy as StyledMenuList,Gb as StyledModuleTitle,Ib as StyledPopover,Cg as StyledRadio,Og as StyledRadioGroup,wg as StyledSelect,_g as StyledSelectAutocomplete,xg as StyledSelectItem,kg as StyledSlider,fc as StyledSnackbar,my as StyledStack,Eg as StyledSwitch,Ey as StyledTab,Ub as StyledTable,Cy as StyledTabs,wc as StyledTextarea,dy as StyledTimePicker,mi as StyledTooltip,ms as StyledTypography,Wb as StyledWidgetTitle,rs as TextBoxCheckOutlineIcon,Hl as TopicIcon,ns as UnknownDocumentOutlineRoundedIcon,us as WarningAmberOutlineIcon,Yu as closeSnackbar,zn as cn,Eb as createColumnHelper,Ku as enqueueSnackbar,mc as message,me as omit,pc as processAlertSnackBar,hc as processInfoSnackbar,Gt as setMidnightTime,$t as setZeroTime,sc as useSnackbar};
|