honeycombatomiclib 0.0.28 → 0.0.34
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/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";import React__default,{useRef,useLayoutEffect,useState,useImperativeHandle,forwardRef,Fragment as Fragment$1,useMemo,useReducer,useEffect,useCallback,createRef}from"react";import{Button}from"primereact/button";import"primeicons/primeicons.css";import{SelectButton}from"primereact/selectbutton";import{SplitButton}from"primereact/splitbutton";import{Knob}from"primereact/knob";import{AutoComplete}from"primereact/autocomplete";import{InputText}from"primereact/inputtext";import{Chips}from"primereact/chips";import{Badge}from"primereact/badge";import{InputNumber}from"primereact/inputnumber";import{Calendar}from"primereact/calendar";import{addLocale}from"primereact/api";import{Password}from"primereact/password";import{Divider}from"primereact/divider";import{InputTextarea}from"primereact/inputtextarea";import{Tooltip as Tooltip$1}from"primereact/tooltip";import{Card}from"primereact/card";import{Skeleton}from"primereact/skeleton";import{Chip}from"primereact/chip";import{ProgressBar}from"primereact/progressbar";import{ProgressSpinner}from"primereact/progressspinner";import{Slider}from"primereact/slider";import{BreadCrumb}from"primereact/breadcrumb";import{TabView,TabPanel}from"primereact/tabview";import{Checkbox}from"primereact/checkbox";import{TriStateCheckbox}from"primereact/tristatecheckbox";import{ColorPicker}from"primereact/colorpicker";import{Dropdown}from"primereact/dropdown";import{InputSwitch}from"primereact/inputswitch";import{TreeSelect}from"primereact/treeselect";import{MultiSelect}from"primereact/multiselect";import{Galleria}from"primereact/galleria";import{Panel}from"primereact/panel";import{ConfirmDialog}from"primereact/confirmdialog";import{Dialog}from"primereact/dialog";import{useNavigate}from"react-router-dom";import{DataTable}from"primereact/datatable";import{Column}from"primereact/column";function styleInject(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var css_248z$1o='/* Load order: vendor first, then Bee styles last so overrides win when specificity is equal */\r\n@import "primeflex/primeflex.css";\r\n\r\n@import "./beetheme.css";\r\n@import "./beeprimereact.css";\r\n@import "./beecolors.css";\r\n';styleInject(css_248z$1o);var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lib={},hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0});var n=e(React__default),r="id",o=0;function i(t){return o++,"".concat(t||r).concat(o)}function a(t){var e=n.default.useRef();return n.default.useEffect(function(){e.current=t}),e.current}t.default=i,t.resetId=function(){o=0},t.setPrefix=function(t){r=t},t.useId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1?arguments[1]:void 0,r=n.default.useRef([]),o=a(t),s=a(e);return t===o&&s===e||(r.current=function(t,e){for(var n=[],r=0;r<t;r++)n.push(i(e));return n}(t,e)),r.current}}(lib)),lib}var libExports=requireLib(),css_248z$1n='.bee-btn {\n /* primary */\n}\n.bee-btn.bee-btn-primary.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n.bee-btn {\n /* secondary */\n}\n.bee-btn.bee-btn-secondary.p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n.bee-btn {\n /* light */\n}\n.bee-btn.bee-btn-light.p-button {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n.bee-btn.bee-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n.bee-btn.bee-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n.bee-btn.bee-btn-light.p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n.bee-btn.bee-btn-light.p-button:hover::before {\n background-color: var(--surface-a);\n content: "";\n position: absolute;\n top: 0;\n height: 0;\n width: 0;\n right: 0;\n}';function BeeButton({id:t,className:e,label:n,disabled:r,type:o="primary",iconPos:i="right",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-button-")[0];return jsx(Button,{id:d,loading:null!=l&&l,iconPos:i,size:p,disabled:null!=r&&r,label:n,tooltip:a,tooltipOptions:s,onClick:t=>function(t){!r&&c&&c(t)}(t),className:"bee-btn "+("primary"===o?"bee-btn-primary":"secondary"===o?"p-button-secondary bee-btn-secondary":"danger"===o?"p-button-danger bee-btn-danger":"light"===o?"bee-btn-light":"bee-btn-primary")+(e?" "+e:"")})}styleInject(css_248z$1n);var css_248z$1m=".bee-icn-badge-btn {\n height: 2.25rem;\n position: relative;\n display: inline-block;\n /* icon */\n}\n.bee-icn-badge-btn .p-button {\n padding: 0.25rem 0.571rem 0.25rem 0.571rem !important;\n border: 1px solid !important;\n width: unset !important;\n display: flex;\n align-items: flex-end;\n min-width: unset;\n}\n.bee-icn-badge-btn .p-button .p-button-icon {\n margin-right: 0rem;\n font-size: 1.5rem;\n}\n.bee-icn-badge-btn .p-button .p-button-label {\n font-size: 0.6rem;\n flex: unset;\n}\n\n/* primary */\n.bee-icn-badge-btn-primary .p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-color-12);\n}\n.bee-icn-badge-btn-primary .p-chip {\n background-color: var(--secondary-color);\n}\n.bee-icn-badge-btn-primary .p-chip .p-chip-text {\n color: var(--secondary-color-text);\n}\n\n/* secondary */\n.bee-icn-badge-btn-secondary .p-button {\n color: var(--secondary-dark-color) !important;\n}\n.bee-icn-badge-btn-secondary .p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-color-12);\n}\n.bee-icn-badge-btn-secondary .p-chip {\n background-color: var(--primary-color);\n}\n.bee-icn-badge-btn-secondary .p-chip .p-chip-text {\n color: var(--primary-color-text);\n}\n\n/* danger */\n.bee-icn-badge-btn-danger .p-chip {\n background-color: var(--primary-light-active-color);\n}\n.bee-icn-badge-btn-danger .p-chip .p-chip-text {\n color: var(--error-dark-color);\n}\n\n/* light */\n.bee-icn-badge-btn-light .p-button {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n.bee-icn-badge-btn-light .p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n.bee-icn-badge-btn-light .p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n.bee-icn-badge-btn-light .p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n.bee-icn-badge-btn-light .p-chip {\n background-color: var(--primary-color);\n}\n.bee-icn-badge-btn-light .p-chip .p-chip-text {\n color: var(--primary-color-text);\n}";function BeeIconBadgeButton({id:t,className:e,iconClass:n,value:r,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,onClick:l}){const p=null!=t?t:libExports.useId(1,"bee-icon-badge-button-")[0];return jsx("div",{className:"bee-icn-badge-btn "+("primary"===i?"bee-icn-badge-btn-primary":"secondary"===i?"bee-icn-badge-btn-secondary":"danger"===i?"bee-icn-badge-btn-danger":"light"===i?"bee-icn-badge-btn-light":"bee-icn-badge-btn-primary")+(r?" bee-icn-badge-btn-value":null)+(e?" "+e:""),children:jsx(Button,{disabled:null!=o&&o,id:p,className:"p-button-text "+("secondary"===i?"p-button-secondary ":"danger"===i?"p-button-danger ":""),icon:n,label:r?"("+r+")":void 0,tooltip:a,tooltipOptions:s,onClick:t=>function(t){!o&&l&&l(t)}(t)})})}styleInject(css_248z$1m);var css_248z$1l="/* primary */\n.bee-icn-btn-primary.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n\n.bee-icn-btn-secondary.p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n\n/* lightPrimary */\n.p-button.bee-icn-btn-light-primary {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n\n.bee-icn-btn-light-primary.p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n\n.bee-icn-btn-light-primary.p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n\n.bee-icn-btn-light-primary.p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n\n/* lightSecondary */\n.p-button.bee-icn-btn-light-secondary {\n color: var(--secondary-color);\n background-color: var(--surface-a);\n}\n\n.bee-icn-btn-light-secondary.p-button:not(a):not(.p-disabled):hover {\n color: var(--secondary-color);\n background-color: var(--secondary-color-4);\n}\n\n.bee-icn-btn-light-secondary.p-button:not(a):not(.p-disabled):active {\n color: var(--secondary-color);\n background-color: var(--secondary-light-active-color-16);\n}\n\n.bee-icn-btn-light-secondary.p-button:not(a):not(.p-disabled):focus {\n background: var(--secondary-color-12);\n}\n\n/* lightDanger */\n.p-button.bee-icn-btn-light-danger {\n color: var(--error-dark-color);\n background-color: var(--surface-a);\n border: none !important;\n}\n\n.bee-icn-btn-light-danger.p-button:not(a):not(.p-disabled):hover {\n color: var(--error-dark-color);\n}\n\n.bee-icn-btn-light-danger.p-button:not(a):not(.p-disabled):active {\n color: var(--error-dark-color);\n}\n\n.p-button-half-rounded {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n}";function BeeIconButton({id:t,className:e,iconClass:n,rounded:r=!1,halfRounded:o,disabled:i,type:a="primary",isLoading:s,tooltip:l,tooltipOptions:p,size:c,onClick:d}){const u=null!=t?t:libExports.useId(1,"bee-icon-button-")[0];return jsx(Button,{id:u,disabled:null!=i&&i,loading:null!=s&&s,className:("primary"===a?"bee-icn-btn-primary":"secondary"===a?"p-button-secondary bee-icn-btn-secondary":"danger"===a?"p-button-danger bee-icn-btn-danger":"lightPrimary"===a?"bee-icn-btn-light-primary":"lightSecondary"===a?"bee-icn-btn-light-secondary":"lightDanger"===a?"bee-icn-btn-light-danger p-button-danger p-button-outlined":"bee-icn-btn-primary")+(r?" p-button-rounded":"")+(o?" p-button-half-rounded":"")+(e?" "+e:""),icon:n,tooltip:l,tooltipOptions:p,size:c,onClick:t=>function(t){!i&&d&&d(t)}(t)})}styleInject(css_248z$1l);var css_248z$1k="/* secondary */\n.bee-outlined-icon-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.p-button.bee-outlined-icon-btn-light {\n color: var(--surface-a) !important;\n}\n\n.bee-outlined-icon-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-outlined-icon-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-outlined-icon-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeOutlinedIconButton({id:t,className:e,iconClass:n,rounded:r=!1,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-outlined-icon-button-")[0];return jsx(Button,{id:d,loading:null!=l&&l,disabled:null!=o&&o,icon:n,tooltip:a,tooltipOptions:s,size:p,className:"p-button-outlined"+(r?" p-button-rounded":"")+("primary"===i?" bee-outlined-icon-btn-primary":"secondary"===i?" p-button-secondary bee-outlined-icon-btn-secondary":"danger"===i?" p-button-danger bee-outlined-icon-btn-danger":"light"===i?" bee-outlined-icon-btn-light":" bee-outlined-icon-btn-primary")+(e?" "+e:""),onClick:t=>function(t){!o&&c&&c(t)}(t)})}styleInject(css_248z$1k);var css_248z$1j="/* secondary */\n.bee-link-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.p-button.bee-link-btn-light {\n color: var(--surface-a) !important;\n}\n\n.bee-link-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-link-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-link-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeLinkButton({id:t,className:e,label:n,raised:r=!1,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-link-button-")[0];return jsx(Button,{id:d,className:(r?"p-button-raised p-button-text":"p-button-text")+("primary"===i?" p-button-primary bee-link-btn-primary":"secondary"===i?" p-button-secondary bee-link-btn-secondary":"danger"===i?" p-button-danger bee-link-btn-danger":"light"===i?" bee-link-btn-light":" bee-link-btn-primary")+(e?" "+e:""),loading:null!=l&&l,disabled:null!=o&&o,label:n,tooltip:a,tooltipOptions:s,size:p,onClick:t=>function(t){!o&&c&&c(t)}(t)})}styleInject(css_248z$1j);var css_248z$1i="/* primary */\n.bee-mix-btn-primary.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n\n/* secondary */\n.bee-mix-btn-secondary.p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n\n/* light-primary */\n.p-button.bee-mix-btn-light-primary {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n\n.bee-mix-btn-light-primary.p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n\n.bee-mix-btn-light-primary.p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n\n.bee-mix-btn-light-primary.p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n\n/* light-secondary */\n.p-button.bee-mix-btn-light-secondary {\n color: var(--secondary-dark-color);\n background-color: var(--surface-a);\n}\n\n.bee-mix-btn-light-secondary.p-button:not(a):not(.p-disabled):hover {\n color: var(--secondary-color);\n background-color: var(--secondary-color-4);\n}\n\n.bee-mix-btn-light-secondary.p-button:not(a):not(.p-disabled):active {\n color: var(--secondary-color);\n background-color: var(--secondary-color-16);\n}\n\n.bee-mix-btn-light-secondary.p-button:not(a):not(.p-disabled):focus {\n background: var(--secondary-color-12);\n}\n\n/* light-danger */\n.p-button.bee-mix-btn-light-danger {\n color: var(--error-dark-color);\n background-color: var(--surface-a);\n border: none !important;\n}\n\n.bee-mix-btn-light-danger.p-button:not(a):not(.p-disabled):hover {\n color: var(--error-dark-color);\n}\n\n.bee-mix-btn-light-danger.p-button:not(a):not(.p-disabled):active {\n color: var(--error-dark-color);\n}";function BeeMixButton({id:t,className:e,label:n,iconClass:r,iconPos:o="right",disabled:i,type:a="primary",isLoading:s,tooltip:l,tooltipOptions:p,size:c,onClick:d}){const u=null!=t?t:libExports.useId(1,"bee-mix-button-")[0];return jsx(Button,{id:u,loading:null!=s&&s,label:n,className:("primary"===a?"bee-mix-btn-primary":"secondary"===a?"p-button-secondary bee-mix-btn-secondary":"danger"===a?"p-button-danger bee-mix-btn-danger":"lightPrimary"===a?"bee-mix-btn-light-primary":"lightSecondary"===a?"bee-mix-btn-light-secondary":"lightDanger"===a?"bee-mix-btn-light-danger p-button-danger p-button-outlined":"bee-mix-btn-primary")+(e?" "+e:""),iconPos:o,icon:r,disabled:null!=i&&i,tooltip:l,tooltipOptions:p,size:c,onClick:t=>function(t){!i&&d&&d(t)}(t)})}styleInject(css_248z$1i);var css_248z$1h="/* secondary */\n.bee-outlined-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.p-button.bee-outlined-btn-light {\n color: var(--surface-a) !important;\n}\n\n.bee-outlined-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-outlined-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-outlined-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeOutlinedButton({id:t,className:e,label:n,disabled:r,type:o="primary",tooltip:i,tooltipOptions:a,isLoading:s,size:l,onClick:p}){const c=null!=t?t:libExports.useId(1,"bee-outlined-button-")[0];return jsx(Button,{id:c,loading:null!=s&&s,disabled:null!=r&&r,label:n,tooltip:i,tooltipOptions:a,size:l,className:"p-button-outlined"+("primary"===o?" bee-outlined-btn-primary":"secondary"===o?" p-button-secondary bee-outlined-btn-secondary":"danger"===o?" p-button-danger bee-outlined-btn-danger":"light"===o?" bee-outlined-btn-light":" bee-outlined-btn-primary")+(e?" "+e:""),onClick:t=>function(t){!r&&p&&p(t)}(t)})}styleInject(css_248z$1h);var css_248z$1g=".bee-select-btn.p-selectbutton {\n display: block;\n text-align: center;\n white-space: nowrap;\n}\n\n.bee-select-btn.p-selectbutton .p-button {\n padding: 10px 4vw 10px 4vw;\n margin: 4px 0 5px 0;\n background: transparent;\n overflow: visible;\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button {\n color: var(--primary-color);\n border: 1px solid var(--primary-color);\n}\n\n.bee-select-btn.p-selectbutton .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button.p-component .p-button-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* primary */\n.bee-select-btn-primary.p-selectbutton .p-button:active,\n.bee-select-btn-primary.p-selectbutton .p-button.p-highlight {\n background: var(--primary-light-active-color);\n color: var(--primary-color);\n border-color: var(--primary-color);\n border-style: solid;\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-color-4);\n color: var(--primary-color-100);\n border-color: var(--primary-color);\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button:active:hover,\n.bee-select-btn-primary.p-selectbutton .p-button.p-highlight:hover {\n background: var(--primary-light-active-color) !important;\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button:focus {\n background: var(--primary-color-12) !important;\n border-color: var(--primary-color) !important;\n}\n\n/* secondary */\n.bee-select-btn-secondary.p-selectbutton .p-button {\n color: var(--secondary-dark-color);\n border: 1px solid var(--secondary-dark-color);\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:active,\n.bee-select-btn-secondary .p-button.p-highlight {\n background: var(--secondary-color-16);\n color: var(--secondary-dark-color);\n border-color: var(--secondary-dark-color);\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:hover {\n background: var(--secondary-color-4) !important;\n color: var(--secondary-dark-color) !important;\n border-color: var(--secondary-dark-color) !important;\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:active:hover,\n.bee-select-btn-secondary .p-button.p-highlight:hover {\n background: var(--secondary-color-16) !important;\n color: var(--secondary-dark-color) !important;\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:focus {\n background: var(--secondary-color-12) !important;\n border-color: var(--secondary-dark-color) !important;\n color: var(--secondary-dark-color) !important;\n}\n\n/* border */\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0 !important;\n}";function BeeSelectButton({id:t,className:e,options:n,selectedOption:r,disabled:o,type:i="primary",itemTemplate:a,tooltip:s,tooltipOptions:l,onSelect:p}){const c=null!=t?t:libExports.useId(1,"bee-select-button-")[0];return jsx(SelectButton,{id:c,disabled:null!=o&&o,value:r,className:"bee-select-btn "+("primary"===i?"bee-select-btn-primary":"secondary"===i?"bee-select-btn-secondary":"bee-select-btn-primary")+(e?" "+e:""),options:n,itemTemplate:a,tooltip:s,tooltipOptions:l,onChange:t=>{return e=t.value,void(!o&&p&&p(e));var e}})}styleInject(css_248z$1g);var css_248z$1f="/* primary */\n.bee-split-btn-primary.p-splitbutton .p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n\n/* secondary */\n.bee-split-btn-secondary.p-splitbutton .p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n\n/* light */\n.bee-split-btn-light.p-splitbutton button {\n color: var(--primary-color);\n background-color: var(--primary-color-text);\n}\n\n.bee-split-btn-light.p-splitbutton .p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n\n.bee-split-btn-light.p-splitbutton .p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n\n.bee-split-btn-light.p-splitbutton .p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}";function BeeSplitButton({id:t,className:e,label:n,iconClass:r,dropdownIcon:o,disabled:i,isLoading:a,type:s="primary",model:l,menuClassName:p,menuButtonClassName:c,tooltip:d,tooltipOptions:u,size:h,onClick:b}){const m=null!=t?t:libExports.useId(1,"bee-split-button-")[0];return jsx(SplitButton,{id:m,label:n,className:("primary"===s?"bee-split-btn-primary":"secondary"===s?"p-button-secondary bee-split-btn-secondary":"danger"===s?"p-button-danger bee-split-btn-danger":"light"===s?"bee-split-btn-light":"bee-split-btn-primary")+(e?" "+e:""),disabled:null!=i&&i,icon:r,dropdownIcon:o,model:l,loading:a,size:h,menuClassName:p,menuButtonClassName:c,tooltip:d,tooltipOptions:u,onClick:t=>function(t){!i&&b&&b(t)}(t)})}styleInject(css_248z$1f);var css_248z$1e="/* secondary */\n.bee-toolbar-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.bee-toolbar-btn-light {\n color: var(--primary-color-text) !important;\n}\n\n.bee-toolbar-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-toolbar-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-toolbar-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeToolBarButton({id:t,className:e,iconClass:n,rounded:r,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-toolbar-button-")[0];return jsx(Button,{id:d,disabled:null!=o&&o,loading:null!=l&&l,className:"p-button-text"+("primary"===i?" bee-toolbar-btn-primary":"secondary"===i?" p-button-secondary bee-toolbar-btn-secondary":"danger"===i?" p-button-danger bee-toolbar-btn-danger":"light"===i?" bee-toolbar-btn-light":" bee-toolbar-btn-primary")+(r?" p-button-rounded":"")+(e?" "+e:""),icon:n,tooltip:a,tooltipOptions:s,size:p,onClick:t=>function(t){!o&&c&&c(t)}(t)})}styleInject(css_248z$1e);var css_248z$1d=".p-knob-range {\n cursor: default;\n}";function BeeKnob({id:t,className:e,value:n,minValue:r=0,maxValue:o=100,step:i,size:a="medium",type:s="primary",disabled:l,readOnly:p,showValue:c=!0,strokeWidth:d=14,valueColor:u,rangeColor:h,textColor:b,valueTemplate:m,onChange:f}){const g=null!=t?t:libExports.useId(1,"bee-knob-")[0],v=(o-r)/3,y="primary"===s?"var(--primary-color)":"secondary"===s?"var(--secondary-dark-color)":"mixed"===s?null!=n&&n>2*v?"var(--valid-dark-color)":null!=n&&n>v?"var(--warning-color)":"var(--error-dark-color)":"var(--primary-color)";return jsx(Knob,{id:g,value:null!=n?n:r,min:r,max:o,valueColor:null!=u?u:y,rangeColor:null!=h?h:"var(--surface-border, LightGray)",textColor:null!=b?b:y,valueTemplate:null!=m?m:"{value}",step:null!=i?i:1,size:"xLarge"===a?300:"large"===a?200:"medium"===a?100:"small"===a?66:"xSmall"===a?33:100,strokeWidth:d,className:null!=e?e:"",disabled:null!=l&&l,readOnly:null!=p&&p,showValue:c,onChange:t=>{return e=t.value,void(!l&&f&&f(e));var e}})}styleInject(css_248z$1d);var css_248z$1c=".bee-share-bar > div {\n display: inline-block;\n height: 0.5rem;\n}\n\n.bee-share-bar-rectangle {\n width: 100%;\n height: 100%;\n}\n\n/* mouseover */\n.bee-share-bar-mouseover {\n display: none;\n color: var(--text-color);\n text-decoration: none;\n padding: 3px;\n}\n\n.bee-sharebar-section {\n position: relative;\n}\n\n.bee-share-bar-rectangle:hover + .bee-share-bar-mouseover {\n display: block;\n position: absolute;\n z-index: 100;\n background-color: var(--secondary-color);\n color: var(--secondary-color-text);\n border: 1px solid var(--secondary-color);\n border-radius: 4px;\n margin: 0.25rem 0 0 0.25rem;\n box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4);\n font-size: 12px;\n line-height: 16px;\n max-width: 110px;\n overflow: hidden;\n text-overflow: ellipsis;\n}";function BeeShareBar({id:t,className:e,data:n,onClick:r}){const o=null!=t?t:libExports.useId(1,"bee-share-bar-")[0];function i(t){let e=0;if(n){n.forEach(t=>e+=t.weight);return(t/e*100).toString()}return 0}return jsx("div",{id:o,className:"bee-share-bar"+(e?" "+e:""),onClick:t=>function(t){null==r||r(t)}(t),children:n?n.map((t,e)=>{var n;return jsxs("div",{className:"bee-share-bar-section",style:{width:i(t.weight)+"%",background:null!==(n=t.color)&&void 0!==n?n:"lightgrey"},children:[jsx("div",{className:"bee-share-bar-rectangle"}),t.hint?jsx("span",{className:"bee-share-bar-mouseover",children:t.hint}):null]},"shareBar_part_"+e)}):jsx("div",{className:"bee-sharebar-empty",style:{width:"100%",background:"lightgrey"}})})}
|
|
1
|
+
import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";import React__default,{useRef,useLayoutEffect,useState,useImperativeHandle,forwardRef,Fragment as Fragment$1,useMemo,useReducer,useEffect,useCallback,createRef}from"react";import{Button}from"primereact/button";import"primeicons/primeicons.css";import{SelectButton}from"primereact/selectbutton";import{SplitButton}from"primereact/splitbutton";import{Knob}from"primereact/knob";import{AutoComplete}from"primereact/autocomplete";import{InputText}from"primereact/inputtext";import{Chips}from"primereact/chips";import{Badge}from"primereact/badge";import{InputNumber}from"primereact/inputnumber";import{Calendar}from"primereact/calendar";import{addLocale}from"primereact/api";import{Password}from"primereact/password";import{Divider}from"primereact/divider";import{InputTextarea}from"primereact/inputtextarea";import{Tooltip as Tooltip$1}from"primereact/tooltip";import{Card}from"primereact/card";import{Skeleton}from"primereact/skeleton";import{Chip}from"primereact/chip";import{ProgressBar}from"primereact/progressbar";import{ProgressSpinner}from"primereact/progressspinner";import{Slider}from"primereact/slider";import{BreadCrumb}from"primereact/breadcrumb";import{TabView,TabPanel}from"primereact/tabview";import{Checkbox}from"primereact/checkbox";import{TriStateCheckbox}from"primereact/tristatecheckbox";import{ColorPicker}from"primereact/colorpicker";import{Dropdown}from"primereact/dropdown";import{InputSwitch}from"primereact/inputswitch";import{TreeSelect}from"primereact/treeselect";import{MultiSelect}from"primereact/multiselect";import{Galleria}from"primereact/galleria";import{Panel}from"primereact/panel";import{ConfirmDialog}from"primereact/confirmdialog";import{Dialog}from"primereact/dialog";import{DataTable}from"primereact/datatable";import{Column}from"primereact/column";function styleInject(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var css_248z$1o='/* Load order: vendor first, then Bee styles last so overrides win when specificity is equal */\r\n@import "primeflex/primeflex.css";\r\n\r\n@import "./beetheme.css";\r\n@import "./beeprimereact.css";\r\n@import "./beecolors.css";\r\n';styleInject(css_248z$1o);var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lib={},hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0});var n=e(React__default),r="id",o=0;function i(t){return o++,"".concat(t||r).concat(o)}function a(t){var e=n.default.useRef();return n.default.useEffect(function(){e.current=t}),e.current}t.default=i,t.resetId=function(){o=0},t.setPrefix=function(t){r=t},t.useId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1?arguments[1]:void 0,r=n.default.useRef([]),o=a(t),s=a(e);return t===o&&s===e||(r.current=function(t,e){for(var n=[],r=0;r<t;r++)n.push(i(e));return n}(t,e)),r.current}}(lib)),lib}var libExports=requireLib(),css_248z$1n='.bee-btn {\n /* primary */\n}\n.bee-btn.bee-btn-primary.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n.bee-btn {\n /* secondary */\n}\n.bee-btn.bee-btn-secondary.p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n.bee-btn {\n /* light */\n}\n.bee-btn.bee-btn-light.p-button {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n.bee-btn.bee-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n.bee-btn.bee-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n.bee-btn.bee-btn-light.p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n.bee-btn.bee-btn-light.p-button:hover::before {\n background-color: var(--surface-a);\n content: "";\n position: absolute;\n top: 0;\n height: 0;\n width: 0;\n right: 0;\n}';function BeeButton({id:t,className:e,label:n,disabled:r,type:o="primary",iconPos:i="right",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-button-")[0];return jsx(Button,{id:d,loading:null!=l&&l,iconPos:i,size:p,disabled:null!=r&&r,label:n,tooltip:a,tooltipOptions:s,onClick:t=>function(t){!r&&c&&c(t)}(t),className:"bee-btn "+("primary"===o?"bee-btn-primary":"secondary"===o?"p-button-secondary bee-btn-secondary":"danger"===o?"p-button-danger bee-btn-danger":"light"===o?"bee-btn-light":"bee-btn-primary")+(e?" "+e:"")})}styleInject(css_248z$1n);var css_248z$1m=".bee-icn-badge-btn {\n height: 2.25rem;\n position: relative;\n display: inline-block;\n /* icon */\n}\n.bee-icn-badge-btn .p-button {\n padding: 0.25rem 0.571rem 0.25rem 0.571rem !important;\n border: 1px solid !important;\n width: unset !important;\n display: flex;\n align-items: flex-end;\n min-width: unset;\n}\n.bee-icn-badge-btn .p-button .p-button-icon {\n margin-right: 0rem;\n font-size: 1.5rem;\n}\n.bee-icn-badge-btn .p-button .p-button-label {\n font-size: 0.6rem;\n flex: unset;\n}\n\n/* primary */\n.bee-icn-badge-btn-primary .p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-color-12);\n}\n.bee-icn-badge-btn-primary .p-chip {\n background-color: var(--secondary-color);\n}\n.bee-icn-badge-btn-primary .p-chip .p-chip-text {\n color: var(--secondary-color-text);\n}\n\n/* secondary */\n.bee-icn-badge-btn-secondary .p-button {\n color: var(--secondary-dark-color) !important;\n}\n.bee-icn-badge-btn-secondary .p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-color-12);\n}\n.bee-icn-badge-btn-secondary .p-chip {\n background-color: var(--primary-color);\n}\n.bee-icn-badge-btn-secondary .p-chip .p-chip-text {\n color: var(--primary-color-text);\n}\n\n/* danger */\n.bee-icn-badge-btn-danger .p-chip {\n background-color: var(--primary-light-active-color);\n}\n.bee-icn-badge-btn-danger .p-chip .p-chip-text {\n color: var(--error-dark-color);\n}\n\n/* light */\n.bee-icn-badge-btn-light .p-button {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n.bee-icn-badge-btn-light .p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n.bee-icn-badge-btn-light .p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n.bee-icn-badge-btn-light .p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n.bee-icn-badge-btn-light .p-chip {\n background-color: var(--primary-color);\n}\n.bee-icn-badge-btn-light .p-chip .p-chip-text {\n color: var(--primary-color-text);\n}";function BeeIconBadgeButton({id:t,className:e,iconClass:n,value:r,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,onClick:l}){const p=null!=t?t:libExports.useId(1,"bee-icon-badge-button-")[0];return jsx("div",{className:"bee-icn-badge-btn "+("primary"===i?"bee-icn-badge-btn-primary":"secondary"===i?"bee-icn-badge-btn-secondary":"danger"===i?"bee-icn-badge-btn-danger":"light"===i?"bee-icn-badge-btn-light":"bee-icn-badge-btn-primary")+(r?" bee-icn-badge-btn-value":null)+(e?" "+e:""),children:jsx(Button,{disabled:null!=o&&o,id:p,className:"p-button-text "+("secondary"===i?"p-button-secondary ":"danger"===i?"p-button-danger ":""),icon:n,label:r?"("+r+")":void 0,tooltip:a,tooltipOptions:s,onClick:t=>function(t){!o&&l&&l(t)}(t)})})}styleInject(css_248z$1m);var css_248z$1l="/* primary */\n.bee-icn-btn-primary.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n\n.bee-icn-btn-secondary.p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n\n/* lightPrimary */\n.p-button.bee-icn-btn-light-primary {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n\n.bee-icn-btn-light-primary.p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n\n.bee-icn-btn-light-primary.p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n\n.bee-icn-btn-light-primary.p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n\n/* lightSecondary */\n.p-button.bee-icn-btn-light-secondary {\n color: var(--secondary-color);\n background-color: var(--surface-a);\n}\n\n.bee-icn-btn-light-secondary.p-button:not(a):not(.p-disabled):hover {\n color: var(--secondary-color);\n background-color: var(--secondary-color-4);\n}\n\n.bee-icn-btn-light-secondary.p-button:not(a):not(.p-disabled):active {\n color: var(--secondary-color);\n background-color: var(--secondary-light-active-color-16);\n}\n\n.bee-icn-btn-light-secondary.p-button:not(a):not(.p-disabled):focus {\n background: var(--secondary-color-12);\n}\n\n/* lightDanger */\n.p-button.bee-icn-btn-light-danger {\n color: var(--error-dark-color);\n background-color: var(--surface-a);\n border: none !important;\n}\n\n.bee-icn-btn-light-danger.p-button:not(a):not(.p-disabled):hover {\n color: var(--error-dark-color);\n}\n\n.bee-icn-btn-light-danger.p-button:not(a):not(.p-disabled):active {\n color: var(--error-dark-color);\n}\n\n.p-button-half-rounded {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n}";function BeeIconButton({id:t,className:e,iconClass:n,rounded:r=!1,halfRounded:o,disabled:i,type:a="primary",isLoading:s,tooltip:l,tooltipOptions:p,size:c,onClick:d}){const u=null!=t?t:libExports.useId(1,"bee-icon-button-")[0];return jsx(Button,{id:u,disabled:null!=i&&i,loading:null!=s&&s,className:("primary"===a?"bee-icn-btn-primary":"secondary"===a?"p-button-secondary bee-icn-btn-secondary":"danger"===a?"p-button-danger bee-icn-btn-danger":"lightPrimary"===a?"bee-icn-btn-light-primary":"lightSecondary"===a?"bee-icn-btn-light-secondary":"lightDanger"===a?"bee-icn-btn-light-danger p-button-danger p-button-outlined":"bee-icn-btn-primary")+(r?" p-button-rounded":"")+(o?" p-button-half-rounded":"")+(e?" "+e:""),icon:n,tooltip:l,tooltipOptions:p,size:c,onClick:t=>function(t){!i&&d&&d(t)}(t)})}styleInject(css_248z$1l);var css_248z$1k="/* secondary */\n.bee-outlined-icon-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.p-button.bee-outlined-icon-btn-light {\n color: var(--surface-a) !important;\n}\n\n.bee-outlined-icon-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-outlined-icon-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-outlined-icon-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeOutlinedIconButton({id:t,className:e,iconClass:n,rounded:r=!1,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-outlined-icon-button-")[0];return jsx(Button,{id:d,loading:null!=l&&l,disabled:null!=o&&o,icon:n,tooltip:a,tooltipOptions:s,size:p,className:"p-button-outlined"+(r?" p-button-rounded":"")+("primary"===i?" bee-outlined-icon-btn-primary":"secondary"===i?" p-button-secondary bee-outlined-icon-btn-secondary":"danger"===i?" p-button-danger bee-outlined-icon-btn-danger":"light"===i?" bee-outlined-icon-btn-light":" bee-outlined-icon-btn-primary")+(e?" "+e:""),onClick:t=>function(t){!o&&c&&c(t)}(t)})}styleInject(css_248z$1k);var css_248z$1j="/* secondary */\n.bee-link-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.p-button.bee-link-btn-light {\n color: var(--surface-a) !important;\n}\n\n.bee-link-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-link-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-link-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeLinkButton({id:t,className:e,label:n,raised:r=!1,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-link-button-")[0];return jsx(Button,{id:d,className:(r?"p-button-raised p-button-text":"p-button-text")+("primary"===i?" p-button-primary bee-link-btn-primary":"secondary"===i?" p-button-secondary bee-link-btn-secondary":"danger"===i?" p-button-danger bee-link-btn-danger":"light"===i?" bee-link-btn-light":" bee-link-btn-primary")+(e?" "+e:""),loading:null!=l&&l,disabled:null!=o&&o,label:n,tooltip:a,tooltipOptions:s,size:p,onClick:t=>function(t){!o&&c&&c(t)}(t)})}styleInject(css_248z$1j);var css_248z$1i="/* primary */\n.bee-mix-btn-primary.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n\n/* secondary */\n.bee-mix-btn-secondary.p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n\n/* light-primary */\n.p-button.bee-mix-btn-light-primary {\n color: var(--primary-color);\n background-color: var(--surface-a);\n}\n\n.bee-mix-btn-light-primary.p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n\n.bee-mix-btn-light-primary.p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n\n.bee-mix-btn-light-primary.p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}\n\n/* light-secondary */\n.p-button.bee-mix-btn-light-secondary {\n color: var(--secondary-dark-color);\n background-color: var(--surface-a);\n}\n\n.bee-mix-btn-light-secondary.p-button:not(a):not(.p-disabled):hover {\n color: var(--secondary-color);\n background-color: var(--secondary-color-4);\n}\n\n.bee-mix-btn-light-secondary.p-button:not(a):not(.p-disabled):active {\n color: var(--secondary-color);\n background-color: var(--secondary-color-16);\n}\n\n.bee-mix-btn-light-secondary.p-button:not(a):not(.p-disabled):focus {\n background: var(--secondary-color-12);\n}\n\n/* light-danger */\n.p-button.bee-mix-btn-light-danger {\n color: var(--error-dark-color);\n background-color: var(--surface-a);\n border: none !important;\n}\n\n.bee-mix-btn-light-danger.p-button:not(a):not(.p-disabled):hover {\n color: var(--error-dark-color);\n}\n\n.bee-mix-btn-light-danger.p-button:not(a):not(.p-disabled):active {\n color: var(--error-dark-color);\n}";function BeeMixButton({id:t,className:e,label:n,iconClass:r,iconPos:o="right",disabled:i,type:a="primary",isLoading:s,tooltip:l,tooltipOptions:p,size:c,onClick:d}){const u=null!=t?t:libExports.useId(1,"bee-mix-button-")[0];return jsx(Button,{id:u,loading:null!=s&&s,label:n,className:("primary"===a?"bee-mix-btn-primary":"secondary"===a?"p-button-secondary bee-mix-btn-secondary":"danger"===a?"p-button-danger bee-mix-btn-danger":"lightPrimary"===a?"bee-mix-btn-light-primary":"lightSecondary"===a?"bee-mix-btn-light-secondary":"lightDanger"===a?"bee-mix-btn-light-danger p-button-danger p-button-outlined":"bee-mix-btn-primary")+(e?" "+e:""),iconPos:o,icon:r,disabled:null!=i&&i,tooltip:l,tooltipOptions:p,size:c,onClick:t=>function(t){!i&&d&&d(t)}(t)})}styleInject(css_248z$1i);var css_248z$1h="/* secondary */\n.bee-outlined-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.p-button.bee-outlined-btn-light {\n color: var(--surface-a) !important;\n}\n\n.bee-outlined-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-outlined-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-outlined-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeOutlinedButton({id:t,className:e,label:n,disabled:r,type:o="primary",tooltip:i,tooltipOptions:a,isLoading:s,size:l,onClick:p}){const c=null!=t?t:libExports.useId(1,"bee-outlined-button-")[0];return jsx(Button,{id:c,loading:null!=s&&s,disabled:null!=r&&r,label:n,tooltip:i,tooltipOptions:a,size:l,className:"p-button-outlined"+("primary"===o?" bee-outlined-btn-primary":"secondary"===o?" p-button-secondary bee-outlined-btn-secondary":"danger"===o?" p-button-danger bee-outlined-btn-danger":"light"===o?" bee-outlined-btn-light":" bee-outlined-btn-primary")+(e?" "+e:""),onClick:t=>function(t){!r&&p&&p(t)}(t)})}styleInject(css_248z$1h);var css_248z$1g=".bee-select-btn.p-selectbutton {\n display: block;\n text-align: center;\n white-space: nowrap;\n}\n\n.bee-select-btn.p-selectbutton .p-button {\n padding: 10px 4vw 10px 4vw;\n margin: 4px 0 5px 0;\n background: transparent;\n overflow: visible;\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button {\n color: var(--primary-color);\n border: 1px solid var(--primary-color);\n}\n\n.bee-select-btn.p-selectbutton .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button.p-component .p-button-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* primary */\n.bee-select-btn-primary.p-selectbutton .p-button:active,\n.bee-select-btn-primary.p-selectbutton .p-button.p-highlight {\n background: var(--primary-light-active-color);\n color: var(--primary-color);\n border-color: var(--primary-color);\n border-style: solid;\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button.p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-color-4);\n color: var(--primary-color-100);\n border-color: var(--primary-color);\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button:active:hover,\n.bee-select-btn-primary.p-selectbutton .p-button.p-highlight:hover {\n background: var(--primary-light-active-color) !important;\n}\n\n.bee-select-btn-primary.p-selectbutton .p-button:focus {\n background: var(--primary-color-12) !important;\n border-color: var(--primary-color) !important;\n}\n\n/* secondary */\n.bee-select-btn-secondary.p-selectbutton .p-button {\n color: var(--secondary-dark-color);\n border: 1px solid var(--secondary-dark-color);\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:active,\n.bee-select-btn-secondary .p-button.p-highlight {\n background: var(--secondary-color-16);\n color: var(--secondary-dark-color);\n border-color: var(--secondary-dark-color);\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:hover {\n background: var(--secondary-color-4) !important;\n color: var(--secondary-dark-color) !important;\n border-color: var(--secondary-dark-color) !important;\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:active:hover,\n.bee-select-btn-secondary .p-button.p-highlight:hover {\n background: var(--secondary-color-16) !important;\n color: var(--secondary-dark-color) !important;\n}\n\n.bee-select-btn-secondary.p-selectbutton .p-button:focus {\n background: var(--secondary-color-12) !important;\n border-color: var(--secondary-dark-color) !important;\n color: var(--secondary-dark-color) !important;\n}\n\n/* border */\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0 !important;\n}";function BeeSelectButton({id:t,className:e,options:n,selectedOption:r,disabled:o,type:i="primary",itemTemplate:a,tooltip:s,tooltipOptions:l,onSelect:p}){const c=null!=t?t:libExports.useId(1,"bee-select-button-")[0];return jsx(SelectButton,{id:c,disabled:null!=o&&o,value:r,className:"bee-select-btn "+("primary"===i?"bee-select-btn-primary":"secondary"===i?"bee-select-btn-secondary":"bee-select-btn-primary")+(e?" "+e:""),options:n,itemTemplate:a,tooltip:s,tooltipOptions:l,onChange:t=>{return e=t.value,void(!o&&p&&p(e));var e}})}styleInject(css_248z$1g);var css_248z$1f="/* primary */\n.bee-split-btn-primary.p-splitbutton .p-button:not(a):not(.p-disabled):hover {\n background: var(--primary-light-color);\n}\n\n/* secondary */\n.bee-split-btn-secondary.p-splitbutton .p-button:not(a):not(.p-disabled):hover {\n background: var(--secondary-light-color);\n}\n\n/* light */\n.bee-split-btn-light.p-splitbutton button {\n color: var(--primary-color);\n background-color: var(--primary-color-text);\n}\n\n.bee-split-btn-light.p-splitbutton .p-button:not(a):not(.p-disabled):hover {\n color: var(--primary-color);\n background-color: var(--primary-color-4);\n}\n\n.bee-split-btn-light.p-splitbutton .p-button:not(a):not(.p-disabled):active {\n color: var(--primary-color);\n background-color: var(--primary-light-active-color);\n}\n\n.bee-split-btn-light.p-splitbutton .p-button:not(a):not(.p-disabled):focus {\n background: var(--primary-color-12);\n}";function BeeSplitButton({id:t,className:e,label:n,iconClass:r,dropdownIcon:o,disabled:i,isLoading:a,type:s="primary",model:l,menuClassName:p,menuButtonClassName:c,tooltip:d,tooltipOptions:u,size:h,onClick:b}){const m=null!=t?t:libExports.useId(1,"bee-split-button-")[0];return jsx(SplitButton,{id:m,label:n,className:("primary"===s?"bee-split-btn-primary":"secondary"===s?"p-button-secondary bee-split-btn-secondary":"danger"===s?"p-button-danger bee-split-btn-danger":"light"===s?"bee-split-btn-light":"bee-split-btn-primary")+(e?" "+e:""),disabled:null!=i&&i,icon:r,dropdownIcon:o,model:l,loading:a,size:h,menuClassName:p,menuButtonClassName:c,tooltip:d,tooltipOptions:u,onClick:t=>function(t){!i&&b&&b(t)}(t)})}styleInject(css_248z$1f);var css_248z$1e="/* secondary */\n.bee-toolbar-btn-secondary {\n color: var(--secondary-dark-color) !important;\n}\n\n/* light */\n.bee-toolbar-btn-light {\n color: var(--primary-color-text) !important;\n}\n\n.bee-toolbar-btn-light.p-button:not(a):not(.p-disabled):hover {\n color: var(--surface-a);\n background-color: var(--surface-700);\n}\n\n.bee-toolbar-btn-light.p-button:not(a):not(.p-disabled):active {\n color: var(--surface-a);\n background-color: var(--surface-500);\n}\n\n.bee-toolbar-btn-light.p-button:not(a):not(.p-disabled):focus {\n color: var(--surface-a);\n background-color: var(--surface-600);\n}";function BeeToolBarButton({id:t,className:e,iconClass:n,rounded:r,disabled:o,type:i="primary",tooltip:a,tooltipOptions:s,isLoading:l,size:p,onClick:c}){const d=null!=t?t:libExports.useId(1,"bee-toolbar-button-")[0];return jsx(Button,{id:d,disabled:null!=o&&o,loading:null!=l&&l,className:"p-button-text"+("primary"===i?" bee-toolbar-btn-primary":"secondary"===i?" p-button-secondary bee-toolbar-btn-secondary":"danger"===i?" p-button-danger bee-toolbar-btn-danger":"light"===i?" bee-toolbar-btn-light":" bee-toolbar-btn-primary")+(r?" p-button-rounded":"")+(e?" "+e:""),icon:n,tooltip:a,tooltipOptions:s,size:p,onClick:t=>function(t){!o&&c&&c(t)}(t)})}styleInject(css_248z$1e);var css_248z$1d=".p-knob-range {\n cursor: default;\n}";function BeeKnob({id:t,className:e,value:n,minValue:r=0,maxValue:o=100,step:i,size:a="medium",type:s="primary",disabled:l,readOnly:p,showValue:c=!0,strokeWidth:d=14,valueColor:u,rangeColor:h,textColor:b,valueTemplate:m,onChange:f}){const g=null!=t?t:libExports.useId(1,"bee-knob-")[0],v=(o-r)/3,y="primary"===s?"var(--primary-color)":"secondary"===s?"var(--secondary-dark-color)":"mixed"===s?null!=n&&n>2*v?"var(--valid-dark-color)":null!=n&&n>v?"var(--warning-color)":"var(--error-dark-color)":"var(--primary-color)";return jsx(Knob,{id:g,value:null!=n?n:r,min:r,max:o,valueColor:null!=u?u:y,rangeColor:null!=h?h:"var(--surface-border, LightGray)",textColor:null!=b?b:y,valueTemplate:null!=m?m:"{value}",step:null!=i?i:1,size:"xLarge"===a?300:"large"===a?200:"medium"===a?100:"small"===a?66:"xSmall"===a?33:100,strokeWidth:d,className:null!=e?e:"",disabled:null!=l&&l,readOnly:null!=p&&p,showValue:c,onChange:t=>{return e=t.value,void(!l&&f&&f(e));var e}})}styleInject(css_248z$1d);var css_248z$1c=".bee-share-bar > div {\n display: inline-block;\n height: 0.5rem;\n}\n\n.bee-share-bar-rectangle {\n width: 100%;\n height: 100%;\n}\n\n/* mouseover */\n.bee-share-bar-mouseover {\n display: none;\n color: var(--text-color);\n text-decoration: none;\n padding: 3px;\n}\n\n.bee-sharebar-section {\n position: relative;\n}\n\n.bee-share-bar-rectangle:hover + .bee-share-bar-mouseover {\n display: block;\n position: absolute;\n z-index: 100;\n background-color: var(--secondary-color);\n color: var(--secondary-color-text);\n border: 1px solid var(--secondary-color);\n border-radius: 4px;\n margin: 0.25rem 0 0 0.25rem;\n box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4);\n font-size: 12px;\n line-height: 16px;\n max-width: 110px;\n overflow: hidden;\n text-overflow: ellipsis;\n}";function BeeShareBar({id:t,className:e,data:n,onClick:r}){const o=null!=t?t:libExports.useId(1,"bee-share-bar-")[0];function i(t){let e=0;if(n){n.forEach(t=>e+=t.weight);return(t/e*100).toString()}return 0}return jsx("div",{id:o,className:"bee-share-bar"+(e?" "+e:""),onClick:t=>function(t){null==r||r(t)}(t),children:n?n.map((t,e)=>{var n;return jsxs("div",{className:"bee-share-bar-section",style:{width:i(t.weight)+"%",background:null!==(n=t.color)&&void 0!==n?n:"lightgrey"},children:[jsx("div",{className:"bee-share-bar-rectangle"}),t.hint?jsx("span",{className:"bee-share-bar-mouseover",children:t.hint}):null]},"shareBar_part_"+e)}):jsx("div",{className:"bee-sharebar-empty",style:{width:"100%",background:"lightgrey"}})})}
|
|
2
2
|
/*!
|
|
3
3
|
* @kurkle/color v0.3.4
|
|
4
4
|
* https://github.com/kurkle/color#readme
|
|
@@ -16,7 +16,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
16
16
|
* https://www.chartjs.org
|
|
17
17
|
* (c) 2025 Chart.js Contributors
|
|
18
18
|
* Released under the MIT License
|
|
19
|
-
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const o=e.listeners[r],i=e.duration;o.forEach(r=>r({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),o.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=color(t||transparent),o=r.valid&&color(e||transparent);return o&&o.valid?o.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Animation{constructor(t,e,n,r){const o=e[n];r=resolve([t.to,r,o,t.from]);const i=resolve([t.from,o,r]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,r,t.from]),this._from=resolve([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=o:(s=e/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject$1(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const o=t[r];if(!isObject$1(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[r]).forEach(t=>{t!==r&&n.has(t)||n.set(t,i)})})}_animateOptions(t,e){const n=e.options,r=resolveTargetOptions(t,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&awaitAll(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,r=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const p=e[l];let c=o[l];const d=n.get(l);if(c){if(d&&c.active()){c.update(d,p,a);continue}c.cancel()}d&&d.duration?(o[l]=c=new Animation(d,t,l,p),r.push(c)):t[l]=p}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],r=Object.keys(e);for(let e=0;e<r.length;e++){const o=t[r[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},r=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:r?i:o,end:r?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const r=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}function toClip(t){let e,n,r,o;return isObject$1(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,disabled:!1===t}}function getSortedDatasetIndices(t,e){const n=[],r=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function applyStack(t,e,n,r={}){const o=t.keys,i="single"===r.mode;let a,s,l,p;if(null===e)return;let c=!1;for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(c=!0,r.all)continue;break}p=t.values[l],isNumberFinite(p)&&(i||0===e||sign(e)===sign(p))&&(e+=p)}return c||r.all?e:0}function convertObjectDataToArray(t,e){const{iScale:n,vScale:r}=e,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,p,c;for(l=0,p=a.length;l<p;++l)c=a[l],s[l]={[o]:c,[i]:t[c]};return s}function isStacked(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function getStackKey(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function getUserBounds(t){const{min:e,max:n,minDefined:r,maxDefined:o}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function getOrCreateStack(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function getLastIndexInStack(t,e,n,r){for(const o of e.getMatchingVisibleMetas(r).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function updateStacks(t,e){const{chart:n,_cachedMeta:r}=t,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,p=a.axis,c=getStackKey(i,a,r),d=e.length;let u;for(let t=0;t<d;++t){const n=e[t],{[l]:i,[p]:d}=n;u=(n._stacks||(n._stacks={}))[p]=getOrCreateStack(o,c,i),u[s]=d,u._top=getLastIndexInStack(u,a,!0,r.type),u._bottom=getLastIndexInStack(u,a,!1,r.type);(u._visualValues||(u._visualValues={}))[s]=d}}function getFirstScaleId(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function createDatasetContext(t,e){return createContext(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function createDataContext(t,e,n){return createContext(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function clearStacks(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n],void 0!==e[r]._visualValues&&void 0!==e[r]._visualValues[n]&&delete e[r]._visualValues[n]}}}const isDirectUpdateMode=t=>"reset"===t||"none"===t,cloneIfNotShared=(t,e)=>e?t:Object.assign({},t),createStack=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:getSortedDatasetIndices(n,!0),values:null};class DatasetController{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=isStacked(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&clearStacks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,o=e.xAxisID=valueOrDefault(n.xAxisID,getFirstScaleId(t,"x")),i=e.yAxisID=valueOrDefault(n.yAxisID,getFirstScaleId(t,"y")),a=e.rAxisID=valueOrDefault(n.rAxisID,getFirstScaleId(t,"r")),s=e.indexAxis,l=e.iAxisID=r(s,o,i,a),p=e.vAxisID=r(s,i,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&unlistenArrayEvents(this._data,this),t._stacked&&clearStacks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(isObject$1(e)){const t=this._cachedMeta;this._data=convertObjectDataToArray(e,t)}else if(n!==e){if(n){unlistenArrayEvents(n,this);const t=this._cachedMeta;clearStacks(t),t._parsed=[]}e&&Object.isExtensible(e)&&listenArrayEvents(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=e._stacked;e._stacked=isStacked(e.vScale,e),e.stack!==n.stack&&(r=!0,clearStacks(e),e.stack=n.stack),this._resyncElements(t),(r||o!==e._stacked)&&(updateStacks(this,e._parsed),e._stacked=isStacked(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,p,c=0===t&&e===r.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,p=r;else{p=isArray(r[t])?this.parseArrayData(n,r,t,e):isObject$1(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const o=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<e;++s)n._parsed[s+t]=l=p[s],c&&(o()&&(c=!1),d=l);n._sorted=c}i&&updateStacks(this,p)}parsePrimitiveData(t,e,n,r){const{iScale:o,vScale:i}=t,a=o.axis,s=i.axis,l=o.getLabels(),p=o===i,c=new Array(r);let d,u,h;for(d=0,u=r;d<u;++d)h=d+n,c[d]={[a]:p||o.parse(l[h],h),[s]:i.parse(e[h],h)};return c}parseArrayData(t,e,n,r){const{xScale:o,yScale:i}=t,a=new Array(r);let s,l,p,c;for(s=0,l=r;s<l;++s)p=s+n,c=e[p],a[s]={x:o.parse(c[0],p),y:i.parse(c[1],p)};return a}parseObjectData(t,e,n,r){const{xScale:o,yScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let p,c,d,u;for(p=0,c=r;p<c;++p)d=p+n,u=e[d],l[p]={x:o.parse(resolveObjectKey(u,a),d),y:i.parse(resolveObjectKey(u,s),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,o=this._cachedMeta,i=e[t.axis];return applyStack({keys:getSortedDatasetIndices(r,!0),values:e._stacks[t.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const o=n[e.axis];let i=null===o?NaN:o;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,i=applyStack(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&t===n.iScale,i=r.length,a=this._getOtherScale(t),s=createStack(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:c}=getUserBounds(a);let d,u;function h(){u=r[d];const e=u[a.axis];return!isNumberFinite(u[t.axis])||p>e||c<e}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,t,u,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=e.length;r<o;++r)i=e[r][t.axis],isNumberFinite(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=toClip(valueOrDefault(this.options.clip,defaultClip(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],o=e.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let p;for(n.dataset&&n.dataset.draw(t,o,a,s),p=a;p<a+s;++p){const e=r[p];e.hidden||(e.active&&l?i.push(e):e.draw(t,o))}for(p=0;p<i.length;++p)i[p].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=createDataContext(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=createDatasetContext(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const r="active"===e,o=this._cachedDataOpts,i=t+"-"+e,a=o[i],s=this.enableOptionSharing&&defined(n);if(a)return cloneIfNotShared(a,s);const l=this.chart.config,p=l.datasetElementScopeKeys(this._type,t),c=r?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),p),u=Object.keys(defaults.elements[t]),h=l.resolveNamedOptions(d,u,()=>this.getContext(n,r,e),c);return h.$shared&&(h.$shared=s,o[i]=Object.freeze(cloneIfNotShared(h,s))),h}_resolveAnimations(t,e,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${e}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,e),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(t,n,e))}const l=new Animations(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||isDirectUpdateMode(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(e,o)||o!==r;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:i}}updateElement(t,e,n,r){isDirectUpdateMode(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!isDirectUpdateMode(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const o=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const r=n.length,o=e.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,e,n=!0){const r=this._cachedMeta,o=r.data,i=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=i;a--)t[a]=t[a-e]};for(s(o),a=t;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&clearStacks(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,r]=t;this[e](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function getAllScaleValues(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,o=n.length;e<o;e++)r=r.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=_arrayUnique(r.sort((t,e)=>t-e))}return t._cache.$bar}function computeMinSampleSize(t){const e=t.iScale,n=getAllScaleValues(e,t.type);let r,o,i,a,s=e._length;const l=()=>{32767!==i&&-32768!==i&&(defined(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=e.ticks.length;r<o;++r)i=e.getPixelForTick(r),l();return s}function computeFitCategoryTraits(t,e,n,r){const o=n.barThickness;let i,a;return isNullOrUndef(o)?(i=e.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}function computeFlexCategoryTraits(t,e,n,r){const o=e.pixels,i=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-a);const p=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:p}}function parseFloatBar(t,e,n,r){const o=n.parse(t[0],r),i=n.parse(t[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,p=s;Math.abs(a)>Math.abs(s)&&(l=s,p=a),e[n.axis]=p,e._custom={barStart:l,barEnd:p,start:o,end:i,min:a,max:s}}function parseValue(t,e,n,r){return isArray(t)?parseFloatBar(t,e,n,r):e[n.axis]=n.parse(t,r),e}function parseArrayOrPrimitive(t,e,n,r){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,l=[];let p,c,d,u;for(p=n,c=n+r;p<c;++p)u=e[p],d={},d[o.axis]=s||o.parse(a[p],p),l.push(parseValue(u,d,i,p));return l}function isFloatBar(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function barSign(t,e,n){return 0!==t?sign(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function borderProps(t){let e,n,r,o,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:e,top:o,bottom:i}}function setBorderSkipped(t,e,n,r){let o=e.borderSkipped;const i={};if(!o)return void(t.borderSkipped=i);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:p,bottom:c}=borderProps(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?o=p:(n._bottom||0)===r?o=c:(i[parseEdge(c,a,s,l)]=!0,o=p)),i[parseEdge(o,a,s,l)]=!0,t.borderSkipped=i}function parseEdge(t,e,n,r){return t=r?startEnd(t=swap(t,e,n),n,e):startEnd(t,e,n)}function swap(t,e,n){return t===e?n:t===n?e:t}function startEnd(t,e,n){return"start"===t?e:"end"===t?n:t}function setInflateAmount(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class BarController extends DatasetController{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,r){return parseArrayOrPrimitive(t,e,n,r)}parseArrayData(t,e,n,r){return parseArrayOrPrimitive(t,e,n,r)}parseObjectData(t,e,n,r){const{iScale:o,vScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,p="x"===i.axis?a:s,c=[];let d,u,h,b;for(d=n,u=n+r;d<u;++d)b=e[d],h={},h[o.axis]=o.parse(resolveObjectKey(b,l),d),c.push(parseValue(resolveObjectKey(b,p),h,i,d));return c}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:r}=e,o=this.getParsed(t),i=o._custom,a=isFloatBar(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),p=this._getRuler(),{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,r);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||isNullOrUndef(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),h=this._calculateBarIndexPixels(u,p),b=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!b||isFloatBar(e._custom)||i===b._top||i===b._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(m.options=c||this.resolveDataElementOptions(u,t[u].active?"active":r));const f=m.options||t[u].options;setBorderSkipped(m,f,b,i),setInflateAmount(m,f,p.ratio),this.updateElement(t[u],u,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(e),s=a&&a[n.axis],l=t=>{const e=t._parsed.find(t=>t[n.axis]===s),r=e&&e[t.vScale.axis];if(isNullOrUndef(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!l(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(n=>t[n].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[valueOrDefault("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,n){const r=this._getStacks(t,n),o=void 0!==e?r.indexOf(e):-1;return-1===o?r.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let o,i;for(o=0,i=e.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||computeMinSampleSize(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(t),l=s._custom,p=isFloatBar(l);let c,d,u=s[e.axis],h=0,b=n?this.applyStack(e,s,n):u;b!==u&&(h=b-u,b=u),p&&(u=l.barStart,b=l.barEnd-l.barStart,0!==u&&sign(u)!==sign(l.barEnd)&&(h=0),h+=u);const m=isNullOrUndef(o)||p?h:o;let f=e.getPixelForValue(m);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(h+b):f,d=c-f,Math.abs(d)<i){d=barSign(d,e,a)*i,u===a&&(f-=d/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),l=Math.min(t,o),h=Math.max(t,o);f=Math.max(Math.min(f,h),l),c=f+d,n&&!p&&(s._stacks[e.axis]._visualValues[r]=e.getValueForPixel(c)-e.getValueForPixel(f))}if(f===e.getPixelForValue(a)){const t=sign(d)*e.getLineWidthForValue(a)/2;f+=t,d-=t}return{size:d,base:f,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,o=r.skipNull,i=valueOrDefault(r.maxBarThickness,1/0);let a,s;const l=this._getAxisCount();if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,p="flex"===r.barThickness?computeFlexCategoryTraits(t,e,r,n*l):computeFitCategoryTraits(t,e,r,n*l),c="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(valueOrDefault(c,this.getFirstScaleIdForIndexAxis())),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+d;a=p.start+p.chunk*u+p.chunk/2,s=Math.min(i,p.chunk*p.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(i,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[e.axis]||n[o].hidden||n[o].draw(this._ctx)}}function getRatioAndOffset(t,e,n){let r=1,o=1,i=0,a=0;if(e<TAU){const s=t,l=s+e,p=Math.cos(s),c=Math.sin(s),d=Math.cos(l),u=Math.sin(l),h=(t,e,r)=>_angleBetween(t,s,l,!0)?1:Math.max(e,e*n,r,r*n),b=(t,e,r)=>_angleBetween(t,s,l,!0)?-1:Math.min(e,e*n,r,r*n),m=h(0,p,d),f=h(HALF_PI,c,u),g=b(PI,p,d),v=b(PI+HALF_PI,c,u);r=(m-g)/2,o=(f-v)/2,i=-(m+g)/2,a=-(f+v)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}class DoughnutController extends DatasetController{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:n,textAlign:r,color:o,useBorderRadius:i,borderRadius:a}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map((e,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(s),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:r,pointStyle:n,borderRadius:i&&(a||l.borderRadius),index:s}}):[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,i,a=t=>+n[t];if(isObject$1(n[t])){const{key:t="value"}=this._parsing;a=e=>+resolveObjectKey(n[e],t)}for(o=t,i=t+e;o<i;++o)r._parsed[o]=a(o)}}_getRotation(){return toRadians(this.options.rotation-90)}_getCircumference(){return toRadians(this.options.circumference)}_getRotationExtents(){let t=TAU,e=-TAU;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,o=r._getRotation(),i=r._getCircumference();t=Math.min(t,o),e=Math.max(e,o+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,r=this._cachedMeta,o=r.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min(toPercentage(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:p,rotation:c}=this._getRotationExtents(),{ratioX:d,ratioY:u,offsetX:h,offsetY:b}=getRatioAndOffset(c,p,s),m=(n.width-i)/d,f=(n.height-i)/u,g=Math.max(Math.min(m,f)/2,0),v=toDimension(this.options.radius,g),y=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*v,this.offsetY=b*v,r.total=this.calculateTotal(),this.outerRadius=v-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/TAU)}updateElements(t,e,n,r){const o="reset"===r,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,p=(a.top+a.bottom)/2,c=o&&s.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:h,includeOptions:b}=this._getSharedOptions(e,r);let m,f=this._getRotation();for(m=0;m<e;++m)f+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],i={x:l+this.offsetX,y:p+this.offsetY,startAngle:f,endAngle:f+e,circumference:e,outerRadius:u,innerRadius:d};b&&(i.options=h||this.resolveDataElementOptions(m,n.active?"active":r)),f+=e,this.updateElement(n,m,i,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,r=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(r+=Math.abs(o))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?TAU*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=formatNumber(e._parsed[t],n.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,o,i,a,s;if(!t)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),t=i.data,a=i.controller;break}if(!t)return 0;for(r=0,o=t.length;r<o;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,r=t.length;n<r;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(valueOrDefault(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class PieController extends DoughnutController{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function abstract(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class DateAdapterBase{static override(t){Object.assign(DateAdapterBase.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return abstract()}parse(){return abstract()}format(){return abstract()}add(){return abstract()}diff(){return abstract()}startOf(){return abstract()}endOf(){return abstract()}}var adapters={_date:DateAdapterBase};function binarySearch(t,e,n,r){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&"r"!==e&&a&&i.length){const a=s._reversePixels?_rlookupByKey:_lookupByKey;if(!r){const r=a(i,e,n);if(l){const{vScale:e}=o._cachedMeta,{_parsed:n}=t,i=n.slice(0,r.lo+1).reverse().findIndex(t=>!isNullOrUndef(t[e.axis]));r.lo-=Math.max(0,i);const a=n.slice(r.hi).findIndex(t=>!isNullOrUndef(t[e.axis]));r.hi+=Math.max(0,a)}return r}if(o._sharedOptions){const t=i[0],r="function"==typeof t.getRange&&t.getRange(e);if(r){const t=a(i,e,n-r),o=a(i,e,n+r);return{lo:t.lo,hi:o.hi}}}}return{lo:0,hi:i.length-1}}function evaluateInteractionItems(t,e,n,r,o){const i=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=i.length;t<n;++t){const{index:n,data:s}=i[t],{lo:l,hi:p}=binarySearch(i[t],e,a,o);for(let t=l;t<=p;++t){const e=s[t];e.skip||r(e,n,t)}}}function getDistanceMetricForAxis(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const o=e?Math.abs(t.x-r.x):0,i=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}function getIntersectItems(t,e,n,r,o){const i=[];if(!o&&!t.isPointInArea(e))return i;return evaluateInteractionItems(t,n,e,function(n,a,s){(o||_isPointInArea(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&i.push({element:n,datasetIndex:a,index:s})},!0),i}function getNearestRadialItems(t,e,n,r){let o=[];return evaluateInteractionItems(t,n,e,function(t,n,i){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],r),{angle:l}=getAngleFromPoint(t,{x:e.x,y:e.y});_angleBetween(l,a,s)&&o.push({element:t,datasetIndex:n,index:i})}),o}function getNearestCartesianItems(t,e,n,r,o,i){let a=[];const s=getDistanceMetricForAxis(n);let l=Number.POSITIVE_INFINITY;return evaluateInteractionItems(t,n,e,function(n,p,c){const d=n.inRange(e.x,e.y,o);if(r&&!d)return;const u=n.getCenterPoint(o);if(!(!!i||t.isPointInArea(u))&&!d)return;const h=s(e,u);h<l?(a=[{element:n,datasetIndex:p,index:c}],l=h):h===l&&a.push({element:n,datasetIndex:p,index:c})}),a}function getNearestItems(t,e,n,r,o,i){return i||t.isPointInArea(e)?"r"!==n||r?getNearestCartesianItems(t,e,n,r,o,i):getNearestRadialItems(t,e,n,o):[]}function getAxisItems(t,e,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return evaluateInteractionItems(t,n,e,(t,r,l)=>{t[a]&&t[a](e[n],o)&&(i.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,o))}),r&&!s?[]:i}var Interaction={modes:{index(t,e,n,r){const o=getRelativePosition(e,t),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?getIntersectItems(t,o,i,r,a):getNearestItems(t,o,i,!1,r,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,r){const o=getRelativePosition(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?getIntersectItems(t,o,i,r,a):getNearestItems(t,o,i,!1,r,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,r)=>getIntersectItems(t,getRelativePosition(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const o=getRelativePosition(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return getNearestItems(t,o,i,n.intersect,r,a)},x:(t,e,n,r)=>getAxisItems(t,getRelativePosition(e,t),"x",n.intersect,r),y:(t,e,n,r)=>getAxisItems(t,getRelativePosition(e,t),"y",n.intersect,r)}};const STATIC_POSITIONS=["left","top","right","bottom"];function filterByPosition(t,e){return t.filter(t=>t.pos===e)}function filterDynamicPositionByAxis(t,e){return t.filter(t=>-1===STATIC_POSITIONS.indexOf(t.pos)&&t.box.axis===e)}function sortByWeight(t,e){return t.sort((t,n)=>{const r=e?n:t,o=e?t:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function wrapBoxes(t){const e=[];let n,r,o,i,a,s;for(n=0,r=(t||[]).length;n<r;++n)o=t[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}function buildStacks(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:o}=n;if(!t||!STATIC_POSITIONS.includes(r))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return e}function setLayoutDims(t,e){const n=buildStacks(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:a}=s.box,l=n[s.stack],p=l&&s.stackWeight/l.weight;s.horizontal?(s.width=p?p*r:a&&e.availableWidth,s.height=o):(s.width=r,s.height=p?p*o:a&&e.availableHeight)}return n}function buildLayoutBoxes(t){const e=wrapBoxes(t),n=sortByWeight(e.filter(t=>t.box.fullSize),!0),r=sortByWeight(filterByPosition(e,"left"),!0),o=sortByWeight(filterByPosition(e,"right")),i=sortByWeight(filterByPosition(e,"top"),!0),a=sortByWeight(filterByPosition(e,"bottom")),s=filterDynamicPositionByAxis(e,"x"),l=filterDynamicPositionByAxis(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:filterByPosition(e,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}function getCombinedMax(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function updateMaxPadding(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function updateDims(t,e,n,r){const{pos:o,box:i}=n,a=t.maxPadding;if(!isObject$1(o)){n.size&&(t[o]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?i.height:i.width),n.size=e.size/e.count,t[o]+=n.size}i.getPadding&&updateMaxPadding(a,i.getPadding());const s=Math.max(0,e.outerWidth-getCombinedMax(a,t,"left","right")),l=Math.max(0,e.outerHeight-getCombinedMax(a,t,"top","bottom")),p=s!==t.w,c=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:p,other:c}:{same:c,other:p}}function handleMaxPadding(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function getMargins(t,e){const n=e.maxPadding;function r(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{r[t]=Math.max(e[t],n[t])}),r}return r(t?["left","right"]:["top","bottom"])}function fitBoxes(t,e,n,r){const o=[];let i,a,s,l,p,c;for(i=0,a=t.length,p=0;i<a;++i){s=t[i],l=s.box,l.update(s.width||e.w,s.height||e.h,getMargins(s.horizontal,e));const{same:a,other:d}=updateDims(e,n,s,r);p|=a&&o.length,c=c||d,l.fullSize||o.push(s)}return p&&fitBoxes(o,e,n,r)||c}function setBoxDims(t,e,n,r,o){t.top=n,t.left=e,t.right=e+r,t.bottom=n+o,t.width=r,t.height=o}function placeBoxes(t,e,n,r){const o=n.padding;let{x:i,y:a}=e;for(const s of t){const t=s.box,l=r[s.stack]||{placed:0,weight:1},p=s.stackWeight/l.weight||1;if(s.horizontal){const r=e.w*p,i=l.size||t.height;defined(l.start)&&(a=l.start),t.fullSize?setBoxDims(t,o.left,a,n.outerWidth-o.right-o.left,i):setBoxDims(t,e.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*p,a=l.size||t.width;defined(l.start)&&(i=l.start),t.fullSize?setBoxDims(t,i,o.top,a,n.outerHeight-o.bottom-o.top):setBoxDims(t,i,e.top+l.placed,a,r),l.start=i,l.placed+=r,i=t.right}}e.x=i,e.y=a}var layouts={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const o=toPadding(t.options.layout.padding),i=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=buildLayoutBoxes(t.boxes),l=s.vertical,p=s.horizontal;each(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const c=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},o);updateMaxPadding(u,toPadding(r));const h=Object.assign({maxPadding:u,w:i,h:a,x:o.left,y:o.top},o),b=setLayoutDims(l.concat(p),d);fitBoxes(s.fullSize,h,d,b),fitBoxes(l,h,d,b),fitBoxes(p,h,d,b)&&fitBoxes(l,h,d,b),handleMaxPadding(h),placeBoxes(s.leftAndTop,h,d,b),h.x+=h.w,h.y+=h.h,placeBoxes(s.rightAndBottom,h,d,b),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},each(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class BasePlatform{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class BasicPlatform extends BasePlatform{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const EXPANDO_KEY="$chartjs",EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},isNullOrEmpty=t=>null===t||""===t;function initCanvas(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[EXPANDO_KEY]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",isNullOrEmpty(o)){const e=readUsedSize(t,"width");void 0!==e&&(t.width=e)}if(isNullOrEmpty(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=readUsedSize(t,"height");void 0!==e&&(t.height=e)}return t}const eventListenerOptions=!!supportsEventListenerOptions&&{passive:!0};function addListener(t,e,n){t&&t.addEventListener(e,n,eventListenerOptions)}function removeListener(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,eventListenerOptions)}function fromNativeEvent(t,e){const n=EVENT_TYPES[t.type]||t.type,{x:r,y:o}=getRelativePosition(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==o?o:null}}function nodeListContains(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function createAttachObserver(t,e,n){const r=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||nodeListContains(n.addedNodes,r),e=e&&!nodeListContains(n.removedNodes,r);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function createDetachObserver(t,e,n){const r=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||nodeListContains(n.removedNodes,r),e=e&&!nodeListContains(n.addedNodes,r);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const drpListeningCharts=new Map;let oldDevicePixelRatio=0;function onWindowResize(){const t=window.devicePixelRatio;t!==oldDevicePixelRatio&&(oldDevicePixelRatio=t,drpListeningCharts.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function listenDevicePixelRatioChanges(t,e){drpListeningCharts.size||window.addEventListener("resize",onWindowResize),drpListeningCharts.set(t,e)}function unlistenDevicePixelRatioChanges(t){drpListeningCharts.delete(t),drpListeningCharts.size||window.removeEventListener("resize",onWindowResize)}function createResizeObserver(t,e,n){const r=t.canvas,o=r&&_getParentNode(r);if(!o)return;const i=throttled((t,e)=>{const r=o.clientWidth;n(t,e),r<o.clientWidth&&n()},window),a=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||i(n,r)});return a.observe(o),listenDevicePixelRatioChanges(t,i),a}function releaseObserver(t,e,n){n&&n.disconnect(),"resize"===e&&unlistenDevicePixelRatioChanges(t)}function createProxyAndListen(t,e,n){const r=t.canvas,o=throttled(e=>{null!==t.ctx&&n(fromNativeEvent(e,t))},t);return addListener(r,e,o),o}class DomPlatform extends BasePlatform{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(initCanvas(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[EXPANDO_KEY])return!1;const n=e[EXPANDO_KEY].initial;["height","width"].forEach(t=>{const r=n[t];isNullOrUndef(r)?e.removeAttribute(t):e.setAttribute(t,r)});const r=n.style||{};return Object.keys(r).forEach(t=>{e.style[t]=r[t]}),e.width=e.width,delete e[EXPANDO_KEY],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),o={attach:createAttachObserver,detach:createDetachObserver,resize:createResizeObserver}[e]||createProxyAndListen;r[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];if(!r)return;({attach:releaseObserver,detach:releaseObserver,resize:releaseObserver}[e]||removeListener)(t,e,r),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return getMaximumSize(t,e,n,r)}isAttached(t){const e=t&&_getParentNode(t);return!(!e||!e.isConnected)}}function _detectPlatform(t){return!_isDomSupported()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?BasicPlatform:DomPlatform}class Element{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return isNumber(this.x)&&isNumber(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach(t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),r}}function autoSkip(t,e){const n=t.options.ticks,r=determineMaxTicks(t),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?getMajorIndices(e):[],a=i.length,s=i[0],l=i[a-1],p=[];if(a>o)return skipMajors(e,p,i,a/o),p;const c=calculateSpacing(i,e,o);if(a>0){let t,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(skip(e,p,c,isNullOrUndef(r)?0:s-r,s),t=0,n=a-1;t<n;t++)skip(e,p,c,i[t],i[t+1]);return skip(e,p,c,l,isNullOrUndef(r)?e.length:l+r),p}return skip(e,p,c),p}function determineMaxTicks(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(r,o))}function calculateSpacing(t,e,n){const r=getEvenSpacing(t),o=e.length/n;if(!r)return Math.max(o,1);const i=_factorize(r);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>o)return e}return Math.max(o,1)}function getMajorIndices(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function skipMajors(t,e,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),i++,a=n[i*r])}function skip(t,e,n,r,o){const i=valueOrDefault(r,0),a=Math.min(valueOrDefault(o,t.length),t.length);let s,l,p,c=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),p=i;p<0;)c++,p=Math.round(i+c*n);for(l=Math.max(i,0);l<a;l++)l===p&&(e.push(t[l]),c++,p=Math.round(i+c*n))}function getEvenSpacing(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const reverseAlign=t=>"left"===t?"right":"right"===t?"left":t,offsetFromEdge=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,getTicksLimit=(t,e)=>Math.min(e||t,t);function sample(t,e){const n=[],r=t.length/e,o=t.length;let i=0;for(;i<o;i+=r)n.push(t[Math.floor(i)]);return n}function getPixelForGridLine(t,e,n){const r=t.ticks.length,o=Math.min(e,r-1),i=t._startPixel,a=t._endPixel,s=1e-6;let l,p=t.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(p-i,a-p):0===e?(t.getPixelForTick(1)-p)/2:(p-t.getPixelForTick(o-1))/2,p+=o<e?l:-l,p<i-s||p>a+s)))return p}function garbageCollect(t,e){each(t,t=>{const n=t.gc,r=n.length/2;let o;if(r>e){for(o=0;o<r;++o)delete t.data[n[o]];n.splice(0,r)}})}function getTickMarkLength(t){return t.drawTicks?t.tickLength:0}function getTitleHeight(t,e){if(!t.display)return 0;const n=toFont(t.font,e),r=toPadding(t.padding);return(isArray(t.text)?t.text.length:1)*n.lineHeight+r.height}function createScaleContext(t,e){return createContext(t,{scale:e,type:"scale"})}function createTickContext(t,e,n){return createContext(t,{tick:n,index:e,type:"tick"})}function titleAlign(t,e,n){let r=_toLeftRightCenter(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=reverseAlign(r)),r}function titleArgs(t,e,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=t,{chartArea:p,scales:c}=l;let d,u,h,b=0;const m=a-o,f=s-i;if(t.isHorizontal()){if(u=_alignStartEnd(r,i,s),isObject$1(n)){const t=Object.keys(n)[0],r=n[t];h=c[t].getPixelForValue(r)+m-e}else h="center"===n?(p.bottom+p.top)/2+m-e:offsetFromEdge(t,n,e);d=s-i}else{if(isObject$1(n)){const t=Object.keys(n)[0],r=n[t];u=c[t].getPixelForValue(r)-f+e}else u="center"===n?(p.left+p.right)/2-f+e:offsetFromEdge(t,n,e);h=_alignStartEnd(r,a,o),b="left"===n?-HALF_PI:HALF_PI}return{titleX:u,titleY:h,maxWidth:d,rotation:b}}class Scale extends Element{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:r}=this;return t=finiteOrDefault(t,Number.POSITIVE_INFINITY),e=finiteOrDefault(e,Number.NEGATIVE_INFINITY),n=finiteOrDefault(n,Number.POSITIVE_INFINITY),r=finiteOrDefault(r,Number.NEGATIVE_INFINITY),{min:finiteOrDefault(t,n),max:finiteOrDefault(e,r),minDefined:isNumberFinite(t),maxDefined:isNumberFinite(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),i||(r=Math.max(r,e.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:finiteOrDefault(n,finiteOrDefault(r,n)),max:finiteOrDefault(r,finiteOrDefault(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){callback(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_addGrace(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?sample(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=autoSkip(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){callback(this.options.afterUpdate,[this])}beforeSetDimensions(){callback(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){callback(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),callback(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){callback(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,r,o;for(n=0,r=t.length;n<r;n++)o=t[n],o.label=callback(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){callback(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){callback(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=getTicksLimit(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,o=e.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!e.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const p=this._getLabelSizes(),c=p.widest.width,d=p.highest.height,u=_limitValue(this.chart.width-c,0,this.maxWidth);i=t.offset?this.maxWidth/n:u/(n-1),c+6>i&&(i=u/(n-(t.offset?.5:1)),a=this.maxHeight-getTickMarkLength(t.grid)-e.padding-getTitleHeight(t.title,this.chart.options.font),s=Math.sqrt(c*c+d*d),l=toDegrees(Math.min(Math.asin(_limitValue((p.highest.height+6)/i,-1,1)),Math.asin(_limitValue(a/s,-1,1))-Math.asin(_limitValue(d/s,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){callback(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=getTitleHeight(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=getTickMarkLength(o)+i):(t.height=this.maxHeight,t.width=getTickMarkLength(o)+i),n.display&&this.ticks.length){const{first:e,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=toRadians(this.labelRotation),p=Math.cos(l),c=Math.sin(l);if(a){const e=n.mirror?0:c*o.width+p*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:p*o.width+c*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,r,c,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,r){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;s?l?(c=r*t.width,d=n*e.height):(c=n*t.height,d=r*e.width):"start"===o?d=e.width:"end"===o?c=t.width:"inner"!==o&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-p+i)*this.width/(this.width-p),0)}else{let n=e.height/2,r=t.height/2;"start"===o?(n=0,r=t.height):"end"===o&&(n=e.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){callback(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)isNullOrUndef(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=sample(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:r,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(e/getTicksLimit(e,n));let l,p,c,d,u,h,b,m,f,g,v,y=0,x=0;for(l=0;l<e;l+=s){if(d=t[l].label,u=this._resolveTickFontOptions(l),r.font=h=u.string,b=o[h]=o[h]||{data:{},gc:[]},m=u.lineHeight,f=g=0,isNullOrUndef(d)||isArray(d)){if(isArray(d))for(p=0,c=d.length;p<c;++p)v=d[p],isNullOrUndef(v)||isArray(v)||(f=_measureText(r,b.data,b.gc,f,v),g+=m)}else f=_measureText(r,b.data,b.gc,f,d),g=m;i.push(f),a.push(g),y=Math.max(f,y),x=Math.max(g,x)}garbageCollect(o,e);const w=i.indexOf(y),k=a.indexOf(x),_=t=>({width:i[t]||0,height:a[t]||0});return{first:_(0),last:_(e-1),widest:_(w),highest:_(k),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return _int16Range(this._alignToPixels?_alignPixel(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=createTickContext(this.getContext(),t,n))}return this.$context||(this.$context=createScaleContext(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=toRadians(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),o=this._getLabelSizes(),i=t.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:a}=r,s=o.offset,l=this.isHorizontal(),p=this.ticks.length+(s?1:0),c=getTickMarkLength(o),d=[],u=a.setContext(this.getContext()),h=u.display?u.width:0,b=h/2,m=function(t){return _alignPixel(n,t,h)};let f,g,v,y,x,w,k,_,S,C,E,P;if("top"===i)f=m(this.bottom),w=this.bottom-c,_=f-b,C=m(t.top)+b,P=t.bottom;else if("bottom"===i)f=m(this.top),C=t.top,P=m(t.bottom)-b,w=f+b,_=this.top+c;else if("left"===i)f=m(this.right),x=this.right-c,k=f-b,S=m(t.left)+b,E=t.right;else if("right"===i)f=m(this.left),S=t.left,E=m(t.right)-b,x=f+b,k=this.left+c;else if("x"===e){if("center"===i)f=m((t.top+t.bottom)/2+.5);else if(isObject$1(i)){const t=Object.keys(i)[0],e=i[t];f=m(this.chart.scales[t].getPixelForValue(e))}C=t.top,P=t.bottom,w=f+b,_=w+c}else if("y"===e){if("center"===i)f=m((t.left+t.right)/2);else if(isObject$1(i)){const t=Object.keys(i)[0],e=i[t];f=m(this.chart.scales[t].getPixelForValue(e))}x=f-b,k=x-c,S=t.left,E=t.right}const A=valueOrDefault(r.ticks.maxTicksLimit,p),T=Math.max(1,Math.ceil(p/A));for(g=0;g<p;g+=T){const t=this.getContext(g),e=o.setContext(t),r=a.setContext(t),i=e.lineWidth,p=e.color,c=r.dash||[],u=r.dashOffset,h=e.tickWidth,b=e.tickColor,m=e.tickBorderDash||[],f=e.tickBorderDashOffset;v=getPixelForGridLine(this,g,s),void 0!==v&&(y=_alignPixel(n,v,i),l?x=k=S=E=y:w=_=C=P=y,d.push({tx1:x,ty1:w,tx2:k,ty2:_,x1:S,y1:C,x2:E,y2:P,width:i,color:p,borderDash:c,borderDashOffset:u,tickWidth:h,tickColor:b,tickBorderDash:m,tickBorderDashOffset:f}))}return this._ticksLength=p,this._borderValue=f,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:p,mirror:c}=o,d=getTickMarkLength(n.grid),u=d+p,h=c?-p:u,b=-toRadians(this.labelRotation),m=[];let f,g,v,y,x,w,k,_,S,C,E,P,A="middle";if("top"===r)w=this.bottom-h,k=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,k=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,x=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,x=t.x}else if("x"===e){if("center"===r)w=(t.top+t.bottom)/2+u;else if(isObject$1(r)){const t=Object.keys(r)[0],e=r[t];w=this.chart.scales[t].getPixelForValue(e)+u}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)x=(t.left+t.right)/2-u;else if(isObject$1(r)){const t=Object.keys(r)[0],e=r[t];x=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===s?A="top":"end"===s&&(A="bottom"));const T=this._getLabelSizes();for(f=0,g=a.length;f<g;++f){v=a[f],y=v.label;const t=o.setContext(this.getContext(f));_=this.getPixelForTick(f)+o.labelOffset,S=this._resolveTickFontOptions(f),C=S.lineHeight,E=isArray(y)?y.length:1;const e=E/2,n=t.color,s=t.textStrokeColor,p=t.textStrokeWidth;let d,u=k;if(i?(x=_,"inner"===k&&(u=f===g-1?this.options.reverse?"left":"right":0===f?this.options.reverse?"right":"left":"center"),P="top"===r?"near"===l||0!==b?-E*C+C/2:"center"===l?-T.highest.height/2-e*C+C:-T.highest.height+C/2:"near"===l||0!==b?C/2:"center"===l?T.highest.height/2-e*C:T.highest.height-E*C,c&&(P*=-1),0===b||t.showLabelBackdrop||(x+=C/2*Math.sin(b))):(w=_,P=(1-E)*C/2),t.showLabelBackdrop){const e=toPadding(t.backdropPadding),n=T.heights[f],r=T.widths[f];let o=P-e.top,i=0-e.left;switch(A){case"middle":o-=n/2;break;case"bottom":o-=n}switch(k){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":f===g-1?i-=r:f>0&&(i-=r/2)}d={left:i,top:o,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:y,font:S,textOffset:P,options:{rotation:b,color:n,strokeColor:s,strokeWidth:p,textAlign:u,textBaseline:A,translation:[x,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-toRadians(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?r?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?r?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:r,width:o,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,o,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,i;const a=(t,e,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,i=r.length;o<i;++o){const t=r[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,p,c,d;this.isHorizontal()?(l=_alignPixel(t,this.left,i)-i/2,p=_alignPixel(t,this.right,a)+a/2,c=d=s):(c=_alignPixel(t,this.top,i)-i/2,d=_alignPixel(t,this.bottom,a)+a/2,l=p=s),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(l,c),e.lineTo(p,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&clipArea(e,n);const r=this.getLabelItems(t);for(const t of r){const n=t.options,r=t.font;renderText(e,t.label,0,t.textOffset,r,n)}n&&unclipArea(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const o=toFont(n.font),i=toPadding(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||isObject$1(e)?(s+=i.bottom,isArray(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:p,maxWidth:c,rotation:d}=titleArgs(this,s,e,a);renderText(t,n.text,0,0,o,{color:n.color,maxWidth:c,rotation:d,textAlign:titleAlign(a,e,r),textBaseline:"middle",translation:[l,p]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=valueOrDefault(t.grid&&t.grid.z,-1),r=valueOrDefault(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Scale.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=e.length;o<i;++o){const i=e[o];i[n]!==this.id||t&&i.type!==t||r.push(i)}return r}_resolveTickFontOptions(t){return toFont(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class TypedRegistry{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;isIChartComponent(e)&&(n=this.register(e));const r=this.items,o=t.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,registerDefaults(t,i,n),this.override&&defaults.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in defaults[r]&&(delete defaults[r][n],this.override&&delete overrides[n])}}function registerDefaults(t,e,n){const r=merge(Object.create(null),[n?defaults.get(n):{},defaults.get(e),t.defaults]);defaults.set(e,r),t.defaultRoutes&&routeDefaults(e,t.defaultRoutes),t.descriptors&&defaults.describe(e,t.descriptors)}function routeDefaults(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),o=r.pop(),i=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");defaults.route(i,o,l,s)})}function isIChartComponent(t){return"id"in t&&"defaults"in t}class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):each(e,e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)})})}_exec(t,e,n){const r=_capitalize(t);callback(n["before"+r],[],n),e[t](n),callback(n["after"+r],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}var registry=new Registry;class PluginService{constructor(){this._init=void 0}notify(t,e,n,r){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const o=r?this._descriptors(t).filter(r):this._descriptors(t),i=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),i}_notify(t,e,n,r){r=r||{};for(const o of t){const t=o.plugin;if(!1===callback(t[n],[e,r,o.options],t)&&r.cancelable)return!1}return!0}invalidate(){isNullOrUndef(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,r=valueOrDefault(n.options&&n.options.plugins,{}),o=allPlugins(n);return!1!==r||e?createDescriptors(t,o,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function allPlugins(t){const e={},n=[],r=Object.keys(registry.plugins.items);for(let t=0;t<r.length;t++)n.push(registry.getPlugin(r[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const r=o[t];-1===n.indexOf(r)&&(n.push(r),e[r.id]=!0)}return{plugins:n,localIds:e}}function getOpts(t,e){return e||!1!==t?!0===t?{}:t:null}function createDescriptors(t,{plugins:e,localIds:n},r,o){const i=[],a=t.getContext();for(const s of e){const e=s.id,l=getOpts(r[e],o);null!==l&&i.push({plugin:s,options:pluginOpts(t.config,{plugin:s,local:n[e]},l,a)})}return i}function pluginOpts(t,{plugin:e,local:n},r,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(r,i);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function getIndexAxis(t,e){const n=defaults.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function getAxisFromDefaultScaleID(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}function getDefaultScaleIDFromAxis(t,e){return t===e?"_index_":"_value_"}function idMatchesAxis(t){if("x"===t||"y"===t||"r"===t)return t}function axisFromPosition(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function determineAxis(t,...e){if(idMatchesAxis(t))return t;for(const n of e){const e=n.axis||axisFromPosition(n.position)||t.length>1&&idMatchesAxis(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function getAxisFromDataset(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function retrieveAxisFromDatasets(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(n.length)return getAxisFromDataset(t,"x",n[0])||getAxisFromDataset(t,"y",n[0])}return{}}function mergeScaleConfig(t,e){const n=overrides[t.type]||{scales:{}},r=e.scales||{},o=getIndexAxis(t.type,e),i=Object.create(null);return Object.keys(r).forEach(e=>{const a=r[e];if(!isObject$1(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=determineAxis(e,a,retrieveAxisFromDatasets(e,t),defaults.scales[a.type]),l=getDefaultScaleIDFromAxis(s,o),p=n.scales||{};i[e]=mergeIf(Object.create(null),[{axis:s},a,p[s],p[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,a=n.indexAxis||getIndexAxis(o,e),s=(overrides[o]||{}).scales||{};Object.keys(s).forEach(t=>{const e=getAxisFromDefaultScaleID(t,a),o=n[e+"AxisID"]||e;i[o]=i[o]||Object.create(null),mergeIf(i[o],[{axis:e},r[o],s[t]])})}),Object.keys(i).forEach(t=>{const e=i[t];mergeIf(e,[defaults.scales[e.type],defaults.scale])}),i}function initOptions(t){const e=t.options||(t.options={});e.plugins=valueOrDefault(e.plugins,{}),e.scales=mergeScaleConfig(t,e)}function initData(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}function initConfig(t){return(t=t||{}).data=initData(t.data),initOptions(t),t}const keyCache=new Map,keysCached=new Set;function cachedKeys(t,e){let n=keyCache.get(t);return n||(n=e(),keyCache.set(t,n),keysCached.add(n)),n}const addIfFound=(t,e,n)=>{const r=resolveObjectKey(e,n);void 0!==r&&t.add(r)};class Config{constructor(t){this._config=initConfig(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=initData(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),initOptions(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cachedKeys(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return cachedKeys(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return cachedKeys(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return cachedKeys(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const{options:r,type:o}=this,i=this._cachedScopes(t,n),a=i.get(e);if(a)return a;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>addIfFound(s,t,e))),e.forEach(t=>addIfFound(s,r,t)),e.forEach(t=>addIfFound(s,overrides[o]||{},t)),e.forEach(t=>addIfFound(s,defaults,t)),e.forEach(t=>addIfFound(s,descriptors,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),keysCached.has(e)&&i.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,overrides[e]||{},defaults.datasets[e]||{},{type:e},defaults,descriptors]}resolveNamedOptions(t,e,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=getResolver(this._resolverCache,t,r);let s=i;if(needContext(i,e)){o.$shared=!1;s=_attachContext(i,n=isFunction(n)?n():n,this.createResolver(t,n,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],r){const{resolver:o}=getResolver(this._resolverCache,t,n);return isObject$1(e)?_attachContext(o,e,void 0,r):o}}function getResolver(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let i=r.get(o);if(!i){i={resolver:_createResolver(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},r.set(o,i)}return i}const hasFunction=t=>isObject$1(t)&&Object.getOwnPropertyNames(t).some(e=>isFunction(t[e]));function needContext(t,e){const{isScriptable:n,isIndexable:r}=_descriptors(t);for(const o of e){const e=n(o),i=r(o),a=(i||e)&&t[o];if(e&&(isFunction(a)||hasFunction(a))||i&&isArray(a))return!0}return!1}var version="4.5.1";const KNOWN_POSITIONS=["top","bottom","left","right","chartArea"];function positionIsHorizontal(t,e){return"top"===t||"bottom"===t||-1===KNOWN_POSITIONS.indexOf(t)&&"x"===e}function compare2Level(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function onAnimationsComplete(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),callback(n&&n.onComplete,[t],e)}function onAnimationProgress(t){const e=t.chart,n=e.options.animation;callback(n&&n.onProgress,[t],e)}function getCanvas(t){return _isDomSupported()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const instances={},getChart=t=>{const e=getCanvas(t);return Object.values(instances).filter(t=>t.canvas===e).pop()};function moveNumericKeys(t,e,n){const r=Object.keys(t);for(const o of r){const r=+o;if(r>=e){const i=t[o];delete t[o],(n>0||r>e)&&(t[r+n]=i)}}}function determineLastEvent(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}class Chart{static defaults=defaults;static instances=instances;static overrides=overrides;static registry=registry;static version=version;static getChart=getChart;static register(...t){registry.add(...t),invalidatePlugins()}static unregister(...t){registry.remove(...t),invalidatePlugins()}constructor(t,e){const n=this.config=new Config(e),r=getCanvas(t),o=getChart(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||_detectPlatform(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,p=s&&s.width;this.id=uid(),this.ctx=a,this.canvas=s,this.width=p,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=debounce(t=>this.update(t),i.resizeDelay||0),this._dataChanges=[],instances[this.id]=this,a&&s?(animator.listen(this,"complete",onAnimationsComplete),animator.listen(this,"progress",onAnimationProgress),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:o}=this;return isNullOrUndef(t)?e&&o?o:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return registry}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return clearCanvas(this.canvas,this.ctx),this}stop(){return animator.stop(this),this}resize(t,e){animator.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,retinaScale(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),callback(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){each(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],r=determineAxis(t,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}}))),each(o,e=>{const o=e.options,i=o.id,a=determineAxis(i,o),s=valueOrDefault(o.type,e.dtype);void 0!==o.position&&positionIsHorizontal(o.position,a)===positionIsHorizontal(e.dposition)||(o.position=e.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(registry.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),each(r,(t,e)=>{t||delete n[e]}),each(n,t=>{layouts.configure(this,t,t.options),layouts.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(compare2Level("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n<r;n++){const r=e[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||getIndexAxis(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=registry.getController(i),{datasetElementType:r,dataElementType:a}=defaults.datasets[i];Object.assign(e,{dataElementType:registry.getElement(a),datasetElementType:r&®istry.getElement(r)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){each(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===o.indexOf(e);e.buildOrUpdateElements(n),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||each(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(compare2Level("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){each(this.scales,t=>{layouts.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);setsEqual(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of e){moveNumericKeys(t,r,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),r=n(0);for(let t=1;t<e;t++)if(!setsEqual(r,n(t)))return;return Array.from(r).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;layouts.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],each(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,isFunction(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(animator.has(this)?this.attached&&!animator.running(this)&&animator.start(this):(this.draw(),onAnimationsComplete({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},r=getDatasetClipArea(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(r&&clipArea(e,r),t.controller.draw(),r&&unclipArea(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return _isPointInArea(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const o=Interaction.modes[e];return"function"==typeof o?o(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter(t=>t&&t._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=createContext(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",o=this.getDatasetMeta(t),i=o.controller._resolveAnimations(void 0,r);defined(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),i.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),animator.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),clearCanvas(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete instances[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};each(this.options.events,t=>n(t,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():i()}unbindEvents(){each(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},each(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){i=t[a];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!_elementsEqual(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,n){const r=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),i=o(e,t),a=n?t:o(t,e);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:o}=this,i=e,a=this._getActiveElements(t,r,n,i),s=_isClickEvent(t),l=determineLastEvent(t,this._lastEvent,n,s);n&&(this._lastEvent=null,callback(o.onHover,[t,a,this],this),s&&callback(o.onClick,[t,a,this],this));const p=!_elementsEqual(a,r);return(p||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,p}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}}function invalidatePlugins(){return each(Chart.instances,t=>t._plugins.invalidate())}function clipSelf(t,e,n){const{startAngle:r,x:o,y:i,outerRadius:a,innerRadius:s,options:l}=e,{borderWidth:p,borderJoinStyle:c}=l,d=Math.min(p/a,_normalizeAngle(r-n));if(t.beginPath(),t.arc(o,i,a-p/2,r+d/2,n-d/2),s>0){const e=Math.min(p/s,_normalizeAngle(r-n));t.arc(o,i,s+p/2,n-e/2,r+e/2,!0)}else{const e=Math.min(p/2,a*_normalizeAngle(r-n));if("round"===c)t.arc(o,i,e,n-PI/2,r+PI/2,!0);else if("bevel"===c){const a=2*e*e,s=-a*Math.cos(n+PI/2)+o,l=-a*Math.sin(n+PI/2)+i,p=a*Math.cos(r+PI/2)+o,c=a*Math.sin(r+PI/2)+i;t.lineTo(s,l),t.lineTo(p,c)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function clipArc(t,e,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:l}=e;let p=o/s;t.beginPath(),t.arc(i,a,s,r-p,n+p),l>o?(p=o/l,t.arc(i,a,l,n+p,r-p,!0)):t.arc(i,a,o,n+HALF_PI,r-HALF_PI),t.closePath(),t.clip()}function toRadiusCorners(t){return _readValueToProps(t,["outerStart","outerEnd","innerStart","innerEnd"])}function parseBorderRadius$1(t,e,n,r){const o=toRadiusCorners(t.options.borderRadius),i=(n-e)/2,a=Math.min(i,r*e/2),s=t=>{const e=(n-Math.min(i,t))*r/2;return _limitValue(t,0,Math.min(i,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:_limitValue(o.innerStart,0,a),innerEnd:_limitValue(o.innerEnd,0,a)}}function rThetaToXY(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function pathArc(t,e,n,r,o,i){const{x:a,y:s,startAngle:l,pixelMargin:p,innerRadius:c}=e,d=Math.max(e.outerRadius+r+n-p,0),u=c>0?c+r+n+p:0;let h=0;const b=o-l;if(r){const t=((c>0?c-r:0)+(d>0?d-r:0))/2;h=(b-(0!==t?b*t/(t+r):b))/2}const m=(b-Math.max(.001,b*d-n/PI)/d)/2,f=l+m+h,g=o-m-h,{outerStart:v,outerEnd:y,innerStart:x,innerEnd:w}=parseBorderRadius$1(e,u,d,g-f),k=d-v,_=d-y,S=f+v/k,C=g-y/_,E=u+x,P=u+w,A=f+x/E,T=g-w/P;if(t.beginPath(),i){const e=(S+C)/2;if(t.arc(a,s,d,S,e),t.arc(a,s,d,e,C),y>0){const e=rThetaToXY(_,C,a,s);t.arc(e.x,e.y,y,C,g+HALF_PI)}const n=rThetaToXY(P,g,a,s);if(t.lineTo(n.x,n.y),w>0){const e=rThetaToXY(P,T,a,s);t.arc(e.x,e.y,w,g+HALF_PI,T+Math.PI)}const r=(g-w/u+(f+x/u))/2;if(t.arc(a,s,u,g-w/u,r,!0),t.arc(a,s,u,r,f+x/u,!0),x>0){const e=rThetaToXY(E,A,a,s);t.arc(e.x,e.y,x,A+Math.PI,f-HALF_PI)}const o=rThetaToXY(k,f,a,s);if(t.lineTo(o.x,o.y),v>0){const e=rThetaToXY(k,S,a,s);t.arc(e.x,e.y,v,f-HALF_PI,S)}}else{t.moveTo(a,s);const e=Math.cos(S)*d+a,n=Math.sin(S)*d+s;t.lineTo(e,n);const r=Math.cos(C)*d+a,o=Math.sin(C)*d+s;t.lineTo(r,o)}t.closePath()}function drawArc(t,e,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=e;let l=e.endAngle;if(i){pathArc(t,e,n,r,l,o);for(let e=0;e<i;++e)t.fill();isNaN(s)||(l=a+(s%TAU||TAU))}return pathArc(t,e,n,r,l,o),t.fill(),l}function drawBorder(t,e,n,r,o){const{fullCircles:i,startAngle:a,circumference:s,options:l}=e,{borderWidth:p,borderJoinStyle:c,borderDash:d,borderDashOffset:u,borderRadius:h}=l,b="inner"===l.borderAlign;if(!p)return;t.setLineDash(d||[]),t.lineDashOffset=u,b?(t.lineWidth=2*p,t.lineJoin=c||"round"):(t.lineWidth=p,t.lineJoin=c||"bevel");let m=e.endAngle;if(i){pathArc(t,e,n,r,m,o);for(let e=0;e<i;++e)t.stroke();isNaN(s)||(m=a+(s%TAU||TAU))}b&&clipArc(t,e,m),l.selfJoin&&m-a>=PI&&0===h&&"miter"!==c&&clipSelf(t,e,m),i||(pathArc(t,e,n,r,m,o),t.stroke())}class ArcElement extends Element{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=getAngleFromPoint(r,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:p,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,u=valueOrDefault(c,s-a),h=_angleBetween(o,a,s)&&a!==s,b=u>=TAU||h,m=_isBetween(i,l+d,p+d);return b&&m}getCenterPoint(t){const{x:e,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,p=(r+o)/2,c=(i+a+l+s)/2;return{x:e+Math.cos(p)*c,y:n+Math.sin(p)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,i=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>TAU?Math.floor(n/TAU):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min(PI,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,drawArc(t,this,s,o,i),drawBorder(t,this,s,o,i),t.restore()}}function getBarBounds(t,e){const{x:n,y:r,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,p,c,d;return t.horizontal?(d=a/2,s=Math.min(n,o),l=Math.max(n,o),p=r-d,c=r+d):(d=i/2,s=n-d,l=n+d,p=Math.min(r,o),c=Math.max(r,o)),{left:s,top:p,right:l,bottom:c}}function skipOrLimit(t,e,n,r){return t?0:_limitValue(e,n,r)}function parseBorderWidth(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,i=toTRBL(r);return{t:skipOrLimit(o.top,i.top,0,n),r:skipOrLimit(o.right,i.right,0,e),b:skipOrLimit(o.bottom,i.bottom,0,n),l:skipOrLimit(o.left,i.left,0,e)}}function parseBorderRadius(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=toTRBLCorners(o),a=Math.min(e,n),s=t.borderSkipped,l=r||isObject$1(o);return{topLeft:skipOrLimit(!l||s.top||s.left,i.topLeft,0,a),topRight:skipOrLimit(!l||s.top||s.right,i.topRight,0,a),bottomLeft:skipOrLimit(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:skipOrLimit(!l||s.bottom||s.right,i.bottomRight,0,a)}}function boundingRects(t){const e=getBarBounds(t),n=e.right-e.left,r=e.bottom-e.top,o=parseBorderWidth(t,n/2,r/2),i=parseBorderRadius(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function inRange(t,e,n,r){const o=null===e,i=null===n,a=t&&!(o&&i)&&getBarBounds(t,r);return a&&(o||_isBetween(e,a.left,a.right))&&(i||_isBetween(n,a.top,a.bottom))}function hasRadius(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function addNormalRectPath(t,e){t.rect(e.x,e.y,e.w,e.h)}function inflateRect(t,e,n={}){const r=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+r,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}class BarElement extends Element{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=boundingRects(this),a=hasRadius(i.radius)?addRoundedRectPath:addNormalRectPath;t.save(),i.w===o.w&&i.h===o.h||(t.beginPath(),a(t,inflateRect(i,e,o)),t.clip(),a(t,inflateRect(o,-e,i)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,inflateRect(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return inRange(this,t,e,n)}inXRange(t,e){return inRange(this,t,null,e)}inYRange(t,e){return inRange(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+r)/2:e,y:o?n:(n+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}const getBoxSize=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},itemsEqual=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Legend extends Element{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=callback(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,r=toFont(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=getBoxSize(n,o);let l,p;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,p=this._fitRows(i,o,a,s)+10):(p=this.maxHeight,l=this._fitCols(i,r,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(p,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],p=r+a;let c=t;o.textAlign="left",o.textBaseline="middle";let d=-1,u=-p;return this.legendItems.forEach((t,h)=>{const b=n+e/2+o.measureText(t.text).width;(0===h||l[l.length-1]+b+2*a>i)&&(c+=p,l[l.length-(h>0?0:1)]=0,u+=p,d++),s[h]={left:0,top:u,row:d,width:b,height:r},l[l.length-1]+=b+a}),c}_fitCols(t,e,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],p=i-t;let c=a,d=0,u=0,h=0,b=0;return this.legendItems.forEach((t,i)=>{const{itemWidth:m,itemHeight:f}=calculateItemSize(n,e,o,t,r);i>0&&u+f+2*a>p&&(c+=d+a,l.push({width:d,height:u}),h+=d+a,b++,d=u=0),s[i]={left:h,top:u,col:b,width:m,height:f},d=Math.max(d,m),u+=f+a}),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:o}}=this,i=getRtlAdapter(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=_alignStartEnd(n,this.left+r,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=_alignStartEnd(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+t+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=_alignStartEnd(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=_alignStartEnd(n,this.top+t+r,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;clipArea(t,this),this._draw(),unclipArea(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:o,labels:i}=t,a=defaults.color,s=getRtlAdapter(t.rtl,this.left,this.width),l=toFont(i.font),{padding:p}=i,c=l.size,d=c/2;let u;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:h,boxHeight:b,itemHeight:m}=getBoxSize(i,c),f=this.isHorizontal(),g=this._computeTitleHeight();u=f?{x:_alignStartEnd(o,this.left+p,this.right-n[0]),y:this.top+p+g,line:0}:{x:this.left+p,y:_alignStartEnd(o,this.top+g+p,this.bottom-e[0].height),line:0},overrideTextDirection(this.ctx,t.textDirection);const v=m+p;this.legendItems.forEach((y,x)=>{r.strokeStyle=y.fontColor,r.fillStyle=y.fontColor;const w=r.measureText(y.text).width,k=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),_=h+d+w;let S=u.x,C=u.y;s.setWidth(this.width),f?x>0&&S+_+p>this.right&&(C=u.y+=v,u.line++,S=u.x=_alignStartEnd(o,this.left+p,this.right-n[u.line])):x>0&&C+v>this.bottom&&(S=u.x=S+e[u.line].width+p,u.line++,C=u.y=_alignStartEnd(o,this.top+g+p,this.bottom-e[u.line].height));if(function(t,e,n){if(isNaN(h)||h<=0||isNaN(b)||b<0)return;r.save();const o=valueOrDefault(n.lineWidth,1);if(r.fillStyle=valueOrDefault(n.fillStyle,a),r.lineCap=valueOrDefault(n.lineCap,"butt"),r.lineDashOffset=valueOrDefault(n.lineDashOffset,0),r.lineJoin=valueOrDefault(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=valueOrDefault(n.strokeStyle,a),r.setLineDash(valueOrDefault(n.lineDash,[])),i.usePointStyle){const a={radius:b*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,h/2);drawPointLegend(r,a,l,e+d,i.pointStyleWidth&&h)}else{const i=e+Math.max((c-b)/2,0),a=s.leftForLtr(t,h),l=toTRBLCorners(n.borderRadius);r.beginPath(),Object.values(l).some(t=>0!==t)?addRoundedRectPath(r,{x:a,y:i,w:h,h:b,radius:l}):r.rect(a,i,h,b),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(S),C,y),S=_textX(k,S+h+d,f?S+_:this.right,t.rtl),function(t,e,n){renderText(r,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),C,y),f)u.x+=_+p;else if("string"!=typeof y.text){const t=l.lineHeight;u.y+=calculateLegendItemHeight(y,t)+p}else u.y+=v}),restoreTextDirection(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=toFont(e.font),r=toPadding(e.padding);if(!e.display)return;const o=getRtlAdapter(t.rtl,this.left,this.width),i=this.ctx,a=e.position,s=n.size/2,l=r.top+s;let p,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),p=this.top+l,c=_alignStartEnd(t.align,c,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);p=l+_alignStartEnd(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=_alignStartEnd(a,c,c+d);i.textAlign=o.textAlign(_toLeftRightCenter(a)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=n.string,renderText(i,e.text,u,p,n)}_computeTitleHeight(){const t=this.options.title,e=toFont(t.font),n=toPadding(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,o;if(_isBetween(t,this.left,this.right)&&_isBetween(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],_isBetween(t,r.left,r.left+r.width)&&_isBetween(e,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!isListened(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,o=itemsEqual(r,n);r&&!o&&callback(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!o&&callback(e.onHover,[t,n,this],this)}else n&&callback(e.onClick,[t,n,this],this)}}function calculateItemSize(t,e,n,r,o){return{itemWidth:calculateItemWidth(r,t,e,n),itemHeight:calculateItemHeight(o,r,e.lineHeight)}}function calculateItemWidth(t,e,n,r){let o=t.text;return o&&"string"!=typeof o&&(o=o.reduce((t,e)=>t.length>e.length?t:e)),e+n.size/2+r.measureText(o).width}function calculateItemHeight(t,e,n){let r=t;return"string"!=typeof e.text&&(r=calculateLegendItemHeight(e,n)),r}function calculateLegendItemHeight(t,e){return e*(t.text?t.text.length:0)}function isListened(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}var plugin_legend={id:"legend",_element:Legend,start(t,e,n){const r=t.legend=new Legend({ctx:t.ctx,options:n,chart:t});layouts.configure(t,r,n),layouts.addBox(t,r)},stop(t){layouts.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;layouts.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),e.hidden=!0):(o.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(n?0:void 0),p=toPadding(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(p.width+p.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const positioners={average(t){if(!t.length)return!1;let e,n,r=new Set,o=0,i=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r.add(t.x),o+=t.y,++i}}if(0===i||0===r.size)return!1;return{x:[...r].reduce((t,e)=>t+e)/r.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let n,r,o,i=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){const r=t[n].element;if(r&&r.hasValue()){const t=distanceBetweenPoints(e,r.getCenterPoint());t<s&&(s=t,o=r)}}if(o){const t=o.tooltipPosition();i=t.x,a=t.y}return{x:i,y:a}}};function pushOrConcat(t,e){return e&&(isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function splitNewlines(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function createTooltipItem(t,e){const{element:n,datasetIndex:r,index:o}=e,i=t.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function getTooltipSize(t,e){const n=t.chart.ctx,{body:r,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,l=toFont(e.bodyFont),p=toFont(e.titleFont),c=toFont(e.footerFont),d=i.length,u=o.length,h=r.length,b=toPadding(e.padding);let m=b.height,f=0,g=r.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(g+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*p.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),g){m+=h*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-h)*l.lineHeight+(g-1)*e.bodySpacing}u&&(m+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let v=0;const y=function(t){f=Math.max(f,n.measureText(t).width+v)};return n.save(),n.font=p.string,each(t.title,y),n.font=l.string,each(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?a+2+e.boxPadding:0,each(r,t=>{each(t.before,y),each(t.lines,y),each(t.after,y)}),v=0,n.font=c.string,each(t.footer,y),n.restore(),f+=b.width,{width:f,height:m}}function determineYAlign(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function doesNotFitWithAlign(t,e,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===t&&o+i+a>e.width||("right"===t&&o-i-a<0||void 0)}function determineXAlign(t,e,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=t;let p="center";return"center"===r?p=o<=(s+l)/2?"left":"right":o<=i/2?p="left":o>=a-i/2&&(p="right"),doesNotFitWithAlign(p,t,e,n)&&(p="center"),p}function determineAlignment(t,e,n){const r=n.yAlign||e.yAlign||determineYAlign(t,n);return{xAlign:n.xAlign||e.xAlign||determineXAlign(t,e,n,r),yAlign:r}}function alignX(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}function alignY(t,e,n){let{y:r,height:o}=t;return"top"===e?r+=n:r-="bottom"===e?o+n:o/2,r}function getBackgroundPoint(t,e,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,p=o+i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:h}=toTRBLCorners(a);let b=alignX(e,s);const m=alignY(e,l,p);return"center"===l?"left"===s?b+=p:"right"===s&&(b-=p):"left"===s?b-=Math.max(c,u)+o:"right"===s&&(b+=Math.max(d,h)+o),{x:_limitValue(b,0,r.width-e.width),y:_limitValue(m,0,r.height-e.height)}}function getAlignedX(t,e,n){const r=toPadding(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,n){return createContext(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function overrideCallbacks(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const defaultCallbacks={beforeTitle:noop$1,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:noop$1,beforeBody:noop$1,beforeLabel:noop$1,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return isNullOrUndef(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:noop$1,afterBody:noop$1,beforeFooter:noop$1,footer:noop$1,afterFooter:noop$1};function invokeCallbackWithFallback(t,e,n,r){const o=t[e].call(n,r);return void 0===o?defaultCallbacks[e].call(n,r):o}class Tooltip extends Element{static positioners=positioners;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,o=new Animations(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=createTooltipContext(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:n}=e,r=invokeCallbackWithFallback(n,"beforeTitle",this,t),o=invokeCallbackWithFallback(n,"title",this,t),i=invokeCallbackWithFallback(n,"afterTitle",this,t);let a=[];return a=pushOrConcat(a,splitNewlines(r)),a=pushOrConcat(a,splitNewlines(o)),a=pushOrConcat(a,splitNewlines(i)),a}getBeforeBody(t,e){return getBeforeAfterBodyLines(invokeCallbackWithFallback(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,r=[];return each(t,t=>{const e={before:[],lines:[],after:[]},o=overrideCallbacks(n,t);pushOrConcat(e.before,splitNewlines(invokeCallbackWithFallback(o,"beforeLabel",this,t))),pushOrConcat(e.lines,invokeCallbackWithFallback(o,"label",this,t)),pushOrConcat(e.after,splitNewlines(invokeCallbackWithFallback(o,"afterLabel",this,t))),r.push(e)}),r}getAfterBody(t,e){return getBeforeAfterBodyLines(invokeCallbackWithFallback(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,r=invokeCallbackWithFallback(n,"beforeFooter",this,t),o=invokeCallbackWithFallback(n,"footer",this,t),i=invokeCallbackWithFallback(n,"afterFooter",this,t);let a=[];return a=pushOrConcat(a,splitNewlines(r)),a=pushOrConcat(a,splitNewlines(o)),a=pushOrConcat(a,splitNewlines(i)),a}_createItems(t){const e=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(createTooltipItem(this.chart,e[a]));return t.filter&&(l=l.filter((e,r,o)=>t.filter(e,r,o,n))),t.itemSort&&(l=l.sort((e,r)=>t.itemSort(e,r,n))),each(l,e=>{const n=overrideCallbacks(t.callbacks,e);r.push(invokeCallbackWithFallback(n,"labelColor",this,e)),o.push(invokeCallbackWithFallback(n,"labelPointStyle",this,e)),i.push(invokeCallbackWithFallback(n,"labelTextColor",this,e))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const t=positioners[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const e=this._size=getTooltipSize(this,n),a=Object.assign({},t,e),s=determineAlignment(this.chart,n,a),l=getBackgroundPoint(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const o=this.getCaretPosition(t,n,r);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:p,bottomRight:c}=toTRBLCorners(a),{x:d,y:u}=t,{width:h,height:b}=e;let m,f,g,v,y,x;return"center"===o?(y=u+b/2,"left"===r?(m=d,f=m-i,v=y+i,x=y-i):(m=d+h,f=m+i,v=y-i,x=y+i),g=m):(f="left"===r?d+Math.max(s,p)+i:"right"===r?d+h-Math.max(l,c)-i:this.caretX,"top"===o?(v=u,y=v-i,m=f-i,g=f+i):(v=u+b,y=v+i,m=f+i,g=f-i),x=v),{x1:m,x2:f,x3:g,y1:v,y2:y,y3:x}}drawTitle(t,e,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=getRtlAdapter(n.rtl,this.x,this.width);for(t.x=getAlignedX(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",i=toFont(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=i.string,s=0;s<o;++s)e.fillText(r[s],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=o,p=toFont(o.bodyFont),c=getAlignedX(this,"left",o),d=r.x(c),u=s<p.lineHeight?(p.lineHeight-s)/2:0,h=e.y+u;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(d,l)+l/2,p=h+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,drawPoint(t,e,n,p),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,drawPoint(t,e,n,p)}else{t.lineWidth=isObject$1(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=r.leftForLtr(d,l),n=r.leftForLtr(r.xPlus(d,1),l-2),a=toTRBLCorners(i.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,addRoundedRectPath(t,{x:e,y:h,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),addRoundedRectPath(t,{x:n,y:h+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,h,l,s),t.strokeRect(e,h,l,s),t.fillStyle=i.backgroundColor,t.fillRect(n,h+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:p}=n,c=toFont(n.bodyFont);let d=c.lineHeight,u=0;const h=getRtlAdapter(n.rtl,this.x,this.width),b=function(n){e.fillText(n,h.x(t.x+u),t.y+d/2),t.y+=d+o},m=h.textAlign(i);let f,g,v,y,x,w,k;for(e.textAlign=i,e.textBaseline="middle",e.font=c.string,t.x=getAlignedX(this,m,n),e.fillStyle=n.bodyColor,each(this.beforeBody,b),u=a&&"right"!==m?"center"===i?l/2+p:l+2+p:0,y=0,w=r.length;y<w;++y){for(f=r[y],g=this.labelTextColors[y],e.fillStyle=g,each(f.before,b),v=f.lines,a&&v.length&&(this._drawColorBox(e,t,y,h,n),d=Math.max(c.lineHeight,s)),x=0,k=v.length;x<k;++x)b(v[x]),d=c.lineHeight;each(f.after,b)}u=0,d=c.lineHeight,each(this.afterBody,b),t.y-=o}drawFooter(t,e,n){const r=this.footer,o=r.length;let i,a;if(o){const s=getRtlAdapter(n.rtl,this.x,this.width);for(t.x=getAlignedX(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",i=toFont(n.footerFont),e.fillStyle=n.footerColor,e.font=i.string,a=0;a<o;++a)e.fillText(r[a],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=t,{width:l,height:p}=n,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:h}=toTRBLCorners(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+c,s),"top"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+l-d,s),e.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+l,s+p-h),e.quadraticCurveTo(a+l,s+p,a+l-h,s+p),"bottom"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+u,s+p),e.quadraticCurveTo(a,s+p,a,s+p-u),"center"===i&&"left"===o&&this.drawCaret(t,e,n,r),e.lineTo(a,s+c),e.quadraticCurveTo(a,s,a+c,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=positioners[t.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=getTooltipSize(this,t),a=Object.assign({},n,this._size),s=determineAlignment(e,t,a),l=getBackgroundPoint(t,a,s,e);r._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=toPadding(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,r,e),overrideTextDirection(t,e.textDirection),o.y+=i.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),restoreTextDirection(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,r=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!_elementsEqual(n,r),i=this._positionChanged(r,e);(o||i)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(t,o,e,n),a=this._positionChanged(i,t),s=e||!_elementsEqual(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,r){const o=this.options;if("mouseout"===t.type)return[];if(!r)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const i=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:n,caretY:r,options:o}=this,i=positioners[o.position].call(this,t,e);return!1!==i&&(n!==i.x||r!==i.y)}}var plugin_tooltip={id:"tooltip",_element:Tooltip,positioners:positioners,afterInit(t,e,n){n&&(t.tooltip=new Tooltip({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:defaultCallbacks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const addIfString=(t,e,n,r)=>("string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function findOrAddLabel(t,e,n,r){const o=t.indexOf(e);if(-1===o)return addIfString(t,e,n,r);return o!==t.lastIndexOf(e)?n:o}const validIndex=(t,e)=>null===t?null:_limitValue(Math.round(t),0,e);function _getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class CategoryScale extends Scale{static id="category";static defaults={ticks:{callback:_getLabelForValue}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:r}of e)t[n]===r&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(isNullOrUndef(t))return null;const n=this.getLabels();return e=isFinite(e)&&n[e]===t?e:findOrAddLabel(n,t,valueOrDefault(e,t),this._addedLabels),validIndex(e,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)r.push({value:n});return r}getLabelForValue(t){return _getLabelForValue.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function generateTicks$1(t,e){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:p,maxDigits:c,includeBounds:d}=t,u=o||1,h=p-1,{min:b,max:m}=e,f=!isNullOrUndef(i),g=!isNullOrUndef(a),v=!isNullOrUndef(l),y=(m-b)/(c+1);let x,w,k,_,S=niceNum((m-b)/h/u)*u;if(S<1e-14&&!f&&!g)return[{value:b},{value:m}];_=Math.ceil(m/S)-Math.floor(b/S),_>h&&(S=niceNum(_*S/h/u)*u),isNullOrUndef(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===r?(w=Math.floor(b/S)*S,k=Math.ceil(m/S)*S):(w=b,k=m),f&&g&&o&&almostWhole((a-i)/o,S/1e3)?(_=Math.round(Math.min((a-i)/S,p)),S=(a-i)/_,w=i,k=a):v?(w=f?i:w,k=g?a:k,_=l-1,S=(k-w)/_):(_=(k-w)/S,_=almostEquals(_,Math.round(_),S/1e3)?Math.round(_):Math.ceil(_));const C=Math.max(_decimalPlaces(S),_decimalPlaces(w));x=Math.pow(10,isNullOrUndef(s)?C:s),w=Math.round(w*x)/x,k=Math.round(k*x)/x;let E=0;for(f&&(d&&w!==i?(n.push({value:i}),w<i&&E++,almostEquals(Math.round((w+E*S)*x)/x,i,relativeLabelSize(i,y,t))&&E++):w<i&&E++);E<_;++E){const t=Math.round((w+E*S)*x)/x;if(g&&t>a)break;n.push({value:t})}return g&&d&&k!==a?n.length&&almostEquals(n[n.length-1].value,a,relativeLabelSize(a,y,t))?n[n.length-1].value=a:n.push({value:a}):g&&k!==a||n.push({value:k}),n}function relativeLabelSize(t,e,{horizontal:n,minRotation:r}){const o=toRadians(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class LinearScaleBase extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return isNullOrUndef(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=t=>r=e?r:t,a=t=>o=n?o:t;if(t){const t=sign(r),e=sign(o);t<0&&e<0?a(0):t>0&&e>0&&i(0)}if(r===o){let e=0===o?1:Math.abs(.05*o);a(o+e),t||i(r-e)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=generateTicks$1({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&_setMinAndMaxByKey(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return formatNumber(t,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{static id="linear";static defaults={ticks:{callback:Ticks.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=isNumberFinite(t)?t:0,this.max=isNumberFinite(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=toRadians(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(t,e){return t-e}function parse(t,e){if(isNullOrUndef(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:i}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),isNumberFinite(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!isNumber(i)&&!0!==i?n.startOf(a,o):n.startOf(a,"isoWeek",i)),+a)}function determineUnitForAutoTicks(t,e,n,r){const o=UNITS.length;for(let i=UNITS.indexOf(t);i<o-1;++i){const t=INTERVALS[UNITS[i]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=r)return UNITS[i]}return UNITS[o-1]}function determineUnitForFormatting(t,e,n,r,o){for(let i=UNITS.length-1;i>=UNITS.indexOf(n);i--){const n=UNITS[i];if(INTERVALS[n].common&&t._adapter.diff(o,r,n)>=e-1)return n}return UNITS[n?UNITS.indexOf(n):0]}function determineMajorUnit(t){for(let e=UNITS.indexOf(t)+1,n=UNITS.length;e<n;++e)if(INTERVALS[UNITS[e]].common)return UNITS[e]}function addTick(t,e,n){if(n){if(n.length){const{lo:r,hi:o}=_lookup(n,e);t[n[r]>=e?n[r]:n[o]]=!0}}else t[e]=!0}function setMajorTicks(t,e,n,r){const o=t._adapter,i=+o.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}function ticksFromTimestamps(t,e,n){const r=[],o={},i=e.length;let a,s;for(a=0;a<i;++a)s=e[a],o[s]=a,r.push({value:s,major:!1});return 0!==i&&n?setMajorTicks(t,r,o,n):r}class TimeScale extends Scale{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),r=this._adapter=new adapters._date(t.adapters.date);r.init(e),mergeIf(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:parse(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(t){i||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}i&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),r=isNumberFinite(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),o=isNumberFinite(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,i=_filterBetween(r,o,this.max);return this._unit=e.unit||(n.autoSkip?determineUnitForAutoTicks(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):determineUnitForFormatting(this,i.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?determineMajorUnit(this._unit):void 0,this.initOffsets(r),t.reverse&&i.reverse(),ticksFromTimestamps(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e,n,r=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;r=_limitValue(r,0,i),o=_limitValue(o,0,i),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,r=this.options,o=r.time,i=o.unit||determineUnitForAutoTicks(o.minUnit,e,n,this._getLabelCapacity(e)),a=valueOrDefault(r.ticks.stepSize,1),s="week"===i&&o.isoWeekday,l=isNumber(s)||!0===s,p={};let c,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":i),t.diff(n,e,i)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+i);const h="data"===r.ticks.source&&this.getDataTimestamps();for(c=u,d=0;c<n;c=+t.add(c,a,i),d++)addTick(p,c,h);return c!==n&&"ticks"!==r.bounds&&1!==d||addTick(p,c,h),Object.keys(p).sort(sorter).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,r=this._unit,o=e||n[r];return this._adapter.format(t,o)}_tickFormatFunction(t,e,n,r){const o=this.options,i=o.ticks.callback;if(i)return callback(i,[t,e,n],this);const a=o.time.displayFormats,s=this._unit,l=this._majorUnit,p=s&&a[s],c=l&&a[l],d=n[e],u=l&&c&&d&&d.major;return this._adapter.format(t,r||(u?c:p))}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,r=toRadians(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(r),i=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*i,h:n*i+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,ticksFromTimestamps(this,[t],this._majorUnit),r),i=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(parse(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return _arrayUnique(t.sort(sorter))}}function interpolate(t,e,n){let r,o,i,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=_lookupByKey(t,"pos",e)),({pos:r,time:i}=t[s]),({pos:o,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=_lookupByKey(t,"time",e)),({time:r,pos:i}=t[s]),({time:o,pos:a}=t[l]));const p=o-r;return p?i+(a-i)*(e-r)/p:i}class TimeSeriesScale extends TimeScale{static id="timeseries";static defaults=TimeScale.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=interpolate(e,this.min),this._tableRange=interpolate(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,r=[],o=[];let i,a,s,l,p;for(i=0,a=t.length;i<a;++i)l=t[i],l>=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(i=0,a=r.length;i<a;++i)p=r[i+1],s=r[i-1],l=r[i],Math.round((p+s)/2)!==l&&o.push({time:l,pos:i/(a-1)});return o}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort((t,e)=>t-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(interpolate(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return interpolate(this._table,n*this._tableRange+this._minPos,!0)}}const getCSSVariable=(t,e=1,n="#666666")=>{const r=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(!r)return console.warn(`CSS variable ${t} not found, using fallback color: ${n}`),n;if(1===e)return r;if(r.startsWith("#")){const t=r.replace("#","");return`rgba(${parseInt(t.substr(0,2),16)}, ${parseInt(t.substr(2,2),16)}, ${parseInt(t.substr(4,2),16)}, ${e})`}return r.startsWith("rgb")?r.startsWith("rgba")?r.replace(/[\d.]+\)$/,`${e})`):r.replace("rgb","rgba").replace(")",`, ${e})`):r};var css_248z$1b=".basic-price-chart .basic-price-chart__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.basic-price-chart .basic-price-chart__content .basic-price-chart__empty {\n text-align: center;\n}\n.basic-price-chart .basic-price-chart__content .basic-price-chart__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .basic-price-chart .basic-price-chart__content .basic-price-chart__chart {\n width: 70% !important;\n }\n}";function BasicPriceChart({legend:t,chartOptions:e,noChartDisplay:n,id:r,className:o}){var i;const a=useRef(null),s=useRef(null);return useLayoutEffect(()=>{var t,n;if(!a.current)return;const r=a.current.getContext("2d");if(!r)return;const o=null==r?void 0:r.createLinearGradient(0,0,300,0);return null==o||o.addColorStop(0,getCSSVariable("--secondary-color")),null==o||o.addColorStop(.3,getCSSVariable("--secondary-dark-color")),null==o||o.addColorStop(.7,getCSSVariable("--primary-color")),s.current&&s.current.destroy(),(null===(t=e.data.datasets[0])||void 0===t?void 0:t.backgroundColor)&&(e.data.datasets[0].backgroundColor=[o,"rgba(0, 0, 0, 0.2)"]),(null===(n=e.data.datasets[0])||void 0===n?void 0:n.borderColor)&&(e.data.datasets[0].borderColor=[o,"rgba(0, 0, 0, 0.2)"]),s.current=new Chart(r,e),()=>{var t;null===(t=s.current)||void 0===t||t.destroy()}},[e]),jsx("div",{id:r,className:"basic-price-chart"+(o?" "+o:""),children:jsx("div",{className:"basic-price-chart__content",children:(null===(i=e.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))?jsx("div",{className:"basic-price-chart__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"basic-price-chart__chart",children:jsx("canvas",{ref:a})}),t]})})})}styleInject(css_248z$1b),Chart.register(DoughnutController,ArcElement,plugin_tooltip,plugin_legend);var css_248z$1a=".lv-editing-status-chart .lv-editing-status-chart__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.lv-editing-status-chart .lv-editing-status-chart__content .lv-editing-status-chart__empty {\n text-align: center;\n}\n.lv-editing-status-chart .lv-editing-status-chart__content .lv-editing-status-chart__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .lv-editing-status-chart .lv-editing-status-chart__content .lv-editing-status-chart__chart {\n width: 70% !important;\n }\n}";function LvEditingStatusChart({chartOptions:t,legend:e,noChartDisplay:n,id:r,className:o}){var i;const a=useRef(null),s=useRef(null);return useLayoutEffect(()=>{var e,n;if(!a.current)return;const r=a.current.getContext("2d");return r?(s.current&&s.current.destroy(),(null===(e=t.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(t.data.datasets[0].backgroundColor=[getCSSVariable("--warning-color",.6),getCSSVariable("--valid-color",.6),getCSSVariable("--error-color",.6)]),(null===(n=t.data.datasets[0])||void 0===n?void 0:n.borderColor)&&(t.data.datasets[0].borderColor=[getCSSVariable("--warning-color",.6),getCSSVariable("--valid-color",.6),getCSSVariable("--error-color",.6)]),s.current=new Chart(r,t),()=>{var t;null===(t=s.current)||void 0===t||t.destroy()}):void 0},[]),jsx("div",{id:r,className:"lv-editing-status-chart"+(o?" "+o:""),children:jsx("div",{className:"lv-editing-status-chart__content",children:(null===(i=t.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))?jsx("div",{className:"lv-editing-status-chart__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"lv-editing-status-chart__chart",children:jsx("canvas",{ref:a})}),e]})})})}styleInject(css_248z$1a),Chart.register(PieController,ArcElement,plugin_tooltip,plugin_legend);var css_248z$19=".lv-insights .lv-insights__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.lv-insights .lv-insights__content .lv-insights__empty {\n text-align: center;\n}\n.lv-insights .lv-insights__content .lv-insights__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .lv-insights .lv-insights__content .lv-insights__chart {\n width: 70% !important;\n }\n}";function LvInsightsChart({chartOptions:t,legend:e,noChartDisplay:n,id:r,className:o}){var i;const a=useRef(null),s=useRef(null),l=[getCSSVariable("--secondary-color",.7),getCSSVariable("--primary-color",.7),getCSSVariable("--info-color",.7),getCSSVariable("--diagram-color-5",.7)],p=[getCSSVariable("--secondary-color",1),getCSSVariable("--primary-color",1),getCSSVariable("--info-color",1),getCSSVariable("--diagram-color-5",1)];return useLayoutEffect(()=>{var e,n;if(!a.current)return;const r=a.current.getContext("2d");return r?(s.current&&s.current.destroy(),(null===(e=t.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(t.data.datasets[0].backgroundColor=l),(null===(n=t.data.datasets[0])||void 0===n?void 0:n.hoverBackgroundColor)&&(t.data.datasets[0].hoverBackgroundColor=p),s.current=new Chart(r,t),()=>{var t;null===(t=s.current)||void 0===t||t.destroy()}):void 0},[]),jsx("div",{id:r,className:"lv-insights"+(o?" "+o:""),children:jsx("div",{className:"lv-insights__content",children:(null===(i=t.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))?jsx("div",{className:"lv-insights__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"lv-insights__chart",children:jsx("canvas",{ref:a})}),e]})})})}styleInject(css_248z$19),Chart.register(DoughnutController,ArcElement,plugin_tooltip,plugin_legend);var css_248z$18=".contract-potentials .contract-potentials__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.contract-potentials .contract-potentials__content .contract-potentials__empty {\n text-align: center;\n}\n.contract-potentials .contract-potentials__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .contract-potentials .contract-potentials__chart {\n width: 70% !important;\n }\n}";function ContractPotentialsChart({chartOptions:t,legend:e,noChartDisplay:n,id:r,className:o}){var i,a;const s=useRef(null),l=useRef(null);return useLayoutEffect(()=>{var e,n;if(!s.current)return;const r=s.current.getContext("2d");return r?(l.current&&l.current.destroy(),(null===(e=t.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(t.data.datasets[0].backgroundColor=[getCSSVariable("--secondary-color-50")]),(null===(n=t.data.datasets[1])||void 0===n?void 0:n.backgroundColor)&&(t.data.datasets[1].backgroundColor=[getCSSVariable("--primary-color-68",1)]),l.current=new Chart(r,t),()=>{var t;null===(t=l.current)||void 0===t||t.destroy()}):void 0},[t]),jsx("div",{id:r,className:"contract-potentials"+(o?" "+o:""),children:jsx("div",{className:"contract-potentials__content",children:(null===(i=t.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))&&(null===(a=t.data.datasets[1])||void 0===a?void 0:a.data.every(t=>0===t))?jsx("div",{className:"contract-potentials__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"contract-potentials__chart",children:jsx("canvas",{ref:s})}),e]})})})}styleInject(css_248z$18),Chart.register(BarController,CategoryScale,LinearScale,BarElement,plugin_tooltip,plugin_legend);var css_248z$17=".bee-info-valid-label,\n.bee-info-neutral-label,\n.bee-error-label {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n}\n\n.bee-info-neutral-label {\n color: var(--neutral-color);\n}\n\n.bee-info-valid-label {\n color: var(--valid-color);\n}\n\n.bee-error-label {\n color: var(--error-color);\n}\n\n.bee-info-label-small {\n font-size: small;\n}\n\n.bee-info-label-medium {\n font-size: medium;\n}\n\n.bee-info-label-large {\n font-size: x-large;\n}";function BeeLabel({id:t,className:e,value:n,size:r="medium",type:o="neutral"}){const i=null!=t?t:libExports.useId(1,"bee-info-label-")[0];return jsx("span",{id:i,className:"bee-label "+("neutral"===o?" bee-info-neutral-label":"valid"===o?" bee-info-valid-label":"error"===o?" bee-error-label":"")+("small"===r?" bee-info-label-small":"medium"===r?" bee-info-label-medium":"large"===r?" bee-info-label-large":" bee-info-label-medium")+(e?" "+e:""),children:n})}styleInject(css_248z$17);const EMPTY_FIELD_PLACEHOLDER=" — ";var css_248z$16=".bee-txt-input-container {\n display: block;\n position: relative;\n}\n\n.bee-txt-input-container .p-inputtext {\n width: 100%;\n}\n\n.bee-txt-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-txt-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-txt-input-label .bee-txt-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-txt-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.p-float-label .bee-txt-input-valid.p-inputtext {\n border-color: var(--valid-color) !important;\n border-width: 2px !important;\n}\n\n.p-float-label .bee-txt-input-error.p-inputtext {\n border-color: var(--error-color) !important;\n border-width: 2px !important;\n}\n\n.bee-txt-input-readOnly .p-inputtext {\n border-style: none;\n}\n\n.bee-txt-input-readOnly .p-inputtext {\n opacity: 1 !important;\n}\n\n.bee-txt-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-txt-input-container.half-rounded .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}";function BeeTextInput({id:t,className:e,label:n,value:r,disabled:o,statusLabel:i,formstate:a="neutral",halfRounded:s,readOnly:l,required:p,placeholder:c,tooltip:d,tooltipOptions:u,onChange:h,onFocusOut:b}){var m;const f=null!==(m=null!=t?t:libExports.useId(1,"bee-txt-input-")[0])&&void 0!==m?m:"bee-txt-input";let g="";l&&(g=" bee-txt-input-readOnly",o=!0);const v="bee-txt-input "+("valid"===a?" bee-txt-input-valid":"error"===a?" bee-txt-input-error":"neutral"===a?" bee-txt-input-neutral":"none"===a?" bee-cur-input-field-neutral":" bee-txt-input-neutral");return jsxs(Fragment,{children:[jsx("div",{id:f,className:"p-float-label bee-txt-input-container"+g+(s?" half-rounded":"")+(e?" "+e:""),children:l&&!r?jsx(BeePlaceholder,{id:f,label:n}):jsxs(Fragment,{children:[jsx(InputText,{id:f+"input",value:null!=r?r:void 0,disabled:null!=o&&o,className:v,placeholder:c,tooltip:d,tooltipOptions:u,onChange:t=>function(t){!o&&h&&h(t)}(t),onBlur:t=>function(t){!o&&b&&b(t)}(t)}),n?jsxs("label",{htmlFor:f+"input",className:"bee-txt-input-label",children:[n,p&&n?jsx("span",{className:"bee-txt-input-label-required",children:jsx("span",{className:"bee-txt-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-text-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}function BeePlaceholder({id:t,className:e,label:n,disabled:r}){const o=null!=t?t:libExports.useId(1,"bee-placeholder-")[0];return jsx(BeeTextInput,{id:o+"input",label:n,value:EMPTY_FIELD_PLACEHOLDER,className:null!=e?e:"",disabled:null==r||r,readOnly:!0,formstate:"neutral"})}styleInject(css_248z$16);var css_248z$15=".bee-autocomplete-dropdown-container {\n display: block;\n position: relative;\n}\n\n.bee-autocomplete-dropdown-container .p-autocomplete {\n width: 100%;\n}\n\n.bee-autocomplete-dropdown-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n}\n\n.bee-autocomplete-dropdown-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-autocomplete-dropdown-label .bee-autocomplete-dropdown-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-autocomplete-dropdown {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-autocomplete-dropdown-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-dropdown-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-dropdown-readOnly .p-inputtext {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-autocomplete-dropdown-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeAutocompleteDropdown({id:t,className:e,label:n,value:r,suggestions:o,disabled:i,statusLabel:a,formstate:s="neutral",readOnly:l,required:p,placeholder:c,tooltip:d,tooltipOptions:u,onChange:h,onFocusOut:b}){const m=null!=t?t:libExports.useId(1,"bee-autocomplete-dropdown-")[0],[f,g]=React__default.useState(null!=o?o:[]),v="bee-autocomplete-dropdown "+("valid"===s?" bee-autocomplete-dropdown-valid":"error"===s?" bee-autocomplete-dropdown-error":"neutral"===s?" bee-autocomplete-dropdown-neutral":"none"===s?" bee-autocomplete-dropdodown-none":" bee-autocomplete-dropdown-neutral");return jsxs(Fragment,{children:[jsx("span",{id:m,className:"p-float-label bee-autocomplete-dropdown-container"+(l?" bee-autocomplete-dropdown-readOnly":"")+(i?" bee-autocomplete-dropdown-disabled":"")+(e?" "+e:""),children:l&&!r?jsx(BeePlaceholder,{id:m,label:n}):jsxs(Fragment,{children:[jsx(AutoComplete,{id:m+"input",value:null!=r?r:void 0,dropdown:!0,suggestions:f,disabled:null!=i&&i,className:v,placeholder:c,tooltip:d,tooltipOptions:u,onChange:t=>function(t){!i&&h&&h(t)}(t),onBlur:t=>function(t){!i&&b&&b(t)}(t),completeMethod:t=>{const e=(null!=o?o:[]).filter(e=>String(e).toLowerCase().startsWith(t.query.toLowerCase()));g(e)}}),n?jsxs("label",{htmlFor:m+"input",className:"bee-autocomplete-dropdown-label",children:[n,p&&n?jsx("span",{className:"bee-autocomplete-dropdown-label-required",children:jsx("span",{className:"bee-autocomplete-dropdown-label-required-star",children:" *"})}):null]}):null]})}),"none"!=s&&a?(()=>{const t="medium";return jsx("div",{className:"bee-autocomplete-dropdown-statusLabel",children:"error"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"error"}):"valid"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"valid"}):"neutral"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"neutral"}):null})})():null]})}styleInject(css_248z$15);var css_248z$14=".bee-autocomplete-tag-container {\n display: block;\n position: relative;\n}\n\n.bee-autocomplete-tag-container .p-component {\n width: 100%;\n}\n\n.bee-autocomplete-tag-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-autocomplete-tag-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-autocomplete-tag-label .bee-autocomplete-tag-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-autocomplete-tag {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-autocomplete-tag-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-tag-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-tag-readOnly .p-autocomplete {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-autocomplete-tag-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeAutocompleteTag({id:t,className:e,label:n,value:r,suggestions:o,disabled:i,statusLabel:a,formstate:s="neutral",readOnly:l,required:p,placeholder:c,tooltip:d,tooltipOptions:u,onChange:h,onFocusOut:b}){const m=null!=t?t:libExports.useId(1,"bee-autocomplete-tag-")[0],[f,g]=React__default.useState(null!=o?o:[]);let v="";l&&(v=" bee-autocomplete-tag-readOnly",i=!0);const y="bee-autocomplete-tag "+("valid"===s?" bee-autocomplete-tag-valid":"error"===s?" bee-autocomplete-tag-error":"neutral"===s?" bee-autocomplete-tag-neutral":"none"===s?" bee-cur-input-field-neutral":" bee-autocomplete-tag-neutral"),x="p-float-label bee-autocomplete-tag-container"+v;const w=void 0===r?[]:Array.isArray(r)?r.map(String):[String(r)];return jsxs(Fragment,{children:[jsx("div",{id:m,className:x+(e?" "+e:""),children:l&&!r?jsx(BeePlaceholder,{id:m,label:n}):jsxs(Fragment,{children:[jsx(AutoComplete,{id:m+"input",value:w,multiple:!0,suggestions:f,disabled:null!=i&&i,className:y,placeholder:c,tooltip:d,tooltipOptions:u,onChange:t=>function(t){!i&&h&&h(t)}(t),onBlur:t=>function(t){!i&&b&&b(t)}(t),completeMethod:t=>{const e=(null!=o?o:[]).filter(e=>String(e).toLowerCase().startsWith(t.query.toLowerCase()));g(e)}}),n?jsxs("label",{htmlFor:m+"input",className:"bee-autocomplete-tag-label",children:[n,p&&n?jsx("span",{className:"bee-autocomplete-tag-label-required",children:jsx("span",{className:"bee-autocomplete-tag-label-required-star",children:" *"})}):null]}):null]})}),"none"!=s&&a?(()=>{const t="medium";return jsx("div",{className:"bee-autocomplete-tag-statusLabel",children:"error"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"error"}):"valid"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"valid"}):"neutral"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"neutral"}):null})})():null]})}styleInject(css_248z$14);var css_248z$13=".bee-badge.p-badge {\n min-width: 2em;\n height: 2em;\n line-height: 2em;\n}\n\n.bee-badge-secondary.p-badge {\n background: var(--secondary-color);\n color: var(--secondary-color-text);\n}\n\n.bee-badge-danger.p-badge {\n background: var(--error-color);\n}";function BeeBadge({id:t,className:e,label:n,type:r="primary",size:o="normal"}){const i=null!=t?t:libExports.useId(1,"bee-badge-")[0];return jsx(Badge,{id:i,value:n,className:"primary"===r?"bee-badge bee-badge-primary":"secondary"===r?"bee-badge bee-badge-secondary":"danger"===r?"bee-badge bee-badge-danger":"bee-badge bee-badge-primary"+(e?" "+e:""),size:o})}styleInject(css_248z$13);var css_248z$12=".bee-headline-primary {\n color: var(--primary-color);\n}\n\n.bee-headline-secondary {\n color: var(--secondary-dark-color);\n}\n\n.bee-headline-primary,\n.bee-headline-secondary {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n}";function BeeContentHeadline({id:t,className:e,value:n,headlineType:r="h1",type:o="primary"}){const i=null!=t?t:libExports.useId(1,"bee-content-headline-")[0],a="primary"===o?"bee-headline bee-headline-primary":"secondary"===o?"bee-headline bee-headline-secondary":"bee-headline bee-headline-primary"+(e?" "+e:"");return jsx("h1"===r?"h1":"h2"===r?"h2":"h3"===r?"h3":"h4"===r?"h4":"h5"===r?"h5":"h1",{id:i,className:a,children:n})}styleInject(css_248z$12);var css_248z$11=".bee-content-paragraph {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n}\n\n.bee-content-paragraph-xsmall {\n font-size: 0.7em;\n}\n\n.bee-content-paragraph-small {\n font-size: 0.8em;\n}\n\n.bee-content-paragraph-medium {\n font-size: 1em;\n}\n\n.bee-content-paragraph-large {\n font-size: 1.15em;\n}\n\n.bee-content-paragraph-xlarge {\n font-size: 1.4em;\n}\n\n.bee-content-paragraph-primary {\n color: var(--primary-color);\n}\n\n.bee-content-paragraph-secondary {\n color: var(--secondary-dark-color);\n}";function BeeContentParagraph({id:t,className:e,value:n,size:r="medium",type:o="primary"}){const i=null!=t?t:libExports.useId(1,"bee-content-paragraph-")[0];return jsx("p",{id:i,className:"bee-content-paragraph"+("xSmall"===r?" bee-content-paragraph-xsmall":"small"===r?" bee-content-paragraph-small":"medium"===r?" bee-content-paragraph-medium":"large"===r?" bee-content-paragraph-large":"xLarge"===r?" bee-content-paragraph-xlarge":" bee-content-paragraph-medium")+("primary"===o?" bee-content-paragraph-primary":"secondary"===o?" bee-content-paragraph-secondary":"")+(e?" "+e:""),children:n})}styleInject(css_248z$11);var css_248z$10=".bee-link {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n text-decoration: underline;\n cursor: pointer;\n}\n\n/* primary */\n.bee-link-primary {\n color: var(--primary-color);\n}\n\n.bee-link-primary:hover {\n color: var(--primary-light-color);\n}\n\n.bee-link-primary:visited {\n color: var(--secondary-dark-color);\n}\n\n.bee-link-primary:active {\n color: var(--primary-light-color);\n}\n\n/* secondary */\n.bee-link-secondary {\n color: var(--secondary-dark-color);\n}\n\n.bee-link-secondary:hover {\n color: var(--secondary-color);\n}\n\n.bee-link-secondary:visited {\n color: var(--primary-color);\n}\n\n.bee-link-secondary:active {\n color: var(--secondary-light-color);\n}\n\n/* default */\n.bee-link-default {\n color: var(--text-color);\n}\n\n.bee-link-default:hover {\n color: var(--text-color-secondary);\n}\n\n.bee-link-default:visited {\n color: var(--primary-color);\n}\n\n.bee-link-default:active {\n color: var(--text-color-secondary);\n}\n\n/* size */\n.bee-link-size-xSmall {\n font-size: x-small;\n}\n\n.bee-link-size-small {\n font-size: small;\n}\n\n.bee-link-size-medium {\n font-size: medium;\n}\n\n.bee-link-size-large {\n font-size: large;\n}\n\n.bee-link-size-xLarge {\n font-size: x-large;\n}";function BeeLink({id:t,className:e,value:n,href:r,type:o="primary",size:i="medium",onClick:a}){const s=null!=t?t:libExports.useId(1,"bee-link-")[0],l="bee-link"+("primary"===o?" bee-link-primary":"secondary"===o?" bee-link-secondary":" bee-link-default")+("xSmall"===i?" bee-link-size-xSmall":"small"===i?" bee-link-size-small":"medium"===i?" bee-link-size-medium":"large"===i?" bee-link-size-large":"xLarge"===i?" bee-link-size-xLarge":" bee-link-size-medium");return jsx(Fragment,{children:jsx("a",r?{id:s,className:l+(e?" "+e:""),href:r,children:n}:{id:s,className:l+(e?" "+e:""),onClick:t=>function(t){a&&a(t)}(t),children:n})})}styleInject(css_248z$10);var css_248z$$=".bee-seq-pos {\n margin: 0.5rem;\n align-items: center;\n display: flex;\n}\n\n.bee-seq-pos > span {\n align-items: center;\n display: flex;\n}\n\n.bee-seq-pos > span > span {\n padding-top: 1px;\n}\n\n.bee-seq-pos i {\n padding: 0 0.2rem 0 0.1rem;\n}\n\n.bee-seq-pos-bold {\n font-weight: 600;\n}\n\n.bee-seq-pos .bee-seq-pos-separator {\n padding: 0 0.5rem 0 0.5rem;\n}\n\n/* primary */\n.bee-seq-pos-primary {\n color: var(--primary-color);\n}\n\n/* secondary */\n.bee-seq-pos-secondary {\n color: var(--secondary-color);\n}\n\n/* default */\n.bee-seq-pos-default {\n color: var(--text-color);\n}";function BeeSequencePosition({id:t,className:e,data:n,type:r="primary"}){const o=null!=t?t:libExports.useId(1,"bee-seq-pos-")[0];return jsx("div",{id:o,className:"bee-seq-pos"+("primary"===r?" bee-seq-pos-primary":"secondary"===r?" bee-seq-pos-secondary":"default"===r?" bee-seq-pos-default":" bee-seq-pos-primary")+(e?" "+e:""),children:(()=>{if(n){let t=[];return n.forEach((e,n)=>{t.push(((t,e)=>{const n=(null==t?void 0:t.bold)?"bee-seq-pos-bold":void 0;return jsxs("span",{children:[(null==t?void 0:t.icon)?jsx("i",{className:t.icon}):null,null!=(null==t?void 0:t.label)?jsx("span",{className:n,children:t.label}):null]},`SeqPos_${e}`)})(e,n)),t.push(jsx("i",{className:"pi pi-chevron-right bee-seq-pos-separator"},">_"+n))}),t.pop(),t}})()})}styleInject(css_248z$$);var css_248z$_=".bee-chip-input .p-chips,\n.bee-chip-input .p-inputtext {\n width: 100%;\n}\n.bee-chip-input .p-chips .p-chips-multiple-container {\n max-height: 4.5rem;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n line-clamp: 2;\n white-space: normal;\n}\n.bee-chip-input .p-chips-token {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-chip-input.p-chips-multiple-container:not(:empty) + .p-chips-input-token {\n display: none;\n}\n\n.bee-chip-input-field-error .p-inputtext.p-chips-multiple-container {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-chip-input-field-valid .p-inputtext.p-chips-multiple-container {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-chip-input-readOnly .p-inputtext {\n pointer-events: none;\n}\n.bee-chip-input-readOnly .bee-chip-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n.bee-chip-input-readOnly {\n opacity: 1 !important;\n}\n.bee-chip-input-readOnly .p-chips-multiple-container {\n border-style: none;\n}\n\n.bee-chip-input-disabled {\n opacity: 0.33;\n cursor: default !important;\n pointer-events: none;\n}\n\n.bee-chip-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}";function BeeChipInput({id:t,className:e,label:n,type:r="primary",data:o=[],statusLabel:i,formstate:a="neutral",required:s,disabled:l,readOnly:p,placeholder:c,tooltip:d,tooltipOptions:u,itemTemplate:h,onChange:b}){var m;const f=null!==(m=null!=t?t:libExports.useId(1,"bee-chip-input-")[0])&&void 0!==m?m:"bee-chip-input",g=s?"bee-chip-input-label-required":"",v=s?"bee-chip-input-label-required-star":"";return jsxs("div",{id:f,className:"bee-chip-input p-float-label"+("primary"===r?" bee-chip-input-primary":"secondary"===r?" bee-chip-input-secondary":" bee-chip-input-primary")+(p?" bee-chip-input-readOnly":"")+(l?" bee-chip-input-disabled":"")+("valid"===a?" bee-chip-input-field-valid":"error"===a?" bee-chip-input-field-error":" bee-chip-input-field-neutral")+(e?" "+e:""),children:[jsx(Fragment,{children:p&&!o||p&&o.length<1?jsx(BeePlaceholder,{id:f,label:n}):jsx(Fragment,{children:jsx(Chips,Object.assign({value:o},void 0!==h?{itemTemplate:h}:{},{onChange:t=>function(t){!l&&b&&b(t)}(t),separator:",",addOnBlur:!0,removable:!p,readOnly:null!=p&&p,placeholder:c,tooltip:d,tooltipOptions:u}))})}),n?jsxs("label",{className:"bee-chip-input-label",children:[n,s?jsx("span",{className:g,children:jsx("span",{className:v,children:" *"})}):null]}):null,"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-chip-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}styleInject(css_248z$_);var css_248z$Z=".bee-cur-input-container .p-inputnumber,\n.bee-cur-input-container input {\n width: 100%;\n}\n.bee-cur-input-container .bee-cur-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n}\n.bee-cur-input-container .bee-cur-input-label {\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n.bee-cur-input-container .bee-cur-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n.bee-cur-input-container .bee-cur-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n.bee-cur-input-container .bee-cur-input-label .bee-cur-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n.bee-cur-input-container .bee-cur-input-field {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-cur-input-container .bee-cur-input-field-valid.p-inputtext {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n.bee-cur-input-container .bee-cur-input-field-error.p-inputtext {\n border-color: var(--error-color);\n border-width: 2px;\n}\n.bee-cur-input-container .bee-cur-input-field-readOnly.p-inputtext {\n border-color: transparent;\n}\n.bee-cur-input-container .bee-cur-input-field-readOnly.p-inputtext {\n opacity: 1 !important;\n}\n\n/* arrow styling */\n.bee-cur-input-container.bee-cur-input-container--showArrow {\n position: relative;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .icon-right-arrow {\n position: absolute;\n top: 0.65em;\n left: 0.5em;\n z-index: 2;\n rotate: 0deg;\n color: var(--surface-400);\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .icon-right-arrow:before {\n font-weight: 600 !important;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputtext {\n padding-left: 2em;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .up-arrow {\n color: var(--valid-color);\n rotate: -45deg;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .down-arrow {\n color: var(--error-color);\n rotate: 45deg;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .span-container .label.bee-cur-input-label {\n padding-left: 1.25em;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputwrapper-focus.p-inputnumber.p-component + label,\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputwrapper-filled.p-inputnumber.p-component + label {\n padding: 2px 4px;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component:focus-within label,\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputnumber:not(:empty) + label {\n padding: 2px 4px;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component + label {\n padding-left: 1.25em;\n}";function BeeCurrencyInput({id:t,className:e,label:n,value:r,showArrow:o,disabled:i,autoFocus:a,minFractionDigits:s,maxFractionDigits:l,max:p,min:c,currency:d="EUR",locale:u="de-DE",statusLabel:h,formstate:b="neutral",readOnly:m,required:f,placeholder:g,name:v,tooltip:y,tooltipOptions:x,onChange:w,onFocusOut:k}){var _;const S=null!==(_=null!=t?t:libExports.useId(1,"bee-cur-input-")[0])&&void 0!==_?_:"bee-cur-input",C=null!=s?s:2,E=null!=l?l:2;let P="";m&&(P=" bee-cur-input-field-readOnly",i=!0);const A=" bee-cur-input-container "+(o?" bee-cur-input-container--showArrow ":""),T="bee-cur-input-field"+("valid"===b?" bee-cur-input-field-valid":"error"===b?" bee-cur-input-field-error":" bee-cur-input-field-neutral")+P,D="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");return jsxs("div",{children:[m&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:S,label:n})}):jsxs("div",{className:A+(e?" "+e:""),children:[o?jsx("i",{className:D}):null,jsxs("span",{id:S,className:"p-float-label ",children:[jsx(InputNumber,{id:S+"input",value:null!=r?r:null,disabled:null!=i&&i,minFractionDigits:C,maxFractionDigits:E,max:p,min:c,autoFocus:a,mode:"currency",currency:d,inputId:S+"_input",inputClassName:T,locale:u,placeholder:g,name:v,tooltip:y,tooltipOptions:x,onValueChange:t=>function(t){!i&&w&&w(t)}(t),onBlur:t=>function(t){!i&&k&&k(t)}(t)}),n?jsxs("label",{htmlFor:S+"input",className:"bee-cur-input-label",children:[n,f&&n?jsx("span",{className:"bee-cur-input-label-required",children:jsx("span",{className:"bee-cur-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=b&&h?(()=>{const t="medium";return jsx("div",{className:"bee-cur-input-statusLabel",children:"error"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"error"}):"valid"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"valid"}):"neutral"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"neutral"}):null})})():null]})}styleInject(css_248z$Z);var css_248z$Y=".bee-date-input-container {\n width: 100%;\n}\n.bee-date-input-container .bee-date-input {\n width: 100%;\n}\n\n.bee-date-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n}\n\n.bee-date-input-label {\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-date-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-date-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-date-input-label .bee-date-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-date-input-container .p-calendar-disabled + label {\n padding-right: 4px;\n max-width: -webkit-calc(100% - 45px);\n}\n\n.bee-date-input .p-inputtext {\n width: 100%;\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-date-input-valid.p-component {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-date-input-error.p-component {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-date-input-readOnly {\n border-color: transparent !important;\n}\n\n.bee-date-input-readOnly + label {\n max-width: -webkit-calc(100% - 17px) !important;\n}\n\n.bee-date-input-readOnly .p-inputtext {\n opacity: 1 !important;\n}\n\n.bee-date-input-readOnly button {\n display: none;\n}";function BeeDateInput({id:t,className:e,label:n,value:r,statusLabel:o,formstate:i="neutral",disabled:a,readOnly:s,required:l,showButtonBar:p,dateFormat:c,view:d,minDate:u,maxDate:h,showMinMaxRange:b,showUTCDate:m,placeholder:f,tooltip:g,tooltipOptions:v,onChange:y,onFocusOut:x,panelClassName:w,locale:k="de"}){var _;const S=null!==(_=null!=t?t:libExports.useId(1,"bee-date-input-")[0])&&void 0!==_?_:"bee-date-input";let C="";s&&(C=" bee-date-input-readOnly",a=!0);const E=`bee-date-input ${"valid"===i?" bee-date-input-valid":"error"===i?" bee-date-input-error":" bee-date-input-neutral"} ${C} ${w||""}`;function P(t){if(!t||Array.isArray(t))return null;let e=new Date(t);return new Date(e.getTime()-6e4*e.getTimezoneOffset())}function A(t){if(!t||Array.isArray(t))return;let e=new Date(t);return new Date(e.getTime()+6e4*e.getTimezoneOffset())}function T(t){if(t&&!Array.isArray(t))return t instanceof Date?t:new Date(t)}return jsxs(Fragment,{children:[jsx("div",{id:S,className:"p-float-label bee-date-input-container"+(e?" "+e:""),children:s&&!r?jsx(BeePlaceholder,{id:S,label:n}):jsxs(Fragment,{children:[jsx(Calendar,{id:S+"input",value:m&&r?A(r):T(r),disabled:null!=a&&a,className:E,showIcon:!0,showButtonBar:null!=p&&p,dateFormat:null!=c?c:"dd.mm.y",view:null!=d?d:"date",minDate:u?m?A(u):T(u):void 0,maxDate:h?m?A(h):T(h):void 0,showMinMaxRange:null!=b&&b,placeholder:f,tooltip:g,tooltipOptions:v,onChange:t=>function(t){!a&&y&&(m&&(t.value=P(t.value)),y(t))}(t),onBlur:t=>function(t){var e,n;!a&&x&&(m?(t.target.value=null!==(n=null===(e=P(t.target.value))||void 0===e?void 0:e.toString())&&void 0!==n?n:t.target.value,x(t)):x(t))}(t),locale:k}),n?jsxs("label",{htmlFor:S+"input",className:"bee-date-input-label",children:[n,l&&n?jsx("span",{className:"bee-date-input-label-required",children:jsx("span",{className:"bee-date-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=i&&o?(()=>{const t="medium";return jsx("div",{className:"bee-date-input-statusLabel",children:"error"===i&&o?jsx(BeeLabel,{size:t,value:o,type:"error"}):"valid"===i&&o?jsx(BeeLabel,{size:t,value:o,type:"valid"}):"neutral"===i&&o?jsx(BeeLabel,{size:t,value:o,type:"neutral"}):null})})():null]})}styleInject(css_248z$Y),addLocale("de",{firstDayOfWeek:1,dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["Son","Mon","Die","Mit","Don","Fre","Sam"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen"});var css_248z$X=".bee-date-time-input-container .p-calendar {\n width: 100% !important;\n}\n\n.bee-date-time-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n}\n\n.bee-date-time-label {\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-date-time-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-date-time-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-date-time-label .bee-date-time-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-date-time-container .p-calendar-disabled + label {\n padding-right: 4px;\n max-width: -webkit-calc(100% - 45px);\n}\n\n.bee-date-time .p-inputtext {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-date-time-valid.p-component {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-date-time-error.p-component {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-date-time-input-readOnly .p-inputtext {\n border: none;\n}\n\n.bee-date-time-readOnly + label {\n max-width: -webkit-calc(100% - 17px) !important;\n}\n\n.bee-date-time-readOnly .p-inputtext {\n opacity: 1 !important;\n}\n\n.bee-date-time-readOnly button {\n display: none;\n}";function BeeDateTimeInput({id:t,className:e,label:n,value:r,disabled:o,statusLabel:i,formstate:a="neutral",readOnly:s,required:l,minDate:p,maxDate:c,showMinMaxRange:d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:m,onFocusOut:f}){var g;const v=null!==(g=null!=t?t:libExports.useId(1,"bee-date-time-input-")[0])&&void 0!==g?g:"bee-date-time-input";let y="";s&&(y=" bee-date-time-input-readOnly",o=!0);const x="bee-date-time-input"+("valid"===a?" bee-date-time-input-valid":"error"===a?" bee-date-time-input-error":"neutral"===a?" bee-date-time-input-neutral":"none"===a?" bee-date-time-field-neutral":" bee-date-time-input-neutral")+y;return jsxs(Fragment,{children:[s&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:v,label:n})}):jsxs("span",{id:v,className:"p-float-label bee-date-time-input-container"+(e?" "+e:""),children:[jsx(Calendar,{showTime:!0,showSeconds:!0,hourFormat:"24",dateFormat:"dd.mm.yy",value:r,disabled:null!=o&&o,className:x,minDate:p?new Date(p):void 0,maxDate:c?new Date(c):void 0,showMinMaxRange:null!=d&&d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:t=>function(t){!o&&m&&m(t)}(t),onBlur:t=>function(t){!o&&f&&f(t)}(t)}),n?jsxs("label",{htmlFor:v+"input",className:"bee-date-time-input-label",children:[n,l&&n?jsx("span",{className:"bee-date-time-input-label-required",children:jsx("span",{className:"bee-date-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-date-time-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}styleInject(css_248z$X);var css_248z$W=".bee-num-input-container .p-inputnumber,\n.bee-num-input-container input {\n width: 100%;\n}\n\n.bee-num-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-num-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-num-input-label .bee-num-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-num-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-num-input.bee-num-input-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n.bee-num-input.bee-num-input-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-num-input-container .bee-num-input-readOnly.p-inputtext {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-num-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n/* arrow styling */\n.bee-num-input-container.bee-num-input-container--showArrow {\n position: relative;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .icon-right-arrow {\n position: absolute;\n top: 0.65em;\n left: 0.5em;\n z-index: 2;\n rotate: 0deg;\n color: var(--surface-400);\n}\n.bee-num-input-container.bee-num-input-container--showArrow .icon-right-arrow:before {\n font-weight: 600 !important;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputtext {\n padding-left: 2em;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .up-arrow {\n color: var(--valid-color);\n rotate: -45deg;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .down-arrow {\n color: var(--error-color);\n rotate: 45deg;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .span-container .label.bee-num-input-label {\n padding-left: 1.25em;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputwrapper-focus.p-inputnumber.p-component + label,\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputwrapper-filled.p-inputnumber.p-component + label {\n padding: 2px 4px;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component:focus-within label,\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputnumber:not(:empty) + label {\n padding: 2px 4px;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component + label {\n padding-left: 1.25em;\n}";function BeeNumberInput({id:t,className:e,label:n,value:r,showArrow:o,autoFocus:i,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,disabled:c,grouping:d,locale:u="de-DE",statusLabel:h,formstate:b="neutral",readOnly:m,required:f,placeholder:g,tooltip:v,tooltipOptions:y,onChange:x,onFocusOut:w}){var k;const _=null!==(k=null!=t?t:libExports.useId(1,"bee-num-input")[0])&&void 0!==k?k:"bee-num-input";let S="";m&&(S=" bee-num-input-readOnly",c=!0);const C=" bee-num-input-container"+(o?" bee-num-input-container--showArrow":""),E="bee-num-input "+("valid"===b?"bee-num-input-valid":"error"===b?"bee-num-input-error":"bee-num-input-neutral")+S,P="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");return jsxs(Fragment,{children:[m&&!r&&0!==r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:_,label:n})}):jsxs("div",{className:"flex-grow-0"+C+(e?" "+e:""),children:[o?jsx("i",{className:P}):null,jsxs("span",{id:_,className:"p-float-label",children:[jsx(InputNumber,{id:_+"input",value:null!=r?r:null,disabled:null!=c&&c,mode:"decimal",autoFocus:i,useGrouping:d,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,locale:u,inputClassName:E,placeholder:g,tooltip:v,tooltipOptions:y,onValueChange:t=>function(t){!c&&x&&x(t)}(t),onBlur:t=>function(t){!c&&w&&w(t)}(t)}),n?jsxs("label",{htmlFor:_+"input",className:"bee-num-input-label",children:[n,f&&n?jsx("span",{className:"bee-num-input-label-required",children:jsx("span",{className:"bee-num-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=b&&h?(()=>{const t="medium";return jsx("div",{className:"bee-num-input-statusLabel",children:"error"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"error"}):"valid"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"valid"}):"neutral"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"neutral"}):null})})():null]})}styleInject(css_248z$W);var css_248z$V=".bee-pw-container {\n display: block;\n width: 100%;\n position: relative;\n}\n\n.bee-pw-container .p-password {\n display: flex !important;\n width: 100% !important;\n}\n\n.bee-pw-container .p-password .p-icon-field,\n.bee-pw-container .p-password .p-icon-field-right {\n flex: 1 1 auto;\n min-width: 0;\n width: 100%;\n position: relative;\n}\n\n.bee-pw-container .p-inputtext,\n.bee-pw-container .p-password .p-inputtext {\n width: 100%;\n}\n\n/* Keep the eye icon inside the field on the right, not below */\n.bee-pw-container .p-password .p-input-icon {\n position: absolute !important;\n top: 50% !important;\n right: 0.75rem !important;\n margin-top: -0.5rem !important;\n left: auto !important;\n color: rgba(0, 0, 0, 0.6);\n}\n\n/* Remove focus frame/outline when clicking the toggle icon */\n.bee-pw-container .p-password .p-input-icon:focus, .bee-pw-container .p-password .p-input-icon:focus-visible,\n.bee-pw-container .p-password .p-input-icon *:focus,\n.bee-pw-container .p-password .p-input-icon *:focus-visible {\n outline: none !important;\n box-shadow: none !important;\n}\n\n.bee-pw-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-pw-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-pw-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-pw-input-label .bee-pw-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-pw-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.p-inputtext.bee-pw-input-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.p-inputtext.bee-pw-input-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-pw-input-readOnly div {\n padding: 1px;\n}\n\n.bee-pw-input-readOnly input {\n opacity: 1 !important;\n border-style: none;\n}\n\n.bee-pw-input-readOnly i {\n display: none;\n}";function BeePasswordInput({id:t,className:e,label:n,value:r,disabled:o,showPwStrength:i,showHint:a,statusLabel:s,formstate:l="neutral",readOnly:p,required:c,placeholder:d,tooltip:u,tooltipOptions:h,onChange:b,onFocusOut:m}){var f;const g=null!==(f=null!=t?t:libExports.useId(1,"bee-pw-input")[0])&&void 0!==f?f:"bee-pw-input";let v="";p&&(v=" bee-pw-input-readOnly",o=!0);const y="bee-pw-input "+("valid"===l?"bee-pw-input-valid":"error"===l?"bee-pw-input-error":"bee-pw-input-neutral"),x="p-float-label bee-pw-container"+v,w=jsx("h6",{children:"Passwort wählen"});const k=jsxs(Fragment,{children:[jsx(Divider,{}),jsx("p",{className:"mt-2",children:"Suggestions"}),jsxs("ul",{className:"pl-2 ml-2 mt-0",style:{lineHeight:"1.5"},children:[jsx("li",{children:"Mind. einen Kleinbuchstaben"}),jsx("li",{children:"Mind. einen Großbuchstaben"}),jsx("li",{children:"Mind. eine Zahl"}),jsx("li",{children:"Mind. 8 Buchstaben/Zahlen"})]})]});return jsxs(Fragment,{children:[jsx("div",{className:null!=e?e:"",children:p&&!r?jsx(BeePlaceholder,{id:g,label:n}):jsxs("span",{id:g,className:x,children:[jsx(Password,{id:g+"input",value:null!=r?r:void 0,disabled:null!=o&&o,onChange:t=>function(t){!o&&b&&b(t)}(t),onBlur:m,inputClassName:y,toggleMask:!0,feedback:i,header:a?w:null,footer:a?k:null,placeholder:d,tooltip:u,tooltipOptions:h}),n?jsxs("label",{htmlFor:g+"input",className:"bee-pw-input-label",children:[n,c&&n?jsx("span",{className:"bee-pw-input-label-required",children:jsx("span",{className:"bee-pw-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=l&&s?(()=>{const t="medium";return jsx("div",{className:"bee-pw-input-statusLabel",children:"error"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"error"}):"valid"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"valid"}):"neutral"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"neutral"}):null})})():null]})}styleInject(css_248z$V);var css_248z$U=".span-container .p-inputnumber,\n.span-container input {\n width: 100%;\n}\n\n.bee-percent-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-percent-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-percent-input-label .bee-percent-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-percent-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-percent-input .bee-percent-input-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n.bee-percent-input .bee-percent-input-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-percentage-input-container .bee-percent-input-readOnly.p-inputtext {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-percent-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n/* arrow styling */\n.bee-percentage-input-container.bee-percentage-input-container--showArrow {\n position: relative;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .icon-right-arrow {\n position: absolute;\n top: 1em;\n left: 0.5em;\n z-index: 2;\n rotate: 0deg;\n color: var(--surface-400);\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .icon-right-arrow:before {\n font-weight: 600 !important;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputtext {\n padding-left: 2em;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .up-arrow {\n color: var(--valid-color);\n rotate: -45deg;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .down-arrow {\n color: var(--error-color);\n rotate: 45deg;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .span-container .label.bee-percent-input-label {\n padding-left: 1.25em;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputwrapper-focus.p-inputnumber.p-component + label,\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputwrapper-filled.p-inputnumber.p-component + label {\n padding: 2px 4px;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component:focus-within label,\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputnumber:not(:empty) + label {\n padding: 2px 4px;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component + label {\n padding-left: 1.25em;\n}";function BeePercentageInput({id:t,className:e,label:n,value:r,showArrow:o,autoFocus:i,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,locale:c="de-DE",disabled:d,grouping:u,statusLabel:h,formstate:b="neutral",readOnly:m,required:f,placeholder:g,tooltip:v,tooltipOptions:y,onChange:x,onFocusOut:w}){var k;const _=null!==(k=null!=t?t:libExports.useId(1,"bee-percent-input")[0])&&void 0!==k?k:"bee-percent-input",S="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");let C="";m&&(C=" bee-percent-input-readOnly",d=!0);const E=" bee-percentage-input-container "+(o?" bee-percentage-input-container--showArrow":""),P="bee-percent-input "+("valid"===b?"bee-percent-input-valid":"error"===b?"bee-percent-input-error":"bee-percent-input-neutral")+C;return jsxs(Fragment,{children:[m&&!r&&0!==r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:_,label:n})}):jsxs("div",{className:"flex-grow-0 "+E+(e?" "+e:""),children:[o?jsx("i",{className:S}):null,jsxs("span",{id:_,className:"p-float-label span-container",children:[jsx(InputNumber,{id:_+"input",value:null!=r?r:null,disabled:null!=d&&d,mode:"decimal",suffix:"%",autoFocus:i,useGrouping:u,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,locale:c,inputClassName:P,placeholder:g,tooltip:v,tooltipOptions:y,onValueChange:t=>function(t){!d&&x&&x(t)}(t),onBlur:t=>function(t){!d&&w&&w(t)}(t)}),n?jsxs("label",{htmlFor:_+"input",className:"bee-percent-input-label",children:[n,f&&n?jsx("span",{className:"bee-percent-input-label-required",children:jsx("span",{className:"bee-percent-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=b&&h?(()=>{const t="medium";return jsx("div",{className:"bee-percent-input-statusLabel",children:"error"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"error"}):"valid"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"valid"}):"neutral"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"neutral"}):null})})():null]})}styleInject(css_248z$U);var css_248z$T=".bee-ta-input-container .p-inputtextarea {\n width: 100%;\n}\n\n.bee-ta-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-ta-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-ta-input-label .bee-ta-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.p-float-label .bee-ta-input-valid.p-inputtextarea {\n border-color: var(--valid-color) !important;\n border-width: 2px !important;\n}\n\n.p-float-label .bee-ta-input-error.p-inputtextarea {\n border-color: var(--error-color) !important;\n border-width: 2px !important;\n}\n\n.p-float-label .bee-ta-input-readOnly.p-inputtextarea {\n border-style: none !important;\n padding: 0.81rem;\n opacity: 1 !important;\n}\n\n.bee-ta-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeTextArea({id:t,className:e,label:n,value:r,rows:o,disabled:i,autoResize:a,statusLabel:s,formstate:l="neutral",readOnly:p,required:c,placeholder:d,tooltip:u,tooltipOptions:h,onChange:b,onFocusOut:m}){var f;const g=null!==(f=null!=t?t:libExports.useId(1,"bee-ta-input-")[0])&&void 0!==f?f:"bee-ta-input";let v="";p&&(v=" bee-ta-input-readOnly",i=!0);const y=("valid"===l?"bee-ta-input-valid":"error"===l?"bee-ta-input-error":"neutral"===l?"bee-ta-input-neutral":"none"===l?" bee-cur-input-field-neutral":"bee-ta-input-neutral")+v;return jsxs(Fragment,{children:[p&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:g,label:n})}):jsxs("span",{id:g,className:"p-float-label bee-ta-input-container"+(e?" "+e:""),children:[jsx(Fragment,{children:jsx(InputTextarea,{id:g+"input",value:null!=r?r:void 0,rows:o,disabled:null!=i&&i,autoResize:a,className:y,placeholder:d,tooltip:u,tooltipOptions:h,onChange:t=>function(t){!i&&b&&b(t)}(t),onBlur:t=>function(t){!i&&m&&m(t)}(t)})}),n?jsxs("label",{htmlFor:g+"input",className:"bee-ta-input-label",children:[n,c&&n?jsx("span",{className:"bee-ta-input-label-required",children:jsx("span",{className:"bee-ta-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=l&&s?(()=>{const t="medium";return jsx("div",{className:"bee-ta-input-statusLabel",children:"error"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"error"}):"valid"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"valid"}):"neutral"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"neutral"}):null})})():null]})}styleInject(css_248z$T);var css_248z$S=".bee-time-input-container .p-calendar {\n width: 100%;\n}\n\n.bee-time-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-time-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-time-input-label .bee-time-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-time-input-container .p-calendar-disabled + label {\n padding-right: 4px;\n max-width: -webkit-calc(100% - 45px);\n}\n\n.bee-time-input .p-inputtext {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-time-input-valid .p-inputtext {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-time-input-error .p-inputtext {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-time-input-readOnly .p-inputtext {\n border: none;\n}\n\n.bee-time-input-readOnly + label {\n max-width: -webkit-calc(100% - 17px) !important;\n}\n\n.bee-time-input-readOnly .p-inputtext.p-component {\n opacity: 1;\n}\n\n.bee-time-input-readOnly button {\n display: none;\n}\n\n.bee-time-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeTimeInput({id:t,className:e,label:n,value:r,disabled:o,statusLabel:i,formstate:a="neutral",readOnly:s,required:l,minDate:p,maxDate:c,showMinMaxRange:d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:m,onFocusOut:f}){var g;const v=null!==(g=null!=t?t:libExports.useId(1,"bee-time-input-")[0])&&void 0!==g?g:"bee-time-input";let y="";s&&(y=" bee-time-input-readOnly",o=!0);const x="bee-time-input"+("valid"===a?" bee-time-input-valid":"error"===a?" bee-time-input-error":"neutral"===a?" bee-time-input-neutral":"none"===a?" bee-time-input-field-neutral":" bee-time-input-neutral")+y;return jsxs(Fragment,{children:[s&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:v,label:n})}):jsxs("span",{id:v,className:"p-float-label bee-time-input-container"+(e?" "+e:""),children:[jsx(Calendar,{timeOnly:!0,showTime:!0,hourFormat:"24",value:r,readOnlyInput:null!=s&&s,disabled:null!=o&&o,className:x,minDate:p?new Date(p):void 0,maxDate:c?new Date(c):void 0,showMinMaxRange:null!=d&&d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:t=>function(t){!o&&m&&m(t)}(t),onBlur:t=>function(t){!o&&f&&f(t)}(t)}),n?jsxs("label",{htmlFor:v+"input",className:"bee-time-input-label",children:[n,l&&n?jsx("span",{className:"bee-time-input-label-required",children:jsx("span",{className:"bee-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-time-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}styleInject(css_248z$S);var lodash$1={exports:{}},lodash=lodash$1.exports,hasRequiredLodash;
|
|
19
|
+
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const o=e.listeners[r],i=e.duration;o.forEach(r=>r({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),o.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=color(t||transparent),o=r.valid&&color(e||transparent);return o&&o.valid?o.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};let Animation$1=class{constructor(t,e,n,r){const o=e[n];r=resolve([t.to,r,o,t.from]);const i=resolve([t.from,o,r]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,r,t.from]),this._from=resolve([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=o:(s=e/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}};class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject$1(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const o=t[r];if(!isObject$1(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[r]).forEach(t=>{t!==r&&n.has(t)||n.set(t,i)})})}_animateOptions(t,e){const n=e.options,r=resolveTargetOptions(t,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&awaitAll(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,r=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const p=e[l];let c=o[l];const d=n.get(l);if(c){if(d&&c.active()){c.update(d,p,a);continue}c.cancel()}d&&d.duration?(o[l]=c=new Animation$1(d,t,l,p),r.push(c)):t[l]=p}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],r=Object.keys(e);for(let e=0;e<r.length;e++){const o=t[r[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},r=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:r?i:o,end:r?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const r=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}function toClip(t){let e,n,r,o;return isObject$1(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,disabled:!1===t}}function getSortedDatasetIndices(t,e){const n=[],r=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function applyStack(t,e,n,r={}){const o=t.keys,i="single"===r.mode;let a,s,l,p;if(null===e)return;let c=!1;for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(c=!0,r.all)continue;break}p=t.values[l],isNumberFinite(p)&&(i||0===e||sign(e)===sign(p))&&(e+=p)}return c||r.all?e:0}function convertObjectDataToArray(t,e){const{iScale:n,vScale:r}=e,o="x"===n.axis?"x":"y",i="x"===r.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,p,c;for(l=0,p=a.length;l<p;++l)c=a[l],s[l]={[o]:c,[i]:t[c]};return s}function isStacked(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function getStackKey(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function getUserBounds(t){const{min:e,max:n,minDefined:r,maxDefined:o}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function getOrCreateStack(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function getLastIndexInStack(t,e,n,r){for(const o of e.getMatchingVisibleMetas(r).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function updateStacks(t,e){const{chart:n,_cachedMeta:r}=t,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,p=a.axis,c=getStackKey(i,a,r),d=e.length;let u;for(let t=0;t<d;++t){const n=e[t],{[l]:i,[p]:d}=n;u=(n._stacks||(n._stacks={}))[p]=getOrCreateStack(o,c,i),u[s]=d,u._top=getLastIndexInStack(u,a,!0,r.type),u._bottom=getLastIndexInStack(u,a,!1,r.type);(u._visualValues||(u._visualValues={}))[s]=d}}function getFirstScaleId(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function createDatasetContext(t,e){return createContext(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function createDataContext(t,e,n){return createContext(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function clearStacks(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n],void 0!==e[r]._visualValues&&void 0!==e[r]._visualValues[n]&&delete e[r]._visualValues[n]}}}const isDirectUpdateMode=t=>"reset"===t||"none"===t,cloneIfNotShared=(t,e)=>e?t:Object.assign({},t),createStack=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:getSortedDatasetIndices(n,!0),values:null};class DatasetController{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=isStacked(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&clearStacks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,o=e.xAxisID=valueOrDefault(n.xAxisID,getFirstScaleId(t,"x")),i=e.yAxisID=valueOrDefault(n.yAxisID,getFirstScaleId(t,"y")),a=e.rAxisID=valueOrDefault(n.rAxisID,getFirstScaleId(t,"r")),s=e.indexAxis,l=e.iAxisID=r(s,o,i,a),p=e.vAxisID=r(s,i,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&unlistenArrayEvents(this._data,this),t._stacked&&clearStacks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(isObject$1(e)){const t=this._cachedMeta;this._data=convertObjectDataToArray(e,t)}else if(n!==e){if(n){unlistenArrayEvents(n,this);const t=this._cachedMeta;clearStacks(t),t._parsed=[]}e&&Object.isExtensible(e)&&listenArrayEvents(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=e._stacked;e._stacked=isStacked(e.vScale,e),e.stack!==n.stack&&(r=!0,clearStacks(e),e.stack=n.stack),this._resyncElements(t),(r||o!==e._stacked)&&(updateStacks(this,e._parsed),e._stacked=isStacked(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,p,c=0===t&&e===r.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,p=r;else{p=isArray(r[t])?this.parseArrayData(n,r,t,e):isObject$1(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const o=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<e;++s)n._parsed[s+t]=l=p[s],c&&(o()&&(c=!1),d=l);n._sorted=c}i&&updateStacks(this,p)}parsePrimitiveData(t,e,n,r){const{iScale:o,vScale:i}=t,a=o.axis,s=i.axis,l=o.getLabels(),p=o===i,c=new Array(r);let d,u,h;for(d=0,u=r;d<u;++d)h=d+n,c[d]={[a]:p||o.parse(l[h],h),[s]:i.parse(e[h],h)};return c}parseArrayData(t,e,n,r){const{xScale:o,yScale:i}=t,a=new Array(r);let s,l,p,c;for(s=0,l=r;s<l;++s)p=s+n,c=e[p],a[s]={x:o.parse(c[0],p),y:i.parse(c[1],p)};return a}parseObjectData(t,e,n,r){const{xScale:o,yScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let p,c,d,u;for(p=0,c=r;p<c;++p)d=p+n,u=e[d],l[p]={x:o.parse(resolveObjectKey(u,a),d),y:i.parse(resolveObjectKey(u,s),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,o=this._cachedMeta,i=e[t.axis];return applyStack({keys:getSortedDatasetIndices(r,!0),values:e._stacks[t.axis]._visualValues},i,o.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const o=n[e.axis];let i=null===o?NaN:o;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,i=applyStack(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&t===n.iScale,i=r.length,a=this._getOtherScale(t),s=createStack(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:c}=getUserBounds(a);let d,u;function h(){u=r[d];const e=u[a.axis];return!isNumberFinite(u[t.axis])||p>e||c<e}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,t,u,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=e.length;r<o;++r)i=e[r][t.axis],isNumberFinite(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=toClip(valueOrDefault(this.options.clip,defaultClip(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],o=e.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let p;for(n.dataset&&n.dataset.draw(t,o,a,s),p=a;p<a+s;++p){const e=r[p];e.hidden||(e.active&&l?i.push(e):e.draw(t,o))}for(p=0;p<i.length;++p)i[p].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=createDataContext(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=createDatasetContext(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const r="active"===e,o=this._cachedDataOpts,i=t+"-"+e,a=o[i],s=this.enableOptionSharing&&defined(n);if(a)return cloneIfNotShared(a,s);const l=this.chart.config,p=l.datasetElementScopeKeys(this._type,t),c=r?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),p),u=Object.keys(defaults.elements[t]),h=l.resolveNamedOptions(d,u,()=>this.getContext(n,r,e),c);return h.$shared&&(h.$shared=s,o[i]=Object.freeze(cloneIfNotShared(h,s))),h}_resolveAnimations(t,e,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${e}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,e),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(t,n,e))}const l=new Animations(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||isDirectUpdateMode(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(e,o)||o!==r;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:i}}updateElement(t,e,n,r){isDirectUpdateMode(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!isDirectUpdateMode(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const o=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const r=n.length,o=e.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,e,n=!0){const r=this._cachedMeta,o=r.data,i=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=i;a--)t[a]=t[a-e]};for(s(o),a=t;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&clearStacks(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,r]=t;this[e](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function getAllScaleValues(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,o=n.length;e<o;e++)r=r.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=_arrayUnique(r.sort((t,e)=>t-e))}return t._cache.$bar}function computeMinSampleSize(t){const e=t.iScale,n=getAllScaleValues(e,t.type);let r,o,i,a,s=e._length;const l=()=>{32767!==i&&-32768!==i&&(defined(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=e.ticks.length;r<o;++r)i=e.getPixelForTick(r),l();return s}function computeFitCategoryTraits(t,e,n,r){const o=n.barThickness;let i,a;return isNullOrUndef(o)?(i=e.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}function computeFlexCategoryTraits(t,e,n,r){const o=e.pixels,i=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-a);const p=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:p}}function parseFloatBar(t,e,n,r){const o=n.parse(t[0],r),i=n.parse(t[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,p=s;Math.abs(a)>Math.abs(s)&&(l=s,p=a),e[n.axis]=p,e._custom={barStart:l,barEnd:p,start:o,end:i,min:a,max:s}}function parseValue(t,e,n,r){return isArray(t)?parseFloatBar(t,e,n,r):e[n.axis]=n.parse(t,r),e}function parseArrayOrPrimitive(t,e,n,r){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,l=[];let p,c,d,u;for(p=n,c=n+r;p<c;++p)u=e[p],d={},d[o.axis]=s||o.parse(a[p],p),l.push(parseValue(u,d,i,p));return l}function isFloatBar(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function barSign(t,e,n){return 0!==t?sign(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function borderProps(t){let e,n,r,o,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:e,top:o,bottom:i}}function setBorderSkipped(t,e,n,r){let o=e.borderSkipped;const i={};if(!o)return void(t.borderSkipped=i);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:p,bottom:c}=borderProps(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?o=p:(n._bottom||0)===r?o=c:(i[parseEdge(c,a,s,l)]=!0,o=p)),i[parseEdge(o,a,s,l)]=!0,t.borderSkipped=i}function parseEdge(t,e,n,r){return t=r?startEnd(t=swap(t,e,n),n,e):startEnd(t,e,n)}function swap(t,e,n){return t===e?n:t===n?e:t}function startEnd(t,e,n){return"start"===t?e:"end"===t?n:t}function setInflateAmount(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class BarController extends DatasetController{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,r){return parseArrayOrPrimitive(t,e,n,r)}parseArrayData(t,e,n,r){return parseArrayOrPrimitive(t,e,n,r)}parseObjectData(t,e,n,r){const{iScale:o,vScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,p="x"===i.axis?a:s,c=[];let d,u,h,b;for(d=n,u=n+r;d<u;++d)b=e[d],h={},h[o.axis]=o.parse(resolveObjectKey(b,l),d),c.push(parseValue(resolveObjectKey(b,p),h,i,d));return c}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:r}=e,o=this.getParsed(t),i=o._custom,a=isFloatBar(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),p=this._getRuler(),{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,r);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||isNullOrUndef(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),h=this._calculateBarIndexPixels(u,p),b=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!b||isFloatBar(e._custom)||i===b._top||i===b._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(m.options=c||this.resolveDataElementOptions(u,t[u].active?"active":r));const f=m.options||t[u].options;setBorderSkipped(m,f,b,i),setInflateAmount(m,f,p.ratio),this.updateElement(t[u],u,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(e),s=a&&a[n.axis],l=t=>{const e=t._parsed.find(t=>t[n.axis]===s),r=e&&e[t.vScale.axis];if(isNullOrUndef(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!l(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(n=>t[n].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[valueOrDefault("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,n){const r=this._getStacks(t,n),o=void 0!==e?r.indexOf(e):-1;return-1===o?r.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let o,i;for(o=0,i=e.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||computeMinSampleSize(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(t),l=s._custom,p=isFloatBar(l);let c,d,u=s[e.axis],h=0,b=n?this.applyStack(e,s,n):u;b!==u&&(h=b-u,b=u),p&&(u=l.barStart,b=l.barEnd-l.barStart,0!==u&&sign(u)!==sign(l.barEnd)&&(h=0),h+=u);const m=isNullOrUndef(o)||p?h:o;let f=e.getPixelForValue(m);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(h+b):f,d=c-f,Math.abs(d)<i){d=barSign(d,e,a)*i,u===a&&(f-=d/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),l=Math.min(t,o),h=Math.max(t,o);f=Math.max(Math.min(f,h),l),c=f+d,n&&!p&&(s._stacks[e.axis]._visualValues[r]=e.getValueForPixel(c)-e.getValueForPixel(f))}if(f===e.getPixelForValue(a)){const t=sign(d)*e.getLineWidthForValue(a)/2;f+=t,d-=t}return{size:d,base:f,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,o=r.skipNull,i=valueOrDefault(r.maxBarThickness,1/0);let a,s;const l=this._getAxisCount();if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,p="flex"===r.barThickness?computeFlexCategoryTraits(t,e,r,n*l):computeFitCategoryTraits(t,e,r,n*l),c="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(valueOrDefault(c,this.getFirstScaleIdForIndexAxis())),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+d;a=p.start+p.chunk*u+p.chunk/2,s=Math.min(i,p.chunk*p.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(i,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let o=0;for(;o<r;++o)null===this.getParsed(o)[e.axis]||n[o].hidden||n[o].draw(this._ctx)}}function getRatioAndOffset(t,e,n){let r=1,o=1,i=0,a=0;if(e<TAU){const s=t,l=s+e,p=Math.cos(s),c=Math.sin(s),d=Math.cos(l),u=Math.sin(l),h=(t,e,r)=>_angleBetween(t,s,l,!0)?1:Math.max(e,e*n,r,r*n),b=(t,e,r)=>_angleBetween(t,s,l,!0)?-1:Math.min(e,e*n,r,r*n),m=h(0,p,d),f=h(HALF_PI,c,u),g=b(PI,p,d),v=b(PI+HALF_PI,c,u);r=(m-g)/2,o=(f-v)/2,i=-(m+g)/2,a=-(f+v)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}class DoughnutController extends DatasetController{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:n,textAlign:r,color:o,useBorderRadius:i,borderRadius:a}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map((e,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(s),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:r,pointStyle:n,borderRadius:i&&(a||l.borderRadius),index:s}}):[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,i,a=t=>+n[t];if(isObject$1(n[t])){const{key:t="value"}=this._parsing;a=e=>+resolveObjectKey(n[e],t)}for(o=t,i=t+e;o<i;++o)r._parsed[o]=a(o)}}_getRotation(){return toRadians(this.options.rotation-90)}_getCircumference(){return toRadians(this.options.circumference)}_getRotationExtents(){let t=TAU,e=-TAU;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,o=r._getRotation(),i=r._getCircumference();t=Math.min(t,o),e=Math.max(e,o+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,r=this._cachedMeta,o=r.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min(toPercentage(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:p,rotation:c}=this._getRotationExtents(),{ratioX:d,ratioY:u,offsetX:h,offsetY:b}=getRatioAndOffset(c,p,s),m=(n.width-i)/d,f=(n.height-i)/u,g=Math.max(Math.min(m,f)/2,0),v=toDimension(this.options.radius,g),y=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*v,this.offsetY=b*v,r.total=this.calculateTotal(),this.outerRadius=v-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/TAU)}updateElements(t,e,n,r){const o="reset"===r,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,p=(a.top+a.bottom)/2,c=o&&s.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:h,includeOptions:b}=this._getSharedOptions(e,r);let m,f=this._getRotation();for(m=0;m<e;++m)f+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],i={x:l+this.offsetX,y:p+this.offsetY,startAngle:f,endAngle:f+e,circumference:e,outerRadius:u,innerRadius:d};b&&(i.options=h||this.resolveDataElementOptions(m,n.active?"active":r)),f+=e,this.updateElement(n,m,i,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,r=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(r+=Math.abs(o))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?TAU*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=formatNumber(e._parsed[t],n.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,o,i,a,s;if(!t)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),t=i.data,a=i.controller;break}if(!t)return 0;for(r=0,o=t.length;r<o;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,r=t.length;n<r;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(valueOrDefault(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class PieController extends DoughnutController{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function abstract(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class DateAdapterBase{static override(t){Object.assign(DateAdapterBase.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return abstract()}parse(){return abstract()}format(){return abstract()}add(){return abstract()}diff(){return abstract()}startOf(){return abstract()}endOf(){return abstract()}}var adapters={_date:DateAdapterBase};function binarySearch(t,e,n,r){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&"r"!==e&&a&&i.length){const a=s._reversePixels?_rlookupByKey:_lookupByKey;if(!r){const r=a(i,e,n);if(l){const{vScale:e}=o._cachedMeta,{_parsed:n}=t,i=n.slice(0,r.lo+1).reverse().findIndex(t=>!isNullOrUndef(t[e.axis]));r.lo-=Math.max(0,i);const a=n.slice(r.hi).findIndex(t=>!isNullOrUndef(t[e.axis]));r.hi+=Math.max(0,a)}return r}if(o._sharedOptions){const t=i[0],r="function"==typeof t.getRange&&t.getRange(e);if(r){const t=a(i,e,n-r),o=a(i,e,n+r);return{lo:t.lo,hi:o.hi}}}}return{lo:0,hi:i.length-1}}function evaluateInteractionItems(t,e,n,r,o){const i=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=i.length;t<n;++t){const{index:n,data:s}=i[t],{lo:l,hi:p}=binarySearch(i[t],e,a,o);for(let t=l;t<=p;++t){const e=s[t];e.skip||r(e,n,t)}}}function getDistanceMetricForAxis(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const o=e?Math.abs(t.x-r.x):0,i=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}function getIntersectItems(t,e,n,r,o){const i=[];if(!o&&!t.isPointInArea(e))return i;return evaluateInteractionItems(t,n,e,function(n,a,s){(o||_isPointInArea(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&i.push({element:n,datasetIndex:a,index:s})},!0),i}function getNearestRadialItems(t,e,n,r){let o=[];return evaluateInteractionItems(t,n,e,function(t,n,i){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],r),{angle:l}=getAngleFromPoint(t,{x:e.x,y:e.y});_angleBetween(l,a,s)&&o.push({element:t,datasetIndex:n,index:i})}),o}function getNearestCartesianItems(t,e,n,r,o,i){let a=[];const s=getDistanceMetricForAxis(n);let l=Number.POSITIVE_INFINITY;return evaluateInteractionItems(t,n,e,function(n,p,c){const d=n.inRange(e.x,e.y,o);if(r&&!d)return;const u=n.getCenterPoint(o);if(!(!!i||t.isPointInArea(u))&&!d)return;const h=s(e,u);h<l?(a=[{element:n,datasetIndex:p,index:c}],l=h):h===l&&a.push({element:n,datasetIndex:p,index:c})}),a}function getNearestItems(t,e,n,r,o,i){return i||t.isPointInArea(e)?"r"!==n||r?getNearestCartesianItems(t,e,n,r,o,i):getNearestRadialItems(t,e,n,o):[]}function getAxisItems(t,e,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return evaluateInteractionItems(t,n,e,(t,r,l)=>{t[a]&&t[a](e[n],o)&&(i.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,o))}),r&&!s?[]:i}var Interaction={modes:{index(t,e,n,r){const o=getRelativePosition(e,t),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?getIntersectItems(t,o,i,r,a):getNearestItems(t,o,i,!1,r,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,r){const o=getRelativePosition(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?getIntersectItems(t,o,i,r,a):getNearestItems(t,o,i,!1,r,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,r)=>getIntersectItems(t,getRelativePosition(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const o=getRelativePosition(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return getNearestItems(t,o,i,n.intersect,r,a)},x:(t,e,n,r)=>getAxisItems(t,getRelativePosition(e,t),"x",n.intersect,r),y:(t,e,n,r)=>getAxisItems(t,getRelativePosition(e,t),"y",n.intersect,r)}};const STATIC_POSITIONS=["left","top","right","bottom"];function filterByPosition(t,e){return t.filter(t=>t.pos===e)}function filterDynamicPositionByAxis(t,e){return t.filter(t=>-1===STATIC_POSITIONS.indexOf(t.pos)&&t.box.axis===e)}function sortByWeight(t,e){return t.sort((t,n)=>{const r=e?n:t,o=e?t:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function wrapBoxes(t){const e=[];let n,r,o,i,a,s;for(n=0,r=(t||[]).length;n<r;++n)o=t[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}function buildStacks(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:o}=n;if(!t||!STATIC_POSITIONS.includes(r))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return e}function setLayoutDims(t,e){const n=buildStacks(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:a}=s.box,l=n[s.stack],p=l&&s.stackWeight/l.weight;s.horizontal?(s.width=p?p*r:a&&e.availableWidth,s.height=o):(s.width=r,s.height=p?p*o:a&&e.availableHeight)}return n}function buildLayoutBoxes(t){const e=wrapBoxes(t),n=sortByWeight(e.filter(t=>t.box.fullSize),!0),r=sortByWeight(filterByPosition(e,"left"),!0),o=sortByWeight(filterByPosition(e,"right")),i=sortByWeight(filterByPosition(e,"top"),!0),a=sortByWeight(filterByPosition(e,"bottom")),s=filterDynamicPositionByAxis(e,"x"),l=filterDynamicPositionByAxis(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:filterByPosition(e,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}function getCombinedMax(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function updateMaxPadding(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function updateDims(t,e,n,r){const{pos:o,box:i}=n,a=t.maxPadding;if(!isObject$1(o)){n.size&&(t[o]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?i.height:i.width),n.size=e.size/e.count,t[o]+=n.size}i.getPadding&&updateMaxPadding(a,i.getPadding());const s=Math.max(0,e.outerWidth-getCombinedMax(a,t,"left","right")),l=Math.max(0,e.outerHeight-getCombinedMax(a,t,"top","bottom")),p=s!==t.w,c=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:p,other:c}:{same:c,other:p}}function handleMaxPadding(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function getMargins(t,e){const n=e.maxPadding;function r(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{r[t]=Math.max(e[t],n[t])}),r}return r(t?["left","right"]:["top","bottom"])}function fitBoxes(t,e,n,r){const o=[];let i,a,s,l,p,c;for(i=0,a=t.length,p=0;i<a;++i){s=t[i],l=s.box,l.update(s.width||e.w,s.height||e.h,getMargins(s.horizontal,e));const{same:a,other:d}=updateDims(e,n,s,r);p|=a&&o.length,c=c||d,l.fullSize||o.push(s)}return p&&fitBoxes(o,e,n,r)||c}function setBoxDims(t,e,n,r,o){t.top=n,t.left=e,t.right=e+r,t.bottom=n+o,t.width=r,t.height=o}function placeBoxes(t,e,n,r){const o=n.padding;let{x:i,y:a}=e;for(const s of t){const t=s.box,l=r[s.stack]||{placed:0,weight:1},p=s.stackWeight/l.weight||1;if(s.horizontal){const r=e.w*p,i=l.size||t.height;defined(l.start)&&(a=l.start),t.fullSize?setBoxDims(t,o.left,a,n.outerWidth-o.right-o.left,i):setBoxDims(t,e.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*p,a=l.size||t.width;defined(l.start)&&(i=l.start),t.fullSize?setBoxDims(t,i,o.top,a,n.outerHeight-o.bottom-o.top):setBoxDims(t,i,e.top+l.placed,a,r),l.start=i,l.placed+=r,i=t.right}}e.x=i,e.y=a}var layouts={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const o=toPadding(t.options.layout.padding),i=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=buildLayoutBoxes(t.boxes),l=s.vertical,p=s.horizontal;each(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const c=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},o);updateMaxPadding(u,toPadding(r));const h=Object.assign({maxPadding:u,w:i,h:a,x:o.left,y:o.top},o),b=setLayoutDims(l.concat(p),d);fitBoxes(s.fullSize,h,d,b),fitBoxes(l,h,d,b),fitBoxes(p,h,d,b)&&fitBoxes(l,h,d,b),handleMaxPadding(h),placeBoxes(s.leftAndTop,h,d,b),h.x+=h.w,h.y+=h.h,placeBoxes(s.rightAndBottom,h,d,b),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},each(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class BasePlatform{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class BasicPlatform extends BasePlatform{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const EXPANDO_KEY="$chartjs",EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},isNullOrEmpty=t=>null===t||""===t;function initCanvas(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[EXPANDO_KEY]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",isNullOrEmpty(o)){const e=readUsedSize(t,"width");void 0!==e&&(t.width=e)}if(isNullOrEmpty(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=readUsedSize(t,"height");void 0!==e&&(t.height=e)}return t}const eventListenerOptions=!!supportsEventListenerOptions&&{passive:!0};function addListener(t,e,n){t&&t.addEventListener(e,n,eventListenerOptions)}function removeListener(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,eventListenerOptions)}function fromNativeEvent(t,e){const n=EVENT_TYPES[t.type]||t.type,{x:r,y:o}=getRelativePosition(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==o?o:null}}function nodeListContains(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function createAttachObserver(t,e,n){const r=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||nodeListContains(n.addedNodes,r),e=e&&!nodeListContains(n.removedNodes,r);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function createDetachObserver(t,e,n){const r=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||nodeListContains(n.removedNodes,r),e=e&&!nodeListContains(n.addedNodes,r);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const drpListeningCharts=new Map;let oldDevicePixelRatio=0;function onWindowResize(){const t=window.devicePixelRatio;t!==oldDevicePixelRatio&&(oldDevicePixelRatio=t,drpListeningCharts.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function listenDevicePixelRatioChanges(t,e){drpListeningCharts.size||window.addEventListener("resize",onWindowResize),drpListeningCharts.set(t,e)}function unlistenDevicePixelRatioChanges(t){drpListeningCharts.delete(t),drpListeningCharts.size||window.removeEventListener("resize",onWindowResize)}function createResizeObserver(t,e,n){const r=t.canvas,o=r&&_getParentNode(r);if(!o)return;const i=throttled((t,e)=>{const r=o.clientWidth;n(t,e),r<o.clientWidth&&n()},window),a=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||i(n,r)});return a.observe(o),listenDevicePixelRatioChanges(t,i),a}function releaseObserver(t,e,n){n&&n.disconnect(),"resize"===e&&unlistenDevicePixelRatioChanges(t)}function createProxyAndListen(t,e,n){const r=t.canvas,o=throttled(e=>{null!==t.ctx&&n(fromNativeEvent(e,t))},t);return addListener(r,e,o),o}class DomPlatform extends BasePlatform{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(initCanvas(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[EXPANDO_KEY])return!1;const n=e[EXPANDO_KEY].initial;["height","width"].forEach(t=>{const r=n[t];isNullOrUndef(r)?e.removeAttribute(t):e.setAttribute(t,r)});const r=n.style||{};return Object.keys(r).forEach(t=>{e.style[t]=r[t]}),e.width=e.width,delete e[EXPANDO_KEY],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),o={attach:createAttachObserver,detach:createDetachObserver,resize:createResizeObserver}[e]||createProxyAndListen;r[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];if(!r)return;({attach:releaseObserver,detach:releaseObserver,resize:releaseObserver}[e]||removeListener)(t,e,r),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return getMaximumSize(t,e,n,r)}isAttached(t){const e=t&&_getParentNode(t);return!(!e||!e.isConnected)}}function _detectPlatform(t){return!_isDomSupported()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?BasicPlatform:DomPlatform}class Element{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return isNumber(this.x)&&isNumber(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach(t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),r}}function autoSkip(t,e){const n=t.options.ticks,r=determineMaxTicks(t),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?getMajorIndices(e):[],a=i.length,s=i[0],l=i[a-1],p=[];if(a>o)return skipMajors(e,p,i,a/o),p;const c=calculateSpacing(i,e,o);if(a>0){let t,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(skip(e,p,c,isNullOrUndef(r)?0:s-r,s),t=0,n=a-1;t<n;t++)skip(e,p,c,i[t],i[t+1]);return skip(e,p,c,l,isNullOrUndef(r)?e.length:l+r),p}return skip(e,p,c),p}function determineMaxTicks(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(r,o))}function calculateSpacing(t,e,n){const r=getEvenSpacing(t),o=e.length/n;if(!r)return Math.max(o,1);const i=_factorize(r);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>o)return e}return Math.max(o,1)}function getMajorIndices(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function skipMajors(t,e,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),i++,a=n[i*r])}function skip(t,e,n,r,o){const i=valueOrDefault(r,0),a=Math.min(valueOrDefault(o,t.length),t.length);let s,l,p,c=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),p=i;p<0;)c++,p=Math.round(i+c*n);for(l=Math.max(i,0);l<a;l++)l===p&&(e.push(t[l]),c++,p=Math.round(i+c*n))}function getEvenSpacing(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const reverseAlign=t=>"left"===t?"right":"right"===t?"left":t,offsetFromEdge=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,getTicksLimit=(t,e)=>Math.min(e||t,t);function sample(t,e){const n=[],r=t.length/e,o=t.length;let i=0;for(;i<o;i+=r)n.push(t[Math.floor(i)]);return n}function getPixelForGridLine(t,e,n){const r=t.ticks.length,o=Math.min(e,r-1),i=t._startPixel,a=t._endPixel,s=1e-6;let l,p=t.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(p-i,a-p):0===e?(t.getPixelForTick(1)-p)/2:(p-t.getPixelForTick(o-1))/2,p+=o<e?l:-l,p<i-s||p>a+s)))return p}function garbageCollect(t,e){each(t,t=>{const n=t.gc,r=n.length/2;let o;if(r>e){for(o=0;o<r;++o)delete t.data[n[o]];n.splice(0,r)}})}function getTickMarkLength(t){return t.drawTicks?t.tickLength:0}function getTitleHeight(t,e){if(!t.display)return 0;const n=toFont(t.font,e),r=toPadding(t.padding);return(isArray(t.text)?t.text.length:1)*n.lineHeight+r.height}function createScaleContext(t,e){return createContext(t,{scale:e,type:"scale"})}function createTickContext(t,e,n){return createContext(t,{tick:n,index:e,type:"tick"})}function titleAlign(t,e,n){let r=_toLeftRightCenter(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=reverseAlign(r)),r}function titleArgs(t,e,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=t,{chartArea:p,scales:c}=l;let d,u,h,b=0;const m=a-o,f=s-i;if(t.isHorizontal()){if(u=_alignStartEnd(r,i,s),isObject$1(n)){const t=Object.keys(n)[0],r=n[t];h=c[t].getPixelForValue(r)+m-e}else h="center"===n?(p.bottom+p.top)/2+m-e:offsetFromEdge(t,n,e);d=s-i}else{if(isObject$1(n)){const t=Object.keys(n)[0],r=n[t];u=c[t].getPixelForValue(r)-f+e}else u="center"===n?(p.left+p.right)/2-f+e:offsetFromEdge(t,n,e);h=_alignStartEnd(r,a,o),b="left"===n?-HALF_PI:HALF_PI}return{titleX:u,titleY:h,maxWidth:d,rotation:b}}class Scale extends Element{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:r}=this;return t=finiteOrDefault(t,Number.POSITIVE_INFINITY),e=finiteOrDefault(e,Number.NEGATIVE_INFINITY),n=finiteOrDefault(n,Number.POSITIVE_INFINITY),r=finiteOrDefault(r,Number.NEGATIVE_INFINITY),{min:finiteOrDefault(t,n),max:finiteOrDefault(e,r),minDefined:isNumberFinite(t),maxDefined:isNumberFinite(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),i||(r=Math.max(r,e.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:finiteOrDefault(n,finiteOrDefault(r,n)),max:finiteOrDefault(r,finiteOrDefault(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){callback(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_addGrace(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?sample(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=autoSkip(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){callback(this.options.afterUpdate,[this])}beforeSetDimensions(){callback(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){callback(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),callback(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){callback(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,r,o;for(n=0,r=t.length;n<r;n++)o=t[n],o.label=callback(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){callback(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){callback(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=getTicksLimit(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,o=e.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!e.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const p=this._getLabelSizes(),c=p.widest.width,d=p.highest.height,u=_limitValue(this.chart.width-c,0,this.maxWidth);i=t.offset?this.maxWidth/n:u/(n-1),c+6>i&&(i=u/(n-(t.offset?.5:1)),a=this.maxHeight-getTickMarkLength(t.grid)-e.padding-getTitleHeight(t.title,this.chart.options.font),s=Math.sqrt(c*c+d*d),l=toDegrees(Math.min(Math.asin(_limitValue((p.highest.height+6)/i,-1,1)),Math.asin(_limitValue(a/s,-1,1))-Math.asin(_limitValue(d/s,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){callback(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=getTitleHeight(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=getTickMarkLength(o)+i):(t.height=this.maxHeight,t.width=getTickMarkLength(o)+i),n.display&&this.ticks.length){const{first:e,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=toRadians(this.labelRotation),p=Math.cos(l),c=Math.sin(l);if(a){const e=n.mirror?0:c*o.width+p*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:p*o.width+c*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,r,c,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,r){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;s?l?(c=r*t.width,d=n*e.height):(c=n*t.height,d=r*e.width):"start"===o?d=e.width:"end"===o?c=t.width:"inner"!==o&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-p+i)*this.width/(this.width-p),0)}else{let n=e.height/2,r=t.height/2;"start"===o?(n=0,r=t.height):"end"===o&&(n=e.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){callback(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)isNullOrUndef(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=sample(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:r,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(e/getTicksLimit(e,n));let l,p,c,d,u,h,b,m,f,g,v,y=0,x=0;for(l=0;l<e;l+=s){if(d=t[l].label,u=this._resolveTickFontOptions(l),r.font=h=u.string,b=o[h]=o[h]||{data:{},gc:[]},m=u.lineHeight,f=g=0,isNullOrUndef(d)||isArray(d)){if(isArray(d))for(p=0,c=d.length;p<c;++p)v=d[p],isNullOrUndef(v)||isArray(v)||(f=_measureText(r,b.data,b.gc,f,v),g+=m)}else f=_measureText(r,b.data,b.gc,f,d),g=m;i.push(f),a.push(g),y=Math.max(f,y),x=Math.max(g,x)}garbageCollect(o,e);const w=i.indexOf(y),k=a.indexOf(x),_=t=>({width:i[t]||0,height:a[t]||0});return{first:_(0),last:_(e-1),widest:_(w),highest:_(k),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return _int16Range(this._alignToPixels?_alignPixel(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=createTickContext(this.getContext(),t,n))}return this.$context||(this.$context=createScaleContext(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=toRadians(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),o=this._getLabelSizes(),i=t.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,r=this.options,{grid:o,position:i,border:a}=r,s=o.offset,l=this.isHorizontal(),p=this.ticks.length+(s?1:0),c=getTickMarkLength(o),d=[],u=a.setContext(this.getContext()),h=u.display?u.width:0,b=h/2,m=function(t){return _alignPixel(n,t,h)};let f,g,v,y,x,w,k,_,S,C,E,P;if("top"===i)f=m(this.bottom),w=this.bottom-c,_=f-b,C=m(t.top)+b,P=t.bottom;else if("bottom"===i)f=m(this.top),C=t.top,P=m(t.bottom)-b,w=f+b,_=this.top+c;else if("left"===i)f=m(this.right),x=this.right-c,k=f-b,S=m(t.left)+b,E=t.right;else if("right"===i)f=m(this.left),S=t.left,E=m(t.right)-b,x=f+b,k=this.left+c;else if("x"===e){if("center"===i)f=m((t.top+t.bottom)/2+.5);else if(isObject$1(i)){const t=Object.keys(i)[0],e=i[t];f=m(this.chart.scales[t].getPixelForValue(e))}C=t.top,P=t.bottom,w=f+b,_=w+c}else if("y"===e){if("center"===i)f=m((t.left+t.right)/2);else if(isObject$1(i)){const t=Object.keys(i)[0],e=i[t];f=m(this.chart.scales[t].getPixelForValue(e))}x=f-b,k=x-c,S=t.left,E=t.right}const A=valueOrDefault(r.ticks.maxTicksLimit,p),T=Math.max(1,Math.ceil(p/A));for(g=0;g<p;g+=T){const t=this.getContext(g),e=o.setContext(t),r=a.setContext(t),i=e.lineWidth,p=e.color,c=r.dash||[],u=r.dashOffset,h=e.tickWidth,b=e.tickColor,m=e.tickBorderDash||[],f=e.tickBorderDashOffset;v=getPixelForGridLine(this,g,s),void 0!==v&&(y=_alignPixel(n,v,i),l?x=k=S=E=y:w=_=C=P=y,d.push({tx1:x,ty1:w,tx2:k,ty2:_,x1:S,y1:C,x2:E,y2:P,width:i,color:p,borderDash:c,borderDashOffset:u,tickWidth:h,tickColor:b,tickBorderDash:m,tickBorderDashOffset:f}))}return this._ticksLength=p,this._borderValue=f,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:p,mirror:c}=o,d=getTickMarkLength(n.grid),u=d+p,h=c?-p:u,b=-toRadians(this.labelRotation),m=[];let f,g,v,y,x,w,k,_,S,C,E,P,A="middle";if("top"===r)w=this.bottom-h,k=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,k=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,x=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,x=t.x}else if("x"===e){if("center"===r)w=(t.top+t.bottom)/2+u;else if(isObject$1(r)){const t=Object.keys(r)[0],e=r[t];w=this.chart.scales[t].getPixelForValue(e)+u}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)x=(t.left+t.right)/2-u;else if(isObject$1(r)){const t=Object.keys(r)[0],e=r[t];x=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===s?A="top":"end"===s&&(A="bottom"));const T=this._getLabelSizes();for(f=0,g=a.length;f<g;++f){v=a[f],y=v.label;const t=o.setContext(this.getContext(f));_=this.getPixelForTick(f)+o.labelOffset,S=this._resolveTickFontOptions(f),C=S.lineHeight,E=isArray(y)?y.length:1;const e=E/2,n=t.color,s=t.textStrokeColor,p=t.textStrokeWidth;let d,u=k;if(i?(x=_,"inner"===k&&(u=f===g-1?this.options.reverse?"left":"right":0===f?this.options.reverse?"right":"left":"center"),P="top"===r?"near"===l||0!==b?-E*C+C/2:"center"===l?-T.highest.height/2-e*C+C:-T.highest.height+C/2:"near"===l||0!==b?C/2:"center"===l?T.highest.height/2-e*C:T.highest.height-E*C,c&&(P*=-1),0===b||t.showLabelBackdrop||(x+=C/2*Math.sin(b))):(w=_,P=(1-E)*C/2),t.showLabelBackdrop){const e=toPadding(t.backdropPadding),n=T.heights[f],r=T.widths[f];let o=P-e.top,i=0-e.left;switch(A){case"middle":o-=n/2;break;case"bottom":o-=n}switch(k){case"center":i-=r/2;break;case"right":i-=r;break;case"inner":f===g-1?i-=r:f>0&&(i-=r/2)}d={left:i,top:o,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:y,font:S,textOffset:P,options:{rotation:b,color:n,strokeColor:s,strokeWidth:p,textAlign:u,textBaseline:A,translation:[x,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-toRadians(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?r?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?r?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:r,width:o,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,o,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,i;const a=(t,e,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,i=r.length;o<i;++o){const t=r[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:r}}=this,o=n.setContext(this.getContext()),i=n.display?o.width:0;if(!i)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,p,c,d;this.isHorizontal()?(l=_alignPixel(t,this.left,i)-i/2,p=_alignPixel(t,this.right,a)+a/2,c=d=s):(c=_alignPixel(t,this.top,i)-i/2,d=_alignPixel(t,this.bottom,a)+a/2,l=p=s),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(l,c),e.lineTo(p,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&clipArea(e,n);const r=this.getLabelItems(t);for(const t of r){const n=t.options,r=t.font;renderText(e,t.label,0,t.textOffset,r,n)}n&&unclipArea(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const o=toFont(n.font),i=toPadding(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||isObject$1(e)?(s+=i.bottom,isArray(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:p,maxWidth:c,rotation:d}=titleArgs(this,s,e,a);renderText(t,n.text,0,0,o,{color:n.color,maxWidth:c,rotation:d,textAlign:titleAlign(a,e,r),textBaseline:"middle",translation:[l,p]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=valueOrDefault(t.grid&&t.grid.z,-1),r=valueOrDefault(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Scale.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=e.length;o<i;++o){const i=e[o];i[n]!==this.id||t&&i.type!==t||r.push(i)}return r}_resolveTickFontOptions(t){return toFont(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class TypedRegistry{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;isIChartComponent(e)&&(n=this.register(e));const r=this.items,o=t.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,registerDefaults(t,i,n),this.override&&defaults.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in defaults[r]&&(delete defaults[r][n],this.override&&delete overrides[n])}}function registerDefaults(t,e,n){const r=merge(Object.create(null),[n?defaults.get(n):{},defaults.get(e),t.defaults]);defaults.set(e,r),t.defaultRoutes&&routeDefaults(e,t.defaultRoutes),t.descriptors&&defaults.describe(e,t.descriptors)}function routeDefaults(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),o=r.pop(),i=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");defaults.route(i,o,l,s)})}function isIChartComponent(t){return"id"in t&&"defaults"in t}class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):each(e,e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)})})}_exec(t,e,n){const r=_capitalize(t);callback(n["before"+r],[],n),e[t](n),callback(n["after"+r],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}var registry=new Registry;class PluginService{constructor(){this._init=void 0}notify(t,e,n,r){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const o=r?this._descriptors(t).filter(r):this._descriptors(t),i=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),i}_notify(t,e,n,r){r=r||{};for(const o of t){const t=o.plugin;if(!1===callback(t[n],[e,r,o.options],t)&&r.cancelable)return!1}return!0}invalidate(){isNullOrUndef(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,r=valueOrDefault(n.options&&n.options.plugins,{}),o=allPlugins(n);return!1!==r||e?createDescriptors(t,o,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function allPlugins(t){const e={},n=[],r=Object.keys(registry.plugins.items);for(let t=0;t<r.length;t++)n.push(registry.getPlugin(r[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const r=o[t];-1===n.indexOf(r)&&(n.push(r),e[r.id]=!0)}return{plugins:n,localIds:e}}function getOpts(t,e){return e||!1!==t?!0===t?{}:t:null}function createDescriptors(t,{plugins:e,localIds:n},r,o){const i=[],a=t.getContext();for(const s of e){const e=s.id,l=getOpts(r[e],o);null!==l&&i.push({plugin:s,options:pluginOpts(t.config,{plugin:s,local:n[e]},l,a)})}return i}function pluginOpts(t,{plugin:e,local:n},r,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(r,i);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function getIndexAxis(t,e){const n=defaults.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function getAxisFromDefaultScaleID(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}function getDefaultScaleIDFromAxis(t,e){return t===e?"_index_":"_value_"}function idMatchesAxis(t){if("x"===t||"y"===t||"r"===t)return t}function axisFromPosition(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function determineAxis(t,...e){if(idMatchesAxis(t))return t;for(const n of e){const e=n.axis||axisFromPosition(n.position)||t.length>1&&idMatchesAxis(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function getAxisFromDataset(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function retrieveAxisFromDatasets(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(n.length)return getAxisFromDataset(t,"x",n[0])||getAxisFromDataset(t,"y",n[0])}return{}}function mergeScaleConfig(t,e){const n=overrides[t.type]||{scales:{}},r=e.scales||{},o=getIndexAxis(t.type,e),i=Object.create(null);return Object.keys(r).forEach(e=>{const a=r[e];if(!isObject$1(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=determineAxis(e,a,retrieveAxisFromDatasets(e,t),defaults.scales[a.type]),l=getDefaultScaleIDFromAxis(s,o),p=n.scales||{};i[e]=mergeIf(Object.create(null),[{axis:s},a,p[s],p[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,a=n.indexAxis||getIndexAxis(o,e),s=(overrides[o]||{}).scales||{};Object.keys(s).forEach(t=>{const e=getAxisFromDefaultScaleID(t,a),o=n[e+"AxisID"]||e;i[o]=i[o]||Object.create(null),mergeIf(i[o],[{axis:e},r[o],s[t]])})}),Object.keys(i).forEach(t=>{const e=i[t];mergeIf(e,[defaults.scales[e.type],defaults.scale])}),i}function initOptions(t){const e=t.options||(t.options={});e.plugins=valueOrDefault(e.plugins,{}),e.scales=mergeScaleConfig(t,e)}function initData(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}function initConfig(t){return(t=t||{}).data=initData(t.data),initOptions(t),t}const keyCache=new Map,keysCached=new Set;function cachedKeys(t,e){let n=keyCache.get(t);return n||(n=e(),keyCache.set(t,n),keysCached.add(n)),n}const addIfFound=(t,e,n)=>{const r=resolveObjectKey(e,n);void 0!==r&&t.add(r)};class Config{constructor(t){this._config=initConfig(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=initData(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),initOptions(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cachedKeys(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return cachedKeys(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return cachedKeys(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return cachedKeys(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const{options:r,type:o}=this,i=this._cachedScopes(t,n),a=i.get(e);if(a)return a;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>addIfFound(s,t,e))),e.forEach(t=>addIfFound(s,r,t)),e.forEach(t=>addIfFound(s,overrides[o]||{},t)),e.forEach(t=>addIfFound(s,defaults,t)),e.forEach(t=>addIfFound(s,descriptors,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),keysCached.has(e)&&i.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,overrides[e]||{},defaults.datasets[e]||{},{type:e},defaults,descriptors]}resolveNamedOptions(t,e,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=getResolver(this._resolverCache,t,r);let s=i;if(needContext(i,e)){o.$shared=!1;s=_attachContext(i,n=isFunction(n)?n():n,this.createResolver(t,n,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],r){const{resolver:o}=getResolver(this._resolverCache,t,n);return isObject$1(e)?_attachContext(o,e,void 0,r):o}}function getResolver(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let i=r.get(o);if(!i){i={resolver:_createResolver(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},r.set(o,i)}return i}const hasFunction=t=>isObject$1(t)&&Object.getOwnPropertyNames(t).some(e=>isFunction(t[e]));function needContext(t,e){const{isScriptable:n,isIndexable:r}=_descriptors(t);for(const o of e){const e=n(o),i=r(o),a=(i||e)&&t[o];if(e&&(isFunction(a)||hasFunction(a))||i&&isArray(a))return!0}return!1}var version="4.5.1";const KNOWN_POSITIONS=["top","bottom","left","right","chartArea"];function positionIsHorizontal(t,e){return"top"===t||"bottom"===t||-1===KNOWN_POSITIONS.indexOf(t)&&"x"===e}function compare2Level(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function onAnimationsComplete(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),callback(n&&n.onComplete,[t],e)}function onAnimationProgress(t){const e=t.chart,n=e.options.animation;callback(n&&n.onProgress,[t],e)}function getCanvas(t){return _isDomSupported()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const instances={},getChart=t=>{const e=getCanvas(t);return Object.values(instances).filter(t=>t.canvas===e).pop()};function moveNumericKeys(t,e,n){const r=Object.keys(t);for(const o of r){const r=+o;if(r>=e){const i=t[o];delete t[o],(n>0||r>e)&&(t[r+n]=i)}}}function determineLastEvent(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}class Chart{static defaults=defaults;static instances=instances;static overrides=overrides;static registry=registry;static version=version;static getChart=getChart;static register(...t){registry.add(...t),invalidatePlugins()}static unregister(...t){registry.remove(...t),invalidatePlugins()}constructor(t,e){const n=this.config=new Config(e),r=getCanvas(t),o=getChart(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||_detectPlatform(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,p=s&&s.width;this.id=uid(),this.ctx=a,this.canvas=s,this.width=p,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=debounce(t=>this.update(t),i.resizeDelay||0),this._dataChanges=[],instances[this.id]=this,a&&s?(animator.listen(this,"complete",onAnimationsComplete),animator.listen(this,"progress",onAnimationProgress),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:o}=this;return isNullOrUndef(t)?e&&o?o:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return registry}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return clearCanvas(this.canvas,this.ctx),this}stop(){return animator.stop(this),this}resize(t,e){animator.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,retinaScale(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),callback(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){each(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],r=determineAxis(t,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}}))),each(o,e=>{const o=e.options,i=o.id,a=determineAxis(i,o),s=valueOrDefault(o.type,e.dtype);void 0!==o.position&&positionIsHorizontal(o.position,a)===positionIsHorizontal(e.dposition)||(o.position=e.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(registry.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),each(r,(t,e)=>{t||delete n[e]}),each(n,t=>{layouts.configure(this,t,t.options),layouts.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(compare2Level("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n<r;n++){const r=e[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||getIndexAxis(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=registry.getController(i),{datasetElementType:r,dataElementType:a}=defaults.datasets[i];Object.assign(e,{dataElementType:registry.getElement(a),datasetElementType:r&®istry.getElement(r)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){each(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===o.indexOf(e);e.buildOrUpdateElements(n),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||each(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(compare2Level("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){each(this.scales,t=>{layouts.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);setsEqual(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of e){moveNumericKeys(t,r,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),r=n(0);for(let t=1;t<e;t++)if(!setsEqual(r,n(t)))return;return Array.from(r).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;layouts.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],each(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,isFunction(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(animator.has(this)?this.attached&&!animator.running(this)&&animator.start(this):(this.draw(),onAnimationsComplete({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},r=getDatasetClipArea(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(r&&clipArea(e,r),t.controller.draw(),r&&unclipArea(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return _isPointInArea(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const o=Interaction.modes[e];return"function"==typeof o?o(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter(t=>t&&t._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=createContext(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",o=this.getDatasetMeta(t),i=o.controller._resolveAnimations(void 0,r);defined(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),i.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),animator.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),clearCanvas(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete instances[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};each(this.options.events,t=>n(t,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():i()}unbindEvents(){each(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},each(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){i=t[a];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!_elementsEqual(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,n){const r=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),i=o(e,t),a=n?t:o(t,e);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:o}=this,i=e,a=this._getActiveElements(t,r,n,i),s=_isClickEvent(t),l=determineLastEvent(t,this._lastEvent,n,s);n&&(this._lastEvent=null,callback(o.onHover,[t,a,this],this),s&&callback(o.onClick,[t,a,this],this));const p=!_elementsEqual(a,r);return(p||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,p}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}}function invalidatePlugins(){return each(Chart.instances,t=>t._plugins.invalidate())}function clipSelf(t,e,n){const{startAngle:r,x:o,y:i,outerRadius:a,innerRadius:s,options:l}=e,{borderWidth:p,borderJoinStyle:c}=l,d=Math.min(p/a,_normalizeAngle(r-n));if(t.beginPath(),t.arc(o,i,a-p/2,r+d/2,n-d/2),s>0){const e=Math.min(p/s,_normalizeAngle(r-n));t.arc(o,i,s+p/2,n-e/2,r+e/2,!0)}else{const e=Math.min(p/2,a*_normalizeAngle(r-n));if("round"===c)t.arc(o,i,e,n-PI/2,r+PI/2,!0);else if("bevel"===c){const a=2*e*e,s=-a*Math.cos(n+PI/2)+o,l=-a*Math.sin(n+PI/2)+i,p=a*Math.cos(r+PI/2)+o,c=a*Math.sin(r+PI/2)+i;t.lineTo(s,l),t.lineTo(p,c)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function clipArc(t,e,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:l}=e;let p=o/s;t.beginPath(),t.arc(i,a,s,r-p,n+p),l>o?(p=o/l,t.arc(i,a,l,n+p,r-p,!0)):t.arc(i,a,o,n+HALF_PI,r-HALF_PI),t.closePath(),t.clip()}function toRadiusCorners(t){return _readValueToProps(t,["outerStart","outerEnd","innerStart","innerEnd"])}function parseBorderRadius$1(t,e,n,r){const o=toRadiusCorners(t.options.borderRadius),i=(n-e)/2,a=Math.min(i,r*e/2),s=t=>{const e=(n-Math.min(i,t))*r/2;return _limitValue(t,0,Math.min(i,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:_limitValue(o.innerStart,0,a),innerEnd:_limitValue(o.innerEnd,0,a)}}function rThetaToXY(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function pathArc(t,e,n,r,o,i){const{x:a,y:s,startAngle:l,pixelMargin:p,innerRadius:c}=e,d=Math.max(e.outerRadius+r+n-p,0),u=c>0?c+r+n+p:0;let h=0;const b=o-l;if(r){const t=((c>0?c-r:0)+(d>0?d-r:0))/2;h=(b-(0!==t?b*t/(t+r):b))/2}const m=(b-Math.max(.001,b*d-n/PI)/d)/2,f=l+m+h,g=o-m-h,{outerStart:v,outerEnd:y,innerStart:x,innerEnd:w}=parseBorderRadius$1(e,u,d,g-f),k=d-v,_=d-y,S=f+v/k,C=g-y/_,E=u+x,P=u+w,A=f+x/E,T=g-w/P;if(t.beginPath(),i){const e=(S+C)/2;if(t.arc(a,s,d,S,e),t.arc(a,s,d,e,C),y>0){const e=rThetaToXY(_,C,a,s);t.arc(e.x,e.y,y,C,g+HALF_PI)}const n=rThetaToXY(P,g,a,s);if(t.lineTo(n.x,n.y),w>0){const e=rThetaToXY(P,T,a,s);t.arc(e.x,e.y,w,g+HALF_PI,T+Math.PI)}const r=(g-w/u+(f+x/u))/2;if(t.arc(a,s,u,g-w/u,r,!0),t.arc(a,s,u,r,f+x/u,!0),x>0){const e=rThetaToXY(E,A,a,s);t.arc(e.x,e.y,x,A+Math.PI,f-HALF_PI)}const o=rThetaToXY(k,f,a,s);if(t.lineTo(o.x,o.y),v>0){const e=rThetaToXY(k,S,a,s);t.arc(e.x,e.y,v,f-HALF_PI,S)}}else{t.moveTo(a,s);const e=Math.cos(S)*d+a,n=Math.sin(S)*d+s;t.lineTo(e,n);const r=Math.cos(C)*d+a,o=Math.sin(C)*d+s;t.lineTo(r,o)}t.closePath()}function drawArc(t,e,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=e;let l=e.endAngle;if(i){pathArc(t,e,n,r,l,o);for(let e=0;e<i;++e)t.fill();isNaN(s)||(l=a+(s%TAU||TAU))}return pathArc(t,e,n,r,l,o),t.fill(),l}function drawBorder(t,e,n,r,o){const{fullCircles:i,startAngle:a,circumference:s,options:l}=e,{borderWidth:p,borderJoinStyle:c,borderDash:d,borderDashOffset:u,borderRadius:h}=l,b="inner"===l.borderAlign;if(!p)return;t.setLineDash(d||[]),t.lineDashOffset=u,b?(t.lineWidth=2*p,t.lineJoin=c||"round"):(t.lineWidth=p,t.lineJoin=c||"bevel");let m=e.endAngle;if(i){pathArc(t,e,n,r,m,o);for(let e=0;e<i;++e)t.stroke();isNaN(s)||(m=a+(s%TAU||TAU))}b&&clipArc(t,e,m),l.selfJoin&&m-a>=PI&&0===h&&"miter"!==c&&clipSelf(t,e,m),i||(pathArc(t,e,n,r,m,o),t.stroke())}class ArcElement extends Element{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=getAngleFromPoint(r,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:p,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,u=valueOrDefault(c,s-a),h=_angleBetween(o,a,s)&&a!==s,b=u>=TAU||h,m=_isBetween(i,l+d,p+d);return b&&m}getCenterPoint(t){const{x:e,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,p=(r+o)/2,c=(i+a+l+s)/2;return{x:e+Math.cos(p)*c,y:n+Math.sin(p)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,i=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>TAU?Math.floor(n/TAU):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min(PI,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,drawArc(t,this,s,o,i),drawBorder(t,this,s,o,i),t.restore()}}function getBarBounds(t,e){const{x:n,y:r,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,p,c,d;return t.horizontal?(d=a/2,s=Math.min(n,o),l=Math.max(n,o),p=r-d,c=r+d):(d=i/2,s=n-d,l=n+d,p=Math.min(r,o),c=Math.max(r,o)),{left:s,top:p,right:l,bottom:c}}function skipOrLimit(t,e,n,r){return t?0:_limitValue(e,n,r)}function parseBorderWidth(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,i=toTRBL(r);return{t:skipOrLimit(o.top,i.top,0,n),r:skipOrLimit(o.right,i.right,0,e),b:skipOrLimit(o.bottom,i.bottom,0,n),l:skipOrLimit(o.left,i.left,0,e)}}function parseBorderRadius(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=toTRBLCorners(o),a=Math.min(e,n),s=t.borderSkipped,l=r||isObject$1(o);return{topLeft:skipOrLimit(!l||s.top||s.left,i.topLeft,0,a),topRight:skipOrLimit(!l||s.top||s.right,i.topRight,0,a),bottomLeft:skipOrLimit(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:skipOrLimit(!l||s.bottom||s.right,i.bottomRight,0,a)}}function boundingRects(t){const e=getBarBounds(t),n=e.right-e.left,r=e.bottom-e.top,o=parseBorderWidth(t,n/2,r/2),i=parseBorderRadius(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function inRange(t,e,n,r){const o=null===e,i=null===n,a=t&&!(o&&i)&&getBarBounds(t,r);return a&&(o||_isBetween(e,a.left,a.right))&&(i||_isBetween(n,a.top,a.bottom))}function hasRadius(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function addNormalRectPath(t,e){t.rect(e.x,e.y,e.w,e.h)}function inflateRect(t,e,n={}){const r=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+r,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}class BarElement extends Element{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=boundingRects(this),a=hasRadius(i.radius)?addRoundedRectPath:addNormalRectPath;t.save(),i.w===o.w&&i.h===o.h||(t.beginPath(),a(t,inflateRect(i,e,o)),t.clip(),a(t,inflateRect(o,-e,i)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,inflateRect(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return inRange(this,t,e,n)}inXRange(t,e){return inRange(this,t,null,e)}inYRange(t,e){return inRange(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+r)/2:e,y:o?n:(n+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}const getBoxSize=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},itemsEqual=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Legend extends Element{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=callback(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,r=toFont(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=getBoxSize(n,o);let l,p;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,p=this._fitRows(i,o,a,s)+10):(p=this.maxHeight,l=this._fitCols(i,r,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(p,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],p=r+a;let c=t;o.textAlign="left",o.textBaseline="middle";let d=-1,u=-p;return this.legendItems.forEach((t,h)=>{const b=n+e/2+o.measureText(t.text).width;(0===h||l[l.length-1]+b+2*a>i)&&(c+=p,l[l.length-(h>0?0:1)]=0,u+=p,d++),s[h]={left:0,top:u,row:d,width:b,height:r},l[l.length-1]+=b+a}),c}_fitCols(t,e,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],p=i-t;let c=a,d=0,u=0,h=0,b=0;return this.legendItems.forEach((t,i)=>{const{itemWidth:m,itemHeight:f}=calculateItemSize(n,e,o,t,r);i>0&&u+f+2*a>p&&(c+=d+a,l.push({width:d,height:u}),h+=d+a,b++,d=u=0),s[i]={left:h,top:u,col:b,width:m,height:f},d=Math.max(d,m),u+=f+a}),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:o}}=this,i=getRtlAdapter(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=_alignStartEnd(n,this.left+r,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=_alignStartEnd(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+t+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=_alignStartEnd(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=_alignStartEnd(n,this.top+t+r,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;clipArea(t,this),this._draw(),unclipArea(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:o,labels:i}=t,a=defaults.color,s=getRtlAdapter(t.rtl,this.left,this.width),l=toFont(i.font),{padding:p}=i,c=l.size,d=c/2;let u;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:h,boxHeight:b,itemHeight:m}=getBoxSize(i,c),f=this.isHorizontal(),g=this._computeTitleHeight();u=f?{x:_alignStartEnd(o,this.left+p,this.right-n[0]),y:this.top+p+g,line:0}:{x:this.left+p,y:_alignStartEnd(o,this.top+g+p,this.bottom-e[0].height),line:0},overrideTextDirection(this.ctx,t.textDirection);const v=m+p;this.legendItems.forEach((y,x)=>{r.strokeStyle=y.fontColor,r.fillStyle=y.fontColor;const w=r.measureText(y.text).width,k=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),_=h+d+w;let S=u.x,C=u.y;s.setWidth(this.width),f?x>0&&S+_+p>this.right&&(C=u.y+=v,u.line++,S=u.x=_alignStartEnd(o,this.left+p,this.right-n[u.line])):x>0&&C+v>this.bottom&&(S=u.x=S+e[u.line].width+p,u.line++,C=u.y=_alignStartEnd(o,this.top+g+p,this.bottom-e[u.line].height));if(function(t,e,n){if(isNaN(h)||h<=0||isNaN(b)||b<0)return;r.save();const o=valueOrDefault(n.lineWidth,1);if(r.fillStyle=valueOrDefault(n.fillStyle,a),r.lineCap=valueOrDefault(n.lineCap,"butt"),r.lineDashOffset=valueOrDefault(n.lineDashOffset,0),r.lineJoin=valueOrDefault(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=valueOrDefault(n.strokeStyle,a),r.setLineDash(valueOrDefault(n.lineDash,[])),i.usePointStyle){const a={radius:b*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,h/2);drawPointLegend(r,a,l,e+d,i.pointStyleWidth&&h)}else{const i=e+Math.max((c-b)/2,0),a=s.leftForLtr(t,h),l=toTRBLCorners(n.borderRadius);r.beginPath(),Object.values(l).some(t=>0!==t)?addRoundedRectPath(r,{x:a,y:i,w:h,h:b,radius:l}):r.rect(a,i,h,b),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(S),C,y),S=_textX(k,S+h+d,f?S+_:this.right,t.rtl),function(t,e,n){renderText(r,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),C,y),f)u.x+=_+p;else if("string"!=typeof y.text){const t=l.lineHeight;u.y+=calculateLegendItemHeight(y,t)+p}else u.y+=v}),restoreTextDirection(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=toFont(e.font),r=toPadding(e.padding);if(!e.display)return;const o=getRtlAdapter(t.rtl,this.left,this.width),i=this.ctx,a=e.position,s=n.size/2,l=r.top+s;let p,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),p=this.top+l,c=_alignStartEnd(t.align,c,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);p=l+_alignStartEnd(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=_alignStartEnd(a,c,c+d);i.textAlign=o.textAlign(_toLeftRightCenter(a)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=n.string,renderText(i,e.text,u,p,n)}_computeTitleHeight(){const t=this.options.title,e=toFont(t.font),n=toPadding(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,o;if(_isBetween(t,this.left,this.right)&&_isBetween(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],_isBetween(t,r.left,r.left+r.width)&&_isBetween(e,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!isListened(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,o=itemsEqual(r,n);r&&!o&&callback(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!o&&callback(e.onHover,[t,n,this],this)}else n&&callback(e.onClick,[t,n,this],this)}}function calculateItemSize(t,e,n,r,o){return{itemWidth:calculateItemWidth(r,t,e,n),itemHeight:calculateItemHeight(o,r,e.lineHeight)}}function calculateItemWidth(t,e,n,r){let o=t.text;return o&&"string"!=typeof o&&(o=o.reduce((t,e)=>t.length>e.length?t:e)),e+n.size/2+r.measureText(o).width}function calculateItemHeight(t,e,n){let r=t;return"string"!=typeof e.text&&(r=calculateLegendItemHeight(e,n)),r}function calculateLegendItemHeight(t,e){return e*(t.text?t.text.length:0)}function isListened(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}var plugin_legend={id:"legend",_element:Legend,start(t,e,n){const r=t.legend=new Legend({ctx:t.ctx,options:n,chart:t});layouts.configure(t,r,n),layouts.addBox(t,r)},stop(t){layouts.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;layouts.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),e.hidden=!0):(o.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(n?0:void 0),p=toPadding(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(p.width+p.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:o||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const positioners={average(t){if(!t.length)return!1;let e,n,r=new Set,o=0,i=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r.add(t.x),o+=t.y,++i}}if(0===i||0===r.size)return!1;return{x:[...r].reduce((t,e)=>t+e)/r.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let n,r,o,i=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){const r=t[n].element;if(r&&r.hasValue()){const t=distanceBetweenPoints(e,r.getCenterPoint());t<s&&(s=t,o=r)}}if(o){const t=o.tooltipPosition();i=t.x,a=t.y}return{x:i,y:a}}};function pushOrConcat(t,e){return e&&(isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function splitNewlines(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function createTooltipItem(t,e){const{element:n,datasetIndex:r,index:o}=e,i=t.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function getTooltipSize(t,e){const n=t.chart.ctx,{body:r,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,l=toFont(e.bodyFont),p=toFont(e.titleFont),c=toFont(e.footerFont),d=i.length,u=o.length,h=r.length,b=toPadding(e.padding);let m=b.height,f=0,g=r.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(g+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*p.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),g){m+=h*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-h)*l.lineHeight+(g-1)*e.bodySpacing}u&&(m+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let v=0;const y=function(t){f=Math.max(f,n.measureText(t).width+v)};return n.save(),n.font=p.string,each(t.title,y),n.font=l.string,each(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?a+2+e.boxPadding:0,each(r,t=>{each(t.before,y),each(t.lines,y),each(t.after,y)}),v=0,n.font=c.string,each(t.footer,y),n.restore(),f+=b.width,{width:f,height:m}}function determineYAlign(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function doesNotFitWithAlign(t,e,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===t&&o+i+a>e.width||("right"===t&&o-i-a<0||void 0)}function determineXAlign(t,e,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=t;let p="center";return"center"===r?p=o<=(s+l)/2?"left":"right":o<=i/2?p="left":o>=a-i/2&&(p="right"),doesNotFitWithAlign(p,t,e,n)&&(p="center"),p}function determineAlignment(t,e,n){const r=n.yAlign||e.yAlign||determineYAlign(t,n);return{xAlign:n.xAlign||e.xAlign||determineXAlign(t,e,n,r),yAlign:r}}function alignX(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}function alignY(t,e,n){let{y:r,height:o}=t;return"top"===e?r+=n:r-="bottom"===e?o+n:o/2,r}function getBackgroundPoint(t,e,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,p=o+i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:h}=toTRBLCorners(a);let b=alignX(e,s);const m=alignY(e,l,p);return"center"===l?"left"===s?b+=p:"right"===s&&(b-=p):"left"===s?b-=Math.max(c,u)+o:"right"===s&&(b+=Math.max(d,h)+o),{x:_limitValue(b,0,r.width-e.width),y:_limitValue(m,0,r.height-e.height)}}function getAlignedX(t,e,n){const r=toPadding(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,n){return createContext(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function overrideCallbacks(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const defaultCallbacks={beforeTitle:noop$1,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:noop$1,beforeBody:noop$1,beforeLabel:noop$1,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return isNullOrUndef(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:noop$1,afterBody:noop$1,beforeFooter:noop$1,footer:noop$1,afterFooter:noop$1};function invokeCallbackWithFallback(t,e,n,r){const o=t[e].call(n,r);return void 0===o?defaultCallbacks[e].call(n,r):o}class Tooltip extends Element{static positioners=positioners;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,o=new Animations(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=createTooltipContext(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:n}=e,r=invokeCallbackWithFallback(n,"beforeTitle",this,t),o=invokeCallbackWithFallback(n,"title",this,t),i=invokeCallbackWithFallback(n,"afterTitle",this,t);let a=[];return a=pushOrConcat(a,splitNewlines(r)),a=pushOrConcat(a,splitNewlines(o)),a=pushOrConcat(a,splitNewlines(i)),a}getBeforeBody(t,e){return getBeforeAfterBodyLines(invokeCallbackWithFallback(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,r=[];return each(t,t=>{const e={before:[],lines:[],after:[]},o=overrideCallbacks(n,t);pushOrConcat(e.before,splitNewlines(invokeCallbackWithFallback(o,"beforeLabel",this,t))),pushOrConcat(e.lines,invokeCallbackWithFallback(o,"label",this,t)),pushOrConcat(e.after,splitNewlines(invokeCallbackWithFallback(o,"afterLabel",this,t))),r.push(e)}),r}getAfterBody(t,e){return getBeforeAfterBodyLines(invokeCallbackWithFallback(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,r=invokeCallbackWithFallback(n,"beforeFooter",this,t),o=invokeCallbackWithFallback(n,"footer",this,t),i=invokeCallbackWithFallback(n,"afterFooter",this,t);let a=[];return a=pushOrConcat(a,splitNewlines(r)),a=pushOrConcat(a,splitNewlines(o)),a=pushOrConcat(a,splitNewlines(i)),a}_createItems(t){const e=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(createTooltipItem(this.chart,e[a]));return t.filter&&(l=l.filter((e,r,o)=>t.filter(e,r,o,n))),t.itemSort&&(l=l.sort((e,r)=>t.itemSort(e,r,n))),each(l,e=>{const n=overrideCallbacks(t.callbacks,e);r.push(invokeCallbackWithFallback(n,"labelColor",this,e)),o.push(invokeCallbackWithFallback(n,"labelPointStyle",this,e)),i.push(invokeCallbackWithFallback(n,"labelTextColor",this,e))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const t=positioners[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const e=this._size=getTooltipSize(this,n),a=Object.assign({},t,e),s=determineAlignment(this.chart,n,a),l=getBackgroundPoint(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const o=this.getCaretPosition(t,n,r);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:p,bottomRight:c}=toTRBLCorners(a),{x:d,y:u}=t,{width:h,height:b}=e;let m,f,g,v,y,x;return"center"===o?(y=u+b/2,"left"===r?(m=d,f=m-i,v=y+i,x=y-i):(m=d+h,f=m+i,v=y-i,x=y+i),g=m):(f="left"===r?d+Math.max(s,p)+i:"right"===r?d+h-Math.max(l,c)-i:this.caretX,"top"===o?(v=u,y=v-i,m=f-i,g=f+i):(v=u+b,y=v+i,m=f+i,g=f-i),x=v),{x1:m,x2:f,x3:g,y1:v,y2:y,y3:x}}drawTitle(t,e,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=getRtlAdapter(n.rtl,this.x,this.width);for(t.x=getAlignedX(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",i=toFont(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=i.string,s=0;s<o;++s)e.fillText(r[s],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=o,p=toFont(o.bodyFont),c=getAlignedX(this,"left",o),d=r.x(c),u=s<p.lineHeight?(p.lineHeight-s)/2:0,h=e.y+u;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(d,l)+l/2,p=h+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,drawPoint(t,e,n,p),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,drawPoint(t,e,n,p)}else{t.lineWidth=isObject$1(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=r.leftForLtr(d,l),n=r.leftForLtr(r.xPlus(d,1),l-2),a=toTRBLCorners(i.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,addRoundedRectPath(t,{x:e,y:h,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),addRoundedRectPath(t,{x:n,y:h+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,h,l,s),t.strokeRect(e,h,l,s),t.fillStyle=i.backgroundColor,t.fillRect(n,h+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:p}=n,c=toFont(n.bodyFont);let d=c.lineHeight,u=0;const h=getRtlAdapter(n.rtl,this.x,this.width),b=function(n){e.fillText(n,h.x(t.x+u),t.y+d/2),t.y+=d+o},m=h.textAlign(i);let f,g,v,y,x,w,k;for(e.textAlign=i,e.textBaseline="middle",e.font=c.string,t.x=getAlignedX(this,m,n),e.fillStyle=n.bodyColor,each(this.beforeBody,b),u=a&&"right"!==m?"center"===i?l/2+p:l+2+p:0,y=0,w=r.length;y<w;++y){for(f=r[y],g=this.labelTextColors[y],e.fillStyle=g,each(f.before,b),v=f.lines,a&&v.length&&(this._drawColorBox(e,t,y,h,n),d=Math.max(c.lineHeight,s)),x=0,k=v.length;x<k;++x)b(v[x]),d=c.lineHeight;each(f.after,b)}u=0,d=c.lineHeight,each(this.afterBody,b),t.y-=o}drawFooter(t,e,n){const r=this.footer,o=r.length;let i,a;if(o){const s=getRtlAdapter(n.rtl,this.x,this.width);for(t.x=getAlignedX(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",i=toFont(n.footerFont),e.fillStyle=n.footerColor,e.font=i.string,a=0;a<o;++a)e.fillText(r[a],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=t,{width:l,height:p}=n,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:h}=toTRBLCorners(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+c,s),"top"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+l-d,s),e.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+l,s+p-h),e.quadraticCurveTo(a+l,s+p,a+l-h,s+p),"bottom"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+u,s+p),e.quadraticCurveTo(a,s+p,a,s+p-u),"center"===i&&"left"===o&&this.drawCaret(t,e,n,r),e.lineTo(a,s+c),e.quadraticCurveTo(a,s,a+c,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=positioners[t.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=getTooltipSize(this,t),a=Object.assign({},n,this._size),s=determineAlignment(e,t,a),l=getBackgroundPoint(t,a,s,e);r._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=toPadding(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,r,e),overrideTextDirection(t,e.textDirection),o.y+=i.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),restoreTextDirection(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,r=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!_elementsEqual(n,r),i=this._positionChanged(r,e);(o||i)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(t,o,e,n),a=this._positionChanged(i,t),s=e||!_elementsEqual(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,r){const o=this.options;if("mouseout"===t.type)return[];if(!r)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const i=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:n,caretY:r,options:o}=this,i=positioners[o.position].call(this,t,e);return!1!==i&&(n!==i.x||r!==i.y)}}var plugin_tooltip={id:"tooltip",_element:Tooltip,positioners:positioners,afterInit(t,e,n){n&&(t.tooltip=new Tooltip({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:defaultCallbacks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const addIfString=(t,e,n,r)=>("string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function findOrAddLabel(t,e,n,r){const o=t.indexOf(e);if(-1===o)return addIfString(t,e,n,r);return o!==t.lastIndexOf(e)?n:o}const validIndex=(t,e)=>null===t?null:_limitValue(Math.round(t),0,e);function _getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class CategoryScale extends Scale{static id="category";static defaults={ticks:{callback:_getLabelForValue}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:r}of e)t[n]===r&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(isNullOrUndef(t))return null;const n=this.getLabels();return e=isFinite(e)&&n[e]===t?e:findOrAddLabel(n,t,valueOrDefault(e,t),this._addedLabels),validIndex(e,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)r.push({value:n});return r}getLabelForValue(t){return _getLabelForValue.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function generateTicks$1(t,e){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:p,maxDigits:c,includeBounds:d}=t,u=o||1,h=p-1,{min:b,max:m}=e,f=!isNullOrUndef(i),g=!isNullOrUndef(a),v=!isNullOrUndef(l),y=(m-b)/(c+1);let x,w,k,_,S=niceNum((m-b)/h/u)*u;if(S<1e-14&&!f&&!g)return[{value:b},{value:m}];_=Math.ceil(m/S)-Math.floor(b/S),_>h&&(S=niceNum(_*S/h/u)*u),isNullOrUndef(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===r?(w=Math.floor(b/S)*S,k=Math.ceil(m/S)*S):(w=b,k=m),f&&g&&o&&almostWhole((a-i)/o,S/1e3)?(_=Math.round(Math.min((a-i)/S,p)),S=(a-i)/_,w=i,k=a):v?(w=f?i:w,k=g?a:k,_=l-1,S=(k-w)/_):(_=(k-w)/S,_=almostEquals(_,Math.round(_),S/1e3)?Math.round(_):Math.ceil(_));const C=Math.max(_decimalPlaces(S),_decimalPlaces(w));x=Math.pow(10,isNullOrUndef(s)?C:s),w=Math.round(w*x)/x,k=Math.round(k*x)/x;let E=0;for(f&&(d&&w!==i?(n.push({value:i}),w<i&&E++,almostEquals(Math.round((w+E*S)*x)/x,i,relativeLabelSize(i,y,t))&&E++):w<i&&E++);E<_;++E){const t=Math.round((w+E*S)*x)/x;if(g&&t>a)break;n.push({value:t})}return g&&d&&k!==a?n.length&&almostEquals(n[n.length-1].value,a,relativeLabelSize(a,y,t))?n[n.length-1].value=a:n.push({value:a}):g&&k!==a||n.push({value:k}),n}function relativeLabelSize(t,e,{horizontal:n,minRotation:r}){const o=toRadians(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class LinearScaleBase extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return isNullOrUndef(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=t=>r=e?r:t,a=t=>o=n?o:t;if(t){const t=sign(r),e=sign(o);t<0&&e<0?a(0):t>0&&e>0&&i(0)}if(r===o){let e=0===o?1:Math.abs(.05*o);a(o+e),t||i(r-e)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=generateTicks$1({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&_setMinAndMaxByKey(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return formatNumber(t,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{static id="linear";static defaults={ticks:{callback:Ticks.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=isNumberFinite(t)?t:0,this.max=isNumberFinite(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=toRadians(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(t,e){return t-e}function parse(t,e){if(isNullOrUndef(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:i}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),isNumberFinite(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!isNumber(i)&&!0!==i?n.startOf(a,o):n.startOf(a,"isoWeek",i)),+a)}function determineUnitForAutoTicks(t,e,n,r){const o=UNITS.length;for(let i=UNITS.indexOf(t);i<o-1;++i){const t=INTERVALS[UNITS[i]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=r)return UNITS[i]}return UNITS[o-1]}function determineUnitForFormatting(t,e,n,r,o){for(let i=UNITS.length-1;i>=UNITS.indexOf(n);i--){const n=UNITS[i];if(INTERVALS[n].common&&t._adapter.diff(o,r,n)>=e-1)return n}return UNITS[n?UNITS.indexOf(n):0]}function determineMajorUnit(t){for(let e=UNITS.indexOf(t)+1,n=UNITS.length;e<n;++e)if(INTERVALS[UNITS[e]].common)return UNITS[e]}function addTick(t,e,n){if(n){if(n.length){const{lo:r,hi:o}=_lookup(n,e);t[n[r]>=e?n[r]:n[o]]=!0}}else t[e]=!0}function setMajorTicks(t,e,n,r){const o=t._adapter,i=+o.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}function ticksFromTimestamps(t,e,n){const r=[],o={},i=e.length;let a,s;for(a=0;a<i;++a)s=e[a],o[s]=a,r.push({value:s,major:!1});return 0!==i&&n?setMajorTicks(t,r,o,n):r}class TimeScale extends Scale{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),r=this._adapter=new adapters._date(t.adapters.date);r.init(e),mergeIf(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:parse(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(t){i||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}i&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),r=isNumberFinite(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),o=isNumberFinite(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,i=_filterBetween(r,o,this.max);return this._unit=e.unit||(n.autoSkip?determineUnitForAutoTicks(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):determineUnitForFormatting(this,i.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?determineMajorUnit(this._unit):void 0,this.initOffsets(r),t.reverse&&i.reverse(),ticksFromTimestamps(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e,n,r=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;r=_limitValue(r,0,i),o=_limitValue(o,0,i),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,r=this.options,o=r.time,i=o.unit||determineUnitForAutoTicks(o.minUnit,e,n,this._getLabelCapacity(e)),a=valueOrDefault(r.ticks.stepSize,1),s="week"===i&&o.isoWeekday,l=isNumber(s)||!0===s,p={};let c,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":i),t.diff(n,e,i)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+i);const h="data"===r.ticks.source&&this.getDataTimestamps();for(c=u,d=0;c<n;c=+t.add(c,a,i),d++)addTick(p,c,h);return c!==n&&"ticks"!==r.bounds&&1!==d||addTick(p,c,h),Object.keys(p).sort(sorter).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,r=this._unit,o=e||n[r];return this._adapter.format(t,o)}_tickFormatFunction(t,e,n,r){const o=this.options,i=o.ticks.callback;if(i)return callback(i,[t,e,n],this);const a=o.time.displayFormats,s=this._unit,l=this._majorUnit,p=s&&a[s],c=l&&a[l],d=n[e],u=l&&c&&d&&d.major;return this._adapter.format(t,r||(u?c:p))}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,r=toRadians(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(r),i=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*i,h:n*i+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,ticksFromTimestamps(this,[t],this._majorUnit),r),i=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(parse(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return _arrayUnique(t.sort(sorter))}}function interpolate(t,e,n){let r,o,i,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=_lookupByKey(t,"pos",e)),({pos:r,time:i}=t[s]),({pos:o,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=_lookupByKey(t,"time",e)),({time:r,pos:i}=t[s]),({time:o,pos:a}=t[l]));const p=o-r;return p?i+(a-i)*(e-r)/p:i}class TimeSeriesScale extends TimeScale{static id="timeseries";static defaults=TimeScale.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=interpolate(e,this.min),this._tableRange=interpolate(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,r=[],o=[];let i,a,s,l,p;for(i=0,a=t.length;i<a;++i)l=t[i],l>=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(i=0,a=r.length;i<a;++i)p=r[i+1],s=r[i-1],l=r[i],Math.round((p+s)/2)!==l&&o.push({time:l,pos:i/(a-1)});return o}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort((t,e)=>t-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(interpolate(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return interpolate(this._table,n*this._tableRange+this._minPos,!0)}}const getCSSVariable=(t,e=1,n="#666666")=>{const r=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(!r)return console.warn(`CSS variable ${t} not found, using fallback color: ${n}`),n;if(1===e)return r;if(r.startsWith("#")){const t=r.replace("#","");return`rgba(${parseInt(t.substr(0,2),16)}, ${parseInt(t.substr(2,2),16)}, ${parseInt(t.substr(4,2),16)}, ${e})`}return r.startsWith("rgb")?r.startsWith("rgba")?r.replace(/[\d.]+\)$/,`${e})`):r.replace("rgb","rgba").replace(")",`, ${e})`):r};var css_248z$1b=".basic-price-chart .basic-price-chart__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.basic-price-chart .basic-price-chart__content .basic-price-chart__empty {\n text-align: center;\n}\n.basic-price-chart .basic-price-chart__content .basic-price-chart__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .basic-price-chart .basic-price-chart__content .basic-price-chart__chart {\n width: 70% !important;\n }\n}";function BasicPriceChart({legend:t,chartOptions:e,noChartDisplay:n,id:r,className:o}){var i;const a=useRef(null),s=useRef(null);return useLayoutEffect(()=>{var t,n;if(!a.current)return;const r=a.current.getContext("2d");if(!r)return;const o=null==r?void 0:r.createLinearGradient(0,0,300,0);return null==o||o.addColorStop(0,getCSSVariable("--secondary-color")),null==o||o.addColorStop(.3,getCSSVariable("--secondary-dark-color")),null==o||o.addColorStop(.7,getCSSVariable("--primary-color")),s.current&&s.current.destroy(),(null===(t=e.data.datasets[0])||void 0===t?void 0:t.backgroundColor)&&(e.data.datasets[0].backgroundColor=[o,"rgba(0, 0, 0, 0.2)"]),(null===(n=e.data.datasets[0])||void 0===n?void 0:n.borderColor)&&(e.data.datasets[0].borderColor=[o,"rgba(0, 0, 0, 0.2)"]),s.current=new Chart(r,e),()=>{var t;null===(t=s.current)||void 0===t||t.destroy()}},[e]),jsx("div",{id:r,className:"basic-price-chart"+(o?" "+o:""),children:jsx("div",{className:"basic-price-chart__content",children:(null===(i=e.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))?jsx("div",{className:"basic-price-chart__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"basic-price-chart__chart",children:jsx("canvas",{ref:a})}),t]})})})}styleInject(css_248z$1b),Chart.register(DoughnutController,ArcElement,plugin_tooltip,plugin_legend);var css_248z$1a=".lv-editing-status-chart .lv-editing-status-chart__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.lv-editing-status-chart .lv-editing-status-chart__content .lv-editing-status-chart__empty {\n text-align: center;\n}\n.lv-editing-status-chart .lv-editing-status-chart__content .lv-editing-status-chart__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .lv-editing-status-chart .lv-editing-status-chart__content .lv-editing-status-chart__chart {\n width: 70% !important;\n }\n}";function LvEditingStatusChart({chartOptions:t,legend:e,noChartDisplay:n,id:r,className:o}){var i;const a=useRef(null),s=useRef(null);return useLayoutEffect(()=>{var e,n;if(!a.current)return;const r=a.current.getContext("2d");return r?(s.current&&s.current.destroy(),(null===(e=t.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(t.data.datasets[0].backgroundColor=[getCSSVariable("--warning-color",.6),getCSSVariable("--valid-color",.6),getCSSVariable("--error-color",.6)]),(null===(n=t.data.datasets[0])||void 0===n?void 0:n.borderColor)&&(t.data.datasets[0].borderColor=[getCSSVariable("--warning-color",.6),getCSSVariable("--valid-color",.6),getCSSVariable("--error-color",.6)]),s.current=new Chart(r,t),()=>{var t;null===(t=s.current)||void 0===t||t.destroy()}):void 0},[]),jsx("div",{id:r,className:"lv-editing-status-chart"+(o?" "+o:""),children:jsx("div",{className:"lv-editing-status-chart__content",children:(null===(i=t.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))?jsx("div",{className:"lv-editing-status-chart__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"lv-editing-status-chart__chart",children:jsx("canvas",{ref:a})}),e]})})})}styleInject(css_248z$1a),Chart.register(PieController,ArcElement,plugin_tooltip,plugin_legend);var css_248z$19=".lv-insights .lv-insights__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.lv-insights .lv-insights__content .lv-insights__empty {\n text-align: center;\n}\n.lv-insights .lv-insights__content .lv-insights__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .lv-insights .lv-insights__content .lv-insights__chart {\n width: 70% !important;\n }\n}";function LvInsightsChart({chartOptions:t,legend:e,noChartDisplay:n,id:r,className:o}){var i;const a=useRef(null),s=useRef(null),l=[getCSSVariable("--secondary-color",.7),getCSSVariable("--primary-color",.7),getCSSVariable("--info-color",.7),getCSSVariable("--diagram-color-5",.7)],p=[getCSSVariable("--secondary-color",1),getCSSVariable("--primary-color",1),getCSSVariable("--info-color",1),getCSSVariable("--diagram-color-5",1)];return useLayoutEffect(()=>{var e,n;if(!a.current)return;const r=a.current.getContext("2d");return r?(s.current&&s.current.destroy(),(null===(e=t.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(t.data.datasets[0].backgroundColor=l),(null===(n=t.data.datasets[0])||void 0===n?void 0:n.hoverBackgroundColor)&&(t.data.datasets[0].hoverBackgroundColor=p),s.current=new Chart(r,t),()=>{var t;null===(t=s.current)||void 0===t||t.destroy()}):void 0},[]),jsx("div",{id:r,className:"lv-insights"+(o?" "+o:""),children:jsx("div",{className:"lv-insights__content",children:(null===(i=t.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))?jsx("div",{className:"lv-insights__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"lv-insights__chart",children:jsx("canvas",{ref:a})}),e]})})})}styleInject(css_248z$19),Chart.register(DoughnutController,ArcElement,plugin_tooltip,plugin_legend);var css_248z$18=".contract-potentials .contract-potentials__content {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 5rem;\n margin-top: 1.2rem;\n margin-bottom: 0.2rem;\n justify-content: center;\n}\n.contract-potentials .contract-potentials__content .contract-potentials__empty {\n text-align: center;\n}\n.contract-potentials .contract-potentials__chart {\n height: 9.5rem;\n}\n@media (max-width: 767px) {\n .contract-potentials .contract-potentials__chart {\n width: 70% !important;\n }\n}";function ContractPotentialsChart({chartOptions:t,legend:e,noChartDisplay:n,id:r,className:o}){var i,a;const s=useRef(null),l=useRef(null);return useLayoutEffect(()=>{var e,n;if(!s.current)return;const r=s.current.getContext("2d");return r?(l.current&&l.current.destroy(),(null===(e=t.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(t.data.datasets[0].backgroundColor=[getCSSVariable("--secondary-color-50")]),(null===(n=t.data.datasets[1])||void 0===n?void 0:n.backgroundColor)&&(t.data.datasets[1].backgroundColor=[getCSSVariable("--primary-color-68",1)]),l.current=new Chart(r,t),()=>{var t;null===(t=l.current)||void 0===t||t.destroy()}):void 0},[t]),jsx("div",{id:r,className:"contract-potentials"+(o?" "+o:""),children:jsx("div",{className:"contract-potentials__content",children:(null===(i=t.data.datasets[0])||void 0===i?void 0:i.data.every(t=>0===t))&&(null===(a=t.data.datasets[1])||void 0===a?void 0:a.data.every(t=>0===t))?jsx("div",{className:"contract-potentials__empty",children:null!=n?n:jsx("div",{children:"Kein Chart verfügbar"})}):jsxs(Fragment,{children:[jsx("div",{className:"contract-potentials__chart",children:jsx("canvas",{ref:s})}),e]})})})}styleInject(css_248z$18),Chart.register(BarController,CategoryScale,LinearScale,BarElement,plugin_tooltip,plugin_legend);var css_248z$17=".bee-info-valid-label,\n.bee-info-neutral-label,\n.bee-error-label {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n}\n\n.bee-info-neutral-label {\n color: var(--neutral-color);\n}\n\n.bee-info-valid-label {\n color: var(--valid-color);\n}\n\n.bee-error-label {\n color: var(--error-color);\n}\n\n.bee-info-label-small {\n font-size: small;\n}\n\n.bee-info-label-medium {\n font-size: medium;\n}\n\n.bee-info-label-large {\n font-size: x-large;\n}";function BeeLabel({id:t,className:e,value:n,size:r="medium",type:o="neutral"}){const i=null!=t?t:libExports.useId(1,"bee-info-label-")[0];return jsx("span",{id:i,className:"bee-label "+("neutral"===o?" bee-info-neutral-label":"valid"===o?" bee-info-valid-label":"error"===o?" bee-error-label":"")+("small"===r?" bee-info-label-small":"medium"===r?" bee-info-label-medium":"large"===r?" bee-info-label-large":" bee-info-label-medium")+(e?" "+e:""),children:n})}styleInject(css_248z$17);const EMPTY_FIELD_PLACEHOLDER=" — ";var css_248z$16=".bee-txt-input-container {\n display: block;\n position: relative;\n}\n\n.bee-txt-input-container .p-inputtext {\n width: 100%;\n}\n\n.bee-txt-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-txt-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-txt-input-label .bee-txt-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-txt-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.p-float-label .bee-txt-input-valid.p-inputtext {\n border-color: var(--valid-color) !important;\n border-width: 2px !important;\n}\n\n.p-float-label .bee-txt-input-error.p-inputtext {\n border-color: var(--error-color) !important;\n border-width: 2px !important;\n}\n\n.bee-txt-input-readOnly .p-inputtext {\n border-style: none;\n}\n\n.bee-txt-input-readOnly .p-inputtext {\n opacity: 1 !important;\n}\n\n.bee-txt-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-txt-input-container.half-rounded .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}";function BeeTextInput({id:t,className:e,label:n,value:r,disabled:o,statusLabel:i,formstate:a="neutral",halfRounded:s,readOnly:l,required:p,placeholder:c,tooltip:d,tooltipOptions:u,onChange:h,onFocusOut:b}){var m;const f=null!==(m=null!=t?t:libExports.useId(1,"bee-txt-input-")[0])&&void 0!==m?m:"bee-txt-input";let g="";l&&(g=" bee-txt-input-readOnly",o=!0);const v="bee-txt-input "+("valid"===a?" bee-txt-input-valid":"error"===a?" bee-txt-input-error":"neutral"===a?" bee-txt-input-neutral":"none"===a?" bee-cur-input-field-neutral":" bee-txt-input-neutral");return jsxs(Fragment,{children:[jsx("div",{id:f,className:"p-float-label bee-txt-input-container"+g+(s?" half-rounded":"")+(e?" "+e:""),children:l&&!r?jsx(BeePlaceholder,{id:f,label:n}):jsxs(Fragment,{children:[jsx(InputText,{id:f+"input",value:null!=r?r:void 0,disabled:null!=o&&o,className:v,placeholder:c,tooltip:d,tooltipOptions:u,onChange:t=>function(t){!o&&h&&h(t)}(t),onBlur:t=>function(t){!o&&b&&b(t)}(t)}),n?jsxs("label",{htmlFor:f+"input",className:"bee-txt-input-label",children:[n,p&&n?jsx("span",{className:"bee-txt-input-label-required",children:jsx("span",{className:"bee-txt-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-text-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}function BeePlaceholder({id:t,className:e,label:n,disabled:r}){const o=null!=t?t:libExports.useId(1,"bee-placeholder-")[0];return jsx(BeeTextInput,{id:o+"input",label:n,value:EMPTY_FIELD_PLACEHOLDER,className:null!=e?e:"",disabled:null==r||r,readOnly:!0,formstate:"neutral"})}styleInject(css_248z$16);var css_248z$15=".bee-autocomplete-dropdown-container {\n display: block;\n position: relative;\n}\n\n.bee-autocomplete-dropdown-container .p-autocomplete {\n width: 100%;\n}\n\n.bee-autocomplete-dropdown-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n}\n\n.bee-autocomplete-dropdown-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-autocomplete-dropdown-label .bee-autocomplete-dropdown-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-autocomplete-dropdown {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-autocomplete-dropdown-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-dropdown-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-dropdown-readOnly .p-inputtext {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-autocomplete-dropdown-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeAutocompleteDropdown({id:t,className:e,label:n,value:r,suggestions:o,disabled:i,statusLabel:a,formstate:s="neutral",readOnly:l,required:p,placeholder:c,tooltip:d,tooltipOptions:u,onChange:h,onFocusOut:b}){const m=null!=t?t:libExports.useId(1,"bee-autocomplete-dropdown-")[0],[f,g]=React__default.useState(null!=o?o:[]),v="bee-autocomplete-dropdown "+("valid"===s?" bee-autocomplete-dropdown-valid":"error"===s?" bee-autocomplete-dropdown-error":"neutral"===s?" bee-autocomplete-dropdown-neutral":"none"===s?" bee-autocomplete-dropdodown-none":" bee-autocomplete-dropdown-neutral");return jsxs(Fragment,{children:[jsx("span",{id:m,className:"p-float-label bee-autocomplete-dropdown-container"+(l?" bee-autocomplete-dropdown-readOnly":"")+(i?" bee-autocomplete-dropdown-disabled":"")+(e?" "+e:""),children:l&&!r?jsx(BeePlaceholder,{id:m,label:n}):jsxs(Fragment,{children:[jsx(AutoComplete,{id:m+"input",value:null!=r?r:void 0,dropdown:!0,suggestions:f,disabled:null!=i&&i,className:v,placeholder:c,tooltip:d,tooltipOptions:u,onChange:t=>function(t){!i&&h&&h(t)}(t),onBlur:t=>function(t){!i&&b&&b(t)}(t),completeMethod:t=>{const e=(null!=o?o:[]).filter(e=>String(e).toLowerCase().startsWith(t.query.toLowerCase()));g(e)}}),n?jsxs("label",{htmlFor:m+"input",className:"bee-autocomplete-dropdown-label",children:[n,p&&n?jsx("span",{className:"bee-autocomplete-dropdown-label-required",children:jsx("span",{className:"bee-autocomplete-dropdown-label-required-star",children:" *"})}):null]}):null]})}),"none"!=s&&a?(()=>{const t="medium";return jsx("div",{className:"bee-autocomplete-dropdown-statusLabel",children:"error"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"error"}):"valid"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"valid"}):"neutral"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"neutral"}):null})})():null]})}styleInject(css_248z$15);var css_248z$14=".bee-autocomplete-tag-container {\n display: block;\n position: relative;\n}\n\n.bee-autocomplete-tag-container .p-component {\n width: 100%;\n}\n\n.bee-autocomplete-tag-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-autocomplete-tag-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-autocomplete-tag-label .bee-autocomplete-tag-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-autocomplete-tag {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-autocomplete-tag-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-tag-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-autocomplete-tag-readOnly .p-autocomplete {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-autocomplete-tag-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeAutocompleteTag({id:t,className:e,label:n,value:r,suggestions:o,disabled:i,statusLabel:a,formstate:s="neutral",readOnly:l,required:p,placeholder:c,tooltip:d,tooltipOptions:u,onChange:h,onFocusOut:b}){const m=null!=t?t:libExports.useId(1,"bee-autocomplete-tag-")[0],[f,g]=React__default.useState(null!=o?o:[]);let v="";l&&(v=" bee-autocomplete-tag-readOnly",i=!0);const y="bee-autocomplete-tag "+("valid"===s?" bee-autocomplete-tag-valid":"error"===s?" bee-autocomplete-tag-error":"neutral"===s?" bee-autocomplete-tag-neutral":"none"===s?" bee-cur-input-field-neutral":" bee-autocomplete-tag-neutral"),x="p-float-label bee-autocomplete-tag-container"+v;const w=void 0===r?[]:Array.isArray(r)?r.map(String):[String(r)];return jsxs(Fragment,{children:[jsx("div",{id:m,className:x+(e?" "+e:""),children:l&&!r?jsx(BeePlaceholder,{id:m,label:n}):jsxs(Fragment,{children:[jsx(AutoComplete,{id:m+"input",value:w,multiple:!0,suggestions:f,disabled:null!=i&&i,className:y,placeholder:c,tooltip:d,tooltipOptions:u,onChange:t=>function(t){!i&&h&&h(t)}(t),onBlur:t=>function(t){!i&&b&&b(t)}(t),completeMethod:t=>{const e=(null!=o?o:[]).filter(e=>String(e).toLowerCase().startsWith(t.query.toLowerCase()));g(e)}}),n?jsxs("label",{htmlFor:m+"input",className:"bee-autocomplete-tag-label",children:[n,p&&n?jsx("span",{className:"bee-autocomplete-tag-label-required",children:jsx("span",{className:"bee-autocomplete-tag-label-required-star",children:" *"})}):null]}):null]})}),"none"!=s&&a?(()=>{const t="medium";return jsx("div",{className:"bee-autocomplete-tag-statusLabel",children:"error"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"error"}):"valid"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"valid"}):"neutral"===s&&a?jsx(BeeLabel,{size:t,value:a,type:"neutral"}):null})})():null]})}styleInject(css_248z$14);var css_248z$13=".bee-badge.p-badge {\n min-width: 2em;\n height: 2em;\n line-height: 2em;\n}\n\n.bee-badge-secondary.p-badge {\n background: var(--secondary-color);\n color: var(--secondary-color-text);\n}\n\n.bee-badge-danger.p-badge {\n background: var(--error-color);\n}";function BeeBadge({id:t,className:e,label:n,type:r="primary",size:o="normal"}){const i=null!=t?t:libExports.useId(1,"bee-badge-")[0];return jsx(Badge,{id:i,value:n,className:"primary"===r?"bee-badge bee-badge-primary":"secondary"===r?"bee-badge bee-badge-secondary":"danger"===r?"bee-badge bee-badge-danger":"bee-badge bee-badge-primary"+(e?" "+e:""),size:o})}styleInject(css_248z$13);var css_248z$12=".bee-headline-primary {\n color: var(--primary-color);\n}\n\n.bee-headline-secondary {\n color: var(--secondary-dark-color);\n}\n\n.bee-headline-primary,\n.bee-headline-secondary {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n}";function BeeContentHeadline({id:t,className:e,value:n,headlineType:r="h1",type:o="primary"}){const i=null!=t?t:libExports.useId(1,"bee-content-headline-")[0],a="primary"===o?"bee-headline bee-headline-primary":"secondary"===o?"bee-headline bee-headline-secondary":"bee-headline bee-headline-primary"+(e?" "+e:"");return jsx("h1"===r?"h1":"h2"===r?"h2":"h3"===r?"h3":"h4"===r?"h4":"h5"===r?"h5":"h1",{id:i,className:a,children:n})}styleInject(css_248z$12);var css_248z$11=".bee-content-paragraph {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n}\n\n.bee-content-paragraph-xsmall {\n font-size: 0.7em;\n}\n\n.bee-content-paragraph-small {\n font-size: 0.8em;\n}\n\n.bee-content-paragraph-medium {\n font-size: 1em;\n}\n\n.bee-content-paragraph-large {\n font-size: 1.15em;\n}\n\n.bee-content-paragraph-xlarge {\n font-size: 1.4em;\n}\n\n.bee-content-paragraph-primary {\n color: var(--primary-color);\n}\n\n.bee-content-paragraph-secondary {\n color: var(--secondary-dark-color);\n}";function BeeContentParagraph({id:t,className:e,value:n,size:r="medium",type:o="primary"}){const i=null!=t?t:libExports.useId(1,"bee-content-paragraph-")[0];return jsx("p",{id:i,className:"bee-content-paragraph"+("xSmall"===r?" bee-content-paragraph-xsmall":"small"===r?" bee-content-paragraph-small":"medium"===r?" bee-content-paragraph-medium":"large"===r?" bee-content-paragraph-large":"xLarge"===r?" bee-content-paragraph-xlarge":" bee-content-paragraph-medium")+("primary"===o?" bee-content-paragraph-primary":"secondary"===o?" bee-content-paragraph-secondary":"")+(e?" "+e:""),children:n})}styleInject(css_248z$11);var css_248z$10=".bee-link {\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n text-decoration: underline;\n cursor: pointer;\n}\n\n/* primary */\n.bee-link-primary {\n color: var(--primary-color);\n}\n\n.bee-link-primary:hover {\n color: var(--primary-light-color);\n}\n\n.bee-link-primary:visited {\n color: var(--secondary-dark-color);\n}\n\n.bee-link-primary:active {\n color: var(--primary-light-color);\n}\n\n/* secondary */\n.bee-link-secondary {\n color: var(--secondary-dark-color);\n}\n\n.bee-link-secondary:hover {\n color: var(--secondary-color);\n}\n\n.bee-link-secondary:visited {\n color: var(--primary-color);\n}\n\n.bee-link-secondary:active {\n color: var(--secondary-light-color);\n}\n\n/* default */\n.bee-link-default {\n color: var(--text-color);\n}\n\n.bee-link-default:hover {\n color: var(--text-color-secondary);\n}\n\n.bee-link-default:visited {\n color: var(--primary-color);\n}\n\n.bee-link-default:active {\n color: var(--text-color-secondary);\n}\n\n/* size */\n.bee-link-size-xSmall {\n font-size: x-small;\n}\n\n.bee-link-size-small {\n font-size: small;\n}\n\n.bee-link-size-medium {\n font-size: medium;\n}\n\n.bee-link-size-large {\n font-size: large;\n}\n\n.bee-link-size-xLarge {\n font-size: x-large;\n}";function BeeLink({id:t,className:e,value:n,href:r,type:o="primary",size:i="medium",onClick:a}){const s=null!=t?t:libExports.useId(1,"bee-link-")[0],l="bee-link"+("primary"===o?" bee-link-primary":"secondary"===o?" bee-link-secondary":" bee-link-default")+("xSmall"===i?" bee-link-size-xSmall":"small"===i?" bee-link-size-small":"medium"===i?" bee-link-size-medium":"large"===i?" bee-link-size-large":"xLarge"===i?" bee-link-size-xLarge":" bee-link-size-medium");return jsx(Fragment,{children:jsx("a",r?{id:s,className:l+(e?" "+e:""),href:r,children:n}:{id:s,className:l+(e?" "+e:""),onClick:t=>function(t){a&&a(t)}(t),children:n})})}styleInject(css_248z$10);var css_248z$$=".bee-seq-pos {\n margin: 0.5rem;\n align-items: center;\n display: flex;\n}\n\n.bee-seq-pos > span {\n align-items: center;\n display: flex;\n}\n\n.bee-seq-pos > span > span {\n padding-top: 1px;\n}\n\n.bee-seq-pos i {\n padding: 0 0.2rem 0 0.1rem;\n}\n\n.bee-seq-pos-bold {\n font-weight: 600;\n}\n\n.bee-seq-pos .bee-seq-pos-separator {\n padding: 0 0.5rem 0 0.5rem;\n}\n\n/* primary */\n.bee-seq-pos-primary {\n color: var(--primary-color);\n}\n\n/* secondary */\n.bee-seq-pos-secondary {\n color: var(--secondary-color);\n}\n\n/* default */\n.bee-seq-pos-default {\n color: var(--text-color);\n}";function BeeSequencePosition({id:t,className:e,data:n,type:r="primary"}){const o=null!=t?t:libExports.useId(1,"bee-seq-pos-")[0];return jsx("div",{id:o,className:"bee-seq-pos"+("primary"===r?" bee-seq-pos-primary":"secondary"===r?" bee-seq-pos-secondary":"default"===r?" bee-seq-pos-default":" bee-seq-pos-primary")+(e?" "+e:""),children:(()=>{if(n){let t=[];return n.forEach((e,n)=>{t.push(((t,e)=>{const n=(null==t?void 0:t.bold)?"bee-seq-pos-bold":void 0;return jsxs("span",{children:[(null==t?void 0:t.icon)?jsx("i",{className:t.icon}):null,null!=(null==t?void 0:t.label)?jsx("span",{className:n,children:t.label}):null]},`SeqPos_${e}`)})(e,n)),t.push(jsx("i",{className:"pi pi-chevron-right bee-seq-pos-separator"},">_"+n))}),t.pop(),t}})()})}styleInject(css_248z$$);var css_248z$_=".bee-chip-input .p-chips,\n.bee-chip-input .p-inputtext {\n width: 100%;\n}\n.bee-chip-input .p-chips .p-chips-multiple-container {\n max-height: 4.5rem;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n line-clamp: 2;\n white-space: normal;\n}\n.bee-chip-input .p-chips-token {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-chip-input.p-chips-multiple-container:not(:empty) + .p-chips-input-token {\n display: none;\n}\n\n.bee-chip-input-field-error .p-inputtext.p-chips-multiple-container {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-chip-input-field-valid .p-inputtext.p-chips-multiple-container {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-chip-input-readOnly .p-inputtext {\n pointer-events: none;\n}\n.bee-chip-input-readOnly .bee-chip-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n.bee-chip-input-readOnly {\n opacity: 1 !important;\n}\n.bee-chip-input-readOnly .p-chips-multiple-container {\n border-style: none;\n}\n\n.bee-chip-input-disabled {\n opacity: 0.33;\n cursor: default !important;\n pointer-events: none;\n}\n\n.bee-chip-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n padding-left: 4px;\n padding-right: 6px;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}";function BeeChipInput({id:t,className:e,label:n,type:r="primary",data:o=[],statusLabel:i,formstate:a="neutral",required:s,disabled:l,readOnly:p,placeholder:c,tooltip:d,tooltipOptions:u,itemTemplate:h,onChange:b}){var m;const f=null!==(m=null!=t?t:libExports.useId(1,"bee-chip-input-")[0])&&void 0!==m?m:"bee-chip-input",g=s?"bee-chip-input-label-required":"",v=s?"bee-chip-input-label-required-star":"";return jsxs("div",{id:f,className:"bee-chip-input p-float-label"+("primary"===r?" bee-chip-input-primary":"secondary"===r?" bee-chip-input-secondary":" bee-chip-input-primary")+(p?" bee-chip-input-readOnly":"")+(l?" bee-chip-input-disabled":"")+("valid"===a?" bee-chip-input-field-valid":"error"===a?" bee-chip-input-field-error":" bee-chip-input-field-neutral")+(e?" "+e:""),children:[jsx(Fragment,{children:p&&!o||p&&o.length<1?jsx(BeePlaceholder,{id:f,label:n}):jsx(Fragment,{children:jsx(Chips,Object.assign({value:o},void 0!==h?{itemTemplate:h}:{},{onChange:t=>function(t){!l&&b&&b(t)}(t),separator:",",addOnBlur:!0,removable:!p,readOnly:null!=p&&p,placeholder:c,tooltip:d,tooltipOptions:u}))})}),n?jsxs("label",{className:"bee-chip-input-label",children:[n,s?jsx("span",{className:g,children:jsx("span",{className:v,children:" *"})}):null]}):null,"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-chip-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}styleInject(css_248z$_);var css_248z$Z=".bee-cur-input-container .p-inputnumber,\n.bee-cur-input-container input {\n width: 100%;\n}\n.bee-cur-input-container .bee-cur-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n}\n.bee-cur-input-container .bee-cur-input-label {\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n.bee-cur-input-container .bee-cur-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n.bee-cur-input-container .bee-cur-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n.bee-cur-input-container .bee-cur-input-label .bee-cur-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n.bee-cur-input-container .bee-cur-input-field {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-cur-input-container .bee-cur-input-field-valid.p-inputtext {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n.bee-cur-input-container .bee-cur-input-field-error.p-inputtext {\n border-color: var(--error-color);\n border-width: 2px;\n}\n.bee-cur-input-container .bee-cur-input-field-readOnly.p-inputtext {\n border-color: transparent;\n}\n.bee-cur-input-container .bee-cur-input-field-readOnly.p-inputtext {\n opacity: 1 !important;\n}\n\n/* arrow styling */\n.bee-cur-input-container.bee-cur-input-container--showArrow {\n position: relative;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .icon-right-arrow {\n position: absolute;\n top: 0.65em;\n left: 0.5em;\n z-index: 2;\n rotate: 0deg;\n color: var(--surface-400);\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .icon-right-arrow:before {\n font-weight: 600 !important;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputtext {\n padding-left: 2em;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .up-arrow {\n color: var(--valid-color);\n rotate: -45deg;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .down-arrow {\n color: var(--error-color);\n rotate: 45deg;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .span-container .label.bee-cur-input-label {\n padding-left: 1.25em;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputwrapper-focus.p-inputnumber.p-component + label,\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputwrapper-filled.p-inputnumber.p-component + label {\n padding: 2px 4px;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component:focus-within label,\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputnumber:not(:empty) + label {\n padding: 2px 4px;\n}\n.bee-cur-input-container.bee-cur-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component + label {\n padding-left: 1.25em;\n}";function BeeCurrencyInput({id:t,className:e,label:n,value:r,showArrow:o,disabled:i,autoFocus:a,minFractionDigits:s,maxFractionDigits:l,max:p,min:c,currency:d="EUR",locale:u="de-DE",statusLabel:h,formstate:b="neutral",readOnly:m,required:f,placeholder:g,name:v,tooltip:y,tooltipOptions:x,onChange:w,onFocusOut:k}){var _;const S=null!==(_=null!=t?t:libExports.useId(1,"bee-cur-input-")[0])&&void 0!==_?_:"bee-cur-input",C=null!=s?s:2,E=null!=l?l:2;let P="";m&&(P=" bee-cur-input-field-readOnly",i=!0);const A=" bee-cur-input-container "+(o?" bee-cur-input-container--showArrow ":""),T="bee-cur-input-field"+("valid"===b?" bee-cur-input-field-valid":"error"===b?" bee-cur-input-field-error":" bee-cur-input-field-neutral")+P,D="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");return jsxs("div",{children:[m&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:S,label:n})}):jsxs("div",{className:A+(e?" "+e:""),children:[o?jsx("i",{className:D}):null,jsxs("span",{id:S,className:"p-float-label ",children:[jsx(InputNumber,{id:S+"input",value:null!=r?r:null,disabled:null!=i&&i,minFractionDigits:C,maxFractionDigits:E,max:p,min:c,autoFocus:a,mode:"currency",currency:d,inputId:S+"_input",inputClassName:T,locale:u,placeholder:g,name:v,tooltip:y,tooltipOptions:x,onValueChange:t=>function(t){!i&&w&&w(t)}(t),onBlur:t=>function(t){!i&&k&&k(t)}(t)}),n?jsxs("label",{htmlFor:S+"input",className:"bee-cur-input-label",children:[n,f&&n?jsx("span",{className:"bee-cur-input-label-required",children:jsx("span",{className:"bee-cur-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=b&&h?(()=>{const t="medium";return jsx("div",{className:"bee-cur-input-statusLabel",children:"error"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"error"}):"valid"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"valid"}):"neutral"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"neutral"}):null})})():null]})}styleInject(css_248z$Z);var css_248z$Y=".bee-date-input-container {\n width: 100%;\n}\n.bee-date-input-container .bee-date-input {\n width: 100%;\n}\n\n.bee-date-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n}\n\n.bee-date-input-label {\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-date-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-date-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-date-input-label .bee-date-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-date-input-container .p-calendar-disabled + label {\n padding-right: 4px;\n max-width: -webkit-calc(100% - 45px);\n}\n\n.bee-date-input .p-inputtext {\n width: 100%;\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-date-input-valid.p-component {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-date-input-error.p-component {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-date-input-readOnly {\n border-color: transparent !important;\n}\n\n.bee-date-input-readOnly + label {\n max-width: -webkit-calc(100% - 17px) !important;\n}\n\n.bee-date-input-readOnly .p-inputtext {\n opacity: 1 !important;\n}\n\n.bee-date-input-readOnly button {\n display: none;\n}";function BeeDateInput({id:t,className:e,label:n,value:r,statusLabel:o,formstate:i="neutral",disabled:a,readOnly:s,required:l,showButtonBar:p,dateFormat:c,view:d,minDate:u,maxDate:h,showMinMaxRange:b,showUTCDate:m,placeholder:f,tooltip:g,tooltipOptions:v,onChange:y,onFocusOut:x,panelClassName:w,locale:k="de"}){var _;const S=null!==(_=null!=t?t:libExports.useId(1,"bee-date-input-")[0])&&void 0!==_?_:"bee-date-input";let C="";s&&(C=" bee-date-input-readOnly",a=!0);const E=`bee-date-input ${"valid"===i?" bee-date-input-valid":"error"===i?" bee-date-input-error":" bee-date-input-neutral"} ${C} ${w||""}`;function P(t){if(!t||Array.isArray(t))return null;let e=new Date(t);return new Date(e.getTime()-6e4*e.getTimezoneOffset())}function A(t){if(!t||Array.isArray(t))return;let e=new Date(t);return new Date(e.getTime()+6e4*e.getTimezoneOffset())}function T(t){if(t&&!Array.isArray(t))return t instanceof Date?t:new Date(t)}return jsxs(Fragment,{children:[jsx("div",{id:S,className:"p-float-label bee-date-input-container"+(e?" "+e:""),children:s&&!r?jsx(BeePlaceholder,{id:S,label:n}):jsxs(Fragment,{children:[jsx(Calendar,{id:S+"input",value:m&&r?A(r):T(r),disabled:null!=a&&a,className:E,showIcon:!0,showButtonBar:null!=p&&p,dateFormat:null!=c?c:"dd.mm.y",view:null!=d?d:"date",minDate:u?m?A(u):T(u):void 0,maxDate:h?m?A(h):T(h):void 0,showMinMaxRange:null!=b&&b,placeholder:f,tooltip:g,tooltipOptions:v,onChange:t=>function(t){!a&&y&&(m&&(t.value=P(t.value)),y(t))}(t),onBlur:t=>function(t){var e,n;!a&&x&&(m?(t.target.value=null!==(n=null===(e=P(t.target.value))||void 0===e?void 0:e.toString())&&void 0!==n?n:t.target.value,x(t)):x(t))}(t),locale:k}),n?jsxs("label",{htmlFor:S+"input",className:"bee-date-input-label",children:[n,l&&n?jsx("span",{className:"bee-date-input-label-required",children:jsx("span",{className:"bee-date-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=i&&o?(()=>{const t="medium";return jsx("div",{className:"bee-date-input-statusLabel",children:"error"===i&&o?jsx(BeeLabel,{size:t,value:o,type:"error"}):"valid"===i&&o?jsx(BeeLabel,{size:t,value:o,type:"valid"}):"neutral"===i&&o?jsx(BeeLabel,{size:t,value:o,type:"neutral"}):null})})():null]})}styleInject(css_248z$Y),addLocale("de",{firstDayOfWeek:1,dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["Son","Mon","Die","Mit","Don","Fre","Sam"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen"});var css_248z$X=".bee-date-time-input-container .p-calendar {\n width: 100% !important;\n}\n\n.bee-date-time-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n}\n\n.bee-date-time-label {\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-date-time-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-date-time-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-date-time-label .bee-date-time-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-date-time-container .p-calendar-disabled + label {\n padding-right: 4px;\n max-width: -webkit-calc(100% - 45px);\n}\n\n.bee-date-time .p-inputtext {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-date-time-valid.p-component {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-date-time-error.p-component {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-date-time-input-readOnly .p-inputtext {\n border: none;\n}\n\n.bee-date-time-readOnly + label {\n max-width: -webkit-calc(100% - 17px) !important;\n}\n\n.bee-date-time-readOnly .p-inputtext {\n opacity: 1 !important;\n}\n\n.bee-date-time-readOnly button {\n display: none;\n}";function BeeDateTimeInput({id:t,className:e,label:n,value:r,disabled:o,statusLabel:i,formstate:a="neutral",readOnly:s,required:l,minDate:p,maxDate:c,showMinMaxRange:d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:m,onFocusOut:f}){var g;const v=null!==(g=null!=t?t:libExports.useId(1,"bee-date-time-input-")[0])&&void 0!==g?g:"bee-date-time-input";let y="";s&&(y=" bee-date-time-input-readOnly",o=!0);const x="bee-date-time-input"+("valid"===a?" bee-date-time-input-valid":"error"===a?" bee-date-time-input-error":"neutral"===a?" bee-date-time-input-neutral":"none"===a?" bee-date-time-field-neutral":" bee-date-time-input-neutral")+y;return jsxs(Fragment,{children:[s&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:v,label:n})}):jsxs("span",{id:v,className:"p-float-label bee-date-time-input-container"+(e?" "+e:""),children:[jsx(Calendar,{showTime:!0,showSeconds:!0,hourFormat:"24",dateFormat:"dd.mm.yy",value:r,disabled:null!=o&&o,className:x,minDate:p?new Date(p):void 0,maxDate:c?new Date(c):void 0,showMinMaxRange:null!=d&&d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:t=>function(t){!o&&m&&m(t)}(t),onBlur:t=>function(t){!o&&f&&f(t)}(t)}),n?jsxs("label",{htmlFor:v+"input",className:"bee-date-time-input-label",children:[n,l&&n?jsx("span",{className:"bee-date-time-input-label-required",children:jsx("span",{className:"bee-date-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-date-time-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}styleInject(css_248z$X);var css_248z$W=".bee-num-input-container .p-inputnumber,\n.bee-num-input-container input {\n width: 100%;\n}\n\n.bee-num-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-num-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-num-input-label .bee-num-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-num-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-num-input.bee-num-input-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n.bee-num-input.bee-num-input-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-num-input-container .bee-num-input-readOnly.p-inputtext {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-num-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n/* arrow styling */\n.bee-num-input-container.bee-num-input-container--showArrow {\n position: relative;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .icon-right-arrow {\n position: absolute;\n top: 0.65em;\n left: 0.5em;\n z-index: 2;\n rotate: 0deg;\n color: var(--surface-400);\n}\n.bee-num-input-container.bee-num-input-container--showArrow .icon-right-arrow:before {\n font-weight: 600 !important;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputtext {\n padding-left: 2em;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .up-arrow {\n color: var(--valid-color);\n rotate: -45deg;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .down-arrow {\n color: var(--error-color);\n rotate: 45deg;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .span-container .label.bee-num-input-label {\n padding-left: 1.25em;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputwrapper-focus.p-inputnumber.p-component + label,\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputwrapper-filled.p-inputnumber.p-component + label {\n padding: 2px 4px;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component:focus-within label,\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputnumber:not(:empty) + label {\n padding: 2px 4px;\n}\n.bee-num-input-container.bee-num-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component + label {\n padding-left: 1.25em;\n}";function BeeNumberInput({id:t,className:e,label:n,value:r,showArrow:o,autoFocus:i,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,disabled:c,grouping:d,locale:u="de-DE",statusLabel:h,formstate:b="neutral",readOnly:m,required:f,placeholder:g,tooltip:v,tooltipOptions:y,onChange:x,onFocusOut:w}){var k;const _=null!==(k=null!=t?t:libExports.useId(1,"bee-num-input")[0])&&void 0!==k?k:"bee-num-input";let S="";m&&(S=" bee-num-input-readOnly",c=!0);const C=" bee-num-input-container"+(o?" bee-num-input-container--showArrow":""),E="bee-num-input "+("valid"===b?"bee-num-input-valid":"error"===b?"bee-num-input-error":"bee-num-input-neutral")+S,P="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");return jsxs(Fragment,{children:[m&&!r&&0!==r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:_,label:n})}):jsxs("div",{className:"flex-grow-0"+C+(e?" "+e:""),children:[o?jsx("i",{className:P}):null,jsxs("span",{id:_,className:"p-float-label",children:[jsx(InputNumber,{id:_+"input",value:null!=r?r:null,disabled:null!=c&&c,mode:"decimal",autoFocus:i,useGrouping:d,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,locale:u,inputClassName:E,placeholder:g,tooltip:v,tooltipOptions:y,onValueChange:t=>function(t){!c&&x&&x(t)}(t),onBlur:t=>function(t){!c&&w&&w(t)}(t)}),n?jsxs("label",{htmlFor:_+"input",className:"bee-num-input-label",children:[n,f&&n?jsx("span",{className:"bee-num-input-label-required",children:jsx("span",{className:"bee-num-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=b&&h?(()=>{const t="medium";return jsx("div",{className:"bee-num-input-statusLabel",children:"error"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"error"}):"valid"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"valid"}):"neutral"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"neutral"}):null})})():null]})}styleInject(css_248z$W);var css_248z$V=".bee-pw-container {\n display: block;\n width: 100%;\n position: relative;\n}\n\n.bee-pw-container .p-password {\n display: flex !important;\n width: 100% !important;\n}\n\n.bee-pw-container .p-password .p-icon-field,\n.bee-pw-container .p-password .p-icon-field-right {\n flex: 1 1 auto;\n min-width: 0;\n width: 100%;\n position: relative;\n}\n\n.bee-pw-container .p-inputtext,\n.bee-pw-container .p-password .p-inputtext {\n width: 100%;\n}\n\n/* Keep the eye icon inside the field on the right, not below */\n.bee-pw-container .p-password .p-input-icon {\n position: absolute !important;\n top: 50% !important;\n right: 0.75rem !important;\n margin-top: -0.5rem !important;\n left: auto !important;\n color: rgba(0, 0, 0, 0.6);\n}\n\n/* Remove focus frame/outline when clicking the toggle icon */\n.bee-pw-container .p-password .p-input-icon:focus, .bee-pw-container .p-password .p-input-icon:focus-visible,\n.bee-pw-container .p-password .p-input-icon *:focus,\n.bee-pw-container .p-password .p-input-icon *:focus-visible {\n outline: none !important;\n box-shadow: none !important;\n}\n\n.bee-pw-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-pw-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-pw-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-pw-input-label .bee-pw-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-pw-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.p-inputtext.bee-pw-input-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.p-inputtext.bee-pw-input-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-pw-input-readOnly div {\n padding: 1px;\n}\n\n.bee-pw-input-readOnly input {\n opacity: 1 !important;\n border-style: none;\n}\n\n.bee-pw-input-readOnly i {\n display: none;\n}";function BeePasswordInput({id:t,className:e,label:n,value:r,disabled:o,showPwStrength:i,showHint:a,statusLabel:s,formstate:l="neutral",readOnly:p,required:c,placeholder:d,tooltip:u,tooltipOptions:h,onChange:b,onFocusOut:m}){var f;const g=null!==(f=null!=t?t:libExports.useId(1,"bee-pw-input")[0])&&void 0!==f?f:"bee-pw-input";let v="";p&&(v=" bee-pw-input-readOnly",o=!0);const y="bee-pw-input "+("valid"===l?"bee-pw-input-valid":"error"===l?"bee-pw-input-error":"bee-pw-input-neutral"),x="p-float-label bee-pw-container"+v,w=jsx("h6",{children:"Passwort wählen"});const k=jsxs(Fragment,{children:[jsx(Divider,{}),jsx("p",{className:"mt-2",children:"Suggestions"}),jsxs("ul",{className:"pl-2 ml-2 mt-0",style:{lineHeight:"1.5"},children:[jsx("li",{children:"Mind. einen Kleinbuchstaben"}),jsx("li",{children:"Mind. einen Großbuchstaben"}),jsx("li",{children:"Mind. eine Zahl"}),jsx("li",{children:"Mind. 8 Buchstaben/Zahlen"})]})]});return jsxs(Fragment,{children:[jsx("div",{className:null!=e?e:"",children:p&&!r?jsx(BeePlaceholder,{id:g,label:n}):jsxs("span",{id:g,className:x,children:[jsx(Password,{id:g+"input",value:null!=r?r:void 0,disabled:null!=o&&o,onChange:t=>function(t){!o&&b&&b(t)}(t),onBlur:m,inputClassName:y,toggleMask:!0,feedback:i,header:a?w:null,footer:a?k:null,placeholder:d,tooltip:u,tooltipOptions:h}),n?jsxs("label",{htmlFor:g+"input",className:"bee-pw-input-label",children:[n,c&&n?jsx("span",{className:"bee-pw-input-label-required",children:jsx("span",{className:"bee-pw-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=l&&s?(()=>{const t="medium";return jsx("div",{className:"bee-pw-input-statusLabel",children:"error"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"error"}):"valid"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"valid"}):"neutral"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"neutral"}):null})})():null]})}styleInject(css_248z$V);var css_248z$U=".span-container .p-inputnumber,\n.span-container input {\n width: 100%;\n}\n\n.bee-percent-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-percent-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-percent-input-label .bee-percent-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-percent-input {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bee-percent-input .bee-percent-input-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n.bee-percent-input .bee-percent-input-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-percentage-input-container .bee-percent-input-readOnly.p-inputtext {\n border-style: none;\n opacity: 1 !important;\n}\n\n.bee-percent-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n/* arrow styling */\n.bee-percentage-input-container.bee-percentage-input-container--showArrow {\n position: relative;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .icon-right-arrow {\n position: absolute;\n top: 1em;\n left: 0.5em;\n z-index: 2;\n rotate: 0deg;\n color: var(--surface-400);\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .icon-right-arrow:before {\n font-weight: 600 !important;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputtext {\n padding-left: 2em;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .up-arrow {\n color: var(--valid-color);\n rotate: -45deg;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .down-arrow {\n color: var(--error-color);\n rotate: 45deg;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .span-container .label.bee-percent-input-label {\n padding-left: 1.25em;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputwrapper-focus.p-inputnumber.p-component + label,\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputwrapper-filled.p-inputnumber.p-component + label {\n padding: 2px 4px;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component:focus-within label,\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputnumber:not(:empty) + label {\n padding: 2px 4px;\n}\n.bee-percentage-input-container.bee-percentage-input-container--showArrow .p-inputwrapper.p-inputnumber.p-component + label {\n padding-left: 1.25em;\n}";function BeePercentageInput({id:t,className:e,label:n,value:r,showArrow:o,autoFocus:i,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,locale:c="de-DE",disabled:d,grouping:u,statusLabel:h,formstate:b="neutral",readOnly:m,required:f,placeholder:g,tooltip:v,tooltipOptions:y,onChange:x,onFocusOut:w}){var k;const _=null!==(k=null!=t?t:libExports.useId(1,"bee-percent-input")[0])&&void 0!==k?k:"bee-percent-input",S="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");let C="";m&&(C=" bee-percent-input-readOnly",d=!0);const E=" bee-percentage-input-container "+(o?" bee-percentage-input-container--showArrow":""),P="bee-percent-input "+("valid"===b?"bee-percent-input-valid":"error"===b?"bee-percent-input-error":"bee-percent-input-neutral")+C;return jsxs(Fragment,{children:[m&&!r&&0!==r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:_,label:n})}):jsxs("div",{className:"flex-grow-0 "+E+(e?" "+e:""),children:[o?jsx("i",{className:S}):null,jsxs("span",{id:_,className:"p-float-label span-container",children:[jsx(InputNumber,{id:_+"input",value:null!=r?r:null,disabled:null!=d&&d,mode:"decimal",suffix:"%",autoFocus:i,useGrouping:u,minFractionDigits:a,maxFractionDigits:s,max:l,min:p,locale:c,inputClassName:P,placeholder:g,tooltip:v,tooltipOptions:y,onValueChange:t=>function(t){!d&&x&&x(t)}(t),onBlur:t=>function(t){!d&&w&&w(t)}(t)}),n?jsxs("label",{htmlFor:_+"input",className:"bee-percent-input-label",children:[n,f&&n?jsx("span",{className:"bee-percent-input-label-required",children:jsx("span",{className:"bee-percent-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=b&&h?(()=>{const t="medium";return jsx("div",{className:"bee-percent-input-statusLabel",children:"error"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"error"}):"valid"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"valid"}):"neutral"===b&&h?jsx(BeeLabel,{size:t,value:h,type:"neutral"}):null})})():null]})}styleInject(css_248z$U);var css_248z$T=".bee-ta-input-container .p-inputtextarea {\n width: 100%;\n}\n\n.bee-ta-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 1.1rem);\n max-width: -moz-calc(100% - 1.1rem);\n max-width: calc(100% - 1.1rem);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-ta-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-ta-input-label .bee-ta-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.p-float-label .bee-ta-input-valid.p-inputtextarea {\n border-color: var(--valid-color) !important;\n border-width: 2px !important;\n}\n\n.p-float-label .bee-ta-input-error.p-inputtextarea {\n border-color: var(--error-color) !important;\n border-width: 2px !important;\n}\n\n.p-float-label .bee-ta-input-readOnly.p-inputtextarea {\n border-style: none !important;\n padding: 0.81rem;\n opacity: 1 !important;\n}\n\n.bee-ta-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeTextArea({id:t,className:e,label:n,value:r,rows:o,disabled:i,autoResize:a,statusLabel:s,formstate:l="neutral",readOnly:p,required:c,placeholder:d,tooltip:u,tooltipOptions:h,onChange:b,onFocusOut:m}){var f;const g=null!==(f=null!=t?t:libExports.useId(1,"bee-ta-input-")[0])&&void 0!==f?f:"bee-ta-input";let v="";p&&(v=" bee-ta-input-readOnly",i=!0);const y=("valid"===l?"bee-ta-input-valid":"error"===l?"bee-ta-input-error":"neutral"===l?"bee-ta-input-neutral":"none"===l?" bee-cur-input-field-neutral":"bee-ta-input-neutral")+v;return jsxs(Fragment,{children:[p&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:g,label:n})}):jsxs("span",{id:g,className:"p-float-label bee-ta-input-container"+(e?" "+e:""),children:[jsx(Fragment,{children:jsx(InputTextarea,{id:g+"input",value:null!=r?r:void 0,rows:o,disabled:null!=i&&i,autoResize:a,className:y,placeholder:d,tooltip:u,tooltipOptions:h,onChange:t=>function(t){!i&&b&&b(t)}(t),onBlur:t=>function(t){!i&&m&&m(t)}(t)})}),n?jsxs("label",{htmlFor:g+"input",className:"bee-ta-input-label",children:[n,c&&n?jsx("span",{className:"bee-ta-input-label-required",children:jsx("span",{className:"bee-ta-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=l&&s?(()=>{const t="medium";return jsx("div",{className:"bee-ta-input-statusLabel",children:"error"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"error"}):"valid"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"valid"}):"neutral"===l&&s?jsx(BeeLabel,{size:t,value:s,type:"neutral"}):null})})():null]})}styleInject(css_248z$T);var css_248z$S=".bee-time-input-container .p-calendar {\n width: 100%;\n}\n\n.bee-time-input-label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-left: 4px;\n padding-right: 6px;\n}\n\n.bee-time-input-label-required {\n padding-right: 3px;\n padding-left: 4px;\n}\n\n.bee-time-input-label .bee-time-input-label-required-star {\n position: absolute;\n right: 0px;\n max-width: 100%;\n padding-right: inherit;\n}\n\n.bee-time-input-container .p-calendar-disabled + label {\n padding-right: 4px;\n max-width: -webkit-calc(100% - 45px);\n}\n\n.bee-time-input .p-inputtext {\n overflow-x: clip;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bee-time-input-valid .p-inputtext {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-time-input-error .p-inputtext {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-time-input-readOnly .p-inputtext {\n border: none;\n}\n\n.bee-time-input-readOnly + label {\n max-width: -webkit-calc(100% - 17px) !important;\n}\n\n.bee-time-input-readOnly .p-inputtext.p-component {\n opacity: 1;\n}\n\n.bee-time-input-readOnly button {\n display: none;\n}\n\n.bee-time-input-statusLabel {\n word-break: break-word;\n padding: 0.25em 0.25em 0 0.5em;\n}";function BeeTimeInput({id:t,className:e,label:n,value:r,disabled:o,statusLabel:i,formstate:a="neutral",readOnly:s,required:l,minDate:p,maxDate:c,showMinMaxRange:d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:m,onFocusOut:f}){var g;const v=null!==(g=null!=t?t:libExports.useId(1,"bee-time-input-")[0])&&void 0!==g?g:"bee-time-input";let y="";s&&(y=" bee-time-input-readOnly",o=!0);const x="bee-time-input"+("valid"===a?" bee-time-input-valid":"error"===a?" bee-time-input-error":"neutral"===a?" bee-time-input-neutral":"none"===a?" bee-time-input-field-neutral":" bee-time-input-neutral")+y;return jsxs(Fragment,{children:[s&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:v,label:n})}):jsxs("span",{id:v,className:"p-float-label bee-time-input-container"+(e?" "+e:""),children:[jsx(Calendar,{timeOnly:!0,showTime:!0,hourFormat:"24",value:r,readOnlyInput:null!=s&&s,disabled:null!=o&&o,className:x,minDate:p?new Date(p):void 0,maxDate:c?new Date(c):void 0,showMinMaxRange:null!=d&&d,placeholder:u,tooltip:h,tooltipOptions:b,onChange:t=>function(t){!o&&m&&m(t)}(t),onBlur:t=>function(t){!o&&f&&f(t)}(t)}),n?jsxs("label",{htmlFor:v+"input",className:"bee-time-input-label",children:[n,l&&n?jsx("span",{className:"bee-time-input-label-required",children:jsx("span",{className:"bee-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=a&&i?(()=>{const t="medium";return jsx("div",{className:"bee-time-input-statusLabel",children:"error"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"error"}):"valid"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"valid"}):"neutral"===a&&i?jsx(BeeLabel,{size:t,value:i,type:"neutral"}):null})})():null]})}styleInject(css_248z$S);var lodash$1={exports:{}},lodash=lodash$1.exports,hasRequiredLodash;
|
|
20
20
|
/**
|
|
21
21
|
* @license
|
|
22
22
|
* Lodash <https://lodash.com/>
|
|
@@ -37,7 +37,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return objectAssign=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),l=1;l<arguments.length;l++){for(var p in i=Object(arguments[l]))e.call(i,p)&&(s[p]=i[p]);if(t){a=t(i);for(var c=0;c<a.length;c++)n.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s},objectAssign}function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;return ReactPropTypesSecret_1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function requireHas(){return hasRequiredHas?has:(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty))}function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=requireReactPropTypesSecret(),n={},r=requireHas();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var p in o)if(r(o,p)){var c;try{if("function"!=typeof o[p]){var d=Error((s||"React class")+": "+a+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[p](i,p,s,a,null,e)}catch(t){c=t}if(!c||c instanceof Error||t((s||"React class")+": type specification of "+a+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var u=l?l():"";t("Failed "+a+" type: "+c.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},checkPropTypes_1=o}function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var t=requireReactIs(),e=requireObjectAssign(),n=requireReactPropTypesSecret(),r=requireHas(),o=requireCheckPropTypes(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),factoryWithTypeCheckers=function(s,l){var p="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:b(a),arrayOf:function(t){return b(function(e,r,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+v(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var p=t(s,l,o,i,a+"["+l+"]",n);if(p instanceof Error)return p}return null})},element:b(function(t,e,n,r,o){var i=t[e];return s(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:b(function(e,n,r,o,i){var a=e[n];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(t){return b(function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||c;return new h("Invalid "+o+" `"+i+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null})},node:b(function(t,e,n,r,o){return g(t[e])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(t){return b(function(e,o,i,a,s){if("function"!=typeof t)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=e[o],p=v(l);if("object"!==p)return new h("Invalid "+a+" `"+s+"` of type `"+p+"` supplied to `"+i+"`, expected an object.");for(var c in l)if(r(l,c)){var d=t(l,c,i,a,s+"."+c,n);if(d instanceof Error)return d}return null})},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return b(function(e,n,r,o,i){for(var a=e[n],s=0;s<t.length;s++)if(u(a,t[s]))return null;var l=JSON.stringify(t,function(t,e){return"symbol"===y(e)?String(e):e});return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+e+"."),a}return b(function(e,o,i,a,s){for(var l=[],p=0;p<t.length;p++){var c=(0,t[p])(e,o,i,a,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(t){return b(function(e,r,o,i,a){var s=e[r],l=v(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var p in t){var c=t[p];if("function"!=typeof c)return f(o,i,a,p,y(c));var d=c(s,p,o,i,a+"."+p,n);if(d)return d}return null})},exact:function(t){return b(function(o,i,a,s,l){var p=o[i],c=v(p);if("object"!==c)return new h("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=e({},o[i],t);for(var u in d){var b=t[u];if(r(t,u)&&"function"!=typeof b)return f(a,s,l,u,y(b));if(!b)return new h("Invalid "+s+" `"+l+"` key `"+u+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var m=b(p,u,a,s,l+"."+u,n);if(m)return m}return null})}};function u(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function b(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function o(o,a,s,p,d,u,b){if(p=p||c,u=u||s,b!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=p+":"+s;!e[f]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+p+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[f]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+d+" `"+u+"` is marked as required in `"+p+"`, but its value is `null`."):new h("The "+d+" `"+u+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:t(a,s,p,d,u)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(t){return b(function(e,n,r,o,i,a){var s=e[n];return v(s)!==t?new h("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null})}function f(t,e,n,r,o){return new h((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||s(t))return!0;var e=function(t){var e=t&&(p&&t[p]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function y(t){if(null==t)return""+t;var e=v(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=y(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},factoryWithTypeCheckers}function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var t=requireReactPropTypesSecret();function e(){}function n(){}return n.resetWarningCache=e,factoryWithThrowingShims=function(){function r(e,n,r,o,i,a){if(a!==t){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}}function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,"production"!==process.env.NODE_ENV){var t=requireReactIs();propTypes.exports=requireFactoryWithTypeCheckers()(t.isElement,true)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var propTypesExports=requirePropTypes(),PropTypes=getDefaultExportFromCjs(propTypesExports);const COMMON_MIME_TYPES=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function toFileWithPath(t,e,n){const r=withMimeType(t),{webkitRelativePath:o}=t,i="string"==typeof e?e:"string"==typeof o&&o.length>0?o:`./${t.name}`;return"string"!=typeof r.path&&setObjProp(r,"path",i),setObjProp(r,"relativePath",i),r}function withMimeType(t){const{name:e}=t;if(e&&-1!==e.lastIndexOf(".")&&!t.type){const n=e.split(".").pop().toLowerCase(),r=COMMON_MIME_TYPES.get(n);r&&Object.defineProperty(t,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return t}function setObjProp(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}const FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(t){return __awaiter(this,void 0,void 0,function*(){return isObject(t)&&isDataTransfer(t.dataTransfer)?getDataTransferFiles(t.dataTransfer,t.type):isChangeEvt(t)?getInputFiles(t):Array.isArray(t)&&t.every(t=>"getFile"in t&&"function"==typeof t.getFile)?getFsHandleFiles(t):[]})}function isDataTransfer(t){return isObject(t)}function isChangeEvt(t){return isObject(t)&&isObject(t.target)}function isObject(t){return"object"==typeof t&&null!==t}function getInputFiles(t){return fromList(t.target.files).map(t=>toFileWithPath(t))}function getFsHandleFiles(t){return __awaiter(this,void 0,void 0,function*(){return(yield Promise.all(t.map(t=>t.getFile()))).map(t=>toFileWithPath(t))})}function getDataTransferFiles(t,e){return __awaiter(this,void 0,void 0,function*(){if(t.items){const n=fromList(t.items).filter(t=>"file"===t.kind);if("drop"!==e)return n;return noIgnoredFiles(flatten(yield Promise.all(n.map(toFilePromises))))}return noIgnoredFiles(fromList(t.files).map(t=>toFileWithPath(t)))})}function noIgnoredFiles(t){return t.filter(t=>-1===FILES_TO_IGNORE.indexOf(t.name))}function fromList(t){if(null===t)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n];e.push(r)}return e}function toFilePromises(t){if("function"!=typeof t.webkitGetAsEntry)return fromDataTransferItem(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?fromDirEntry(e):fromDataTransferItem(t,e)}function flatten(t){return t.reduce((t,e)=>[...t,...Array.isArray(e)?flatten(e):[e]],[])}function fromDataTransferItem(t,e){return __awaiter(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&"function"==typeof t.getAsFileSystemHandle){const e=yield t.getAsFileSystemHandle();if(null===e)throw new Error(`${t} is not a File`);if(void 0!==e){const t=yield e.getFile();return t.handle=e,toFileWithPath(t)}}const r=t.getAsFile();if(!r)throw new Error(`${t} is not a File`);return toFileWithPath(r,null!==(n=null==e?void 0:e.fullPath)&&void 0!==n?n:void 0)})}function fromEntry(t){return __awaiter(this,void 0,void 0,function*(){return t.isDirectory?fromDirEntry(t):fromFileEntry(t)})}function fromDirEntry(t){const e=t.createReader();return new Promise((t,n)=>{const r=[];!function o(){e.readEntries(e=>__awaiter(this,void 0,void 0,function*(){if(e.length){const t=Promise.all(e.map(fromEntry));r.push(t),o()}else try{const e=yield Promise.all(r);t(e)}catch(t){n(t)}}),t=>{n(t)})}()})}function fromFileEntry(t){return __awaiter(this,void 0,void 0,function*(){return new Promise((e,n)=>{t.file(n=>{const r=toFileWithPath(n,t.fullPath);e(r)},t=>{n(t)})})})}var es={},hasRequiredEs;function requireEs(){return hasRequiredEs||(hasRequiredEs=1,es.__esModule=!0,es.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var r=t.name||"",o=(t.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?r.toLowerCase().endsWith(e):e.endsWith("/*")?i===e.replace(/\/.*$/,""):o===e})}return!0}),es}var esExports=requireEs(),_accepts=getDefaultExportFromCjs(esExports);function _toConsumableArray$1(t){return _arrayWithoutHoles$1(t)||_iterableToArray$1(t)||_unsupportedIterableToArray$1(t)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray$1(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles$1(t){if(Array.isArray(t))return _arrayLikeToArray$1(t)}function ownKeys$1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$1(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$1(Object(n),!0).forEach(function(e){_defineProperty$1(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty$1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _slicedToArray$1(t,e){return _arrayWithHoles$1(t)||_iterableToArrayLimit$1(t,e)||_unsupportedIterableToArray$1(t,e)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray$1(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray$1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$1(t,e):void 0}}function _arrayLikeToArray$1(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit$1(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}function _arrayWithHoles$1(t){if(Array.isArray(t))return t}var accepts="function"==typeof _accepts?_accepts:_accepts.default,FILE_INVALID_TYPE="file-invalid-type",FILE_TOO_LARGE="file-too-large",FILE_TOO_SMALL="file-too-small",TOO_MANY_FILES="too-many-files",getInvalidTypeRejectionErr=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),e=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:FILE_INVALID_TYPE,message:"File type must be ".concat(e)}},getTooLargeRejectionErr=function(t){return{code:FILE_TOO_LARGE,message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},getTooSmallRejectionErr=function(t){return{code:FILE_TOO_SMALL,message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},TOO_MANY_FILES_REJECTION={code:TOO_MANY_FILES,message:"Too many files"};function isDataTransferItemWithEmptyType(t){return""===t.type&&"function"==typeof t.getAsFile}function fileAccepted(t,e){var n="application/x-moz-file"===t.type||accepts(t,e)||isDataTransferItemWithEmptyType(t);return[n,n?null:getInvalidTypeRejectionErr(e)]}function fileMatchSize(t,e,n){if(isDefined(t.size))if(isDefined(e)&&isDefined(n)){if(t.size>n)return[!1,getTooLargeRejectionErr(n)];if(t.size<e)return[!1,getTooSmallRejectionErr(e)]}else{if(isDefined(e)&&t.size<e)return[!1,getTooSmallRejectionErr(e)];if(isDefined(n)&&t.size>n)return[!1,getTooLargeRejectionErr(n)]}return[!0,null]}function isDefined(t){return null!=t}function allFilesAccepted(t){var e=t.files,n=t.accept,r=t.minSize,o=t.maxSize,i=t.multiple,a=t.maxFiles,s=t.validator;return!(!i&&e.length>1||i&&a>=1&&e.length>a)&&e.every(function(t){var e=_slicedToArray$1(fileAccepted(t,n),1)[0],i=_slicedToArray$1(fileMatchSize(t,r,o),1)[0],a=s?s(t):null;return e&&i&&!a})}function isPropagationStopped(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function isEvtWithFiles(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(t){return"Files"===t||"application/x-moz-file"===t}):!!t.target&&!!t.target.files}function onDocumentDragOver(t){t.preventDefault()}function isIe(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}function isEdge(t){return-1!==t.indexOf("Edge/")}function isIeOrEdge(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(t)||isEdge(t)}function composeEventHandlers(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.some(function(e){return!isPropagationStopped(t)&&e&&e.apply(void 0,[t].concat(r)),isPropagationStopped(t)})}}function canUseFileSystemAccessAPI(){return"showOpenFilePicker"in window}function pickerOptionsFromAccept(t){return isDefined(t)?[{description:"Files",accept:Object.entries(t).filter(function(t){var e=_slicedToArray$1(t,2),n=e[0],r=e[1],o=!0;return isMIMEType(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(isExt)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(t,e){var n=_slicedToArray$1(e,2),r=n[0],o=n[1];return _objectSpread$1(_objectSpread$1({},t),{},_defineProperty$1({},r,o))},{})}]:t}function acceptPropAsAcceptAttr(t){if(isDefined(t))return Object.entries(t).reduce(function(t,e){var n=_slicedToArray$1(e,2),r=n[0],o=n[1];return[].concat(_toConsumableArray$1(t),[r],_toConsumableArray$1(o))},[]).filter(function(t){return isMIMEType(t)||isExt(t)}).join(",")}function isAbort(t){return t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)}function isSecurityError(t){return t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)}function isMIMEType(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||"application/*"===t||/\w+\/[-+.\w]+/g.test(t)}function isExt(t){return/^.*\.[\w]+$/.test(t)}var _excluded=["children"],_excluded2=["open"],_excluded3=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_excluded4=["refKey","onChange","onClick"];function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _objectWithoutProperties(t,e){if(null==t)return{};var n,r,o=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var Dropzone=forwardRef(function(t,e){var n=t.children,r=useDropzone(_objectWithoutProperties(t,_excluded)),o=r.open,i=_objectWithoutProperties(r,_excluded2);return useImperativeHandle(e,function(){return{open:o}},[o]),React__default.createElement(Fragment$1,null,n(_objectSpread(_objectSpread({},i),{},{open:o})))});Dropzone.displayName="Dropzone";var defaultProps={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Dropzone.defaultProps=defaultProps,Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,autoFocus:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,onError:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]},UserAgent_DEPRECATED_1,hasRequiredUserAgent_DEPRECATED,ExecutionEnvironment_1,hasRequiredExecutionEnvironment,isEventSupported_1,hasRequiredIsEventSupported,normalizeWheel_1,hasRequiredNormalizeWheel$1,normalizeWheel$1,hasRequiredNormalizeWheel;function useDropzone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_objectSpread(_objectSpread({},defaultProps),t),n=e.accept,r=e.disabled,o=e.getFilesFromEvent,i=e.maxSize,a=e.minSize,s=e.multiple,l=e.maxFiles,p=e.onDragEnter,c=e.onDragLeave,d=e.onDragOver,u=e.onDrop,h=e.onDropAccepted,b=e.onDropRejected,m=e.onFileDialogCancel,f=e.onFileDialogOpen,g=e.useFsAccessApi,v=e.autoFocus,y=e.preventDropOnDocument,x=e.noClick,w=e.noKeyboard,k=e.noDrag,_=e.noDragEventsBubbling,S=e.onError,C=e.validator,E=useMemo(function(){return acceptPropAsAcceptAttr(n)},[n]),P=useMemo(function(){return pickerOptionsFromAccept(n)},[n]),A=useMemo(function(){return"function"==typeof f?f:noop},[f]),T=useMemo(function(){return"function"==typeof m?m:noop},[m]),D=useRef(null),I=useRef(null),z=_slicedToArray(useReducer(reducer,initialState),2),M=z[0],j=z[1],q=M.isFocused,F=M.isFileDialogActive,R=useRef("undefined"!=typeof window&&window.isSecureContext&&g&&canUseFileSystemAccessAPI()),O=function(){!R.current&&F&&setTimeout(function(){I.current&&(I.current.files.length||(j({type:"closeDialog"}),T()))},300)};useEffect(function(){return window.addEventListener("focus",O,!1),function(){window.removeEventListener("focus",O,!1)}},[I,F,T,R]);var B=useRef([]),L=useRef([]),N=function(t){D.current&&D.current.contains(t.target)||(t.preventDefault(),B.current=[])};useEffect(function(){return y&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",N,!1)),function(){y&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",N))}},[D,y]),useEffect(function(){var t=function(t){L.current=[].concat(_toConsumableArray(L.current),[t.target]),isEvtWithFiles(t)&&j({isDragGlobal:!0,type:"setDragGlobal"})},e=function(t){L.current=L.current.filter(function(e){return e!==t.target&&null!==e}),L.current.length>0||j({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){L.current=[],j({isDragGlobal:!1,type:"setDragGlobal"})},r=function(){L.current=[],j({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",t,!1),document.addEventListener("dragleave",e,!1),document.addEventListener("dragend",n,!1),document.addEventListener("drop",r,!1),function(){document.removeEventListener("dragenter",t),document.removeEventListener("dragleave",e),document.removeEventListener("dragend",n),document.removeEventListener("drop",r)}},[D]),useEffect(function(){return!r&&v&&D.current&&D.current.focus(),function(){}},[D,v,r]);var V=useCallback(function(t){S?S(t):console.error(t)},[S]),H=useCallback(function(t){t.preventDefault(),t.persist(),nt(t),B.current=[].concat(_toConsumableArray(B.current),[t.target]),isEvtWithFiles(t)&&Promise.resolve(o(t)).then(function(e){if(!isPropagationStopped(t)||_){var n=e.length,r=n>0&&allFilesAccepted({files:e,accept:E,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:C});j({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),p&&p(t)}}).catch(function(t){return V(t)})},[o,p,V,_,E,a,i,s,l,C]),W=useCallback(function(t){t.preventDefault(),t.persist(),nt(t);var e=isEvtWithFiles(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(t){}return e&&d&&d(t),!1},[d,_]),G=useCallback(function(t){t.preventDefault(),t.persist(),nt(t);var e=B.current.filter(function(t){return D.current&&D.current.contains(t)}),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),B.current=e,e.length>0||(j({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(t)&&c&&c(t))},[D,c,_]),$=useCallback(function(t,e){var n=[],r=[];t.forEach(function(t){var e=_slicedToArray(fileAccepted(t,E),2),o=e[0],s=e[1],l=_slicedToArray(fileMatchSize(t,a,i),2),p=l[0],c=l[1],d=C?C(t):null;if(o&&p&&!d)n.push(t);else{var u=[s,c];d&&(u=u.concat(d)),r.push({file:t,errors:u.filter(function(t){return t})})}}),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach(function(t){r.push({file:t,errors:[TOO_MANY_FILES_REJECTION]})}),n.splice(0)),j({acceptedFiles:n,fileRejections:r,type:"setFiles"}),u&&u(n,r,e),r.length>0&&b&&b(r,e),n.length>0&&h&&h(n,e)},[j,s,E,a,i,l,u,h,b,C]),U=useCallback(function(t){t.preventDefault(),t.persist(),nt(t),B.current=[],isEvtWithFiles(t)&&Promise.resolve(o(t)).then(function(e){isPropagationStopped(t)&&!_||$(e,t)}).catch(function(t){return V(t)}),j({type:"reset"})},[o,$,V,_]),Y=useCallback(function(){if(R.current){j({type:"openDialog"}),A();var t={multiple:s,types:P};window.showOpenFilePicker(t).then(function(t){return o(t)}).then(function(t){$(t,null),j({type:"closeDialog"})}).catch(function(t){isAbort(t)?(T(t),j({type:"closeDialog"})):isSecurityError(t)?(R.current=!1,I.current?(I.current.value=null,I.current.click()):V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):V(t)})}else I.current&&(j({type:"openDialog"}),A(),I.current.value=null,I.current.click())},[j,A,T,g,$,V,P,s]),K=useCallback(function(t){D.current&&D.current.isEqualNode(t.target)&&(" "!==t.key&&"Enter"!==t.key&&32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),Y()))},[D,Y]),Z=useCallback(function(){j({type:"focus"})},[]),X=useCallback(function(){j({type:"blur"})},[]),J=useCallback(function(){x||(isIeOrEdge()?setTimeout(Y,0):Y())},[x,Y]),Q=function(t){return r?null:t},tt=function(t){return w?null:Q(t)},et=function(t){return k?null:Q(t)},nt=function(t){_&&t.stopPropagation()},rt=useMemo(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,o=t.role,i=t.onKeyDown,a=t.onFocus,s=t.onBlur,l=t.onClick,p=t.onDragEnter,c=t.onDragOver,d=t.onDragLeave,u=t.onDrop,h=_objectWithoutProperties(t,_excluded3);return _objectSpread(_objectSpread(_defineProperty({onKeyDown:tt(composeEventHandlers(i,K)),onFocus:tt(composeEventHandlers(a,Z)),onBlur:tt(composeEventHandlers(s,X)),onClick:Q(composeEventHandlers(l,J)),onDragEnter:et(composeEventHandlers(p,H)),onDragOver:et(composeEventHandlers(c,W)),onDragLeave:et(composeEventHandlers(d,G)),onDrop:et(composeEventHandlers(u,U)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||w?{}:{tabIndex:0}),h)}},[D,K,Z,X,J,H,W,G,U,w,k,r]),ot=useCallback(function(t){t.stopPropagation()},[]),it=useMemo(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.onChange,o=t.onClick,i=_objectWithoutProperties(t,_excluded4);return _objectSpread(_objectSpread({},_defineProperty({accept:E,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Q(composeEventHandlers(r,U)),onClick:Q(composeEventHandlers(o,ot)),tabIndex:-1},n,I)),i)}},[I,n,s,U,r]);return _objectSpread(_objectSpread({},M),{},{isFocused:q&&!r,getRootProps:rt,getInputProps:it,rootRef:D,inputRef:I,open:Q(Y)})}function reducer(t,e){switch(e.type){case"focus":return _objectSpread(_objectSpread({},t),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},t),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return _objectSpread(_objectSpread({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return _objectSpread(_objectSpread({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:!1});case"setDragGlobal":return _objectSpread(_objectSpread({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return _objectSpread({},initialState);default:return t}}function noop(){}function requireUserAgent_DEPRECATED(){if(hasRequiredUserAgent_DEPRECATED)return UserAgent_DEPRECATED_1;hasRequiredUserAgent_DEPRECATED=1;var t,e,n,r,o,i,a,s,l,p,c,d,u,h,b,m=!1;function f(){if(!m){m=!0;var f=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(f),v=/(Mac OS X)|(Windows)|(Linux)/.exec(f);if(d=/\b(iPhone|iP[ao]d)/.exec(f),u=/\b(iP[ao]d)/.exec(f),p=/Android/i.exec(f),h=/FBAN\/\w+;/i.exec(f),b=/Mobile/i.exec(f),c=!!/Win64/.exec(f),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(f);i=y?parseFloat(y[1])+4:t,e=g[2]?parseFloat(g[2]):NaN,n=g[3]?parseFloat(g[3]):NaN,(r=g[4]?parseFloat(g[4]):NaN)?(g=/(?:Chrome\/(\d+\.\d+))/.exec(f),o=g&&g[1]?parseFloat(g[1]):NaN):o=NaN}else t=e=n=o=r=NaN;if(v){if(v[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(f);a=!x||parseFloat(x[1].replace("_","."))}else a=!1;s=!!v[2],l=!!v[3]}else a=s=l=!1}}var g={ie:function(){return f()||t},ieCompatibilityMode:function(){return f()||i>t},ie64:function(){return g.ie()&&c},firefox:function(){return f()||e},opera:function(){return f()||n},webkit:function(){return f()||r},safari:function(){return g.webkit()},chrome:function(){return f()||o},windows:function(){return f()||s},osx:function(){return f()||a},linux:function(){return f()||l},iphone:function(){return f()||d},mobile:function(){return f()||d||u||p||b},nativeApp:function(){return f()||h},android:function(){return f()||p},ipad:function(){return f()||u}};return UserAgent_DEPRECATED_1=g}function requireExecutionEnvironment(){if(hasRequiredExecutionEnvironment)return ExecutionEnvironment_1;hasRequiredExecutionEnvironment=1;var t=!("undefined"==typeof window||!window.document||!window.document.createElement),e={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};return ExecutionEnvironment_1=e}function requireIsEventSupported(){if(hasRequiredIsEventSupported)return isEventSupported_1;hasRequiredIsEventSupported=1;var t,e=requireExecutionEnvironment();return e.canUseDOM&&(t=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
|
40
|
+
*/function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return objectAssign=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),l=1;l<arguments.length;l++){for(var p in i=Object(arguments[l]))e.call(i,p)&&(s[p]=i[p]);if(t){a=t(i);for(var c=0;c<a.length;c++)n.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s},objectAssign}function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;return ReactPropTypesSecret_1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function requireHas(){return hasRequiredHas?has:(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty))}function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=requireReactPropTypesSecret(),n={},r=requireHas();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var p in o)if(r(o,p)){var c;try{if("function"!=typeof o[p]){var d=Error((s||"React class")+": "+a+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[p](i,p,s,a,null,e)}catch(t){c=t}if(!c||c instanceof Error||t((s||"React class")+": type specification of "+a+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var u=l?l():"";t("Failed "+a+" type: "+c.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},checkPropTypes_1=o}function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var t=requireReactIs(),e=requireObjectAssign(),n=requireReactPropTypesSecret(),r=requireHas(),o=requireCheckPropTypes(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),factoryWithTypeCheckers=function(s,l){var p="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:b(a),arrayOf:function(t){return b(function(e,r,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+v(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var p=t(s,l,o,i,a+"["+l+"]",n);if(p instanceof Error)return p}return null})},element:b(function(t,e,n,r,o){var i=t[e];return s(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:b(function(e,n,r,o,i){var a=e[n];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(t){return b(function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||c;return new h("Invalid "+o+" `"+i+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null})},node:b(function(t,e,n,r,o){return g(t[e])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(t){return b(function(e,o,i,a,s){if("function"!=typeof t)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=e[o],p=v(l);if("object"!==p)return new h("Invalid "+a+" `"+s+"` of type `"+p+"` supplied to `"+i+"`, expected an object.");for(var c in l)if(r(l,c)){var d=t(l,c,i,a,s+"."+c,n);if(d instanceof Error)return d}return null})},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return b(function(e,n,r,o,i){for(var a=e[n],s=0;s<t.length;s++)if(u(a,t[s]))return null;var l=JSON.stringify(t,function(t,e){return"symbol"===y(e)?String(e):e});return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+e+"."),a}return b(function(e,o,i,a,s){for(var l=[],p=0;p<t.length;p++){var c=(0,t[p])(e,o,i,a,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(t){return b(function(e,r,o,i,a){var s=e[r],l=v(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var p in t){var c=t[p];if("function"!=typeof c)return f(o,i,a,p,y(c));var d=c(s,p,o,i,a+"."+p,n);if(d)return d}return null})},exact:function(t){return b(function(o,i,a,s,l){var p=o[i],c=v(p);if("object"!==c)return new h("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=e({},o[i],t);for(var u in d){var b=t[u];if(r(t,u)&&"function"!=typeof b)return f(a,s,l,u,y(b));if(!b)return new h("Invalid "+s+" `"+l+"` key `"+u+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var m=b(p,u,a,s,l+"."+u,n);if(m)return m}return null})}};function u(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function b(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function o(o,a,s,p,d,u,b){if(p=p||c,u=u||s,b!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=p+":"+s;!e[f]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+p+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[f]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+d+" `"+u+"` is marked as required in `"+p+"`, but its value is `null`."):new h("The "+d+" `"+u+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:t(a,s,p,d,u)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(t){return b(function(e,n,r,o,i,a){var s=e[n];return v(s)!==t?new h("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null})}function f(t,e,n,r,o){return new h((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||s(t))return!0;var e=function(t){var e=t&&(p&&t[p]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function y(t){if(null==t)return""+t;var e=v(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=y(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},factoryWithTypeCheckers}function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var t=requireReactPropTypesSecret();function e(){}function n(){}return n.resetWarningCache=e,factoryWithThrowingShims=function(){function r(e,n,r,o,i,a){if(a!==t){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}}function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,"production"!==process.env.NODE_ENV){var t=requireReactIs();propTypes.exports=requireFactoryWithTypeCheckers()(t.isElement,true)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var propTypesExports=requirePropTypes(),PropTypes=getDefaultExportFromCjs(propTypesExports);const COMMON_MIME_TYPES=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function toFileWithPath(t,e,n){const r=withMimeType(t),{webkitRelativePath:o}=t,i="string"==typeof e?e:"string"==typeof o&&o.length>0?o:`./${t.name}`;return"string"!=typeof r.path&&setObjProp(r,"path",i),setObjProp(r,"relativePath",i),r}function withMimeType(t){const{name:e}=t;if(e&&-1!==e.lastIndexOf(".")&&!t.type){const n=e.split(".").pop().toLowerCase(),r=COMMON_MIME_TYPES.get(n);r&&Object.defineProperty(t,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return t}function setObjProp(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}const FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(t){return __awaiter(this,void 0,void 0,function*(){return isObject(t)&&isDataTransfer(t.dataTransfer)?getDataTransferFiles(t.dataTransfer,t.type):isChangeEvt(t)?getInputFiles(t):Array.isArray(t)&&t.every(t=>"getFile"in t&&"function"==typeof t.getFile)?getFsHandleFiles(t):[]})}function isDataTransfer(t){return isObject(t)}function isChangeEvt(t){return isObject(t)&&isObject(t.target)}function isObject(t){return"object"==typeof t&&null!==t}function getInputFiles(t){return fromList(t.target.files).map(t=>toFileWithPath(t))}function getFsHandleFiles(t){return __awaiter(this,void 0,void 0,function*(){const e=yield Promise.all(t.map(t=>t.getFile()));return e.map(t=>toFileWithPath(t))})}function getDataTransferFiles(t,e){return __awaiter(this,void 0,void 0,function*(){if(t.items){const n=fromList(t.items).filter(t=>"file"===t.kind);if("drop"!==e)return n;return noIgnoredFiles(flatten(yield Promise.all(n.map(toFilePromises))))}return noIgnoredFiles(fromList(t.files).map(t=>toFileWithPath(t)))})}function noIgnoredFiles(t){return t.filter(t=>-1===FILES_TO_IGNORE.indexOf(t.name))}function fromList(t){if(null===t)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n];e.push(r)}return e}function toFilePromises(t){if("function"!=typeof t.webkitGetAsEntry)return fromDataTransferItem(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?fromDirEntry(e):fromDataTransferItem(t,e)}function flatten(t){return t.reduce((t,e)=>[...t,...Array.isArray(e)?flatten(e):[e]],[])}function fromDataTransferItem(t,e){return __awaiter(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&"function"==typeof t.getAsFileSystemHandle){const e=yield t.getAsFileSystemHandle();if(null===e)throw new Error(`${t} is not a File`);if(void 0!==e){const t=yield e.getFile();return t.handle=e,toFileWithPath(t)}}const r=t.getAsFile();if(!r)throw new Error(`${t} is not a File`);return toFileWithPath(r,null!==(n=null==e?void 0:e.fullPath)&&void 0!==n?n:void 0)})}function fromEntry(t){return __awaiter(this,void 0,void 0,function*(){return t.isDirectory?fromDirEntry(t):fromFileEntry(t)})}function fromDirEntry(t){const e=t.createReader();return new Promise((t,n)=>{const r=[];!function o(){e.readEntries(e=>__awaiter(this,void 0,void 0,function*(){if(e.length){const t=Promise.all(e.map(fromEntry));r.push(t),o()}else try{const e=yield Promise.all(r);t(e)}catch(t){n(t)}}),t=>{n(t)})}()})}function fromFileEntry(t){return __awaiter(this,void 0,void 0,function*(){return new Promise((e,n)=>{t.file(n=>{const r=toFileWithPath(n,t.fullPath);e(r)},t=>{n(t)})})})}var es={},hasRequiredEs;function requireEs(){return hasRequiredEs||(hasRequiredEs=1,es.__esModule=!0,es.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var r=t.name||"",o=(t.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?r.toLowerCase().endsWith(e):e.endsWith("/*")?i===e.replace(/\/.*$/,""):o===e})}return!0}),es}var esExports=requireEs(),_accepts=getDefaultExportFromCjs(esExports);function _toConsumableArray$1(t){return _arrayWithoutHoles$1(t)||_iterableToArray$1(t)||_unsupportedIterableToArray$1(t)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray$1(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles$1(t){if(Array.isArray(t))return _arrayLikeToArray$1(t)}function ownKeys$1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$1(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$1(Object(n),!0).forEach(function(e){_defineProperty$1(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty$1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _slicedToArray$1(t,e){return _arrayWithHoles$1(t)||_iterableToArrayLimit$1(t,e)||_unsupportedIterableToArray$1(t,e)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray$1(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray$1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$1(t,e):void 0}}function _arrayLikeToArray$1(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit$1(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}function _arrayWithHoles$1(t){if(Array.isArray(t))return t}var accepts="function"==typeof _accepts?_accepts:_accepts.default,FILE_INVALID_TYPE="file-invalid-type",FILE_TOO_LARGE="file-too-large",FILE_TOO_SMALL="file-too-small",TOO_MANY_FILES="too-many-files",getInvalidTypeRejectionErr=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),e=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:FILE_INVALID_TYPE,message:"File type must be ".concat(e)}},getTooLargeRejectionErr=function(t){return{code:FILE_TOO_LARGE,message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},getTooSmallRejectionErr=function(t){return{code:FILE_TOO_SMALL,message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},TOO_MANY_FILES_REJECTION={code:TOO_MANY_FILES,message:"Too many files"};function isDataTransferItemWithEmptyType(t){return""===t.type&&"function"==typeof t.getAsFile}function fileAccepted(t,e){var n="application/x-moz-file"===t.type||accepts(t,e)||isDataTransferItemWithEmptyType(t);return[n,n?null:getInvalidTypeRejectionErr(e)]}function fileMatchSize(t,e,n){if(isDefined(t.size))if(isDefined(e)&&isDefined(n)){if(t.size>n)return[!1,getTooLargeRejectionErr(n)];if(t.size<e)return[!1,getTooSmallRejectionErr(e)]}else{if(isDefined(e)&&t.size<e)return[!1,getTooSmallRejectionErr(e)];if(isDefined(n)&&t.size>n)return[!1,getTooLargeRejectionErr(n)]}return[!0,null]}function isDefined(t){return null!=t}function allFilesAccepted(t){var e=t.files,n=t.accept,r=t.minSize,o=t.maxSize,i=t.multiple,a=t.maxFiles,s=t.validator;return!(!i&&e.length>1||i&&a>=1&&e.length>a)&&e.every(function(t){var e=_slicedToArray$1(fileAccepted(t,n),1)[0],i=_slicedToArray$1(fileMatchSize(t,r,o),1)[0],a=s?s(t):null;return e&&i&&!a})}function isPropagationStopped(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function isEvtWithFiles(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(t){return"Files"===t||"application/x-moz-file"===t}):!!t.target&&!!t.target.files}function onDocumentDragOver(t){t.preventDefault()}function isIe(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}function isEdge(t){return-1!==t.indexOf("Edge/")}function isIeOrEdge(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(t)||isEdge(t)}function composeEventHandlers(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.some(function(e){return!isPropagationStopped(t)&&e&&e.apply(void 0,[t].concat(r)),isPropagationStopped(t)})}}function canUseFileSystemAccessAPI(){return"showOpenFilePicker"in window}function pickerOptionsFromAccept(t){return isDefined(t)?[{description:"Files",accept:Object.entries(t).filter(function(t){var e=_slicedToArray$1(t,2),n=e[0],r=e[1],o=!0;return isMIMEType(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(isExt)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(t,e){var n=_slicedToArray$1(e,2),r=n[0],o=n[1];return _objectSpread$1(_objectSpread$1({},t),{},_defineProperty$1({},r,o))},{})}]:t}function acceptPropAsAcceptAttr(t){if(isDefined(t))return Object.entries(t).reduce(function(t,e){var n=_slicedToArray$1(e,2),r=n[0],o=n[1];return[].concat(_toConsumableArray$1(t),[r],_toConsumableArray$1(o))},[]).filter(function(t){return isMIMEType(t)||isExt(t)}).join(",")}function isAbort(t){return t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)}function isSecurityError(t){return t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)}function isMIMEType(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||"application/*"===t||/\w+\/[-+.\w]+/g.test(t)}function isExt(t){return/^.*\.[\w]+$/.test(t)}var _excluded=["children"],_excluded2=["open"],_excluded3=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_excluded4=["refKey","onChange","onClick"];function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _objectWithoutProperties(t,e){if(null==t)return{};var n,r,o=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var Dropzone=forwardRef(function(t,e){var n=t.children,r=useDropzone(_objectWithoutProperties(t,_excluded)),o=r.open,i=_objectWithoutProperties(r,_excluded2);return useImperativeHandle(e,function(){return{open:o}},[o]),React__default.createElement(Fragment$1,null,n(_objectSpread(_objectSpread({},i),{},{open:o})))});Dropzone.displayName="Dropzone";var defaultProps={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Dropzone.defaultProps=defaultProps,Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,autoFocus:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,onError:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]},UserAgent_DEPRECATED_1,hasRequiredUserAgent_DEPRECATED,ExecutionEnvironment_1,hasRequiredExecutionEnvironment,isEventSupported_1,hasRequiredIsEventSupported,normalizeWheel_1,hasRequiredNormalizeWheel$1,normalizeWheel$1,hasRequiredNormalizeWheel;function useDropzone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_objectSpread(_objectSpread({},defaultProps),t),n=e.accept,r=e.disabled,o=e.getFilesFromEvent,i=e.maxSize,a=e.minSize,s=e.multiple,l=e.maxFiles,p=e.onDragEnter,c=e.onDragLeave,d=e.onDragOver,u=e.onDrop,h=e.onDropAccepted,b=e.onDropRejected,m=e.onFileDialogCancel,f=e.onFileDialogOpen,g=e.useFsAccessApi,v=e.autoFocus,y=e.preventDropOnDocument,x=e.noClick,w=e.noKeyboard,k=e.noDrag,_=e.noDragEventsBubbling,S=e.onError,C=e.validator,E=useMemo(function(){return acceptPropAsAcceptAttr(n)},[n]),P=useMemo(function(){return pickerOptionsFromAccept(n)},[n]),A=useMemo(function(){return"function"==typeof f?f:noop},[f]),T=useMemo(function(){return"function"==typeof m?m:noop},[m]),D=useRef(null),I=useRef(null),z=_slicedToArray(useReducer(reducer,initialState),2),M=z[0],j=z[1],q=M.isFocused,F=M.isFileDialogActive,R=useRef("undefined"!=typeof window&&window.isSecureContext&&g&&canUseFileSystemAccessAPI()),O=function(){!R.current&&F&&setTimeout(function(){I.current&&(I.current.files.length||(j({type:"closeDialog"}),T()))},300)};useEffect(function(){return window.addEventListener("focus",O,!1),function(){window.removeEventListener("focus",O,!1)}},[I,F,T,R]);var B=useRef([]),L=useRef([]),N=function(t){D.current&&D.current.contains(t.target)||(t.preventDefault(),B.current=[])};useEffect(function(){return y&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",N,!1)),function(){y&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",N))}},[D,y]),useEffect(function(){var t=function(t){L.current=[].concat(_toConsumableArray(L.current),[t.target]),isEvtWithFiles(t)&&j({isDragGlobal:!0,type:"setDragGlobal"})},e=function(t){L.current=L.current.filter(function(e){return e!==t.target&&null!==e}),L.current.length>0||j({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){L.current=[],j({isDragGlobal:!1,type:"setDragGlobal"})},r=function(){L.current=[],j({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",t,!1),document.addEventListener("dragleave",e,!1),document.addEventListener("dragend",n,!1),document.addEventListener("drop",r,!1),function(){document.removeEventListener("dragenter",t),document.removeEventListener("dragleave",e),document.removeEventListener("dragend",n),document.removeEventListener("drop",r)}},[D]),useEffect(function(){return!r&&v&&D.current&&D.current.focus(),function(){}},[D,v,r]);var V=useCallback(function(t){S?S(t):console.error(t)},[S]),H=useCallback(function(t){t.preventDefault(),t.persist(),nt(t),B.current=[].concat(_toConsumableArray(B.current),[t.target]),isEvtWithFiles(t)&&Promise.resolve(o(t)).then(function(e){if(!isPropagationStopped(t)||_){var n=e.length,r=n>0&&allFilesAccepted({files:e,accept:E,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:C});j({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),p&&p(t)}}).catch(function(t){return V(t)})},[o,p,V,_,E,a,i,s,l,C]),W=useCallback(function(t){t.preventDefault(),t.persist(),nt(t);var e=isEvtWithFiles(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(t){}return e&&d&&d(t),!1},[d,_]),G=useCallback(function(t){t.preventDefault(),t.persist(),nt(t);var e=B.current.filter(function(t){return D.current&&D.current.contains(t)}),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),B.current=e,e.length>0||(j({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(t)&&c&&c(t))},[D,c,_]),$=useCallback(function(t,e){var n=[],r=[];t.forEach(function(t){var e=_slicedToArray(fileAccepted(t,E),2),o=e[0],s=e[1],l=_slicedToArray(fileMatchSize(t,a,i),2),p=l[0],c=l[1],d=C?C(t):null;if(o&&p&&!d)n.push(t);else{var u=[s,c];d&&(u=u.concat(d)),r.push({file:t,errors:u.filter(function(t){return t})})}}),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach(function(t){r.push({file:t,errors:[TOO_MANY_FILES_REJECTION]})}),n.splice(0)),j({acceptedFiles:n,fileRejections:r,type:"setFiles"}),u&&u(n,r,e),r.length>0&&b&&b(r,e),n.length>0&&h&&h(n,e)},[j,s,E,a,i,l,u,h,b,C]),U=useCallback(function(t){t.preventDefault(),t.persist(),nt(t),B.current=[],isEvtWithFiles(t)&&Promise.resolve(o(t)).then(function(e){isPropagationStopped(t)&&!_||$(e,t)}).catch(function(t){return V(t)}),j({type:"reset"})},[o,$,V,_]),Y=useCallback(function(){if(R.current){j({type:"openDialog"}),A();var t={multiple:s,types:P};window.showOpenFilePicker(t).then(function(t){return o(t)}).then(function(t){$(t,null),j({type:"closeDialog"})}).catch(function(t){isAbort(t)?(T(t),j({type:"closeDialog"})):isSecurityError(t)?(R.current=!1,I.current?(I.current.value=null,I.current.click()):V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):V(t)})}else I.current&&(j({type:"openDialog"}),A(),I.current.value=null,I.current.click())},[j,A,T,g,$,V,P,s]),K=useCallback(function(t){D.current&&D.current.isEqualNode(t.target)&&(" "!==t.key&&"Enter"!==t.key&&32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),Y()))},[D,Y]),Z=useCallback(function(){j({type:"focus"})},[]),X=useCallback(function(){j({type:"blur"})},[]),J=useCallback(function(){x||(isIeOrEdge()?setTimeout(Y,0):Y())},[x,Y]),Q=function(t){return r?null:t},tt=function(t){return w?null:Q(t)},et=function(t){return k?null:Q(t)},nt=function(t){_&&t.stopPropagation()},rt=useMemo(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,o=t.role,i=t.onKeyDown,a=t.onFocus,s=t.onBlur,l=t.onClick,p=t.onDragEnter,c=t.onDragOver,d=t.onDragLeave,u=t.onDrop,h=_objectWithoutProperties(t,_excluded3);return _objectSpread(_objectSpread(_defineProperty({onKeyDown:tt(composeEventHandlers(i,K)),onFocus:tt(composeEventHandlers(a,Z)),onBlur:tt(composeEventHandlers(s,X)),onClick:Q(composeEventHandlers(l,J)),onDragEnter:et(composeEventHandlers(p,H)),onDragOver:et(composeEventHandlers(c,W)),onDragLeave:et(composeEventHandlers(d,G)),onDrop:et(composeEventHandlers(u,U)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||w?{}:{tabIndex:0}),h)}},[D,K,Z,X,J,H,W,G,U,w,k,r]),ot=useCallback(function(t){t.stopPropagation()},[]),it=useMemo(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.onChange,o=t.onClick,i=_objectWithoutProperties(t,_excluded4);return _objectSpread(_objectSpread({},_defineProperty({accept:E,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Q(composeEventHandlers(r,U)),onClick:Q(composeEventHandlers(o,ot)),tabIndex:-1},n,I)),i)}},[I,n,s,U,r]);return _objectSpread(_objectSpread({},M),{},{isFocused:q&&!r,getRootProps:rt,getInputProps:it,rootRef:D,inputRef:I,open:Q(Y)})}function reducer(t,e){switch(e.type){case"focus":return _objectSpread(_objectSpread({},t),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},t),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return _objectSpread(_objectSpread({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return _objectSpread(_objectSpread({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:!1});case"setDragGlobal":return _objectSpread(_objectSpread({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return _objectSpread({},initialState);default:return t}}function noop(){}function requireUserAgent_DEPRECATED(){if(hasRequiredUserAgent_DEPRECATED)return UserAgent_DEPRECATED_1;hasRequiredUserAgent_DEPRECATED=1;var t,e,n,r,o,i,a,s,l,p,c,d,u,h,b,m=!1;function f(){if(!m){m=!0;var f=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(f),v=/(Mac OS X)|(Windows)|(Linux)/.exec(f);if(d=/\b(iPhone|iP[ao]d)/.exec(f),u=/\b(iP[ao]d)/.exec(f),p=/Android/i.exec(f),h=/FBAN\/\w+;/i.exec(f),b=/Mobile/i.exec(f),c=!!/Win64/.exec(f),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(f);i=y?parseFloat(y[1])+4:t,e=g[2]?parseFloat(g[2]):NaN,n=g[3]?parseFloat(g[3]):NaN,(r=g[4]?parseFloat(g[4]):NaN)?(g=/(?:Chrome\/(\d+\.\d+))/.exec(f),o=g&&g[1]?parseFloat(g[1]):NaN):o=NaN}else t=e=n=o=r=NaN;if(v){if(v[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(f);a=!x||parseFloat(x[1].replace("_","."))}else a=!1;s=!!v[2],l=!!v[3]}else a=s=l=!1}}var g={ie:function(){return f()||t},ieCompatibilityMode:function(){return f()||i>t},ie64:function(){return g.ie()&&c},firefox:function(){return f()||e},opera:function(){return f()||n},webkit:function(){return f()||r},safari:function(){return g.webkit()},chrome:function(){return f()||o},windows:function(){return f()||s},osx:function(){return f()||a},linux:function(){return f()||l},iphone:function(){return f()||d},mobile:function(){return f()||d||u||p||b},nativeApp:function(){return f()||h},android:function(){return f()||p},ipad:function(){return f()||u}};return UserAgent_DEPRECATED_1=g}function requireExecutionEnvironment(){if(hasRequiredExecutionEnvironment)return ExecutionEnvironment_1;hasRequiredExecutionEnvironment=1;var t=!("undefined"==typeof window||!window.document||!window.document.createElement),e={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};return ExecutionEnvironment_1=e}function requireIsEventSupported(){if(hasRequiredIsEventSupported)return isEventSupported_1;hasRequiredIsEventSupported=1;var t,e=requireExecutionEnvironment();return e.canUseDOM&&(t=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
|
41
41
|
/**
|
|
42
42
|
* Checks if an event is supported in the current execution environment.
|
|
43
43
|
*
|
|
@@ -53,5 +53,5 @@ object-assign
|
|
|
53
53
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
54
54
|
*/,isEventSupported_1=function(n,r){if(!e.canUseDOM||r&&!("addEventListener"in document))return!1;var o="on"+n,i=o in document;if(!i){var a=document.createElement("div");a.setAttribute(o,"return;"),i="function"==typeof a[o]}return!i&&t&&"wheel"===n&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}}function requireNormalizeWheel$1(){if(hasRequiredNormalizeWheel$1)return normalizeWheel_1;hasRequiredNormalizeWheel$1=1;var t=requireUserAgent_DEPRECATED(),e=requireIsEventSupported();function n(t){var e=0,n=0,r=0,o=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,o=10*n,"deltaY"in t&&(o=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||o)&&t.deltaMode&&(1==t.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!e&&(e=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:o}}return n.getEventType=function(){return t.firefox()?"DOMMouseScroll":e("wheel")?"wheel":"mousewheel"},normalizeWheel_1=n}function requireNormalizeWheel(){return hasRequiredNormalizeWheel?normalizeWheel$1:(hasRequiredNormalizeWheel=1,normalizeWheel$1=requireNormalizeWheel$1())}var normalizeWheelExports=requireNormalizeWheel(),normalizeWheel=getDefaultExportFromCjs(normalizeWheelExports);function getCropSize(t,e,n,r,o,i){void 0===i&&(i=0);var a=rotateSize(t,e,i),s=a.width,l=a.height,p=Math.min(s,n),c=Math.min(l,r);return p>c*o?{width:c*o,height:c}:{width:p,height:p/o}}function getMediaZoom(t){return t.width>t.height?t.width/t.naturalWidth:t.height/t.naturalHeight}function restrictPosition(t,e,n,r,o){void 0===o&&(o=0);var i=rotateSize(e.width,e.height,o),a=i.width,s=i.height;return{x:restrictPositionCoord(t.x,a,n.width,r),y:restrictPositionCoord(t.y,s,n.height,r)}}function restrictPositionCoord(t,e,n,r){var o=e*r/2-n/2;return clamp(t,-o,o)}function getDistanceBetweenPoints(t,e){return Math.sqrt(Math.pow(t.y-e.y,2)+Math.pow(t.x-e.x,2))}function getRotationBetweenPoints(t,e){return 180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI}function computeCroppedArea(t,e,n,r,o,i,a){void 0===i&&(i=0),void 0===a&&(a=!0);var s=a?limitArea:noOp,l=rotateSize(e.width,e.height,i),p=rotateSize(e.naturalWidth,e.naturalHeight,i),c={x:s(100,((l.width-n.width/o)/2-t.x/o)/l.width*100),y:s(100,((l.height-n.height/o)/2-t.y/o)/l.height*100),width:s(100,n.width/l.width*100/o),height:s(100,n.height/l.height*100/o)},d=Math.round(s(p.width,c.width*p.width/100)),u=Math.round(s(p.height,c.height*p.height/100)),h=p.width>=p.height*r?{width:Math.round(u*r),height:u}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:c,croppedAreaPixels:__assign(__assign({},h),{x:Math.round(s(p.width-h.width,c.x*p.width/100)),y:Math.round(s(p.height-h.height,c.y*p.height/100))})}}function limitArea(t,e){return Math.min(t,Math.max(0,e))}function noOp(t,e){return e}function getInitialCropFromCroppedAreaPercentages(t,e,n,r,o,i){var a=rotateSize(e.width,e.height,n),s=clamp(r.width/a.width*(100/t.width),o,i);return{crop:{x:s*a.width/2-r.width/2-a.width*s*(t.x/100),y:s*a.height/2-r.height/2-a.height*s*(t.y/100)},zoom:s}}function getZoomFromCroppedAreaPixels(t,e,n){var r=getMediaZoom(e);return n.height>n.width?n.height/(t.height*r):n.width/(t.width*r)}function getInitialCropFromCroppedAreaPixels(t,e,n,r,o,i){void 0===n&&(n=0);var a=rotateSize(e.naturalWidth,e.naturalHeight,n),s=clamp(getZoomFromCroppedAreaPixels(t,e,r),o,i),l=r.height>r.width?r.height/t.height:r.width/t.width;return{crop:{x:((a.width-t.width)/2-t.x)*l,y:((a.height-t.height)/2-t.y)*l},zoom:s}}function getCenter(t,e){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}function getRadianAngle(t){return t*Math.PI/180}function rotateSize(t,e,n){var r=getRadianAngle(n);return{width:Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e),height:Math.abs(Math.sin(r)*t)+Math.abs(Math.cos(r)*e)}}function clamp(t,e,n){return Math.min(Math.max(t,e),n)}function classNames(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(function(t){return"string"==typeof t&&t.length>0}).join(" ").trim()}var css_248z$h=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",MIN_ZOOM=1,MAX_ZOOM=3,KEYBOARD_STEP=1,Cropper=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.cropperRef=React.createRef(),n.imageRef=React.createRef(),n.videoRef=React.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.previousCropSize=null,n.isInitialized=!1,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var t=!0;n.resizeObserver=new window.ResizeObserver(function(e){t?t=!1:n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(t){return t.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturechange",n.onGestureChange),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var t=n.computeSizes();t&&(n.previousCropSize=t,n.emitCropData(),n.setInitialCrop(t),n.isInitialized=!0),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(t){if(n.props.initialCroppedAreaPercentages){var e=getInitialCropFromCroppedAreaPercentages(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,t,n.props.minZoom,n.props.maxZoom),r=e.crop,o=e.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}else if(n.props.initialCroppedAreaPixels){var i=getInitialCropFromCroppedAreaPixels(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,t,n.props.minZoom,n.props.maxZoom);r=i.crop,o=i.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}},n.computeSizes=function(){var t,e,r,o,i,a,s=n.imageRef.current||n.videoRef.current;if(s&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var l=n.containerRect.width/n.containerRect.height,p=(null===(t=n.imageRef.current)||void 0===t?void 0:t.naturalWidth)||(null===(e=n.videoRef.current)||void 0===e?void 0:e.videoWidth)||0,c=(null===(r=n.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(o=n.videoRef.current)||void 0===o?void 0:o.videoHeight)||0,d=p/c,u=void 0;if(s.offsetWidth<p||s.offsetHeight<c)switch(n.state.mediaObjectFit){default:case"contain":u=l>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":u={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":u={width:n.containerRect.height*d,height:n.containerRect.height}}else u={width:s.offsetWidth,height:s.offsetHeight};n.mediaSize=__assign(__assign({},u),{naturalWidth:p,naturalHeight:c}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:getCropSize(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===h.height&&(null===(a=n.state.cropSize)||void 0===a?void 0:a.width)===h.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(h),h}},n.saveContainerPosition=function(){if(n.containerRef){var t=n.containerRef.getBoundingClientRect();n.containerPosition={x:t.left,y:t.top}}},n.onMouseDown=function(t){n.currentDoc&&(t.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(e.getMousePoint(t)))},n.onMouseMove=function(t){return n.onDrag(e.getMousePoint(t))},n.onScroll=function(t){n.currentDoc&&(t.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(t){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(t)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),2===t.touches.length?n.onPinchStart(t):1===t.touches.length&&n.onDragStart(e.getTouchPoint(t.touches[0]))))},n.onTouchMove=function(t){t.preventDefault(),2===t.touches.length?n.onPinchMove(t):1===t.touches.length&&n.onDrag(e.getTouchPoint(t.touches[0]))},n.onGestureStart=function(t){n.currentDoc&&(t.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureChange),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureChange=function(t){if(t.preventDefault(),!n.isTouching){var r=e.getMousePoint(t),o=n.gestureZoomStart-1+t.scale;if(n.setNewZoom(o,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+t.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(t){n.cleanEvents()},n.onDragStart=function(t){var e,r,o=t.x,i=t.y;n.dragStartPosition={x:o,y:i},n.dragStartCrop=__assign({},n.props.crop),null===(r=(e=n.props).onInteractionStart)||void 0===r||r.call(e)},n.onDrag=function(t){var e=t.x,r=t.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&void 0!==e&&void 0!==r){var t=e-n.dragStartPosition.x,o=r-n.dragStartPosition.y,i={x:n.dragStartCrop.x+t,y:n.dragStartCrop.y+o},a=n.props.restrictPosition?restrictPosition(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(a)}}))},n.onDragStopped=function(){var t,e;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(e=(t=n.props).onInteractionEnd)||void 0===e||e.call(t)},n.onWheel=function(t){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(t))){t.preventDefault();var r=e.getMousePoint(t),o=normalizeWheel(t).pixelY,i=n.props.zoom-o*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var t,e;return null===(e=(t=n.props).onInteractionStart)||void 0===e?void 0:e.call(t)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var t,e;return null===(e=(t=n.props).onInteractionEnd)||void 0===e?void 0:e.call(t)})},250)}},n.getPointOnContainer=function(t,e){var r=t.x,o=t.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(r-e.x),y:n.containerRect.height/2-(o-e.y)}},n.getPointOnMedia=function(t){var e=t.x,r=t.y,o=n.props,i=o.crop,a=o.zoom;return{x:(e+i.x)/a,y:(r+i.y)/a}},n.setNewZoom=function(t,e,r){var o=(void 0===r?{}:r).shouldUpdatePosition,i=void 0===o||o;if(n.state.cropSize&&n.props.onZoomChange){var a=clamp(t,n.props.minZoom,n.props.maxZoom);if(i){var s=n.getPointOnContainer(e,n.containerPosition),l=n.getPointOnMedia(s),p={x:l.x*a-s.x,y:l.y*a-s.y},c=n.props.restrictPosition?restrictPosition(p,n.mediaSize,n.state.cropSize,a,n.props.rotation):p;n.props.onCropChange(c)}n.props.onZoomChange(a)}},n.getCropData=function(){return n.state.cropSize?computeCroppedArea(n.props.restrictPosition?restrictPosition(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var t=n.getCropData();if(t){var e=t.croppedAreaPercentages,r=t.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(e,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(e,r)}},n.emitCropAreaChange=function(){var t=n.getCropData();if(t){var e=t.croppedAreaPercentages,r=t.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(e,r)}},n.recomputeCropPosition=function(){var t,e;if(n.state.cropSize){var r=n.props.crop;if(n.isInitialized&&(null===(t=n.previousCropSize)||void 0===t?void 0:t.width)&&(null===(e=n.previousCropSize)||void 0===e?void 0:e.height))if(Math.abs(n.previousCropSize.width-n.state.cropSize.width)>1e-6||Math.abs(n.previousCropSize.height-n.state.cropSize.height)>1e-6){var o=n.state.cropSize.width/n.previousCropSize.width,i=n.state.cropSize.height/n.previousCropSize.height;r={x:n.props.crop.x*o,y:n.props.crop.y*i}}var a=n.props.restrictPosition?restrictPosition(r,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):r;n.previousCropSize=n.state.cropSize,n.props.onCropChange(a),n.emitCropData()}},n.onKeyDown=function(t){var e,r,o=n.props,i=o.crop,a=o.onCropChange,s=o.keyboardStep,l=o.zoom,p=o.rotation,c=s;if(n.state.cropSize){t.shiftKey&&(c*=.2);var d=__assign({},i);switch(t.key){case"ArrowUp":d.y-=c,t.preventDefault();break;case"ArrowDown":d.y+=c,t.preventDefault();break;case"ArrowLeft":d.x-=c,t.preventDefault();break;case"ArrowRight":d.x+=c,t.preventDefault();break;default:return}n.props.restrictPosition&&(d=restrictPosition(d,n.mediaSize,n.state.cropSize,l,p)),t.repeat||null===(r=(e=n.props).onInteractionStart)||void 0===r||r.call(e),a(d)}},n.onKeyUp=function(t){var e,r;switch(t.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":t.preventDefault();break;default:return}n.emitCropData(),null===(r=(e=n.props).onInteractionEnd)||void 0===r||r.call(e)},n}return __extends(e,t),e.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=css_248z$h,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},e.prototype.componentWillUnmount=function(){var t,e;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},e.prototype.componentDidUpdate=function(t){var e,n,r,o,i,a,s,l,p;t.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):t.aspect!==this.props.aspect||t.objectFit!==this.props.objectFit?this.computeSizes():t.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(e=t.cropSize)||void 0===e?void 0:e.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=t.cropSize)||void 0===r?void 0:r.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)?this.computeSizes():(null===(i=t.crop)||void 0===i?void 0:i.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(s=t.crop)||void 0===s?void 0:s.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),t.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),t.video!==this.props.video&&(null===(p=this.videoRef.current)||void 0===p||p.load());var c=this.getObjectFit();c!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:c},this.computeSizes)},e.prototype.getAspect=function(){var t=this.props,e=t.cropSize,n=t.aspect;return e?e.width/e.height:n},e.prototype.getObjectFit=function(){var t,e,n,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var o=this.containerRect.width/this.containerRect.height;return((null===(t=this.imageRef.current)||void 0===t?void 0:t.naturalWidth)||(null===(e=this.videoRef.current)||void 0===e?void 0:e.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<o?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},e.prototype.onPinchStart=function(t){var n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]);this.lastPinchDistance=getDistanceBetweenPoints(n,r),this.lastPinchRotation=getRotationBetweenPoints(n,r),this.onDragStart(getCenter(n,r))},e.prototype.onPinchMove=function(t){var n=this;if(this.currentDoc&&this.currentWindow){var r=e.getTouchPoint(t.touches[0]),o=e.getTouchPoint(t.touches[1]),i=getCenter(r,o);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var t=getDistanceBetweenPoints(r,o),e=n.props.zoom*(t/n.lastPinchDistance);n.setNewZoom(e,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=t;var a=getRotationBetweenPoints(r,o),s=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=a})}},e.prototype.render=function(){var t,e=this,n=this.props,r=n.image,o=n.video,i=n.mediaProps,a=n.cropperProps,s=n.transform,l=n.crop,p=l.x,c=l.y,d=n.rotation,u=n.zoom,h=n.cropShape,b=n.showGrid,m=n.roundCropAreaPixels,f=n.style,g=f.containerStyle,v=f.cropAreaStyle,y=f.mediaStyle,x=n.classes,w=x.containerClassName,k=x.cropAreaClassName,_=x.mediaClassName,S=null!==(t=this.state.mediaObjectFit)&&void 0!==t?t:this.getObjectFit();return React.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:g,className:classNames("reactEasyCrop_Container",w)},r?React.createElement("img",__assign({alt:"",className:classNames("reactEasyCrop_Image","contain"===S&&"reactEasyCrop_Contain","horizontal-cover"===S&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===S&&"reactEasyCrop_Cover_Vertical",_)},i,{src:r,ref:this.imageRef,style:__assign(__assign({},y),{transform:s||"translate(".concat(p,"px, ").concat(c,"px) rotate(").concat(d,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):o&&React.createElement("video",__assign({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:classNames("reactEasyCrop_Video","contain"===S&&"reactEasyCrop_Contain","horizontal-cover"===S&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===S&&"reactEasyCrop_Cover_Vertical",_)},i,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:__assign(__assign({},y),{transform:s||"translate(".concat(p,"px, ").concat(c,"px) rotate(").concat(d,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map(function(t){return React.createElement("source",__assign({key:t.src},t))})),this.state.cropSize&&React.createElement("div",__assign({ref:this.cropperRef,style:__assign(__assign({},v),{width:m?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:m?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:classNames("reactEasyCrop_CropArea","round"===h&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",k)},a)))},e.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:MAX_ZOOM,minZoom:MIN_ZOOM,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:KEYBOARD_STEP},e.getMousePoint=function(t){return{x:Number(t.clientX),y:Number(t.clientY)}},e.getTouchPoint=function(t){return{x:Number(t.clientX),y:Number(t.clientY)}},e}(React.Component),css_248z$g=".bee-image-cropper {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n min-width: 320px;\n}\n.bee-image-cropper__crop-container {\n position: relative;\n width: 100%;\n height: var(--bee-image-cropper-height, 400px);\n min-height: 200px;\n background: var(--surface-100);\n border-radius: 6px;\n overflow: hidden;\n border: 1px solid var(--primary-color);\n}\n.bee-image-cropper__controls {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n padding: 0 0.25rem;\n}\n.bee-image-cropper__control-group {\n position: relative;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n height: 2.75rem;\n padding: 0 0.75rem;\n border: 2px solid var(--primary-color);\n border-radius: 6px;\n}\n.bee-image-cropper__control-group__label {\n position: absolute;\n top: 0;\n left: 0.75rem;\n transform: translateY(-50%);\n background: var(--surface-a);\n padding: 0 0.25rem;\n font-size: 0.75rem;\n font-weight: 500;\n color: var(--primary-color);\n white-space: nowrap;\n}\n.bee-image-cropper__control-group--zoom {\n flex: 1;\n min-width: 0;\n padding-left: 1.5rem;\n}\n.bee-image-cropper__control-group--zoom .bee-slider-primary,\n.bee-image-cropper__control-group--zoom .bee-slider-secondary {\n flex: 1;\n min-width: 100px;\n}\n.bee-image-cropper__control-group--zoom .bee-percentage-input-container {\n width: 65px;\n flex-shrink: 0;\n}\n.bee-image-cropper__control-group--zoom .bee-percentage-input-container .p-inputtext {\n border: none;\n background: transparent;\n box-shadow: none;\n}\n.bee-image-cropper__control-group--zoom .bee-percentage-input-container .p-inputtext:focus, .bee-image-cropper__control-group--zoom .bee-percentage-input-container .p-inputtext:hover, .bee-image-cropper__control-group--zoom .bee-percentage-input-container .p-inputtext:active {\n border: none;\n box-shadow: none;\n outline: none;\n}\n.bee-image-cropper__control-group--rotation {\n flex-shrink: 0;\n gap: 0;\n}\n.bee-image-cropper__control-group--disabled {\n border-color: var(--surface-400);\n opacity: 0.5;\n pointer-events: none;\n}\n.bee-image-cropper__control-group--disabled .bee-image-cropper__control-group__label {\n color: var(--surface-400);\n}\n.bee-image-cropper__rotation-btn.bee-icon-button {\n background: transparent;\n}\n.bee-image-cropper__rotation-btn.bee-icon-button .icon {\n font-size: 1.5em;\n font-weight: 800;\n}\n.bee-image-cropper__rotation-btn.bee-icon-button:hover, .bee-image-cropper__rotation-btn.bee-icon-button:focus, .bee-image-cropper__rotation-btn.bee-icon-button:active, .bee-image-cropper__rotation-btn.bee-icon-button:focus-visible {\n background: transparent;\n box-shadow: none;\n}\n.bee-image-cropper__rotation-btn--flipped .icon {\n transform: scaleX(-1);\n}\n.bee-image-cropper__overlay-controls {\n position: absolute;\n bottom: 0.75rem;\n right: 0.75rem;\n display: flex;\n gap: 0.25rem;\n padding: 0.375rem;\n background: var(--primary-color-32);\n border-radius: 6px;\n z-index: 10;\n}\n.bee-image-cropper__overlay-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border: none;\n border-radius: 4px;\n background: transparent;\n cursor: pointer;\n transition: background 0.15s;\n}\n.bee-image-cropper__overlay-btn i {\n color: var(--surface-a);\n font-size: 1rem;\n}\n.bee-image-cropper__overlay-btn:hover {\n background: var(--surface-400);\n}\n.bee-image-cropper__overlay-btn:disabled {\n opacity: 0.4;\n cursor: default;\n}\n.bee-image-cropper__overlay-btn--flipped i {\n transform: scaleX(-1);\n}";styleInject(css_248z$g);const MIN_ZOOM_DEFAULT=1,MAX_ZOOM_DEFAULT=3,PERCENTAGE_MULTIPLIER=100,ZOOM_STEP=.1;var BeeImageCropper=forwardRef(function(t,e){const{image:n,id:r,className:o,cropShape:i="rect",aspectWidth:a,aspectHeight:s,cropSize:l,maxOutputSize:p,showZoom:c,showRotation:d,controlsPosition:u="overlay",minZoom:h,maxZoom:b,zoomStep:m,disabled:f,zoomLabel:g,rotateLabel:v}=t,[y]=libExports.useId(1,"bee-image-cropper-"),x=null!=r?r:y,w="bee-image-cropper",k=f?`${w}__control-group--disabled`:"",[_,S]=useState({x:0,y:0}),[C,E]=useState(1),[P,A]=useState(0),[T,D]=useState(null),I=null!=p?p:1024,z=null!=u?u:"overlay",M=null!=m?m:ZOOM_STEP;function j(t){return t*Math.PI/180}return useImperativeHandle(e,()=>({getCroppedFile:()=>new Promise((t,e)=>{var r;T?(r=n,new Promise((t,e)=>{const n=new Image;n.onload=()=>t(n),n.onerror=()=>e(new Error("Failed to load image")),n.crossOrigin="anonymous",n.src=r})).then(n=>{let r=n;0!==P&&(r=function(t,e){const n=function(t,e,n){const r=j(n),o=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r));return{width:t*o+e*i,height:t*i+e*o}}(t.width,t.height,e),r=document.createElement("canvas");r.width=n.width,r.height=n.height;const o=r.getContext("2d");if(!o)return console.warn("[Line 215] BeeImageCropper > createRotatedImageCanvas(): Could not get canvas 2d context - returning empty canvas"),r;return o.translate(r.width/2,r.height/2),o.rotate(j(e)),o.drawImage(t,-t.width/2,-t.height/2),r}(n,P));const o=function(t){const e=t.width,n=t.height,r=Math.max(e,n);if(r>I){const t=I/r;return{width:Math.round(e*t),height:Math.round(n*t)}}return{width:e,height:n}}(T),i=document.createElement("canvas");i.width=o.width,i.height=o.height;const a=i.getContext("2d");a?(a.drawImage(r,T.x,T.y,T.width,T.height,0,0,o.width,o.height),i.toBlob(n=>{if(!n)return void e(new Error("Failed to create blob"));const r=new File([n],"cropped.png",{type:"image/png"});t(r)},"image/png")):e(new Error("Could not get canvas context"))}).catch(t=>{e(t)}):e(new Error("No cropped area pixels"))})}),[n,T,P,I]),jsxs("div",{id:x,className:`${w} ${null!=o?o:""}`,children:[jsxs("div",{className:`${w}__crop-container`,role:"application","aria-label":"Bildausschnitt anpassen - Ziehen zum Verschieben, Scrollen zum Zoomen",children:[jsx(Cropper,Object.assign({image:n,crop:_,zoom:C,rotation:P,aspect:a&&s?a/s:1,cropShape:null!=i?i:"rect"},null!=l?{cropSize:l}:{},{minZoom:null!=h?h:MIN_ZOOM_DEFAULT,maxZoom:null!=b?b:MAX_ZOOM_DEFAULT,zoomSpeed:.1,mediaProps:{crossOrigin:"anonymous"},onCropChange:S,onZoomChange:E,onCropComplete:t=>{D(t)}})),"overlay"===z&&(c||d)&&jsxs("div",{className:`${w}__overlay-controls`,children:[c&&jsxs(Fragment,{children:[jsx("button",{className:`${w}__overlay-btn`,type:"button","aria-label":"Zoom verkleinern",disabled:null!=f&&f,onClick:()=>{const t=null!=h?h:MIN_ZOOM_DEFAULT;E(Math.max(C-M,t))},children:jsx("i",{className:"pi pi-minus","aria-hidden":"true"})}),jsx("button",{className:`${w}__overlay-btn`,type:"button","aria-label":"Zoom vergrößern",disabled:null!=f&&f,onClick:()=>{const t=null!=b?b:MAX_ZOOM_DEFAULT;E(Math.min(C+M,t))},children:jsx("i",{className:"pi pi-plus","aria-hidden":"true"})})]}),d&&jsxs(Fragment,{children:[jsx("button",{className:`${w}__overlay-btn ${w}__overlay-btn--flipped`,type:"button","aria-label":"90° gegen Uhrzeigersinn drehen",disabled:null!=f&&f,onClick:()=>{A(P-90)},children:jsx("i",{className:"pi pi-refresh","aria-hidden":"true"})}),jsx("button",{className:`${w}__overlay-btn`,type:"button","aria-label":"90° im Uhrzeigersinn drehen",disabled:null!=f&&f,onClick:()=>{A(P+90)},children:jsx("i",{className:"pi pi-refresh","aria-hidden":"true"})})]})]})]}),"external"===z&&jsxs("div",{className:`${w}__controls`,role:"toolbar","aria-label":"Bildbearbeitungsoptionen",children:[c&&jsxs("div",{className:`${w}__control-group ${w}__control-group--zoom ${k}`,role:"group","aria-labelledby":`${x}-zoom-label`,children:[jsx("span",{id:`${x}-zoom-label`,className:`${w}__control-group__label`,children:null!=g?g:"Zoom"}),jsx(BeeSlider,{value:C,type:"primary",disabled:null!=f&&f,min:null!=h?h:MIN_ZOOM_DEFAULT,max:null!=b?b:MAX_ZOOM_DEFAULT,step:M,onChange:t=>{null!==(null==t?void 0:t.value)&&void 0!==(null==t?void 0:t.value)&&E(Number(t.value))}}),jsx(BeePercentageInput,{value:C*PERCENTAGE_MULTIPLIER,disabled:null!=f&&f,min:(null!=h?h:MIN_ZOOM_DEFAULT)*PERCENTAGE_MULTIPLIER,max:(null!=b?b:MAX_ZOOM_DEFAULT)*PERCENTAGE_MULTIPLIER,maxFractionDigits:0,readOnly:!1,required:!1,onChange:t=>{null!==(null==t?void 0:t.value)&&void 0!==(null==t?void 0:t.value)&&E(t.value/PERCENTAGE_MULTIPLIER)}})]}),d&&jsxs("div",{className:`${w}__control-group ${w}__control-group--rotation ${k}`,role:"group","aria-labelledby":`${x}-rotation-label`,children:[jsx("span",{id:`${x}-rotation-label`,className:`${w}__control-group__label`,children:null!=v?v:"Rotation"}),jsx(BeeIconButton,{className:`${w}__rotation-btn ${w}__rotation-btn--flipped`,iconClass:"pi pi-refresh",type:"lightPrimary",rounded:!0,disabled:f,onClick:()=>{A(P-90)}}),jsx(BeeIconButton,{className:`${w}__rotation-btn`,iconClass:"pi pi-refresh",type:"lightPrimary",rounded:!0,disabled:f,onClick:()=>{A(P+90)}})]})]})]})});function fileSizeSI(t){const e=Math,n=e.log;let r=n(t)/n(1e3)|0;return(t/e.pow(1e3,r)).toFixed(2)+" "+(r?"kMGTPEZY"[--r]+"B":"Bytes")}var css_248z$f='.bee-upload-dialog.p-dialog {\n width: 60vw;\n max-width: 700px;\n}\n\n.bee-upload-dialog .p-dialog-header {\n padding: 1rem;\n}\n\n.bee-upload-dialog .p-dialog-content {\n padding-top: 1rem;\n padding-bottom: 0.75rem;\n}\n\n.bee-upload-dialog .bee-error-label {\n padding-bottom: 0.75rem;\n display: block;\n}\n\n.bee-upload-dialog .p-dialog-content p {\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0.75rem 0 1rem 0;\n}\n\n.bee-upload-dialog.p-dialog .p-dialog-footer {\n padding: 0.5rem 1.25rem 0.75rem 1.25rem;\n}\n\n/* dropzone */\n.bee-upload-dialog .bee-upload-dialog-dropzone {\n background-color: var(--surface-50);\n color: var(--surface-400);\n text-align: center;\n border: 3px dashed;\n}\n\n.bee-upload-dialog .bee-upload-dialog-dropzone {\n padding: 1.5rem 1rem 2rem 1rem;\n margin: 0.5rem 0 0 0;\n}\n\n.bee-upload-dialog .bee-upload-dialog-dropzone .bee-content-paragraph,\n.bee-upload-dialog .bee-upload-dialog-dropzone .bee-headline {\n text-align: center;\n color: var(--primary-color-32);\n}\n\n.bee-upload-dialog .bee-upload-dialog-dropzone .bee-headline {\n margin: 0.5rem 0;\n font-size: 1.2rem;\n}\n\n.bee-upload-dialog .bee-upload-dialog-dropzone .bee-content-paragraph {\n margin: 0.5rem 0 1.25rem 0;\n}\n\n/* empty dropzone */\n.bee-upload-dialog .bee-upload-dialog-dropzone .bee-upload-dialog-empty-drop .p-button {\n padding: 10px;\n width: 120px;\n font-size: 0.9rem;\n background-color: var(--primary-color-50);\n border-radius: 50%;\n}\n\n.bee-upload-dialog .bee-upload-dialog-dropzone .bee-upload-dialog-empty-drop .p-button:after {\n content: "";\n display: block;\n padding-top: 100%;\n}\n\n.bee-upload-dialog .bee-upload-dialog-empty-drop .bee-upload-dialog-formats {\n font-size: 0.8em;\n margin: 1.5rem 0 0.5rem 0;\n}\n\n/* error dropzone */\n.bee-upload-dialog .bee-headline {\n font-size: 1.2rem;\n margin: 0.5rem 0;\n}\n\n.bee-upload-dialog .bee-upload-dialog-error i {\n float: left;\n padding-left: 5vw;\n font-size: 5rem;\n}\n\n.bee-upload-dialog .bee-upload-dialog-error .grid {\n margin-top: 0px;\n}\n\n.bee-upload-dialog .bee-upload-dialog-error-descr {\n padding-right: 6vw;\n font-size: 0.8em;\n}\n\n/* selected dropzone */\n.bee-upload-dialog .bee-upload-dialog-selected-drop i {\n display: block;\n font-size: 5rem;\n margin: 2rem 0 0.75rem 0;\n}\n\n.bee-upload-dialog .bee-upload-dialog-selected-drop button {\n background-color: var(--primary-color-50);\n}\n\n.bee-upload-dialog .bee-upload-dialog-selected-drop .bee-upload-dialog-file-info {\n margin-top: 2rem;\n font-size: 0.8em;\n}\n\n/* progress */\n.bee-upload-dialog .bee-upload-dialog-progress {\n padding-top: 0.75rem;\n}\n\n.bee-upload-dialog .bee-upload-dialog-progress-msg {\n font-size: 0.8em;\n padding-top: 1rem;\n}\n\n/* primary */\n.bee-upload-dialog-primary.p-dialog .p-dialog-header {\n background-color: var(--primary-color);\n}\n\n.bee-upload-dialog-primary.p-dialog .p-dialog-header .p-dialog-title,\n.bee-upload-dialog-primary .p-dialog-header .p-dialog-header-icons button {\n color: var(--primary-color-text);\n}\n\n.bee-upload-dialog-primary.p-dialog .p-dialog-header-icon:hover {\n background: var(--primary-light-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.bee-upload-dialog-primary.p-dialog .p-dialog-header-icon:active {\n background: var(--primary-color-68) !important;\n color: var(--primary-color-text) !important;\n}\n\n.bee-upload-dialog-primary.p-dialog .p-dialog-header-icon:focus {\n background: var(--primary-color-76) !important;\n color: var(--primary-color-text) !important;\n}\n\n/* secondary */\n.bee-upload-dialog-secondary.p-dialog .p-dialog-header {\n background-color: var(--secondary-color);\n}\n\n.bee-upload-dialog-secondary.p-dialog .p-dialog-header .p-dialog-title {\n color: var(--secondary-color-text);\n}\n\n.bee-upload-dialog-secondary.p-dialog .p-dialog-header .p-dialog-header-icons button {\n color: var(--secondary-color-text);\n}\n\n.bee-upload-dialog-secondary.p-dialog .p-dialog-header-icon:hover {\n background: var(--secondary-light-color) !important;\n color: var(--secondary-color-text) !important;\n}\n\n.bee-upload-dialog-secondary.p-dialog .p-dialog-header-icon:active {\n background: var(--secondary-color-68) !important;\n color: var(--secondary-color-text) !important;\n}\n\n.bee-upload-dialog-secondary.p-dialog .p-dialog-header-icon:focus {\n background: var(--secondary-color-76) !important;\n color: var(--secondary-color-text) !important;\n}\n\n@media (max-width: 576px) {\n .bee-upload-dialog.p-dialog {\n width: 95vw;\n }\n}\n@media (min-width: 576px) and (max-width: 650px) {\n .bee-upload-dialog.p-dialog {\n width: 85vw;\n }\n}';function BeeUploadDialog({id:t,className:e,type:n="primary",visible:r,disabled:o,locale:i="de-DE",header:a,info:s,titleLabel:l,titleVisible:p,copyrightLabel:c,copyrightVisible:d,dropzoneTitle:u="",dropzoneDescription:h="",dropzoneAddLabel:b,dropzoneFormats:m,progressVisible:f,progressMessage:g,errorVisible:v,errorHeadline:y="",errorDescription:x,onHide:w,onUpload:k}){const _=null!=t?t:libExports.useId(1,"bee-upload-dialog")[0],S=createRef(),[C,E]=useState(),[P,A]=useState(),[T,D]=useState("");function I(){w&&(w(),E(void 0))}function z(){(function(){if(C)return!0;return!1})()&&k&&C&&k({file:C,name:P,copyright:T,originalFileName:C.name})}const M=()=>{S.current&&S.current.open()},j=()=>{let t="";for(const[e,n]of Object.entries(null!=m?m:{}))t+=n+", ";return t=t.slice(0,-1),jsxs("div",{className:"bee-upload-dialog-empty-drop",children:[jsx(BeeContentHeadline,{headlineType:"h4",value:u,type:"primary"}),jsx(BeeContentParagraph,{value:h,size:"small",type:"default"}),jsx(BeeButton,{label:b,disabled:o,type:"primary",isLoading:!1,onClick:M}),jsx("div",{className:"bee-upload-dialog-formats",children:"Unterstützte Formate sind: "+t})]})};return jsx("div",{onKeyDown:t=>function(t){t.keyCode===enter&&C&&z(),t.keyCode===escape&&I()}(t),tabIndex:0,children:jsxs(Dialog,{id:_,className:"bee-upload-dialog"+("primary"===n?" bee-upload-dialog-primary":"secondary"===n?" bee-upload-dialog-secondary":" bee-upload-dialog-primary")+(e?" "+e:""),header:a,visible:r,modal:!0,footer:v?jsx("div",{children:jsx(BeeButton,{label:"Schließen",disabled:!1,isLoading:!1,type:n,onClick:()=>I()})}):jsxs("div",{children:[jsx(BeeLinkButton,{label:"Abbrechen",raised:!1,disabled:f,isLoading:!1,type:"primary",onClick:()=>I()}),jsx(BeeButton,{label:"Hochladen",disabled:!C||f,type:n,isLoading:!1,onClick:()=>z()})]}),onHide:()=>I(),children:[s?jsx(BeeContentParagraph,{value:s,size:"medium",type:"default"}):null,jsx(Dropzone,{ref:S,noClick:!0,noKeyboard:!0,accept:null!=m?m:{},disabled:null!=o&&o,onDrop:t=>{t&&t.length>0&&(E(t[0]),A(t[0]?t[0].name:void 0))},children:({getRootProps:t,getInputProps:e})=>jsx("div",{className:"container",children:jsxs("div",Object.assign({},t({className:"bee-upload-dialog-dropzone"}),{children:[jsx("input",Object.assign({},e())),v?jsxs("div",{className:"bee-upload-dialog-error",children:[jsx(BeeContentHeadline,{headlineType:"h4",value:y,type:"primary"}),jsxs("div",{className:"grid",children:[jsx("i",{className:"col-fixed col-align-center pi pi-exclamation-triangle"}),jsx("p",{className:"col col-align-center bee-upload-dialog-error-descr",children:x})]})]}):C?f?jsxs("div",{className:"bee-upload-dialog-progress",children:[jsx(BeeLoadingSpinner,{strokeWidth:"3",type:"mixed"}),jsx("div",{className:"bee-upload-dialog-progress-msg",children:g})]}):C?jsxs("div",{className:"bee-upload-dialog-selected-drop",children:[jsx(BeeContentHeadline,{headlineType:"h4",value:'"'+C.name+'" wurde ausgewählt',type:"primary"}),jsx("i",{className:"pi pi-file"}),jsx(BeeButton,{label:"Datei ändern",disabled:o,type:"primary",isLoading:!1,onClick:M}),jsxs("div",{className:"bee-upload-dialog-file-info",children:[jsxs("span",{children:["Dateigröße: ",fileSizeSI(C.size)]}),jsxs("span",{children:[" Letzte Änderung: ",new Date(C.lastModified).toLocaleDateString(i)]})]})]}):j():j()]}))})}),!C||f||v?null:(()=>{if(p||d)return jsxs("div",{children:[jsx("p",{children:"Weitere Informationen:"}),p?jsx(BeeTextInput,{label:l,value:P,disabled:o,formstate:"neutral",readOnly:f,required:!1,onChange:t=>A(t.target.value)}):null,d?jsx(BeeTextInput,{label:c,value:T,disabled:o,formstate:"neutral",readOnly:f,required:!1,onChange:t=>D(t.target.value)}):null]})})()]})})}styleInject(css_248z$f);var css_248z$e='.bee-image-upload-dialog.p-dialog {\n width: 60vw;\n max-width: 700px;\n}\n\n.bee-image-upload-dialog .p-dialog-header {\n padding: 1rem;\n}\n\n.bee-image-upload-dialog.p-dialog .p-dialog-content {\n padding: 1.25rem;\n}\n\n.bee-image-upload-dialog .bee-error-label {\n padding-bottom: 0.75rem;\n display: block;\n}\n\n.bee-image-upload-dialog .p-dialog-content p {\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0.75rem 0 1rem 0;\n}\n\n.bee-image-upload-dialog.p-dialog .p-dialog-footer {\n padding: 0.5rem 1.25rem 0.75rem 1.25rem;\n}\n\n/* dropzone */\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone {\n background-color: var(--surface-50);\n color: var(--surface-400);\n text-align: center;\n border: 3px dashed;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone {\n padding: 1.5rem 1rem 2rem 1rem;\n height: 340px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone .bee-content-paragraph,\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone .bee-headline {\n text-align: center;\n color: var(--primary-color-32);\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone .bee-headline {\n margin: 0.5rem 0;\n font-size: 1.2rem;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone .bee-content-paragraph {\n margin: 0.5rem 0 1.25rem 0;\n}\n\n/* empty dropzone */\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone .bee-image-upload-dialog-empty-drop .p-button {\n padding: 10px;\n width: 120px;\n font-size: 0.9rem;\n background-color: var(--primary-color-50);\n border-radius: 50%;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone .bee-image-upload-dialog-empty-drop .p-button:after {\n content: "";\n display: block;\n padding-top: 100%;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-empty-drop .bee-image-upload-dialog-formats {\n font-size: 0.8em;\n margin: 1.5rem 0 0.5rem 0;\n}\n\n/* error dropzone */\n.bee-image-upload-dialog .bee-headline {\n font-size: 1.2rem;\n margin: 0.5rem 0;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-error i {\n float: left;\n padding-left: 5vw;\n font-size: 5rem;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-error .grid {\n margin-top: 0px;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-error-descr {\n padding-right: 6vw;\n font-size: 0.8em;\n}\n\n/* cropper */\n.bee-image-upload-dialog .bee-image-upload-dialog-cropper {\n --bee-image-cropper-height: 340px;\n}\n\n/* dropzone when cropper is active - remove dashed border */\n.bee-image-upload-dialog .bee-image-upload-dialog-dropzone--cropper-active {\n border: none;\n background-color: transparent;\n padding: 0;\n margin: 0;\n}\n\n/* progress */\n.bee-image-upload-dialog .bee-image-upload-dialog-progress {\n padding-top: 0.75rem;\n}\n\n.bee-image-upload-dialog .bee-image-upload-dialog-progress-msg {\n font-size: 0.8em;\n padding-top: 1rem;\n}\n\n/* primary */\n.bee-image-upload-dialog-primary.p-dialog .p-dialog-header {\n background-color: var(--primary-color);\n}\n\n.bee-image-upload-dialog-primary.p-dialog .p-dialog-header .p-dialog-title,\n.bee-image-upload-dialog-primary .p-dialog-header .p-dialog-header-icons button {\n color: var(--primary-color-text);\n}\n\n.bee-image-upload-dialog-primary.p-dialog .p-dialog-header-icon:hover {\n background: var(--primary-light-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.bee-image-upload-dialog-primary.p-dialog .p-dialog-header-icon:active {\n background: var(--primary-color-68) !important;\n color: var(--primary-color-text) !important;\n}\n\n.bee-image-upload-dialog-primary.p-dialog .p-dialog-header-icon:focus {\n background: var(--primary-color-76) !important;\n color: var(--primary-color-text) !important;\n}\n\n/* secondary */\n.bee-image-upload-dialog-secondary.p-dialog .p-dialog-header {\n background-color: var(--secondary-color);\n}\n\n.bee-image-upload-dialog-secondary.p-dialog .p-dialog-header .p-dialog-title {\n color: var(--secondary-color-text);\n}\n\n.bee-image-upload-dialog-secondary.p-dialog .p-dialog-header .p-dialog-header-icons button {\n color: var(--secondary-color-text);\n}\n\n.bee-image-upload-dialog-secondary.p-dialog .p-dialog-header-icon:hover {\n background: var(--secondary-light-color) !important;\n color: var(--secondary-color-text) !important;\n}\n\n.bee-image-upload-dialog-secondary.p-dialog .p-dialog-header-icon:active {\n background: var(--secondary-color-68) !important;\n color: var(--secondary-color-text) !important;\n}\n\n.bee-image-upload-dialog-secondary.p-dialog .p-dialog-header-icon:focus {\n background: var(--secondary-color-76) !important;\n color: var(--secondary-color-text) !important;\n}\n\n@media (max-width: 576px) {\n .bee-image-upload-dialog.p-dialog {\n width: 95vw;\n }\n}\n@media (min-width: 576px) and (max-width: 650px) {\n .bee-image-upload-dialog.p-dialog {\n width: 85vw;\n }\n}';styleInject(css_248z$e);const DEFAULT_IMAGE_FORMATS={"image/*":[".png",".jpg",".jpeg",".gif",".webp"]};function BeeImageUploadDialog({id:t,className:e,type:n="primary",visible:r,disabled:o,dropzoneTitle:i="",dropzoneDescription:a="",dropzoneAddLabel:s,dropzoneFormats:l,progressVisible:p,progressMessage:c,errorVisible:d,errorHeadline:u="",errorDescription:h,cropShape:b="rect",aspectWidth:m,aspectHeight:f,cropSize:g,maxOutputSize:v,showZoom:y,showRotation:x,controlsPosition:w="overlay",minZoom:k,maxZoom:_,zoomStep:S,zoomLabel:C,rotateLabel:E,onHide:P,onUpload:A}){const T=null!=t?t:libExports.useId(1,"bee-image-upload-dialog")[0],D=useRef(null),I=useRef(null),[z,M]=useState(),[j,q]=useState(),F=null!=l?l:DEFAULT_IMAGE_FORMATS;useEffect(()=>{if(!z)return void q(void 0);const t=URL.createObjectURL(z);return q(t),()=>{URL.revokeObjectURL(t)}},[z]);function R(){P&&(P(),M(void 0))}function O(){return __awaiter(this,void 0,void 0,function*(){if(z&&I.current){const t=yield I.current.getCroppedFile();A({file:t,name:void 0,copyright:void 0,originalFileName:z.name})}})}function B(){D.current&&D.current.open()}const L=()=>{const t=[];for(const[e,n]of Object.entries(F))t.push(...n);const e=[...new Set(t)].join(", ");return jsxs("div",{className:"bee-image-upload-dialog-empty-drop",children:[jsx(BeeContentHeadline,{headlineType:"h4",value:i,type:"primary"}),jsx(BeeContentParagraph,{value:a,size:"small",type:"default"}),jsx(BeeButton,{label:s,disabled:o,type:"primary",isLoading:!1,onClick:B}),jsx("div",{className:"bee-image-upload-dialog-formats",children:"Unterstützte Formate sind: "+e})]})};return jsx("div",{onKeyDown:t=>function(t){t.keyCode===enter&&z&&O(),t.keyCode===escape&&R()}(t),tabIndex:0,children:jsx(Dialog,{id:T,className:"bee-image-upload-dialog"+("primary"===n?" bee-image-upload-dialog-primary":"secondary"===n?" bee-image-upload-dialog-secondary":" bee-image-upload-dialog-primary")+(e?" "+e:""),showHeader:!1,visible:r,modal:!0,footer:d?jsx("div",{children:jsx(BeeButton,{label:"Schließen",disabled:!1,isLoading:!1,type:n,onClick:()=>R()})}):jsxs("div",z&&!p?{className:"flex justify-content-between align-items-center",children:[jsx(BeeLinkButton,{label:"Datei ändern",raised:!1,disabled:p,isLoading:!1,type:"primary",onClick:()=>B()}),jsxs("div",{className:"flex align-items-center gap-2",children:[jsx(BeeLinkButton,{label:"Abbrechen",raised:!1,disabled:p,isLoading:!1,type:"primary",onClick:()=>R()}),jsx(BeeButton,{label:"Hochladen",disabled:!z||p,type:n,isLoading:!1,onClick:()=>O()})]})]}:{className:"flex justify-content-end align-items-center gap-2",children:[jsx(BeeLinkButton,{label:"Abbrechen",raised:!1,disabled:p,isLoading:!1,type:"primary",onClick:()=>R()}),jsx(BeeButton,{label:"Hochladen",disabled:!z||p,type:n,isLoading:!1,onClick:()=>O()})]}),onHide:()=>R(),children:(()=>{const t="bee-image-upload-dialog-dropzone"+(z&&!p&&!d?" bee-image-upload-dialog-dropzone--cropper-active":"");return jsx(Dropzone,{ref:D,noClick:!0,noKeyboard:!0,accept:F,disabled:null!=o&&o,onDrop:t=>{t&&t.length>0&&M(t[0])},children:({getRootProps:e,getInputProps:n})=>jsx("div",{className:"container",children:jsxs("div",Object.assign({},e({className:t}),{"aria-label":"Bildupload Bereich - Datei hierher ziehen oder klicken zum Auswählen",children:[jsx("input",Object.assign({},n({"aria-label":"Bilddatei auswählen"}))),d?jsxs("div",{className:"bee-image-upload-dialog-error",role:"alert",children:[jsx(BeeContentHeadline,{headlineType:"h4",value:u,type:"primary"}),jsxs("div",{className:"grid",children:[jsx("i",{className:"col-fixed col-align-center pi pi-exclamation-triangle","aria-hidden":"true"}),jsx("p",{className:"col col-align-center bee-image-upload-dialog-error-descr",children:h})]})]}):z?p?jsxs("div",{className:"bee-image-upload-dialog-progress",role:"status","aria-live":"polite","aria-busy":"true",children:[jsx(BeeLoadingSpinner,{strokeWidth:"3",type:"mixed"}),jsx("div",{className:"bee-image-upload-dialog-progress-msg",children:c})]}):j?jsx("div",{className:"bee-image-upload-dialog-cropper","aria-label":"Bildbearbeitung",children:jsx(BeeImageCropper,{ref:I,image:j,cropShape:b,aspectWidth:m,aspectHeight:f,cropSize:g,maxOutputSize:v,showZoom:y,showRotation:x,controlsPosition:w,minZoom:k,maxZoom:_,zoomStep:S,disabled:o,zoomLabel:C,rotateLabel:E})}):L():L()]}))})})})()})})}var css_248z$d=".bee-address-form {\n position: relative;\n}";styleInject(css_248z$d);const ERROR_STREET="Bitte geben Sie eine Straße an.",ERROR_HOUSENUMBER="Bitte geben Sie eine Hausnr. an.",ERROR_ZIP="Bitte geben Sie eine Postleitzahl an.",ERROR_CITY="Bitte geben Sie eine Stadt an.",ERROR_COUNTRY="Bitte geben Sie ein Land an.",ERROR_REGION="Bitte geben Sie eine Region an.";function BeeAddressForm({disabled:t=!1,readOnly:e=!1,required:n=!1,countryOptions:r,regionOptions:o,countryOptionLabel:i="label",regionOptionLabel:a="label",street:s,housenumber:l,zip:p,city:c,country:d,region:u,isErrorStreet:h=!1,isErrorHousenumber:b=!1,isErrorZip:m=!1,isErrorCity:f=!1,isErrorCountry:g=!1,isErrorRegion:v=!1,onStreetChange:y,onHousenumberChange:x,onZipChange:w,onCityChange:k,onCountryChange:_,onRegionChange:S,onStreetFocusOut:C,onHousenumberFocusOut:E,onZipFocusOut:P,onCityFocusOut:A,onCountryFocusOut:T,onRegionFocusOut:D,className:I}){function z(t){null==y||y(t)}function M(t){null==x||x(t)}function j(t){null==w||w(t)}function q(t){null==k||k(t)}function F(t){null==C||C(t)}function R(t){null==E||E(t)}function O(t){null==P||P(t)}function B(t){null==A||A(t)}return jsxs("div",{className:"bee-address-form grid"+(I?" "+I:""),children:[jsx("div",{className:"col-12 sm:col-9 md:col-9 lg:col-8",children:jsx(BeeTextInput,{label:"Straße",statusLabel:h?ERROR_STREET:void 0,value:s,disabled:t,formstate:h?"error":"none",readOnly:e,required:n,onChange:z,onFocusOut:F})}),jsx("div",{className:"col-12 sm:col-3 md:col-3 lg:col-4",children:jsx(BeeTextInput,{label:"Hausnr.",statusLabel:b?ERROR_HOUSENUMBER:void 0,value:l,disabled:t,formstate:b?"error":"none",readOnly:e,required:n,onChange:M,onFocusOut:R})}),jsx("div",{className:"col-12 sm:col-3 md:col-3 lg:col-4",children:jsx(BeeTextInput,{label:"PLZ",statusLabel:m?ERROR_ZIP:void 0,value:p,disabled:t,formstate:m?"error":"none",readOnly:e,required:n,onChange:j,onFocusOut:O})}),jsx("div",{className:"col-12 sm:col-9 md:col-9 lg:col-8",children:jsx(BeeTextInput,{label:"Stadt",statusLabel:f?ERROR_CITY:void 0,value:c,disabled:t,formstate:f?"error":"none",readOnly:e,required:n,onChange:q,onFocusOut:B})}),jsx("div",{className:"col-12 sm:col-6 md:col-6 lg:col-6",children:jsx(BeeDropDown,{label:"Land",statusLabel:g?ERROR_COUNTRY:void 0,value:d,formstate:g?"error":"none",options:r,optionLabel:i,disabled:t,readOnly:e,required:n,onChange:t=>{!function(t){null==_||_(t)}(t),function(t){null==T||T(t)}(t)}})}),jsx("div",{className:"col-12 sm:col-6 md:col-6 lg:col-6",children:jsx(BeeDropDown,{label:"Region",statusLabel:v?ERROR_REGION:void 0,disabled:t,value:u,formstate:v?"error":"none",readOnly:e,required:n,options:o,optionLabel:a,onChange:t=>{!function(t){null==S||S(t)}(t),function(t){null==D||D(t)}(t)}})})]})}var css_248z$c=".bee-chat-window {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 300px;\n border-radius: 4px;\n padding: 0.25em 0.25em 0 0.25em;\n}\n.bee-chat-window .bee-chat-window__header {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n border-bottom: 1px solid var(--surface-border);\n}\n.bee-chat-window .bee-chat-window__header .bee-chat-window__maximize-btn.p-button {\n background-color: var(--primary-color-4) !important;\n color: var(--primary-color);\n}\n.bee-chat-window .bee-chat-window__header .bee-chat-window__maximize-btn.p-button.p-button:not(.p-disabled):hover {\n background-color: var(--primary-light-active-color) !important;\n color: var(--primary-color);\n}\n.bee-chat-window .bee-chat-window__body {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n.bee-chat-window .bee-chat-window__messages {\n flex: 1;\n overflow-y: scroll;\n overflow-x: hidden;\n scrollbar-gutter: stable;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.bee-chat-window .bee-chat-window__messages .bee-chat-window__content {\n display: flex;\n flex-direction: column;\n min-height: calc(100% + 1px);\n gap: 0.35rem;\n}\n.bee-chat-window .bee-chat-window__messages .bee-chat-window__content .chat-message--self {\n align-self: flex-end;\n}\n.bee-chat-window .bee-chat-window__messages .bee-chat-window__content .chat-message--otherUser {\n align-self: flex-start;\n}\n.bee-chat-window .bee-chat-window__messages .bee-chat-window__content .chat-message--system {\n align-self: flex-start;\n}\n.bee-chat-window .bee-chat-window__messages:not(.bee-chat-window__messages--dialog) {\n max-height: 18rem;\n}\n.bee-chat-window .bee-chat-window__separator {\n height: 16px;\n flex-shrink: 0;\n}\n.bee-chat-window .bee-chat-window__loader-old,\n.bee-chat-window .bee-chat-window__loader-new {\n display: flex;\n justify-content: center;\n padding: 0.5rem;\n flex-shrink: 0;\n}\n.bee-chat-window .p-progress-spinner {\n height: 2em;\n}\n.bee-chat-window .p-progress-spinner:before {\n padding-top: 0;\n}\n.bee-chat-window .bee-chat-window__no-messages {\n padding: 0.5rem 0;\n color: var(--text-color-secondary);\n font-size: 0.9rem;\n}\n.bee-chat-window .bee-chat-window__footer-spacer {\n padding-bottom: 0.5rem;\n}\n.bee-chat-window .footer-container,\n.bee-chat-window .p-dialog-footer .footer-container {\n margin-top: 0.25rem;\n display: flex;\n align-items: center;\n}\n.bee-chat-window .footer-container .textarea-container,\n.bee-chat-window .p-dialog-footer .footer-container .textarea-container {\n position: relative;\n flex: 1;\n}\n.bee-chat-window .footer-container .textarea-container .p-button.p-component,\n.bee-chat-window .p-dialog-footer .footer-container .textarea-container .p-button.p-component {\n position: absolute;\n top: 48%;\n right: 0.25em;\n transform: translateY(-50%);\n background-color: transparent !important;\n}\n.bee-chat-window .footer-container .textarea-container .p-button.p-component:hover,\n.bee-chat-window .p-dialog-footer .footer-container .textarea-container .p-button.p-component:hover {\n transform: translateY(-50%) scale(1.09);\n -ms-transform: translateY(-50%) scale(1.09);\n -webkit-transform: translateY(-50%) scale(1.09);\n transition: all 0.07s ease;\n}\n\n.bee-chat-window__dialog.p-dialog {\n border-radius: 4px;\n padding: 0.25em 0.25em 0 0.25em;\n}\n.bee-chat-window__dialog.p-dialog .bee-chat-window__footer-spacer {\n padding-bottom: 0.5rem;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-header {\n background-color: var(--primary-color);\n color: white;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-header .p-dialog-header-close {\n color: white;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-header .p-dialog-header-close:hover {\n background-color: var(--primary-light-color);\n color: white;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-content {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: visible;\n padding-right: 0rem !important;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-content .bee-chat-window__messages--dialog {\n padding-right: 0.5rem;\n height: 50vh;\n width: 65vw;\n overflow-y: scroll;\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-content .bee-chat-window__messages--dialog .bee-chat-window__content {\n display: flex;\n flex-direction: column;\n min-height: calc(50vh + 3rem) !important;\n gap: 0.35rem;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-content .bee-chat-window__messages--dialog .bee-chat-window__content .chat-message--self {\n align-self: flex-end;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-content .bee-chat-window__messages--dialog .bee-chat-window__content .chat-message--otherUser {\n align-self: flex-start;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-content .bee-chat-window__messages--dialog .bee-chat-window__content .chat-message--system {\n align-self: flex-start;\n}\n.bee-chat-window__dialog.p-dialog .p-dialog-content .bee-chat-window__messages--dialog .p-progress-spinner {\n height: 40px;\n}\n.bee-chat-window__dialog.p-dialog .footer-container,\n.bee-chat-window__dialog.p-dialog .p-dialog-footer .footer-container {\n margin-top: 0.25rem;\n display: flex;\n align-items: center;\n}\n.bee-chat-window__dialog.p-dialog .footer-container .textarea-container,\n.bee-chat-window__dialog.p-dialog .p-dialog-footer .footer-container .textarea-container {\n position: relative;\n flex: 1;\n}\n.bee-chat-window__dialog.p-dialog .footer-container .textarea-container .p-button.p-component,\n.bee-chat-window__dialog.p-dialog .p-dialog-footer .footer-container .textarea-container .p-button.p-component {\n position: absolute;\n top: 48%;\n right: 0.25em;\n transform: translateY(-50%);\n background-color: transparent !important;\n}\n.bee-chat-window__dialog.p-dialog .footer-container .textarea-container .p-button.p-component:hover,\n.bee-chat-window__dialog.p-dialog .p-dialog-footer .footer-container .textarea-container .p-button.p-component:hover {\n transform: translateY(-50%) scale(1.09);\n -ms-transform: translateY(-50%) scale(1.09);\n -webkit-transform: translateY(-50%) scale(1.09);\n transition: all 0.07s ease;\n}\n\n.bee-chat-window__small-dialog-header {\n display: flex;\n justify-content: flex-end;\n padding: 0 0.5rem 0.25rem;\n}\n\n.bee-chat-window__host .footer-container {\n margin-top: 0.25rem;\n display: flex;\n align-items: center;\n}\n.bee-chat-window__host .footer-container .textarea-container {\n position: relative;\n flex: 1;\n}\n.bee-chat-window__host .footer-container .textarea-container .p-button.p-component {\n position: absolute;\n top: 48%;\n right: 0.25em;\n transform: translateY(-50%);\n background-color: transparent !important;\n}\n.bee-chat-window__host .footer-container .textarea-container .p-button.p-component:hover {\n transform: translateY(-50%) scale(1.09);\n -ms-transform: translateY(-50%) scale(1.09);\n -webkit-transform: translateY(-50%) scale(1.09);\n transition: all 0.07s ease;\n}";function BeeChatWindow({name:t,messages:e,participants:n,currentUserId:r,readOnly:o,disabled:i,showLoaderOldMsgs:a,showLoaderNewMsgs:s,project:l,documentIconClass:p,trashIconClass:c,sourceAuditIconClass:d,sourceLcIconClass:u,acceptedFileFormats:h,onMessageSubmit:b,onMsgDelete:m,onDocumentUpload:f,onFetchOldMessages:g,onFetchNewMessages:v}){const[y,x]=useState(!1),[w,k]=useState(!1),[S,C]=useState(!1),[E,P]=useState(!1),[A,T]=useState(""),[D,I]=useState(!1),[z,M]=useState("");let j=useRef(null);const q=useRef(null),F=useRef(null),R=useRef(null),O=useRef(null),B=useRef(null),L=useRef(null),N=useCallback(_.debounce(()=>{g&&g()},500),[g]),V=useCallback(_.debounce(()=>{v&&v()},500),[v]);function H(t){T(t.target.value||"")}function W(){w||(b&&(null==A?void 0:A.trim())&&b(null==A?void 0:A.trim()),T(""))}function G(t){"Enter"!==t.key||t.shiftKey||(t.preventDefault(),t.stopPropagation(),W())}useEffect(()=>{var t,n,r,o,i,l,p,c,d;if((null==j?void 0:j.current)&&e)if(S&&!a){R.current=(null===(t=null==q?void 0:q.current)||void 0===t?void 0:t.clientHeight)||0;j.current.scrollHeight-B.current-R.current-33>0?j.current.scrollTop=j.current.scrollHeight-B.current-33:j.current.scrollTop=R.current+16,C(!1)}else if(E&&!s){O.current=(null===(n=null==F?void 0:F.current)||void 0===n?void 0:n.clientHeight)||0;const t=j.current.scrollHeight-B.current;t-O.current-33>0?j.current.scrollTop=_.floor((null===(r=null==j?void 0:j.current)||void 0===r?void 0:r.scrollHeight)-t-(null===(o=null==j?void 0:j.current)||void 0===o?void 0:o.offsetHeight)+O.current):j.current.scrollTop=(null===(i=null==j?void 0:j.current)||void 0===i?void 0:i.scrollHeight)-(null===(l=null==j?void 0:j.current)||void 0===l?void 0:l.clientHeight)-O.current-33-15,P(!1)}else s||a||(O.current=(null===(p=null==F?void 0:F.current)||void 0===p?void 0:p.clientHeight)||0,j.current.scrollTop=(null===(c=null==j?void 0:j.current)||void 0===c?void 0:c.scrollHeight)-(null===(d=null==j?void 0:j.current)||void 0===d?void 0:d.clientHeight)-33,P(!1))},[e,s,a]),useEffect(()=>{var t,e;E&&(j.current.scrollTop=(null===(t=null==j?void 0:j.current)||void 0===t?void 0:t.scrollHeight)-(null===(e=null==j?void 0:j.current)||void 0===e?void 0:e.clientHeight)),S&&(j.current.scrollTop=0)},[E,S]),useEffect(()=>()=>{N.cancel(),V.cancel()},[N,V]);const $=()=>{var t,e,n,r,o;!j.current||0!==j.current.scrollTop||S||E?j.current&&Math.ceil((null===(e=null==j?void 0:j.current)||void 0===e?void 0:e.scrollTop)+(null===(n=null==j?void 0:j.current)||void 0===n?void 0:n.clientHeight))>=(null===(r=null==j?void 0:j.current)||void 0===r?void 0:r.scrollHeight)&&!E&&!S&&(B.current=null===(o=null==j?void 0:j.current)||void 0===o?void 0:o.scrollHeight,P(!0),V()):(B.current=null===(t=null==j?void 0:j.current)||void 0===t?void 0:t.scrollHeight,N(),C(!0))};function U(){var t;L.current=null===(t=null==j?void 0:j.current)||void 0===t?void 0:t.scrollTop,y&&T(""),x(!y)}function Y(t){return jsxs("div",{className:"bee-chat-window__content",children:[S?jsx("div",{ref:q,className:"flex justify-content-center ",children:jsx(BeeLoadingSpinner,{strokeWidth:"2",type:"primary"})}):null,jsx("div",{className:"bee-chat-window__separator"}),t&&t.length>0?t.map((t,e)=>{if(!(null==t?void 0:t.id))return console.warn("Message without ID found at index:",e),null;const o=function(t){if(t&&n&&Array.isArray(n))return _.find(n,function(e){return(null==e?void 0:e.id)===t})}(t.participantId);return jsx(BeeChatMessage,{maxWindow:y,msg:t,participant:o,isCurrentUser:(null==o?void 0:o.userId)===r,chatMsgSource:t.source,project:l,documentIconClass:p,trashIconClass:c,sourceAuditIconClass:d,sourceLcIconClass:u,onMsgDelete:()=>{var e,n,r;(null==t?void 0:t.id)&&(null==o?void 0:o.id)&&(null==o?void 0:o.chatRoomId)&&(e=null==o?void 0:o.chatRoomId,n=null==o?void 0:o.id,r=null==t?void 0:t.id,m&&r&&n&&e&&m(e,n,r))},onDownload:()=>{}},t.id)}):jsx(BeeContentParagraph,{value:"Es sind keine Nachrichten verfügbar",size:"medium",type:"primary"}),jsx("div",{className:"bee-chat-window__separator"}),E?jsx("div",{ref:F,className:"flex justify-content-center",children:jsx(BeeLoadingSpinner,{strokeWidth:"2",type:"primary"})}):null]})}function K(t,e){return jsx("div",{className:"footer-container",children:jsxs("div",{className:"textarea-container",onKeyDown:G,children:[jsx(BeeTextArea,{label:"Kommentar schreiben...",value:t,rows:e,autoResize:y,readOnly:null!=o&&o,required:!1,onChange:H}),jsx(BeeIconButton,{iconClass:"pi pi-send",rounded:!1,disabled:i||w||!(null==t?void 0:t.trim()),type:"lightPrimary",isLoading:w,onClick:W})]})})}return jsxs("div",{className:"bee-chat-window__host bee-dialog-primary",children:[function(){const t=y?"":A;return jsxs("div",{className:"bee-chat-window",children:[jsxs("div",{className:"bee-chat-window__messages",ref:y?null:j,onScroll:$,children:[jsx("div",{className:"bee-chat-window__small-dialog-header",children:jsx(BeeIconButton,{iconClass:"pi pi-window-maximize",rounded:!0,type:"lightPrimary",onClick:U})}),Y(e)]}),o?jsx("div",{className:"pb-2"}):K(t,1)]})}(),y?jsx(Dialog,{header:t||"",footer:()=>o?jsx("div",{className:"pb-2"}):K(A,5),className:"bee-chat-window__dialog bee-dialog-primary",maximizable:!1,draggable:!1,visible:y,onHide:U,children:jsx("div",{className:"bee-chat-window__messages bee-chat-window__messages--dialog",ref:t=>{j.current!=t&&(t&&L.current&&(L.current<t.scrollHeight-t.clientHeight?t.scrollTop=L.current:t.scrollTop=t.scrollHeight-t.clientHeight-1,L.current=null),j.current=t)},onScroll:$,children:jsx("div",{children:Y(e)})})}):null,jsx(Fragment,{children:jsx(BeeUploadDialog,{type:"primary",visible:D,disabled:!1,locale:"de-DE",header:"Dokument hochladen",info:"",titleLabel:"",titleVisible:!1,copyrightLabel:"",copyrightVisible:!1,dropzoneTitle:"Upload - Dokument ",dropzoneDescription:'Bitte ziehen Sie die gewünschte Datei in diesen Bereich oder klicken Sie auf "Hinzufügen".',dropzoneAddLabel:"Klicken zum Hinzufügen",dropzoneFormats:h,progressVisible:!1,progressMessage:"Dokument wird hochgeladen",errorVisible:!!z,errorHeadline:z,errorDescription:"Fehler beim Hochladen des Dokuments",onHide:()=>{M(""),I(!1)},onUpload:t=>{var e;e=t,f&&e&&!w&&(k(!0),Promise.resolve(f(e)).finally(()=>k(!1)))}})})]})}styleInject(css_248z$c);var index_umd$1={exports:{}},lottie$1={exports:{}},lottie=lottie$1.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports$1){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var n,r,o=t.length;for(n=0;n<o;n+=1)for(var i in r=t[n].prototype)Object.prototype.hasOwnProperty.call(r,i)&&(e.prototype[i]=r[i])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,n=this.audios.length;for(e=0;e<n;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var n,r=0,o=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<e;r+=1)o.push(n);return o}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,n=createSizedArray(t.length),r=t.length;for(e=0;e<r;e+=1)n[e]=Math.abs(t[e]);return n}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,n,r){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,n,r){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,n){var r,o,i,a,s,l,p,c;switch(l=n*(1-e),p=n*(1-(s=6*t-(a=Math.floor(6*t)))*e),c=n*(1-(1-s)*e),a%6){case 0:r=n,o=c,i=l;break;case 1:r=p,o=n,i=l;break;case 2:r=l,o=n,i=c;break;case 3:r=l,o=p,i=n;break;case 4:r=c,o=l,i=n;break;case 5:r=n,o=l,i=p}return[r,o,i]}function RGBtoHSV(t,e,n){var r,o=Math.max(t,e,n),i=Math.min(t,e,n),a=o-i,s=0===o?0:a/o,l=o/255;switch(o){case i:r=0;break;case t:r=e-n+a*(e<n?6:0),r/=6*a;break;case e:r=n-t+2*a,r/=6*a;break;case n:r=t-e+4*a,r/=6*a}return[r,s,l]}function addSaturationToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+n[t]+n[e]+n[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,n=1,r=[],o={onmessage:function(){},postMessage:function(e){t({data:e})}},i={postMessage:function(t){o.onmessage({data:t})}};function a(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return t=e,o}(function(t){if(i.dataManager||(i.dataManager=function(){function t(o,i){var a,s,l,p,c,u,h=o.length;for(s=0;s<h;s+=1)if("ks"in(a=o[s])&&!a.completed){if(a.completed=!0,a.hasMask){var b=a.masksProperties;for(p=b.length,l=0;l<p;l+=1)if(b[l].pt.k.i)r(b[l].pt.k);else for(u=b[l].pt.k.length,c=0;c<u;c+=1)b[l].pt.k[c].s&&r(b[l].pt.k[c].s[0]),b[l].pt.k[c].e&&r(b[l].pt.k[c].e[0])}0===a.ty?(a.layers=e(a.refId,i),t(a.layers,i)):4===a.ty?n(a.shapes):5===a.ty&&d(a)}}function e(t,e){var n=function(t,e){for(var n=0,r=e.length;n<r;){if(e[n].id===t)return e[n];n+=1}return null}(t,e);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(t){var e,o,i;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(i=t[e].ks.k.length,o=0;o<i;o+=1)t[e].ks.k[o].s&&r(t[e].ks.k[o].s[0]),t[e].ks.k[o].e&&r(t[e].ks.k[o].e[0]);else"gr"===t[e].ty&&n(t[e].it)}function r(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function o(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var i,a=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),s=(i=[4,7,99],function(t){if(t.chars&&!o(i,t.v)){var e,r=t.chars.length;for(e=0;e<r;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(n(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var n,r,o,i=t.length;for(n=0;n<i;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(o=t[n].c.k.length,r=0;r<o;r+=1)t[n].c.k[r].s&&(t[n].c.k[r].s[0]/=255,t[n].c.k[r].s[1]/=255,t[n].c.k[r].s[2]/=255,t[n].c.k[r].s[3]/=255),t[n].c.k[r].e&&(t[n].c.k[r].e[0]/=255,t[n].c.k[r].e[1]/=255,t[n].c.k[r].e[2]/=255,t[n].c.k[r].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var n,r,o;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(o=t[n].ks.k.length,r=0;r<o;r+=1)t[n].ks.k[r].s&&(t[n].ks.k[r].s[0].c=t[n].closed),t[n].ks.k[r].e&&(t[n].ks.k[r].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,r,o,i,a,s,l=t.length;for(r=0;r<l;r+=1){if((n=t[r]).hasMask){var p=n.masksProperties;for(i=p.length,o=0;o<i;o+=1)if(p[o].pt.k.i)p[o].pt.k.c=p[o].cl;else for(s=p[o].pt.k.length,a=0;a<s;a+=1)p[o].pt.k[a].s&&(p[o].pt.k[a].s[0].c=p[o].cl),p[o].pt.k[a].e&&(p[o].pt.k[a].e[0].c=p[o].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}();function d(t){0===t.t.a.length&&t.t.p}var u={completeData:function(n){n.__complete||(p(n),a(n),s(n),l(n),c(n),t(n.layers,n.assets),function(n,r){if(n){var o=0,i=n.length;for(o=0;o<i;o+=1)1===n[o].t&&(n[o].data.layers=e(n[o].data.refId,r),t(n[o].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return u.checkColors=p,u.checkChars=s,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),i.assetLoader||(i.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,n,r,o){var i,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)i=t(a),r(i);else try{i=t(a),r(i)}catch(t){o&&o(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),n+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)i.assetLoader.load(t.data.path,t.data.fullPath,function(e){i.dataManager.completeData(e),i.postMessage({id:t.data.id,payload:e,status:"success"})},function(){i.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;i.dataManager.completeData(e),i.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&i.assetLoader.load(t.data.path,t.data.fullPath,function(e){i.postMessage({id:t.data.id,payload:e,status:"success"})},function(){i.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,n=e.id,o=r[n];r[n]=null,"success"===e.status?o.onComplete(e.payload):o.onError&&o.onError()})}function s(t,e){var o="processId_"+(n+=1);return r[o]={onComplete:t,onError:e},o}return{loadAnimation:function(t,n,r){a();var o=s(n,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:o})},loadData:function(t,n,r){a();var o=s(n,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:o})},completeAnimation:function(t,n,r){a();var o=s(n,r);e.postMessage({type:"complete",animation:t,id:o})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,n){var r="";if(t.e)r=t.p;else if(e){var o=t.p;-1!==o.indexOf("images/")&&(o=o.split("/")[1]),r=e+o}else r=n,r+=t.u?t.u:"",r+=t.p;return r}function o(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function i(t){var e={assetData:t},n=r(t,this.assetsPath,this.path);return dataManager.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=i.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var n;this.imagesLoadedCb=e;var r=t.length;for(n=0;n<r;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var n=r(e,this.assetsPath,this.path),o=createTag("img");o.crossOrigin="anonymous",o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=t,this._imageLoaded()}.bind(this),!1),o.src=n;var i={img:o,assetData:e};return i},createImageData:function(e){var n=r(e,this.assetsPath,this.path),o=createNS("image");isSafari?this.testImageLoaded(o):o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=t,this._imageLoaded()}.bind(this),!1),o.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(o):this._elementHelper.appendChild(o);var i={img:o,assetData:e};return i},imageLoaded:e,footageLoaded:n,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],r=0;r<n.length;r+=1)n[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,r=this._cbs[t].length;n<r;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,r-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,n=t.split("\r\n"),r={},o=0,i=0;i<n.length;i+=1)2===(e=n[i].split(":")).length&&(r[e[0]]=e[1].trim(),o+=1);if(0===o)throw new Error;return r}return function(e){for(var n=[],r=0;r<e.length;r+=1){var o=e[r],i={time:o.tm,duration:o.dr};try{i.payload=JSON.parse(e[r].cm)}catch(n){try{i.payload=t(e[r].cm)}catch(t){i.payload={name:e[r].cm}}}n.push(i)}return n}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=getRenderer(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},r=t.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===o?n.loop=!1:"true"===o?n.loop=!0:""!==o&&(n.loop=parseInt(o,10));var i=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==i,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,r=this.animationData.layers,o=r.length,i=t.layers,a=i.length;for(n=0;n<a;n+=1)for(e=0;e<o;){if(r[e].id===i[n].id){r[e]=i[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(o=t.assets.length,e=0;e<o;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var n="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var o=this.getMarkerData(t);o&&this.goToAndStop(o.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var o=this.getMarkerData(t);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(r,e,n);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var n,r=t.length;for(n=0;n<r;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,n){try{this.renderer.getElementByPath(t).updateDocumentData(e,n)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],n=0,r=0,o=0,i=!0,a=!1;function s(t){for(var n=0,o=t.target;n<r;)e[n].animation===o&&(e.splice(n,1),n-=1,r-=1,o.isPaused||c()),n+=1}function l(t,n){if(!t)return null;for(var o=0;o<r;){if(e[o].elem===t&&null!==e[o].elem)return e[o].animation;o+=1}var i=new AnimationItem;return d(i,t),i.setData(t,n),i}function p(){o+=1,b()}function c(){o-=1}function d(t,n){t.addEventListener("destroy",s),t.addEventListener("_active",p),t.addEventListener("_idle",c),e.push({elem:n,animation:t}),r+=1}function u(t){var s,l=t-n;for(s=0;s<r;s+=1)e[s].animation.advanceTime(l);n=t,o&&!a?window.requestAnimationFrame(u):i=!0}function h(t){n=t,window.requestAnimationFrame(u)}function b(){!a&&o&&i&&(window.requestAnimationFrame(h),i=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return d(e,null),e.setParams(t),e},t.setSpeed=function(t,n){var o;for(o=0;o<r;o+=1)e[o].animation.setSpeed(t,n)},t.setDirection=function(t,n){var o;for(o=0;o<r;o+=1)e[o].animation.setDirection(t,n)},t.play=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.play(t)},t.pause=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.pause(t)},t.stop=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.stop(t)},t.togglePause=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.togglePause(t)},t.searchAnimations=function(t,e,n){var r,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=o.length;for(r=0;r<i;r+=1)n&&o[r].setAttribute("data-bm-type",n),l(o[r],t);if(e&&0===i){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),a.appendChild(s),l(s,t)}},t.resize=function(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,n,o){var i;for(i=0;i<r;i+=1)e[i].animation.goToAndStop(t,n,o)},t.destroy=function(t){var n;for(n=r-1;n>=0;n-=1)e[n].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,b()},t.setVolume=function(t,n){var o;for(o=0;o<r;o+=1)e[o].animation.setVolume(t,n)},t.mute=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.mute(t)},t.unmute=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,n,r,o,i){var a=i||("bez_"+t+"_"+n+"_"+r+"_"+o).replace(/\./g,"p");if(e[a])return e[a];var s=new c([t,n,r,o]);return e[a]=s,s}},e={},n=11,r=1/(n-1),o="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,n){return((i(e,n)*t+a(e,n))*t+s(e))*t}function p(t,e,n){return 3*i(e,n)*t*t+2*a(e,n)*t+s(e)}function c(t){this._p=t,this._mSampleValues=o?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],n=this._p[1],r=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===n&&r===o?t:0===t?0:1===t?1:l(this._getTForX(t),n,o)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],o=0;o<n;++o)this._mSampleValues[o]=l(o*r,t,e)},_getTForX:function(t){for(var e=this._p[0],o=this._p[2],i=this._mSampleValues,a=0,s=1,c=n-1;s!==c&&i[s]<=t;++s)a+=r;var d=a+(t-i[--s])/(i[s+1]-i[s])*r,u=p(d,e,o);return u>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=p(e,n,r);if(0===i)return e;e-=(l(e,n,r)-t)/i}return e}(t,d,e,o):0===u?d:function(t,e,n,r,o){var i,a,s=0;do{(i=l(a=e+(n-e)/2,r,o)-t)>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,a,a+r,e,o)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,n){var r=0,o=t,i=createSizedArray(o);return{newElement:function(){return r?i[r-=1]:e()},release:function(t){r===o&&(i=pooling.double(i),o*=2),n&&n(t),i[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(t,e,n,r,o,i){var a=t*r+e*o+n*i-o*r-i*t-n*e;return a>-.001&&a<.001}var n=function(t,e,n,r){var o,i,a,s,l,p,c=getDefaultCurveSegments(),d=0,u=[],h=[],b=bezierLengthPool.newElement();for(a=n.length,o=0;o<c;o+=1){for(l=o/(c-1),p=0,i=0;i<a;i+=1)s=bmPow(1-l,3)*t[i]+3*bmPow(1-l,2)*l*n[i]+3*(1-l)*bmPow(l,2)*r[i]+bmPow(l,3)*e[i],u[i]=s,null!==h[i]&&(p+=bmPow(u[i]-h[i],2)),h[i]=u[i];p&&(d+=p=bmSqrt(p)),b.percents[o]=l,b.lengths[o]=d}return b.addedLength=d,b};function r(t){this.segmentLength=0,this.points=new Array(t)}function o(t,e){this.partialLength=t,this.point=e}var i,a=(i={},function(t,n,a,s){var l=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!i[l]){var p,c,d,u,h,b,m,f=getDefaultCurveSegments(),g=0,v=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],n[0],n[1],n[0]+s[0],n[1]+s[1])&&(f=2);var y=new r(f);for(d=a.length,p=0;p<f;p+=1){for(m=createSizedArray(d),h=p/(f-1),b=0,c=0;c<d;c+=1)u=bmPow(1-h,3)*t[c]+3*bmPow(1-h,2)*h*(t[c]+a[c])+3*(1-h)*bmPow(h,2)*(n[c]+s[c])+bmPow(h,3)*n[c],m[c]=u,null!==v&&(b+=bmPow(m[c]-v[c],2));g+=b=bmSqrt(b),y.points[p]=new o(b,m),v=m}y.segmentLength=g,i[l]=y}return i[l]});function s(t,e){var n=e.percents,r=e.lengths,o=n.length,i=bmFloor((o-1)*t),a=t*e.addedLength,s=0;if(i===o-1||0===i||a===r[i])return n[i];for(var l=r[i]>a?-1:1,p=!0;p;)if(r[i]<=a&&r[i+1]>a?(s=(a-r[i])/(r[i+1]-r[i]),p=!1):i+=l,i<0||i>=o-1){if(i===o-1)return n[i];p=!1}return n[i]+(n[i+1]-n[i])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),o=t.c,i=t.v,a=t.o,s=t.i,l=t._length,p=r.lengths,c=0;for(e=0;e<l-1;e+=1)p[e]=n(i[e],i[e+1],a[e],s[e+1]),c+=p[e].addedLength;return o&&l&&(p[e]=n(i[e],i[0],a[e],s[0]),c+=p[e].addedLength),r.totalLength=c,r},getNewSegment:function(e,n,r,o,i,a,p){i<0?i=0:i>1&&(i=1);var c,d=s(i,p),u=s(a=a>1?1:a,p),h=e.length,b=1-d,m=1-u,f=b*b*b,g=d*b*b*3,v=d*d*b*3,y=d*d*d,x=b*b*m,w=d*b*m+b*d*m+b*b*u,k=d*d*m+b*d*u+d*b*u,_=d*d*u,S=b*m*m,C=d*m*m+b*u*m+b*m*u,E=d*u*m+b*u*u+d*m*u,P=d*u*u,A=m*m*m,T=u*m*m+m*u*m+m*m*u,D=u*u*m+m*u*u+u*m*u,I=u*u*u;for(c=0;c<h;c+=1)l[4*c]=t.round(1e3*(f*e[c]+g*r[c]+v*o[c]+y*n[c]))/1e3,l[4*c+1]=t.round(1e3*(x*e[c]+w*r[c]+k*o[c]+_*n[c]))/1e3,l[4*c+2]=t.round(1e3*(S*e[c]+C*r[c]+E*o[c]+P*n[c]))/1e3,l[4*c+3]=t.round(1e3*(A*e[c]+T*r[c]+D*o[c]+I*n[c]))/1e3;return l},getPointInSegment:function(e,n,r,o,i,a){var l=s(i,a),p=1-l;return[t.round(1e3*(p*p*p*e[0]+(l*p*p+p*l*p+p*p*l)*r[0]+(l*l*p+p*l*l+l*p*l)*o[0]+l*l*l*n[0]))/1e3,t.round(1e3*(p*p*p*e[1]+(l*p*p+p*l*p+p*p*l)*r[1]+(l*l*p+p*l*l+l*p*l)*o[1]+l*l*l*n[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(n,r,o,i,a,s,l,p,c){if(0===o&&0===s&&0===c)return e(n,r,i,a,l,p);var d,u=t.sqrt(t.pow(i-n,2)+t.pow(a-r,2)+t.pow(s-o,2)),h=t.sqrt(t.pow(l-n,2)+t.pow(p-r,2)+t.pow(c-o,2)),b=t.sqrt(t.pow(l-i,2)+t.pow(p-a,2)+t.pow(c-s,2));return(d=u>h?u>b?u-h-b:b-h-u:b>h?b-h-u:h-u-b)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var o,i,a,s,l,p,c,d,u,h=e.lastIndex,b=h,m=this.keyframes.length-1,f=!0;f;){if(o=this.keyframes[b],i=this.keyframes[b+1],b===m-1&&t>=i.t-r){o.h&&(o=i),h=0;break}if(i.t-r>t){h=b;break}b<m-1?b+=1:(h=0,f=!1)}a=this.keyframesMetadata[b]||{};var g,v=i.t-r,y=o.t-r;if(o.to){a.bezierData||(a.bezierData=bez.buildBezierData(o.s,i.s||o.e,o.to,o.ti));var x=a.bezierData;if(t>=v||t<y){var w=t>=v?x.points.length-1:0;for(l=x.points[w].point.length,s=0;s<l;s+=1)n[s]=x.points[w].point[s]}else{a.__fnct?u=a.__fnct:(u=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,a.__fnct=u),p=u((t-y)/(v-y));var k,_=x.segmentLength*p,S=e.lastFrame<t&&e._lastKeyframeIndex===b?e._lastAddedLength:0;for(d=e.lastFrame<t&&e._lastKeyframeIndex===b?e._lastPoint:0,f=!0,c=x.points.length;f;){if(S+=x.points[d].partialLength,0===_||0===p||d===x.points.length-1){for(l=x.points[d].point.length,s=0;s<l;s+=1)n[s]=x.points[d].point[s];break}if(_>=S&&_<S+x.points[d+1].partialLength){for(k=(_-S)/x.points[d+1].partialLength,l=x.points[d].point.length,s=0;s<l;s+=1)n[s]=x.points[d].point[s]+(x.points[d+1].point[s]-x.points[d].point[s])*k;break}d<c-1?d+=1:f=!1}e._lastPoint=d,e._lastAddedLength=S-x.points[d].partialLength,e._lastKeyframeIndex=b}}else{var C,E,P,A,T;if(m=o.s.length,g=i.s||o.e,this.sh&&1!==o.h)t>=v?(n[0]=g[0],n[1]=g[1],n[2]=g[2]):t<=y?(n[0]=o.s[0],n[1]=o.s[1],n[2]=o.s[2]):quaternionToEuler(n,slerp(createQuaternion(o.s),createQuaternion(g),(t-y)/(v-y)));else for(b=0;b<m;b+=1)1!==o.h&&(t>=v?p=1:t<y?p=0:(o.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[b]?u=a.__fnct[b]:(C=void 0===o.o.x[b]?o.o.x[0]:o.o.x[b],E=void 0===o.o.y[b]?o.o.y[0]:o.o.y[b],P=void 0===o.i.x[b]?o.i.x[0]:o.i.x[b],A=void 0===o.i.y[b]?o.i.y[0]:o.i.y[b],u=BezierFactory.getBezierEasing(C,E,P,A).get,a.__fnct[b]=u)):a.__fnct?u=a.__fnct:(C=o.o.x,E=o.o.y,P=o.i.x,A=o.i.y,u=BezierFactory.getBezierEasing(C,E,P,A).get,o.keyframeMetadata=u),p=u((t-y)/(v-y)))),g=i.s||o.e,T=1===o.h?o.s[b]:o.s[b]+(g[b]-o.s[b])*p,"multidimensional"===this.propType?n[b]=T:n=T}return e.lastIndex=h,n}function slerp(t,e,n){var r,o,i,a,s,l=[],p=t[0],c=t[1],d=t[2],u=t[3],h=e[0],b=e[1],m=e[2],f=e[3];return(o=p*h+c*b+d*m+u*f)<0&&(o=-o,h=-h,b=-b,m=-m,f=-f),1-o>1e-6?(r=Math.acos(o),i=Math.sin(r),a=Math.sin((1-n)*r)/i,s=Math.sin(n*r)/i):(a=1-n,s=n),l[0]=a*p+s*h,l[1]=a*c+s*b,l[2]=a*d+s*m,l[3]=a*u+s*f,l}function quaternionToEuler(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=Math.atan2(2*r*i-2*n*o,1-2*r*r-2*o*o),s=Math.asin(2*n*r+2*o*i),l=Math.atan2(2*n*i-2*r*o,1-2*n*n-2*o*o);t[0]=a/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,n=t[1]*degToRads,r=t[2]*degToRads,o=Math.cos(e/2),i=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(e/2),l=Math.sin(n/2),p=Math.sin(r/2);return[s*l*a+o*i*p,s*i*a+o*l*p,o*l*a-s*i*p,o*i*a-s*l*p]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&t>=n||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)e=t[n]*this.mult,mathAbs(this.v[n]-e)>1e-5&&(this.v[n]=e,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,n,r){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,n,r){var o;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i=e.k.length;for(this.v=createTypedArray("float32",i),this.pv=createTypedArray("float32",i),this.vel=createTypedArray("float32",i),o=0;o<i;o+=1)this.v[o]=e.k[o]*this.mult,this.pv[o]=e.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,n,r){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=n||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,n,r){var o;this.propType="multidimensional";var i,a,s,l,p=e.k.length;for(o=0;o<p-1;o+=1)e.k[o].to&&e.k[o].s&&e.k[o+1]&&e.k[o+1].s&&(i=e.k[o].s,a=e.k[o+1].s,s=e.k[o].to,l=e.k[o].ti,(2===i.length&&(i[0]!==a[0]||i[1]!==a[1])&&bez.pointOnLine2D(i[0],i[1],a[0],a[1],i[0]+s[0],i[1]+s[1])&&bez.pointOnLine2D(i[0],i[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===i.length&&(i[0]!==a[0]||i[1]!==a[1]||i[2]!==a[2])&&bez.pointOnLine3D(i[0],i[1],i[2],a[0],a[1],a[2],i[0]+s[0],i[1]+s[1],i[2]+s[2])&&bez.pointOnLine3D(i[0],i[1],i[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(e.k[o].to=null,e.k[o].ti=null),i[0]===a[0]&&i[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===i.length||i[2]===a[2]&&0===s[2]&&0===l[2])&&(e.k[o].to=null,e.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),o=0;o<c;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory={getProp:function(t,e,n,r,o){var i;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])i=new MultiDimensionalProperty(t,e,r,o);else switch(n){case 0:i=new KeyframedValueProperty(t,e,r,o);break;case 1:i=new KeyframedMultidimensionalProperty(t,e,r,o)}else i=new ValueProperty(t,e,r,o);return i.effectsSequence.length&&o.addDynamicProperty(i),i}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,n,r,o){var i;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[r]||i[r]&&!o)&&(i[r]=pointPool.newElement()),i[r][0]=t,i[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,n,r,o,i,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(o,i,"i",a,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),o=1);var i,a=this._length-1,s=this._length;for(i=o;i<s;i+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],n[a][0],n[a][1],i,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,n=t._length;for(e=0;e<n;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,n=factory.newElement(),r=void 0===t._length?t.v.length:t._length;for(n.setLength(r),n.c=t.c,e=0;e<r;e+=1)n.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return n},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,n=t._length;for(e=0;e<n;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,n){var r,o,i,a,s,l,p,c,d,u=n.lastIndex,h=this.keyframes;if(t<h[0].t-this.offsetTime)r=h[0].s[0],i=!0,u=0;else if(t>=h[h.length-1].t-this.offsetTime)r=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],i=!0;else{for(var b,m,f,g=u,v=h.length-1,y=!0;y&&(b=h[g],!((m=h[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:y=!1;if(f=this.keyframesMetadata[g]||{},u=g,!(i=1===b.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<b.t-this.offsetTime)c=0;else{var x;f.__fnct?x=f.__fnct:(x=BezierFactory.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y).get,f.__fnct=x),c=x((t-(b.t-this.offsetTime))/(m.t-this.offsetTime-(b.t-this.offsetTime)))}o=m.s?m.s[0]:b.e[0]}r=b.s[0]}for(l=e._length,p=r.i[0].length,n.lastIndex=u,a=0;a<l;a+=1)for(s=0;s<p;s+=1)d=i?r.i[a][s]:r.i[a][s]+(o.i[a][s]-r.i[a][s])*c,e.i[a][s]=d,d=i?r.o[a][s]:r.o[a][s]+(o.o[a][s]-r.o[a][s])*c,e.o[a][s]=d,d=i?r.v[a][s]:r.v[a][s]+(o.v[a][s]-r.v[a][s])*c,e.v[a][s]=d}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==t&&(o<n&&e<n||o>r&&e>r)||(this._caching.lastIndex=o<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function o(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,r=t._length;for(n=0;n<r;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var o=3===n?e.pt.k:e.ks.k;this.v=shapePool.clone(o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,o,i){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===i?o.pt.k:o.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=i,a.prototype.setVValue=o,a.prototype.addEffect=s,l.prototype.getValue=i,l.prototype.interpolateShape=e,l.prototype.setVValue=o,l.prototype.addEffect=s;var p=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,o=this.s.v[1]/2,i=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=n-o,a.v[1][0]=i?e+r:e-r,a.v[1][1]=n,a.v[2][0]=e,a.v[2][1]=n+o,a.v[3][0]=i?e-r:e+r,a.v[3][1]=n,a.i[0][0]=i?e-r*t:e+r*t,a.i[0][1]=n-o,a.i[1][0]=i?e+r:e-r,a.i[1][1]=n-o*t,a.i[2][0]=i?e+r*t:e-r*t,a.i[2][1]=n+o,a.i[3][0]=i?e-r:e+r,a.i[3][1]=n+o*t,a.o[0][0]=i?e+r*t:e-r*t,a.o[0][1]=n-o,a.o[1][0]=i?e+r:e-r,a.o[1][1]=n+o*t,a.o[2][0]=i?e-r*t:e+r*t,a.o[2][1]=n+o,a.o[3][0]=i?e-r:e+r,a.o[3][1]=n-o*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,r,o=2*Math.floor(this.pt.v),i=2*Math.PI/o,a=!0,s=this.or.v,l=this.ir.v,p=this.os.v,c=this.is.v,d=2*Math.PI*s/(2*o),u=2*Math.PI*l/(2*o),h=-Math.PI/2;h+=this.r.v;var b=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<o;t+=1){n=a?p:c,r=a?d:u;var m=(e=a?s:l)*Math.cos(h),f=e*Math.sin(h),g=0===m&&0===f?0:f/Math.sqrt(m*m+f*f),v=0===m&&0===f?0:-m/Math.sqrt(m*m+f*f);m+=+this.p.v[0],f+=+this.p.v[1],this.v.setTripleAt(m,f,m-g*r*n*b,f-v*r*n*b,m+g*r*n*b,f+v*r*n*b,t,!0),a=!a,h+=i*b}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,r=this.or.v,o=this.os.v,i=2*Math.PI*r/(4*e),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(a),p=r*Math.sin(a),c=0===l&&0===p?0:p/Math.sqrt(l*l+p*p),d=0===l&&0===p?0:-l/Math.sqrt(l*l+p*p);l+=+this.p.v[0],p+=+this.p.v[1],this.v.setTripleAt(l,p,l-c*i*o*s,p-d*i*o*s,l+c*i*o*s,p+d*i*o*s,t,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,o=bmMin(n,r,this.r.v),i=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-r+o,t+n,e-r+o,t+n,e-r+i,0,!0),this.v.setTripleAt(t+n,e+r-o,t+n,e+r-i,t+n,e+r-o,1,!0),0!==o?(this.v.setTripleAt(t+n-o,e+r,t+n-o,e+r,t+n-i,e+r,2,!0),this.v.setTripleAt(t-n+o,e+r,t-n+i,e+r,t-n+o,e+r,3,!0),this.v.setTripleAt(t-n,e+r-o,t-n,e+r-o,t-n,e+r-i,4,!0),this.v.setTripleAt(t-n,e-r+o,t-n,e-r+i,t-n,e-r+o,5,!0),this.v.setTripleAt(t-n+o,e-r,t-n+o,e-r,t-n+i,e-r,6,!0),this.v.setTripleAt(t+n-o,e-r,t+n-i,e-r,t+n-o,e-r,7,!0)):(this.v.setTripleAt(t-n,e+r,t-n+i,e+r,t-n,e+r,2),this.v.setTripleAt(t-n,e-r,t-n,e-r+i,t-n,e-r,3))):(this.v.setTripleAt(t+n,e-r+o,t+n,e-r+i,t+n,e-r+o,0,!0),0!==o?(this.v.setTripleAt(t+n-o,e-r,t+n-o,e-r,t+n-i,e-r,1,!0),this.v.setTripleAt(t-n+o,e-r,t-n+i,e-r,t-n+o,e-r,2,!0),this.v.setTripleAt(t-n,e-r+o,t-n,e-r+o,t-n,e-r+i,3,!0),this.v.setTripleAt(t-n,e+r-o,t-n,e+r-i,t-n,e+r-o,4,!0),this.v.setTripleAt(t-n+o,e+r,t-n+o,e+r,t-n+i,e+r,5,!0),this.v.setTripleAt(t+n-o,e+r,t+n-i,e+r,t+n-o,e+r,6,!0),this.v.setTripleAt(t+n,e+r-o,t+n,e+r-o,t+n,e+r-i,7,!0)):(this.v.setTripleAt(t-n,e-r,t-n+i,e-r,t-n,e-r,1,!0),this.v.setTripleAt(t-n,e+r,t-n,e+r-i,t-n,e+r,2,!0),this.v.setTripleAt(t+n,e+r,t+n-i,e+r,t+n,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}(),u={getShapeProp:function(t,e,n){var r;return 3===n||4===n?r=(3===n?e.pt:e.ks).k.length?new l(t,e,n):new a(t,e,n):5===n?r=new d(t,e):6===n?r=new p(t,e):7===n&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,n=Math.tan,r=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function i(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(1,0,0,0,0,r,-o,0,0,o,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(r,0,o,0,0,1,0,0,-o,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(n(t),n(e))}function d(r,o){var i=t(o),a=e(o);return this._t(i,a,0,0,-a,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function u(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function h(t,e,n,r,o,i,a,s,l,p,c,d,u,h,b,m){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=r,this.props[4]=o,this.props[5]=i,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=p,this.props[10]=c,this.props[11]=d,this.props[12]=u,this.props[13]=h,this.props[14]=b,this.props[15]=m,this}function b(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function m(t,e,n,r,o,i,a,s,l,p,c,d,u,h,b,m){var f=this.props;if(1===t&&0===e&&0===n&&0===r&&0===o&&1===i&&0===a&&0===s&&0===l&&0===p&&1===c&&0===d)return f[12]=f[12]*t+f[15]*u,f[13]=f[13]*i+f[15]*h,f[14]=f[14]*c+f[15]*b,f[15]*=m,this._identityCalculated=!1,this;var g=f[0],v=f[1],y=f[2],x=f[3],w=f[4],k=f[5],_=f[6],S=f[7],C=f[8],E=f[9],P=f[10],A=f[11],T=f[12],D=f[13],I=f[14],z=f[15];return f[0]=g*t+v*o+y*l+x*u,f[1]=g*e+v*i+y*p+x*h,f[2]=g*n+v*a+y*c+x*b,f[3]=g*r+v*s+y*d+x*m,f[4]=w*t+k*o+_*l+S*u,f[5]=w*e+k*i+_*p+S*h,f[6]=w*n+k*a+_*c+S*b,f[7]=w*r+k*s+_*d+S*m,f[8]=C*t+E*o+P*l+A*u,f[9]=C*e+E*i+P*p+A*h,f[10]=C*n+E*a+P*c+A*b,f[11]=C*r+E*s+P*d+A*m,f[12]=T*t+D*o+I*l+z*u,f[13]=T*e+D*i+I*p+z*h,f[14]=T*n+D*a+I*c+z*b,f[15]=T*r+D*s+I*d+z*m,this._identityCalculated=!1,this}function f(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function y(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function k(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function _(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function S(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function C(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,r=-this.props[4]/t,o=this.props[0]/t,i=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new Matrix;return s.props[0]=e,s.props[1]=n,s.props[4]=r,s.props[5]=o,s.props[12]=i,s.props[13]=a,s}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r[e]=E(t[e]);return r}function A(t,e,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=n[0],r[5]=n[1];else{var o=this.props[0],i=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],p=this.props[13];r[0]=t[0]*o+t[1]*a+l,r[1]=t[0]*i+t[1]*s+p,r[2]=e[0]*o+e[1]*a+l,r[3]=e[0]*i+e[1]*s+p,r[4]=n[0]*o+n[1]*a+l,r[5]=n[0]*i+n[1]*s+p}return r}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function I(){for(var t=0,e=this.props,n="matrix3d(";t<16;)n+=r(1e4*e[t])/1e4,n+=15===t?")":",",t+=1;return n}function z(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function M(){var t=this.props;return"matrix("+z(t[0])+","+z(t[1])+","+z(t[4])+","+z(t[5])+","+z(t[12])+","+z(t[13])+")"}return function(){this.reset=o,this.rotate=i,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=d,this.shear=p,this.scale=u,this.setTransform=h,this.translate=b,this.transform=m,this.multiply=f,this.applyToPoint=w,this.applyToX=k,this.applyToY=_,this.applyToZ=S,this.applyToPointArray=T,this.applyToTriplePoints=A,this.applyToPointStringified=D,this.toCSS=I,this.to2dCSS=M,this.clone=y,this.cloneFromProps=x,this.equals=v,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),n=0;n<e.length;n+=1){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports$1)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,n){e[t]||(e[t]=n)},t.getModifier=function(t,n,r){return new e[t](n,r)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,n,r,o){var i=[];e<=1?i.push({s:t,e:e}):t>=1?i.push({s:t-1,e:e-1}):(i.push({s:t,e:1}),i.push({s:0,e:e-1}));var a,s,l=[],p=i.length;for(a=0;a<p;a+=1){var c,d;(s=i[a]).e*o<r||s.s*o>r+n||(c=s.s*o<=r?0:(s.s*o-r)/n,d=s.e*o>=r+n?1:(s.e*o-r)/n,l.push([c,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,n,r,o;if(this._mdf||t){var i=this.o.v%360/360;if(i<0&&(i+=1),(e=this.s.v>1?1+i:this.s.v<0?0+i:this.s.v+i)>(n=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var a=e;e=n,n=a}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var s,l,p,c,d,u=this.shapes.length,h=0;if(n===e)for(o=0;o<u;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(1===n&&0===e||0===n&&1===e){if(this._mdf)for(o=0;o<u;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var b,m,f=[];for(o=0;o<u;o+=1)if((b=this.shapes[o]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=b.shape.paths)._length,d=0,!b.shape._mdf&&b.pathsData.length)d=b.totalShapeLength;else{for(p=this.releasePathsData(b.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(r.shapes[s]),p.push(c),d+=c.totalLength;b.totalShapeLength=d,b.pathsData=p}h+=d,b.shape._mdf=!0}else b.shape.paths=b.localShapeCollection;var g,v=e,y=n,x=0;for(o=u-1;o>=0;o-=1)if((b=this.shapes[o]).shape._mdf){for((m=b.localShapeCollection).releaseShapes(),2===this.m&&u>1?(g=this.calculateShapeEdges(e,n,b.totalShapeLength,x,h),x+=b.totalShapeLength):g=[[v,y]],l=g.length,s=0;s<l;s+=1){v=g[s][0],y=g[s][1],f.length=0,y<=1?f.push({s:b.totalShapeLength*v,e:b.totalShapeLength*y}):v>=1?f.push({s:b.totalShapeLength*(v-1),e:b.totalShapeLength*(y-1)}):(f.push({s:b.totalShapeLength*v,e:b.totalShapeLength}),f.push({s:0,e:b.totalShapeLength*(y-1)}));var w=this.addShapes(b,f[0]);if(f[0].s!==f[0].e){if(f.length>1)if(b.shape.paths.shapes[b.shape.paths._length-1].c){var k=w.pop();this.addPaths(w,m),w=this.addShapes(b,f[1],k)}else this.addPaths(w,m),w=this.addShapes(b,f[1]);this.addPaths(w,m)}}b.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e.addShape(t[n])},TrimModifier.prototype.addSegment=function(t,e,n,r,o,i,a){o.setXYAt(e[0],e[1],"o",i),o.setXYAt(n[0],n[1],"i",i+1),a&&o.setXYAt(t[0],t[1],"v",i),o.setXYAt(r[0],r[1],"v",i+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,n,r){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),r&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},TrimModifier.prototype.addShapes=function(t,e,n){var r,o,i,a,s,l,p,c,d=t.pathsData,u=t.shape.paths.shapes,h=t.shape.paths._length,b=0,m=[],f=!0;for(n?(s=n._length,c=n._length):(n=shapePool.newElement(),s=0,c=0),m.push(n),r=0;r<h;r+=1){for(l=d[r].lengths,n.c=u[r].c,i=u[r].c?l.length:l.length+1,o=1;o<i;o+=1)if(b+(a=l[o-1]).addedLength<e.s)b+=a.addedLength,n.c=!1;else{if(b>e.e){n.c=!1;break}e.s<=b&&e.e>=b+a.addedLength?(this.addSegment(u[r].v[o-1],u[r].o[o-1],u[r].i[o],u[r].v[o],n,s,f),f=!1):(p=bez.getNewSegment(u[r].v[o-1],u[r].v[o],u[r].o[o-1],u[r].i[o],(e.s-b)/a.addedLength,(e.e-b)/a.addedLength,l[o-1]),this.addSegmentFromArray(p,n,s,f),f=!1,n.c=!1),b+=a.addedLength,s+=1}if(u[r].c&&l.length){if(a=l[o-1],b<=e.e){var g=l[o-1].addedLength;e.s<=b&&e.e>=b+g?(this.addSegment(u[r].v[o-1],u[r].o[o-1],u[r].i[0],u[r].v[0],n,s,f),f=!1):(p=bez.getNewSegment(u[r].v[o-1],u[r].v[0],u[r].o[o-1],u[r].i[0],(e.s-b)/g,(e.e-b)/g,l[o-1]),this.addSegmentFromArray(p,n,s,f),f=!1,n.c=!1)}else n.c=!1;b+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[c][0],n.v[c][1],"i",c),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),b>e.e)break;r<h-1&&(n=shapePool.newElement(),f=!0,m.push(n),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var n=e/100,r=[0,0],o=t._length,i=0;for(i=0;i<o;i+=1)r[0]+=t.v[i][0],r[1]+=t.v[i][1];r[0]/=o,r[1]/=o;var a,s,l,p,c,d,u=shapePool.newElement();for(u.c=t.c,i=0;i<o;i+=1)a=t.v[i][0]+(r[0]-t.v[i][0])*n,s=t.v[i][1]+(r[1]-t.v[i][1])*n,l=t.o[i][0]+(r[0]-t.o[i][0])*-n,p=t.o[i][1]+(r[1]-t.o[i][1])*-n,c=t.i[i][0]+(r[0]-t.i[i][0])*-n,d=t.i[i][1]+(r[1]-t.i[i][1])*-n,u.setTripleAt(a,s,l,p,c,d,i);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,n,r,o,i,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||t)for(a.releaseShapes(),i.shape._mdf=!0,e=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(e[r],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var r,o=e.or.k.length;for(r=0;r<o;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,o;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],o=[];var i=this.px,a=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(r[0]=i.getValueAtTime((i.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),o[0]=i.getValueAtTime(i.keyframes[0].t/n,0),o[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(r[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),o[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/n,0),o[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[i.pv,a.pv],o[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/n,i.offsetTime),o[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=o=t;this.v.rotate(-Math.atan2(r[1]-o[1],r[0]-o[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,n,r){return new e(t,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,n){return t*(1-n)+e*n}function lerpPoint(t,e,n){return[lerp(t[0],e[0],n),lerp(t[1],e[1],n)]}function quadRoots(t,e,n){if(0===t)return[];var r=e*e-4*t*n;if(r<0)return[];var o=-e/(2*t);if(0===r)return[o];var i=Math.sqrt(r)/(2*t);return[o-i,o+i]}function polynomialCoefficients(t,e,n,r){return[3*e-t-3*n+r,3*t-6*e+3*n,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,n,r,o){o&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),o&&pointEqual(n,r)&&(n=lerpPoint(t,r,2/3));var i=polynomialCoefficients(t[0],e[0],n[0],r[0]),a=polynomialCoefficients(t[1],e[1],n[1],r[1]);this.a=[i[0],a[0]],this.b=[i[1],a[1]],this.c=[i[2],a[2]],this.d=[i[3],a[3]],this.points=[t,e,n,r]}function extrema(t,e){var n=t.points[0][e],r=t.points[t.points.length-1][e];if(n>r){var o=r;r=n,n=o}for(var i=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<i.length;a+=1)if(i[a]>0&&i[a]<1){var s=t.point(i[a])[e];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function intersectData(t,e,n){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,n,r,o,i){if(boxIntersect(t,e))if(n>=i||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)o.push([t.t,e.t]);else{var a=splitData(t),s=splitData(e);intersectsImpl(a[0],s[0],n+1,r,o,i),intersectsImpl(a[0],s[1],n+1,r,o,i),intersectsImpl(a[1],s[0],n+1,r,o,i),intersectsImpl(a[1],s[1],n+1,r,o,i)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,n,r){var o=[t[0],t[1],1],i=[e[0],e[1],1],a=[n[0],n[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(o,i),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,n,r,o,i,a){var s=n-Math.PI/2,l=n+Math.PI/2,p=e[0]+Math.cos(n)*r*o,c=e[1]-Math.sin(n)*r*o;t.setTripleAt(p,c,p+Math.cos(s)*i,c-Math.sin(s)*i,p+Math.cos(l)*a,c-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(t,e){var n=0===e?t.length()-1:e-1,r=(e+1)%t.length(),o=getPerpendicularVector(t.v[n],t.v[r]);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(t,e,n,r,o,i,a){var s=getProjectingAngle(e,n),l=e.v[n%e._length],p=e.v[0===n?e._length-1:n-1],c=e.v[(n+1)%e._length],d=2===i?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0,u=2===i?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[n%e._length],s,a,r,u/(2*(o+1)),d/(2*(o+1)))}function zigZagSegment(t,e,n,r,o,i){for(var a=0;a<r;a+=1){var s=(a+1)/(r+1),l=2===o?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,p=e.normalAngle(s);setPoint(t,e.point(s),p,i,n,l/(2*(r+1)),l/(2*(r+1))),i=-i}return i}function linearOffset(t,e,n){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,n),polarOffset(e,r,n)]}function offsetSegment(t,e){var n,r,o,i,a,s,l;n=(l=linearOffset(t.points[0],t.points[1],e))[0],r=l[1],o=(l=linearOffset(t.points[1],t.points[2],e))[0],i=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],s=l[1];var p=lineIntersection(n,r,o,i);null===p&&(p=r);var c=lineIntersection(a,s,o,i);return null===c&&(c=a),new PolynomialBezier(n,p,c,s)}function joinLines(t,e,n,r,o){var i=e.points[3],a=n.points[0];if(3===r)return i;if(pointEqual(i,a))return i;if(2===r){var s=-e.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,p=lineIntersection(i,polarOffset(i,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),c=p?pointDistance(p,i):pointDistance(i,a)/2,d=polarOffset(i,s,2*c*roundCorner);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=polarOffset(a,l,2*c*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],t.length()),a}var u=lineIntersection(pointEqual(i,e.points[2])?e.points[0]:e.points[2],i,a,pointEqual(a,n.points[1])?n.points[3]:n.points[1]);return u&&pointDistance(u,i)<o?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):i}function getIntersection(t,e){var n=t.intersections(e);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(t,e){var n=t.slice(),r=e.slice(),o=getIntersection(t[t.length-1],e[0]);return o&&(n[t.length-1]=t[t.length-1].split(o[0])[0],r[0]=e[0].split(o[1])[1]),t.length>1&&e.length>1&&(o=getIntersection(t[0],e[e.length-1]))?[[t[0].split(o[0])[0]],[e[e.length-1].split(o[1])[1]]]:[n,r]}function pruneIntersections(t){for(var e,n=1;n<t.length;n+=1)e=pruneSegmentIntersection(t[n-1],t[n]),t[n-1]=e[0],t[n]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var n,r,o,i,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return n=(o=t.split(a[0]))[0],r=o[1],[offsetSegment(n,e),offsetSegment(r,e)];n=(o=t.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return i=(o=o[1].split(s))[0],r=o[1],[offsetSegment(n,e),offsetSegment(i,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",r="normal",o=e.length,i=0;i<o;i+=1)switch(e[i].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:t.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,n,r,o,i){var a=i?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-o),l=r.s.v[1]+(1-r.s.v[1])*(1-o);t.translate(r.p.v[0]*a*o,r.p.v[1]*a*o,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*a*o),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(i?1/s:s,i?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,n,r){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,n,r,o,i,a=!1;if(this._mdf||t){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var p={it:this.cloneElements(this._elements),ty:"gr"};p.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,p),this._groups.splice(0,0,p),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(i=0,r=0;r<=this._groups.length-1;r+=1){if(s=i<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var c=this.elemsData[r].it,d=c[c.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}i+=1}this._currentCopies=l;var u=this.o.v,h=u%1,b=u>0?Math.floor(u):Math.ceil(u),m=this.pMatrix.props,f=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,y,x=0;if(u>0){for(;x<b;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),x+=h)}else if(u<0){for(;x>b;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),x-=h)}for(r=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,i=this._currentCopies;i;){if(y=(n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===o||r!==this._currentCopies-1&&-1===o)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<y;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<y;v+=1)n[v]=this.matrix.props[v];x+=1,i-=1,r+=o}}else for(i=this._currentCopies,r=0,o=1;i;)n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,i-=1,r+=o;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var n,r=shapePool.newElement();r.c=t.c;var o,i,a,s,l,p,c,d,u,h,b,m,f=t._length,g=0;for(n=0;n<f;n+=1)o=t.v[n],a=t.o[n],i=t.i[n],o[0]===a[0]&&o[1]===a[1]&&o[0]===i[0]&&o[1]===i[1]?0!==n&&n!==f-1||t.c?(s=0===n?t.v[f-1]:t.v[n-1],p=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=b=o[0]+(s[0]-o[0])*p,d=m=o[1]-(o[1]-s[1])*p,u=c-(c-o[0])*roundCorner,h=d-(d-o[1])*roundCorner,r.setTripleAt(c,d,u,h,b,m,g),g+=1,s=n===f-1?t.v[0]:t.v[n+1],p=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=u=o[0]+(s[0]-o[0])*p,d=h=o[1]+(s[1]-o[1])*p,b=c-(c-o[0])*roundCorner,m=d-(d-o[1])*roundCorner,r.setTripleAt(c,d,u,h,b,m,g),g+=1):(r.setTripleAt(o[0],o[1],a[0],a[1],i[0],i[1],g),g+=1):(r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],g),g+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,n,r,o,i,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||t)for(a.releaseShapes(),i.shape._mdf=!0,e=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(e[r],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),n=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),o=lerpPoint(e,n,t),i=lerpPoint(n,r,t),a=lerpPoint(o,i,t);return[new PolynomialBezier(this.points[0],e,o,a,!0),new PolynomialBezier(a,i,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,n),r},PolynomialBezier.shapeSegment=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[n],t.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[n],t.i[n],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,n,r){var o=t._length,i=shapePool.newElement();if(i.c=t.c,t.c||(o-=1),0===o)return i;var a=-1,s=PolynomialBezier.shapeSegment(t,0);zigZagCorner(i,t,0,e,n,r,a);for(var l=0;l<o;l+=1)a=zigZagSegment(i,s,e,n,r,-a),s=l!==o-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%o):null,zigZagCorner(i,t,l+1,e,n,r,a);return i},ZigZagModifier.prototype.processShapes=function(t){var e,n,r,o,i,a,s=this.shapes.length,l=this.amplitude.v,p=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||t)for(a.releaseShapes(),i.shape._mdf=!0,e=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(e[r],l,p,c));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,n,r){var o=shapePool.newElement();o.c=t.c;var i,a,s,l=t.length();t.c||(l-=1);var p=[];for(i=0;i<l;i+=1)s=PolynomialBezier.shapeSegment(t,i),p.push(offsetSegmentSplit(s,e));if(!t.c)for(i=l-1;i>=0;i-=1)s=PolynomialBezier.shapeSegmentInverted(t,i),p.push(offsetSegmentSplit(s,e));p=pruneIntersections(p);var c=null,d=null;for(i=0;i<p.length;i+=1){var u=p[i];for(d&&(c=joinLines(o,d,u[0],n,r)),d=u[u.length-1],a=0;a<u.length;a+=1)s=u[a],c&&pointEqual(s.points[0],c)?o.setXYAt(s.points[1][0],s.points[1][1],"o",o.length()-1):o.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],o.length()),o.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],o.length()),c=s.points[3]}return p.length&&joinLines(o,d,p[0][0],n,r),o},OffsetPathModifier.prototype.processShapes=function(t){var e,n,r,o,i,a,s=this.shapes.length,l=this.amount.v,p=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||t)for(a.releaseShapes(),i.shape._mdf=!0,e=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(e[r],l,c,p));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function o(t,e){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var o=r.offsetWidth;return r.style.fontFamily=function(t){var e,n=t.split(","),r=n.length,o=[];for(e=0;e<r;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&o.push(n[e]);return o.join(",")}(t)+", "+e,{node:r,w:o,parent:n}}function i(t,e){var n,r=document.body&&e?"svg":"canvas",o=getFontProperties(t);if("svg"===r){var i=createNS("text");i.style.fontSize="100px",i.setAttribute("font-family",t.fFamily),i.setAttribute("font-style",o.style),i.setAttribute("font-weight",o.weight),i.textContent="1",t.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",t.fClass)):i.style.fontFamily=t.fFamily,e.appendChild(i),n=i}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=o.style+" "+o.weight+" 100px "+t.fFamily,n=a}return{measureText:function(t){return"svg"===r?(n.textContent=t,n.getComputedTextLength()):n.measureText(t).width}}}function a(t){var e=0,n=t.charCodeAt(0);if(n>=55296&&n<=56319){var r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=1024*(n-55296)+r-56320+65536)}return e}function s(t){var e=a(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(t,e){var n=t.toString(16)+e.toString(16);return-1!==r.indexOf(n)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return s(t.substr(0,2))&&s(t.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var r=a(t.substr(e,2));if(r!==n)return!1;var o=0;for(e+=2;o<5;){if((r=a(t.substr(e,2)))<917601||r>917626)return!1;o+=1,e+=2}return 917631===a(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=n;var p={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var n,r,o=t.length,i=this.chars.length;for(e=0;e<o;e+=1){for(n=0,r=!1;n<i;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(r=!0),n+=1;r||(this.chars.push(t[e]),i+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=i(t),t.cache={}}),void(this.fonts=t.list);var n,r=t.list,a=r.length,s=a;for(n=0;n<a;n+=1){var l,p,c=!0;if(r[n].loaded=!1,r[n].monoCase=o(r[n].fFamily,"monospace"),r[n].sansCase=o(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(c=!1),c){var d=createTag("style");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.setAttribute("f-family",r[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",e.appendChild(d)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<l.length;p+=1)-1!==l[p].href.indexOf(r[n].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",r[n].fOrigin),u.setAttribute("f-origin",r[n].origin),u.type="text/css",u.rel="stylesheet",u.href=r[n].fPath,document.body.appendChild(u)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<l.length;p+=1)r[n].fPath===l[p].src&&(c=!1);if(c){var h=createTag("link");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",r[n].fPath),e.appendChild(h)}}}else r[n].loaded=!0,s-=1;r[n].helper=i(r[n],e),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,n,r){for(var o=0,i=this.chars.length;o<i;){if(this.chars[o].ch===e&&this.chars[o].style===n&&this.chars[o].fFamily===r)return this.chars[o];o+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,n,r)),t},getFontByName:function(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,n){var r=this.getFontByName(e),o=t;if(!r.cache[o]){var i=r.helper;if(" "===t){var a=i.measureText("|"+t+"|"),s=i.measureText("||");r.cache[o]=(a-s)/100}else r.cache[o]=i.measureText(t)/100}return r.cache[o]*n},checkLoadedFonts:function(){var t,e,n,r=this.fonts.length,o=r;for(t=0;t<r;t+=1)this.fonts[t].loaded?o-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,n=this.fonts[t].monoCase.w,e.offsetWidth!==n?(o-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,n=this.fonts[t].sansCase.w,e.offsetWidth!==n&&(o-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==o&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=p,l}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function AngleEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function ColorEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function PointEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function LayerIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function MaskIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function CheckboxEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var n,r=t.ef||[];this.effectElements=[];var o,i=r.length;for(n=0;n<i;n+=1)o=new GroupEffect(r[n],e),this.effectElements.push(o)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}function AudioElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,o=this.data.ef.length,i=this.data.ef;for(n=0;n<o;n+=1){switch(r=null,i[n].ty){case 0:r=new SliderEffect(i[n],e,this);break;case 1:r=new AngleEffect(i[n],e,this);break;case 2:r=new ColorEffect(i[n],e,this);break;case 3:r=new PointEffect(i[n],e,this);break;case 4:case 7:r=new CheckboxEffect(i[n],e,this);break;case 10:r=new LayerIndexEffect(i[n],e,this);break;case 11:r=new MaskIndexEffect(i[n],e,this);break;case 5:r=new EffectsManager(i[n],e);break;default:r=new NoValueEffect(i[n])}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),n=t("effects"),r=t("shape"),o=t("text"),i=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=i(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,n,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var n,r=t.length,o=this.layers.length;for(e=0;e<r;e+=1)for(n=0;n<o;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,n){for(var r=this.elements,o=this.layers,i=0,a=o.length;i<a;)o[i].ind==e&&(r[i]&&!0!==r[i]?(n.push(r[i]),r[i].setAsParent(),void 0!==o[i].parent?this.buildElementParenting(t,o[i].parent,n):t.setHierarchy(n)):(this.buildItem(i),this.addPendingElement(t))),i+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(t){var e,n=this.elements.length;for(e=0;e<n;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,n=t.shift();if("number"==typeof n)e=this.elements[n];else{var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.nm===n){e=this.elements[r];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,o,i=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,p,c,d,u,h=this.masksProperties,b=0,m=[],f=createElementID(),g="clipPath",v="clip-path";for(r=0;r<a;r+=1)if(("a"!==h[r].mode&&"n"!==h[r].mode||h[r].inv||100!==h[r].o.k||h[r].o.x)&&(g="mask",v="mask"),"s"!==h[r].mode&&"i"!==h[r].mode||0!==b?p=null:((p=createNS("rect")).setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w||0),p.setAttribute("height",this.element.comp.data.h||0),m.push(p)),o=createNS("path"),"n"===h[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,h[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[r],3),elem:o,lastPath:""},i.appendChild(o);else{var y;if(b+=1,o.setAttribute("fill","s"===h[r].mode?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),0!==h[r].x.k?(g="mask",v="mask",u=PropertyFactory.getProp(this.element,h[r].x,0,null,this.element),y=createElementID(),(c=createNS("filter")).setAttribute("id",y),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),c.appendChild(d),i.appendChild(c),o.setAttribute("stroke","s"===h[r].mode?"#000000":"#ffffff")):(d=null,u=null),this.storedData[r]={elem:o,x:u,expan:d,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},"i"===h[r].mode){l=m.length;var x=createNS("g");for(s=0;s<l;s+=1)x.appendChild(m[s]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",f+"_"+b),w.appendChild(o),i.appendChild(w),x.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+b+")"),m.length=0,m.push(x)}else m.push(o);h[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,h[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[r],3),invRect:p},this.viewData[r].prop.k||this.drawPath(h[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(g),a=m.length,r=0;r<a;r+=1)this.maskElement.appendChild(m[r]);b>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+f+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<r;n+=1)e.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),t=1;t<e;t+=1){var r=this.localTransforms[t].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)o*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,n=t.length;for(e=0;e<n;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,r=!0,o=this.comp;r;)o.finalTransform?(o.data.hasMask&&e.splice(0,0,o.finalTransform),o=o.comp):r=!1;var i,a=e.length;for(n=0;n<a;n+=1)i=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-i[0],t[1]-i[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var o=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),o.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,n){var r,o,i=" M"+e.v[0][0]+","+e.v[0][1];for(o=e._length,r=1;r<o;r+=1)i+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&o>1&&(i+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==i){var a="";n.elem&&(e.c&&(a=t.inv?this.solidPath+i:i),n.elem.setAttribute("d",a)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var n=createNS("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,n,r="SourceGraphic",o=t.data.ef?t.data.ef.length:0,i=createElementID(),a=filtersFactory.createFilter(i,!0),s=0;for(this.filters=[],e=0;e<o;e+=1){n=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(n=new(0,registeredEffects$1[l].effect)(a,t.effectsManager.effectElements[e],t,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,n){registeredEffects$1[t]={effect:e,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,n=this.filters.length,r=[];for(e=0;e<n;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(n.setAttribute("id",o),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),i.appendChild(this.layerElement),this.transformedElement=i,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,n,r,o,i=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",i),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(r),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),n=filtersFactory.createFilter(e),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(o=createNS("g")).appendChild(r),a.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var s=createNS("mask");s.setAttribute("id",i),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),e=createElementID(),n=filtersFactory.createFilter(e);var p=createNS("feComponentTransfer");p.setAttribute("in","SourceGraphic"),n.appendChild(p);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),p.appendChild(c),this.globalData.defs.appendChild(n);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(d),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),l.appendChild(d),o.appendChild(this.layerElement),l.appendChild(o)),this.globalData.defs.appendChild(s)}this.matteMasks[t]=i}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,r=e.length;n<r;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===t)return void(n[r].pos=e);n.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var r=0,o=t.length;r<o;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,n,r){var o;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,a=e.length||0;for(o=0;o<a;o+=1)i=PropertyFactory.getProp(t,e[o].v,0,0,this),this.k=i.k||this.k,this.dataProps[o]={n:e[o].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n}function SVGNoStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(t,e,n){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function SVGGradientStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,r,o=4*this.data.p;for(e=0;e<o;e+=1)n=e%4==0?100:255,r=Math.round(this.prop.v[e]*n),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(o=this.prop.v.length,e=4*this.data.p;e<o;e+=1)n=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,n){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var n=createElementID(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var o,i,a,s=[];for(a=4*e.g.p,i=0;i<a;i+=4)o=createNS("stop"),r.appendChild(o),s.push(o);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,o,i=createNS("mask"),a=createNS("path");i.appendChild(a);var s=createElementID(),l=createElementID();i.setAttribute("id",l);var p=createNS(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",s),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),o=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(r=4*t.g.p;r<o;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(n),c.push(n);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=i,this.ost=c,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,n,r){if(0===e)return"";var o,i=t.o,a=t.i,s=t.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(o=1;o<e;o+=1)l+=" C"+r.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+r.applyToPointStringified(a[o][0],a[o][1])+" "+r.applyToPointStringified(s[o][0],s[o][1]);return n&&e&&(l+=" C"+r.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function n(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function o(n,r,o){var i,a,s,l,p,c,d,u,h,b,m=r.styles.length,f=r.lvl;for(c=0;c<m;c+=1){if(l=r.sh._mdf||o,r.styles[c].lvl<f){for(u=e.reset(),h=f-r.styles[c].lvl,b=r.transformers.length-1;!l&&h>0;)l=r.transformers[b].mProps._mdf||l,h-=1,b-=1;if(l)for(h=f-r.styles[c].lvl,b=r.transformers.length-1;h>0;)u.multiply(r.transformers[b].mProps.v),h-=1,b-=1}else u=t;if(a=(d=r.sh.paths)._length,l){for(s="",i=0;i<a;i+=1)(p=d.shapes[i])&&p._length&&(s+=buildShapeString(p,p._length,p.c,u));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===n.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function i(t,e,n){var r=e.style;(e.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,n){s(t,e,n),l(0,e,n)}function s(t,e,n){var r,o,i,a,s,l=e.gf,p=e.g._hasOpacity,c=e.s.v,d=e.e.v;if(e.o._mdf||n){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||n){var h=1===t.t?"x1":"cx",b="x1"===h?"y1":"cy";l.setAttribute(h,c[0]),l.setAttribute(b,c[1]),p&&!e.g._collapsable&&(e.of.setAttribute(h,c[0]),e.of.setAttribute(b,c[1]))}if(e.g._cmdf||n){r=e.cst;var m=e.g.c;for(i=r.length,o=0;o<i;o+=1)(a=r[o]).setAttribute("offset",m[4*o]+"%"),a.setAttribute("stop-color","rgb("+m[4*o+1]+","+m[4*o+2]+","+m[4*o+3]+")")}if(p&&(e.g._omdf||n)){var f=e.g.o;for(i=(r=e.g._collapsable?e.cst:e.ost).length,o=0;o<i;o+=1)a=r[o],e.g._collapsable||a.setAttribute("offset",f[2*o]+"%"),a.setAttribute("stop-opacity",f[2*o+1])}if(1===t.t)(e.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),p&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||n)&&(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)),l.setAttribute("r",s),p&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||n){s||(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)));var g=Math.atan2(d[1]-c[1],d[0]-c[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var y=s*v,x=Math.cos(g+e.a.v)*y+c[0],w=Math.sin(g+e.a.v)*y+c[1];l.setAttribute("fx",x),l.setAttribute("fy",w),p&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",w))}}function l(t,e,n){var r=e.style,o=e.d;o&&(o._mdf||n)&&o.dashStr&&(r.pElem.setAttribute("stroke-dasharray",o.dashStr),r.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),e.c&&(e.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return i;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function LetterProps(t,e,n,r,o,i){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=o,this.p=i,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,n,r,o=this.shapes.length,i=this.stylesList.length,a=[],s=!1;for(n=0;n<i;n+=1){for(r=this.stylesList[n],s=!1,a.length=0,t=0;t<o;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(a.push(e),s=e._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var n,r=new SVGStyleData(t,e),o=r.pElem;return"st"===t.ty?n=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?n=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(n=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),o.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===t.ty&&(n=new SVGNoStyleData(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),o.setAttribute("fill-opacity","0"),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&o.setAttribute("fill-rule","evenodd"),t.ln&&o.setAttribute("id",t.ln),t.cl&&o.setAttribute("class",t.cl),t.bm&&(o.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var n=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(n,n.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,n){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var o=new SVGShapeData(e,n,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(t,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,n=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)-1!==n.indexOf(this.stylesList[e])||this.stylesList[e].closed||n.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,n,r,o,i,a){var s,l,p,c,d,u,h=[].concat(i),b=t.length-1,m=[],f=[];for(s=b;s>=0;s-=1){if((u=this.searchProcessedElement(t[s]))?e[s]=n[u-1]:t[s]._render=a,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)u?e[s].style.closed=t[s].hd:e[s]=this.createStyleElement(t[s],o),t[s]._render&&e[s].style.pElem.parentNode!==r&&r.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"===t[s].ty){if(u)for(p=e[s].it.length,l=0;l<p;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,o+1,h,a),t[s]._render&&e[s].gr.parentNode!==r&&r.appendChild(e[s].gr)}else"tr"===t[s].ty?(u||(e[s]=this.createTransformElement(t[s],r)),c=e[s].transform,h.push(c)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(u||(e[s]=this.createShapeElement(t[s],h,o)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(u?(d=e[s]).closed=!1:((d=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=d,this.shapeModifiers.push(d)),f.push(d)):"rp"===t[s].ty&&(u?(d=e[s]).closed=!0:(d=ShapeModifiers.getModifier(t[s].ty),e[s]=d,d.init(this,t,s,e),this.shapeModifiers.push(d),a=!1),f.push(d));this.addProcessedElement(t[s],s+1)}for(b=m.length,s=0;s<b;s+=1)m[s].closed=!0;for(b=f.length,s=0;s<b;s+=1)f[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,n,r,o,i){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,a=!0),!i.length||this.p[0]===i[0]&&this.p[1]===i[1]&&this.p[4]===i[4]&&this.p[5]===i[5]&&this.p[12]===i[12]&&this.p[13]===i[13]||(this.p=i,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,i=t||this.data.d.k[this.keysIndex].s;for(r=0;r<o;r+=1)i=n!==this.keysIndex?this.effectsSequence[r](i,i.t):this.effectsSequence[r](this.currentData,i.t);e!==i&&this.setCurrentData(i),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,r=t.length;n<=r-1&&!(n===r-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,n,r=[],o=0,i=t.length,a=!1,s=!1,l="";o<i;)a=s,s=!1,e=t.charCodeAt(o),l=t.charAt(o),FontManager.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,o)?l=t.substr(o,14):(n=t.charCodeAt(o+1))>=56320&&n<=57343&&(FontManager.isModifier(e,n)?(l=t.substr(o,2),a=!0):l=FontManager.isFlagEmoji(t.substr(o,4))?t.substr(o,4):t.substr(o,2)):e>56319?(n=t.charCodeAt(o+1),FontManager.isVariationSelector(e)&&(a=!0)):FontManager.isZeroWidthJoiner(e)&&(a=!0,s=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),o+=l.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,n,r,o,i,a,s,l=this.elem.globalData.fontManager,p=this.data,c=[],d=0,u=p.m.g,h=0,b=0,m=0,f=[],g=0,v=0,y=l.getFontByName(t.f),x=0,w=getFontProperties(y);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var k,_=t.tr/1e3*t.finalSize;if(t.sz)for(var S,C,E=!0,P=t.sz[0],A=t.sz[1];E;){S=0,g=0,n=(C=this.buildFinalText(t.t)).length,_=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<n;e+=1)k=C[e].charCodeAt(0),r=!1," "===C[e]?T=e:13!==k&&3!==k||(g=0,r=!0,S+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(C[e],y.fStyle,y.fFamily),x=r?0:s.w*t.finalSize/100):x=l.measureText(C[e],t.f,t.finalSize),g+x>P&&" "!==C[e]?(-1===T?n+=1:e=T,S+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,T===e?1:0,"\r"),T=-1,g=0):(g+=x,g+=_);S+=y.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&A<S?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,n=t.finalText.length,E=!1)}g=-_,x=0;var D,I=0;for(e=0;e<n;e+=1)if(r=!1,13===(k=(D=t.finalText[e]).charCodeAt(0))||3===k?(I=0,f.push(g),v=g>v?g:v,g=-2*_,o="",r=!0,m+=1):o=D,l.chars?(s=l.getCharData(D,y.fStyle,l.getFontByName(t.f).fFamily),x=r?0:s.w*t.finalSize/100):x=l.measureText(o,t.f,t.finalSize)," "===D?I+=x+_:(g+=x+_+I,I=0),c.push({l:x,an:x,add:h,n:r,anIndexes:[],val:o,line:m,animatorJustifyOffset:0}),2==u){if(h+=x,""===o||" "===o||e===n-1){for(""!==o&&" "!==o||(h-=x);b<=e;)c[b].an=h,c[b].ind=d,c[b].extra=x,b+=1;d+=1,h=0}}else if(3==u){if(h+=x,""===o||e===n-1){for(""===o&&(h-=x);b<=e;)c[b].an=h,c[b].ind=d,c[b].extra=x,b+=1;h=0,d+=1}}else c[d].ind=d,c[d].extra=0,d+=1;if(t.l=c,v=g>v?g:v,f.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=f;var z,M,j,q,F=p.a;a=F.length;var R=[];for(i=0;i<a;i+=1){for((z=F[i]).a.sc&&(t.strokeColorAnim=!0),z.a.sw&&(t.strokeWidthAnim=!0),(z.a.fc||z.a.fh||z.a.fs||z.a.fb)&&(t.fillColorAnim=!0),q=0,j=z.s.b,e=0;e<n;e+=1)(M=c[e]).anIndexes[i]=q,(1==j&&""!==M.val||2==j&&""!==M.val&&" "!==M.val||3==j&&(M.n||" "==M.val||e==n-1)||4==j&&(M.n||e==n-1))&&(1===z.s.rn&&R.push(q),q+=1);p.a[i].s.totalChars=q;var O,B=-1;if(1===z.s.rn)for(e=0;e<n;e+=1)B!=(M=c[e]).anIndexes[i]&&(B=M.anIndexes[i],O=R.splice(Math.floor(Math.random()*R.length),1)[0]),M.anIndexes[i]=O}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=y.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,n=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,i=0,a=1,s=1;this.ne.v>0?o=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(o,i,a,s).get,p=0,c=this.finalS,d=this.finalE,u=this.data.sh;if(2===u)p=l(p=d===c?r>=d?1:0:t(0,e(.5/(d-c)+(r-c)/(d-c),1)));else if(3===u)p=l(p=d===c?r>=d?0:1:1-t(0,e(.5/(d-c)+(r-c)/(d-c),1)));else if(4===u)d===c?p=0:(p=t(0,e(.5/(d-c)+(r-c)/(d-c),1)))<.5?p*=2:p=1-2*(p-.5),p=l(p);else if(5===u){if(d===c)p=0;else{var h=d-c,b=-h/2+(r=e(t(0,r+.5-c),d-c)),m=h/2;p=Math.sqrt(1-b*b/(m*m))}p=l(p)}else 6===u?(d===c?p=0:(r=e(t(0,r+.5-c),d-c),p=(1+Math.cos(Math.PI+2*Math.PI*r/(d-c)))/2),p=l(p)):(r>=n(c)&&(p=t(0,e(r-c<0?e(d,1)-(c-r):d-r,1))),p=l(p));if(100!==this.sm.v){var f=.01*this.sm.v;0===f&&(f=1e-8);var g=.5-.5*f;p<g?p=0:(p=(p-g)/f)>1&&(p=1)}return p*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,r=this.s.v/e+n,o=this.e.v/e+n;if(r>o){var i=r;r=o,o=i}this.finalS=r,this.finalE=o}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,n){return new r(t,e)}}}();function TextAnimatorDataProperty(t,e,n){var r={propType:!1},o=PropertyFactory.getProp,i=e.a;this.a={r:i.r?o(t,i.r,0,degToRads,n):r,rx:i.rx?o(t,i.rx,0,degToRads,n):r,ry:i.ry?o(t,i.ry,0,degToRads,n):r,sk:i.sk?o(t,i.sk,0,degToRads,n):r,sa:i.sa?o(t,i.sa,0,degToRads,n):r,s:i.s?o(t,i.s,1,.01,n):r,a:i.a?o(t,i.a,1,0,n):r,o:i.o?o(t,i.o,0,.01,n):r,p:i.p?o(t,i.p,1,0,n):r,sw:i.sw?o(t,i.sw,0,0,n):r,sc:i.sc?o(t,i.sc,1,0,n):r,fc:i.fc?o(t,i.fc,1,0,n):r,fh:i.fh?o(t,i.fh,0,0,n):r,fs:i.fs?o(t,i.fs,0,.01,n):r,fb:i.fb?o(t,i.fb,0,.01,n):r,t:i.t?o(t,i.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function TextAnimatorProperty(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,o,i,a,s,l,p,c,d,u,h,b,m,f,g,v,y,x,w=this._moreOptions.alignment.v,k=this._animatorsData,_=this._textData,S=this.mHelper,C=this._renderType,E=this.renderedLetters.length,P=t.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var A,T=x.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},i=T._length-1,g=0,o=0;o<i;o+=1)A=bez.buildBezierData(T.v[o],T.v[o+1],[T.o[o][0]-T.v[o][0],T.o[o][1]-T.v[o][1]],[T.i[o+1][0]-T.v[o+1][0],T.i[o+1][1]-T.v[o+1][1]]),a.tLength+=A.segmentLength,a.segments.push(A),g+=A.segmentLength;o=i,x.v.c&&(A=bez.buildBezierData(T.v[o],T.v[0],[T.o[o][0]-T.v[o][0],T.o[o][1]-T.v[o][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=A.segmentLength,a.segments.push(A),g+=A.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,u=0,d=1,p=0,c=!0,m=a.segments,s<0&&x.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(b=m[u=m.length-1].points).length-1;s<0;)s+=b[d].partialLength,(d-=1)<0&&(d=(b=m[u-=1].points).length-1);h=(b=m[u].points)[d-1],f=(l=b[d]).partialLength}i=P.length,n=0,r=0;var D,I,z,M,j,q=1.2*t.finalSize*.714,F=!0;z=k.length;var R,O,B,L,N,V,H,W,G,$,U,Y,K=-1,Z=s,X=u,J=d,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var nt=0,rt=0,ot=2===t.j?-.5:-1,it=0,at=!0;for(o=0;o<i;o+=1)if(P[o].n){for(nt&&(nt+=rt);it<o;)P[it].animatorJustifyOffset=nt,it+=1;nt=0,at=!0}else{for(I=0;I<z;I+=1)(D=k[I].a).t.propType&&(at&&2===t.j&&(rt+=D.t.v*ot),(j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars)).length?nt+=D.t.v*j[0]*ot:nt+=D.t.v*j*ot);at=!1}for(nt&&(nt+=rt);it<o;)P[it].animatorJustifyOffset=nt,it+=1}for(o=0;o<i;o+=1){if(S.reset(),L=1,P[o].n)n=0,r+=t.yOffset,r+=F?1:0,s=Z,F=!1,this._hasMaskedPath&&(d=J,h=(b=m[u=X].points)[d-1],f=(l=b[d]).partialLength,p=0),tt="",U="",G="",Y="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[o].line){switch(t.j){case 1:s+=g-t.lineWidths[P[o].line];break;case 2:s+=(g-t.lineWidths[P[o].line])/2}Q=P[o].line}K!==P[o].ind&&(P[K]&&(s+=P[K].extra),s+=P[o].an/2,K=P[o].ind),s+=w[0]*P[o].an*.005;var st=0;for(I=0;I<z;I+=1)(D=k[I].a).p.propType&&((j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars)).length?st+=D.p.v[0]*j[0]:st+=D.p.v[0]*j),D.a.propType&&((j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars)).length?st+=D.a.v[0]*j[0]:st+=D.a.v[0]*j);for(c=!0,this._pathData.a.v&&(s=.5*P[0].an+(g-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*K/(i-1),s+=this._pathData.f.v);c;)p+f>=s+st||!b?(v=(s+st-p)/l.partialLength,O=h.point[0]+(l.point[0]-h.point[0])*v,B=h.point[1]+(l.point[1]-h.point[1])*v,S.translate(-w[0]*P[o].an*.005,-w[1]*q*.01),c=!1):b&&(p+=l.partialLength,(d+=1)>=b.length&&(d=0,m[u+=1]?b=m[u].points:x.v.c?(d=0,b=m[u=0].points):(p-=l.partialLength,b=null)),b&&(h=l,f=(l=b[d]).partialLength));R=P[o].an/2-P[o].add,S.translate(-R,0,0)}else R=P[o].an/2-P[o].add,S.translate(-R,0,0),S.translate(-w[0]*P[o].an*.005,-w[1]*q*.01,0);for(I=0;I<z;I+=1)(D=k[I].a).t.propType&&(j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?j.length?s+=D.t.v*j[0]:s+=D.t.v*j:j.length?n+=D.t.v*j[0]:n+=D.t.v*j));for(t.strokeWidthAnim&&(V=t.sw||0),t.strokeColorAnim&&(N=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),I=0;I<z;I+=1)(D=k[I].a).a.propType&&((j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars)).length?S.translate(-D.a.v[0]*j[0],-D.a.v[1]*j[1],D.a.v[2]*j[2]):S.translate(-D.a.v[0]*j,-D.a.v[1]*j,D.a.v[2]*j));for(I=0;I<z;I+=1)(D=k[I].a).s.propType&&((j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars)).length?S.scale(1+(D.s.v[0]-1)*j[0],1+(D.s.v[1]-1)*j[1],1):S.scale(1+(D.s.v[0]-1)*j,1+(D.s.v[1]-1)*j,1));for(I=0;I<z;I+=1){if(D=k[I].a,j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars),D.sk.propType&&(j.length?S.skewFromAxis(-D.sk.v*j[0],D.sa.v*j[1]):S.skewFromAxis(-D.sk.v*j,D.sa.v*j)),D.r.propType&&(j.length?S.rotateZ(-D.r.v*j[2]):S.rotateZ(-D.r.v*j)),D.ry.propType&&(j.length?S.rotateY(D.ry.v*j[1]):S.rotateY(D.ry.v*j)),D.rx.propType&&(j.length?S.rotateX(D.rx.v*j[0]):S.rotateX(D.rx.v*j)),D.o.propType&&(j.length?L+=(D.o.v*j[0]-L)*j[0]:L+=(D.o.v*j-L)*j),t.strokeWidthAnim&&D.sw.propType&&(j.length?V+=D.sw.v*j[0]:V+=D.sw.v*j),t.strokeColorAnim&&D.sc.propType)for(W=0;W<3;W+=1)j.length?N[W]+=(D.sc.v[W]-N[W])*j[0]:N[W]+=(D.sc.v[W]-N[W])*j;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(W=0;W<3;W+=1)j.length?H[W]+=(D.fc.v[W]-H[W])*j[0]:H[W]+=(D.fc.v[W]-H[W])*j;D.fh.propType&&(H=j.length?addHueToRGB(H,D.fh.v*j[0]):addHueToRGB(H,D.fh.v*j)),D.fs.propType&&(H=j.length?addSaturationToRGB(H,D.fs.v*j[0]):addSaturationToRGB(H,D.fs.v*j)),D.fb.propType&&(H=j.length?addBrightnessToRGB(H,D.fb.v*j[0]):addBrightnessToRGB(H,D.fb.v*j))}}for(I=0;I<z;I+=1)(D=k[I].a).p.propType&&(j=k[I].s.getMult(P[o].anIndexes[I],_.a[I].s.totalChars),this._hasMaskedPath?j.length?S.translate(0,D.p.v[1]*j[0],-D.p.v[2]*j[1]):S.translate(0,D.p.v[1]*j,-D.p.v[2]*j):j.length?S.translate(D.p.v[0]*j[0],D.p.v[1]*j[1],-D.p.v[2]*j[2]):S.translate(D.p.v[0]*j,D.p.v[1]*j,-D.p.v[2]*j));if(t.strokeWidthAnim&&(G=V<0?0:V),t.strokeColorAnim&&($="rgb("+Math.round(255*N[0])+","+Math.round(255*N[1])+","+Math.round(255*N[2])+")"),t.fillColorAnim&&t.fc&&(U="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(S.translate(0,-t.ls),S.translate(0,w[1]*q*.01+r,0),this._pathData.p.v){y=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var lt=180*Math.atan(y)/Math.PI;l.point[0]<h.point[0]&&(lt+=180),S.rotate(-lt*Math.PI/180)}S.translate(O,B,0),s-=w[0]*P[o].an*.005,P[o+1]&&K!==P[o+1].ind&&(s+=P[o].an/2,s+=.001*t.tr*t.finalSize)}else{switch(S.translate(n,r,0),t.ps&&S.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:S.translate(P[o].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[o].line]),0,0);break;case 2:S.translate(P[o].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[o].line])/2,0,0)}S.translate(0,-t.ls),S.translate(R,0,0),S.translate(w[0]*P[o].an*.005,w[1]*q*.01,0),n+=P[o].l+.001*t.tr*t.finalSize}"html"===C?tt=S.toCSS():"svg"===C?tt=S.to2dCSS():et=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],Y=L}E<=o?(M=new LetterProps(Y,G,$,U,tt,et),this.renderedLetters.push(M),E+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[o],this.lettersChangedFlag=M.update(Y,G,$,U,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var n,r,o=e.length,i="";for(n=0;n<o;n+=1)"sh"===e[n].ty&&(r=e[n].ks.k,i+=buildShapeString(r,r.i.length,!0,t));return i},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,n,r,o){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(r,o,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function ISolidElement(t,e,n){this.initElement(t,e,n)}function NullElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(e&&e.title){var r=createNS("title"),o=createElementID();r.setAttribute("id",o),r.textContent=e.title,this.svgElement.appendChild(r),n+=o}if(e&&e.description){var i=createNS("desc"),a=createElementID();i.setAttribute("id",a),i.textContent=e.description,this.svgElement.appendChild(i),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,n=t.length,r=[],o="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(o),o=""):o+=t[e],e+=1;return r.push(o),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var o=n.fWeight,i=n.fStyle;this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",n.t);var a,s=n.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var p=this.mHelper,c=this.data.singleShape,d=0,u=0,h=!0,b=.001*n.tr*n.finalSize;if(!c||l||n.sz){var m,f=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(a=f>t?this.textSpans[t].span:createNS(l?"g":"text"),f<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var g=createNS("g");a.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(p.reset(),c&&(s[t].n&&(d=-b,u+=n.yOffset,u+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(n,p,s[t].line,d,u),d+=s[t].l||0,d+=b),l){var v;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var y=emptyShapeData;m.data&&m.data.shapes&&(y=this.buildShapeData(m.data,n.finalSize)),v=new SVGShapeElement(y,this.globalData,this)}if(this.textSpans[t].glyph){var x=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var w=this.textContainer,k="start";switch(n.j){case 1:k="end";break;case 2:k="middle";break;default:k="start"}w.setAttribute("text-anchor",k),w.setAttribute("letter-spacing",b);var _=this.buildTextContents(n.finalText);for(e=_.length,u=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=_[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",w.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=n.finalLineHeight;this.layerElement.appendChild(w)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var n,r,o,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(n=i[t],r=this.textSpans[t].span,(o=this.textSpans[t].glyph)&&o.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var o=createElementID();n.setAttribute("id",o),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),e.appendChild(n),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,n=this.layers.length;for(e=0;e<n;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var n=this.createItem(this.layers[t]);if(e[t]=n,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var o=e[r].getMatte(this.layers[t].tt);n.setMatte(o)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,o=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(o);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var r,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement()&&(r=this.elements[o].getBaseElement()),o+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,n=t.length,r="_";for(e=0;e<n;e+=1)r+=t[e].transform.key+"_";var o=this.sequences[r];return o||(o={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=o,this.sequenceList.push(o)),o},processSequence:function(t,e){for(var n=0,r=t.transforms.length,o=e;n<r&&!e;){if(t.transforms[n].transform.mProps._mdf){o=!0;break}n+=1}if(o)for(t.finalTransform.reset(),n=r-1;n>=0;n-=1)t.finalTransform.multiply(t.transforms[n].transform.mProps.v);t._mdf=o},processSequences:function(t){var e,n=this.sequenceList.length;for(e=0;e<n;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,n=null,r=null;function o(){var o,i,a;e||(o=createNS("svg"),i=createNS("filter"),a=createNS("feColorMatrix"),i.setAttribute("id",t),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),i.appendChild(a),o.appendChild(i),o.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(o.style.display="none"),r=o,document.body.appendChild(r),e=createTag("canvas"),(n=e.getContext("2d")).filter="url(#"+t+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:o,get:function(r){return e||o(),e.width=r.width,e.height=r.height,n.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var n=createTag("canvas");return n.width=t,n.height=e,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(t){var e,n,r=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<r;e+=1){n=null;var o=t.data.ef[e].ty;registeredEffects[o]&&(n=new(0,registeredEffects[o].effect)(t.effectsManager.effectElements[e],t)),n&&this.filters.push(n)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var n;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,o=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(o=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,n=this.filters.length,r=[];for(e=0;e<n;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,n,r,o=this.element.finalTransform.mat,i=this.element.canvasContext,a=this.masksProperties.length;for(i.beginPath(),t=0;t<a;t+=1)if("n"!==this.masksProperties[t].mode){var s;this.masksProperties[t].inv&&(i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0)),r=this.viewData[t].v,e=o.applyToPointArray(r.v[0][0],r.v[0][1],0),i.moveTo(e[0],e[1]);var l=r._length;for(s=1;s<l;s+=1)n=o.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=o.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),i.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,i=4;"rc"===e.ty?i=5:"el"===e.ty?i=6:"sr"===e.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,i,t);var a,s=n.length;for(o=0;o<s;o+=1)n[o].closed||(a={transforms:r.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(a),n[o].elements.push(a))}function CVShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,n)}function CVTextElement(t,e,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,n)}function CVImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,n)}function CVSolidElement(t,e,n){this.initElement(t,e,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,n){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,n){this.initElement(t,e,n)}function HShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,n)}function HCameraElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var o,i=t.ks.or.k.length;for(o=0;o<i;o+=1)t.ks.or.k[o].to=null,t.ks.or.k[o].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,n){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var n={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(n.lc=lineCapEnum[t.lc||2],n.lj=lineJoinEnum[t.lj||2],1==t.lj&&(n.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(n.wi=r.w.v),t.d){var o=new DashProperty(this,t.d,"canvas",this);r.d=o,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,n,r,o){var i,a,s,l,p,c,d=t.length-1,u=[],h=[],b=[].concat(o);for(i=d;i>=0;i-=1){if((l=this.searchProcessedElement(t[i]))?e[i]=n[l-1]:t[i]._shouldRender=r,"fl"===t[i].ty||"st"===t[i].ty||"gf"===t[i].ty||"gs"===t[i].ty)l?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],b),u.push(e[i].style);else if("gr"===t[i].ty){if(l)for(s=e[i].it.length,a=0;a<s;a+=1)e[i].prevViewData[a]=e[i].it[a];else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it,e[i].it,e[i].prevViewData,r,b)}else"tr"===t[i].ty?(l||(c=this.createTransformElement(t[i]),e[i]=c),b.push(e[i]),this.addTransformToStyleList(e[i])):"sh"===t[i].ty||"rc"===t[i].ty||"el"===t[i].ty||"sr"===t[i].ty?l||(e[i]=this.createShapeElement(t[i])):"tm"===t[i].ty||"rd"===t[i].ty||"pb"===t[i].ty||"zz"===t[i].ty||"op"===t[i].ty?(l?(p=e[i]).closed=!1:((p=ShapeModifiers.getModifier(t[i].ty)).init(this,t[i]),e[i]=p,this.shapeModifiers.push(p)),h.push(p)):"rp"===t[i].ty&&(l?(p=e[i]).closed=!0:(p=ShapeModifiers.getModifier(t[i].ty),e[i]=p,p.init(this,t,i,e),this.shapeModifiers.push(p),r=!1),h.push(p));this.addProcessedElement(t[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),d=h.length,i=0;i<d;i+=1)h[i].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,n,r,o,i,a,s,l,p=this.stylesList.length,c=this.globalData.renderer,d=this.globalData.canvasContext;for(t=0;t<p;t+=1)if(("st"!==(s=(l=this.stylesList[t]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),i=l.elements,"st"===s||"gs"===s?(c.ctxStrokeStyle("st"===s?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===s?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),n=i.length,e=0;e<n;e+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),o=(a=i[e].trNodes).length,r=0;r<o;r+=1)"m"===a[r].t?d.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?d.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(c.ctxStroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,n,r){var o,i;for(i=t,o=e.length-1;o>=0;o-=1)"tr"===e[o].ty?(i=n[o].transform,this.renderShapeTransform(t,i)):"sh"===e[o].ty||"el"===e[o].ty||"rc"===e[o].ty||"sr"===e[o].ty?this.renderPath(e[o],n[o]):"fl"===e[o].ty?this.renderFill(e[o],n[o],i):"st"===e[o].ty?this.renderStroke(e[o],n[o],i):"gf"===e[o].ty||"gs"===e[o].ty?this.renderGradientFill(e[o],n[o],i):"gr"===e[o].ty?this.renderShape(i,e[o].it,n[o].it):e[o].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var n,r,o,i=t.trNodes,a=e.paths,s=a._length;i.length=0;var l=t.transforms.finalTransform;for(o=0;o<s;o+=1){var p=a.shapes[o];if(p&&p.v){for(r=p._length,n=1;n<r;n+=1)1===n&&i.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),i.push({t:"c",pts:l.applyToTriplePoints(p.o[n-1],p.i[n],p.v[n])});1===r&&i.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&r&&(i.push({t:"c",pts:l.applyToTriplePoints(p.o[n-1],p.i[0],p.v[0])}),i.push({t:"z"}))}}t.trNodes=i}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var n,r=e.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(e.styledShapes[n],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,n){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,n){var r,o=e.style;if(!o.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var i,a=this.globalData.canvasContext,s=e.s.v,l=e.e.v;if(1===t.t)r=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var p=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),c=Math.atan2(l[1]-s[1],l[0]-s[0]),d=e.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var u=p*d,h=Math.cos(c+e.a.v)*u+s[0],b=Math.sin(c+e.a.v)*u+s[1];r=a.createRadialGradient(h,b,0,s[0],s[1],p)}var m=t.g.p,f=e.g.c,g=1;for(i=0;i<m;i+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*i+1]),r.addColorStop(f[4*i]/100,"rgba("+f[4*i+1]+","+f[4*i+2]+","+f[4*i+3]+","+g+")");o.grd=r}o.coOp=e.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(t,e,n){var r=e.style,o=e.d;o&&(o._mdf||this._isFirstFrame)&&(r.da=o.dashArray,r.do=o.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var n=!1;t.sc&&(n=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r,o,i,a,s,l,p,c,d,u,h,b,m=this.globalData.fontManager.getFontByName(t.f),f=t.l,g=this.mHelper;this.stroke=n,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,o=t.finalText.length;var v=this.data.singleShape,y=.001*t.tr*t.finalSize,x=0,w=0,k=!0,_=0;for(r=0;r<o;r+=1){a=(i=this.globalData.fontManager.getCharData(t.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&i.data||{},g.reset(),v&&f[r].n&&(x=-y,w+=t.yOffset,w+=k?1:0,k=!1),d=(p=a.shapes?a.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,g,f[r].line,x,w),h=createSizedArray(d-1);var S=0;for(c=0;c<d;c+=1)if("sh"===p[c].ty){for(l=p[c].ks.k.i.length,u=p[c].ks.k,b=[],s=1;s<l;s+=1)1===s&&b.push(g.applyToX(u.v[0][0],u.v[0][1],0),g.applyToY(u.v[0][0],u.v[0][1],0)),b.push(g.applyToX(u.o[s-1][0],u.o[s-1][1],0),g.applyToY(u.o[s-1][0],u.o[s-1][1],0),g.applyToX(u.i[s][0],u.i[s][1],0),g.applyToY(u.i[s][0],u.i[s][1],0),g.applyToX(u.v[s][0],u.v[s][1],0),g.applyToY(u.v[s][0],u.v[s][1],0));b.push(g.applyToX(u.o[s-1][0],u.o[s-1][1],0),g.applyToY(u.o[s-1][0],u.o[s-1][1],0),g.applyToX(u.i[0][0],u.i[0][1],0),g.applyToY(u.i[0][0],u.i[0][1],0),g.applyToX(u.v[0][0],u.v[0][1],0),g.applyToY(u.v[0][0],u.v[0][1],0)),h[S]=b,S+=1}v&&(x+=f[r].l,x+=y),this.textSpans[_]?this.textSpans[_].elem=h:this.textSpans[_]={elem:h},_+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,n,r,o,i;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var p,c,d=null,u=null,h=null,b=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((a=s[t])&&(b.save(),b.ctxTransform(a.p),b.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(b.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,b.ctxFillStyle(this.values.fill)),r=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(c=p[n]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(c[o],c[o+1],c[o+2],c[o+3],c[o+4],c[o+5]);this.globalData.canvasContext.closePath(),b.ctxFill()}if(this.stroke){for(a&&a.sw?h!==a.sw&&(h=a.sw,b.ctxLineWidth(a.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,b.ctxLineWidth(this.values.sWidth)),a&&a.sc?u!==a.sc&&(u=a.sc,b.ctxStrokeStyle(a.sc)):u!==this.values.stroke&&(u=this.values.stroke,b.ctxStrokeStyle(this.values.stroke)),r=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(c=p[n]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(c[o],c[o+1],c[o+2],c[o+3],c[o+4],c[o+5]);this.globalData.canvasContext.closePath(),b.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,n,r=t.getContext("2d"),o=this.img.width,i=this.img.height,a=o/i,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?e=(n=i)*s:n=(e=o)/s,r.drawImage(this.img,(o-e)/2,(i-n)/2,e,n,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,n,r){this.canvasContext.fillRect(t,e,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var n="0px 0px 0px";e.transformOrigin=n,e.mozTransformOrigin=n,e.webkitTransformOrigin=n,e["-webkit-transform"]=n,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var n,r,o,i;if(this.reset(),t?(n=t,r=e,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",p=l.substr(0,4),c=l.substr(4);o=n/r,(i=this.transformCanvas.w/this.transformCanvas.h)>o&&"meet"===s||i<o&&"slice"===s?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===p&&(i<o&&"meet"===s||i>o&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===p&&(i<o&&"meet"===s||i>o&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(i>o&&"meet"===s||i<o&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(i>o&&"meet"===s||i<o&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var n;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(t-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var n=this.createItem(this.layers[t],this,this.globalData);e[t]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,n=this.stack[this.cArrPos],r=n.transform,o=this.cTr.props;for(e=0;e<16;e+=1)o[e]=r[e];if(t){this.nativeContext.restore();var i=this.stack[this.cArrPos+1];this.appliedFillStyle=i.fillStyle,this.appliedStrokeStyle=i.strokeStyle,this.appliedLineWidth=i.lineWidth,this.appliedLineCap=i.lineCap,this.appliedLineJoin=i.lineJoin,this.appliedMiterLimit=i.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=e[n];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=r.opacity,o.fillStyle=r.fillStyle,o.strokeStyle=r.strokeStyle,o.lineWidth=r.lineWidth,o.lineCap=r.lineCap,o.lineJoin=r.lineJoin,o.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var n=e.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e=t[n].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var n,r,o,i,a,s=t.sh.v,l=t.transformers,p=s._length;if(!(p<=1)){for(n=0;n<p-1;n+=1)r=this.getTransformedPoint(l,s.v[n]),o=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[n+1]),a=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(r,o,i,a,e);s.c&&(r=this.getTransformedPoint(l,s.v[n]),o=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,o,i,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,n,r,o){this.getBoundsOfCurve(t,e,n,r);var i=this.shapeBoundingBox;o.x=bmMin(i.left,o.x),o.xMax=bmMax(i.right,o.xMax),o.y=bmMin(i.top,o.y),o.yMax=bmMax(i.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,n,r){for(var o,i,a,s,l,p,c,d=[[t[0],r[0]],[t[1],r[1]]],u=0;u<2;++u)i=6*t[u]-12*e[u]+6*n[u],o=-3*t[u]+9*e[u]-9*n[u]+3*r[u],a=3*e[u]-3*t[u],i|=0,a|=0,0==(o|=0)&&0===i||(0===o?(s=-a/i)>0&&s<1&&d[u].push(this.calculateF(s,t,e,n,r,u)):(l=i*i-4*a*o)>=0&&((p=(-i+bmSqrt(l))/(2*o))>0&&p<1&&d[u].push(this.calculateF(p,t,e,n,r,u)),(c=(-i-bmSqrt(l))/(2*o))>0&&c<1&&d[u].push(this.calculateF(c,t,e,n,r,u))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(t,e,n,r,o,i){return bmPow(1-t,3)*e[i]+3*bmPow(1-t,2)*t*n[i]+3*(1-t)*bmPow(t,2)*r[i]+bmPow(t,3)*o[i]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]&&t[n].sh?this.calculateShapeBoundingBox(t[n],e):t[n]&&t[n].it?this.calculateBoundingBox(t[n].it,e):t[n]&&t[n].style&&t[n].w&&this.expandStrokeBoundingBox(t[n].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var n=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var o=t.keyframes[r].s;o>n&&(n=o)}n*=t.mult}else n=t.v*t.mult;e.x-=n,e.xMax+=n,e.y-=n,e.yMax+=n},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var n=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),n=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),n=!0),n||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=o,r.webkitTransform=o}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,n=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=n,e.color=n,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,o,i=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{e.fontFamily=i.fFamily;var a=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=a}var l,p,c,d=t.l;o=d.length;var u,h=this.mHelper,b="",m=0;for(r=0;r<o;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(p=this.textSpans[m]).children[0]:((p=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(p)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(p=this.textSpans[m],l=this.textPaths[m]):(styleDiv(p=createTag("span")),styleDiv(l=createTag("span")),p.appendChild(l)),this.globalData.fontManager.chars){var f,g=this.globalData.fontManager.getCharData(t.finalText[r],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(f=g?g.data:null,h.reset(),f&&f.shapes&&f.shapes.length&&(u=f.shapes[0].it,h.scale(t.finalSize/100,t.finalSize/100),b=this.createPathShape(h,u),l.setAttribute("d",b)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(p),f&&f.shapes){document.body.appendChild(c);var v=c.getBBox();c.setAttribute("width",v.width+2),c.setAttribute("height",v.height+2),c.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var y=c.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";y.transform=x,y.webkitTransform=x,d[r].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);p.appendChild(c)}}else if(l.textContent=d[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(p);var w=l.style,k="translate3d(0,"+-t.finalSize/1.2+"px,0)";w.transform=k,w.webkitTransform=k}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=p,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,o,i,a,s=0,l=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;for(r=p.length,n=0;n<r;n+=1)p[n].n?s+=1:(i=this.textSpans[n],a=this.textPaths[n],o=l[s],s+=1,o._mdf.m&&(this.isMasked?i.setAttribute("transform",o.m):(i.style.webkitTransform=o.m,i.style.transform=o.m)),i.style.opacity=o.o,o.sw&&o._mdf.sw&&a.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&a.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(a.setAttribute("fill",o.fc),a.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=d,t.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,n,r,o=this.comp.threeDElements.length;for(t=0;t<o;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){n=e.perspectiveElem.style,r=e.container.style;var i=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=i,n.webkitPerspective=i,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,n=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)n=this.hierarchy[t].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;o=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var i=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),a=[o[0]/i,o[1]/i,o[2]/i],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),p=Math.atan2(a[0],-a[2]);this.mat.rotateY(p).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var d,u,h;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(d=this.comp.threeDElements[t]).type){if(c){var b=this.mat.toCSS();(h=d.container.style).transform=b,h.webkitTransform=b}this.pe._mdf&&((u=d.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){var r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,e);else if(this.threeDElements)this.addTo3dContainer(n,e);else{for(var o,i,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a],o=(this.layers[a].ddd?this.getThreeDContainerByPos(a):i.getBaseElement())||o),a+=1;o?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,o):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,n=this.threeDElements.length;e<n;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var n,r,o=createTag("div");styleDiv(o);var i=createTag("div");if(styleDiv(i),"3d"===e){(n=o.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=i.style).transform=s,r.webkitTransform=s}o.appendChild(i);var l={container:i,perspectiveElem:o,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,n=this.layers.length,r="";for(t=0;t<n;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==r&&(r="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(n=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var n=0,r=this.threeDElements.length;n<r;){if(e<=this.threeDElements[n].endPos){for(var o,i=this.threeDElements[n].startPos;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i].getBaseElement()),i+=1;o?this.threeDElements[n].container.insertBefore(t,o):this.threeDElements[n].container.appendChild(t);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),n=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),n.appendChild(e),r.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var i=createNS("defs");o.appendChild(i),this.data=t,this.setupGlobalData(t,o),this.globalData.defs=i,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,n,r,o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=o/this.globalData.compSize.w,e=o/this.globalData.compSize.w,n=0,r=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(t=i/this.globalData.compSize.h,e=i/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t<r;t+=1){var o=this.threeDElements[t].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(n,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,n=t.length,r=createTag("div");for(e=0;e<n;e+=1)if(t[e].xt){var o=this.createComp(t[e],r,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var n,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(t,n):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var n=0,r=t.layers.length;n<r;){if(t.layers[n].nm===e||t.layers[n].ind===e)return t.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}function seedRandom(t,e){var n=this,r=256,o="random",i=e.pow(r,6),a=e.pow(2,52),s=2*a,l=255;function p(t){var e,n=t.length,o=this,i=0,a=o.i=o.j=0,s=o.S=[];for(n||(t=[n++]);i<r;)s[i]=i++;for(i=0;i<r;i++)s[i]=s[a=l&a+t[i%n]+(e=s[i])],s[a]=e;o.g=function(t){for(var e,n=0,i=o.i,a=o.j,s=o.S;t--;)e=s[i=l&i+1],n=n*r+s[l&(s[i]=s[a=l&a+e])+(s[a]=e)];return o.i=i,o.j=a,n}}function c(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function d(t,e){var n,r=[],o=_typeof$2(t);if(e&&"object"==o)for(n in t)try{r.push(d(t[n],e-1))}catch(t){}return r.length?r:"string"==o?t:t+"\0"}function u(t,e){for(var n,r=t+"",o=0;o<r.length;)e[l&o]=l&(n^=19*e[l&o])+r.charCodeAt(o++);return h(e)}function h(t){return String.fromCharCode.apply(0,t)}e["seed"+o]=function(l,b,m){var f=[],g=u(d((b=!0===b?{entropy:!0}:b||{}).entropy?[l,h(t)]:null===l?function(){try{var e=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(e),h(e)}catch(e){var o=n.navigator,i=o&&o.plugins;return[+new Date,n,i,n.screen,h(t)]}}():l,3),f),v=new p(f),y=function(){for(var t=v.g(6),e=i,n=0;t<a;)t=(t+n)*r,e*=r,n=v.g(1);for(;t>=s;)t/=2,e/=2,n>>>=1;return(t+n)/e};return y.int32=function(){return 0|v.g(4)},y.quick=function(){return v.g(4)/4294967296},y.double=y,u(h(v.S),t),(b.pass||m||function(t,n,r,i){return i&&(i.S&&c(i,v),t.state=function(){return c(v,{})}),r?(e[o]=t,n):t})(y,g,"global"in b?b.global:this==e,b.state)},u(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var n,r=t.length,o=[];for(n=0;n<r;n+=1)o[n]=-t[n];return o}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var n=_typeof$1(t),r=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(r,e)||"string"===n||"string"===r)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var o=0,i=t.length,a=e.length,s=[];o<i||o<a;)("number"==typeof t[o]||t[o]instanceof Number)&&("number"==typeof e[o]||e[o]instanceof Number)?s[o]=t[o]+e[o]:s[o]=void 0===e[o]?t[o]:t[o]||e[o],o+=1;return s}return 0}var add=sum;function sub(t,e){var n=_typeof$1(t),r=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(r,e))return"string"===n&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var o=0,i=t.length,a=e.length,s=[];o<i||o<a;)("number"==typeof t[o]||t[o]instanceof Number)&&("number"==typeof e[o]||e[o]instanceof Number)?s[o]=t[o]-e[o]:s[o]=void 0===e[o]?t[o]:t[o]||e[o],o+=1;return s}return 0}function mul(t,e){var n,r,o,i=_typeof$1(t),a=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(o=t.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=t[r]*e;return n}if(isNumerable(i,t)&&$bm_isInstanceOfArray(e)){for(o=e.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=t*e[r];return n}return 0}function div(t,e){var n,r,o,i=_typeof$1(t),a=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(o=t.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=t[r]/e;return n}if(isNumerable(i,t)&&$bm_isInstanceOfArray(e)){for(o=e.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=t/e[r];return n}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,n){if(e>n){var r=n;n=e,e=r}return Math.min(Math.max(t,e),n)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var n;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),o=0;for(n=0;n<r;n+=1)o+=Math.pow(e[n]-t[n],2);return Math.sqrt(o)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,n,r=t[0],o=t[1],i=t[2],a=Math.max(r,o,i),s=Math.min(r,o,i),l=(a+s)/2;if(a===s)e=0,n=0;else{var p=a-s;switch(n=l>.5?p/(2-a-s):p/(a+s),a){case r:e=(o-i)/p+(o<i?6:0);break;case o:e=(i-r)/p+2;break;case i:e=(r-o)/p+4}e/=6}return[e,n,l,t[3]]}function hue2rgb(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hslToRgb(t){var e,n,r,o=t[0],i=t[1],a=t[2];if(0===i)e=a,r=a,n=a;else{var s=a<.5?a*(1+i):a+i-a*i,l=2*a-s;e=hue2rgb(l,s,o+1/3),n=hue2rgb(l,s,o),r=hue2rgb(l,s,o-1/3)}return[e,n,r,t[3]]}function linear(t,e,n,r,o){if(void 0!==r&&void 0!==o||(r=e,o=n,e=0,n=1),n<e){var i=n;n=e,e=i}if(t<=e)return r;if(t>=n)return o;var a,s=n===e?0:(t-e)/(n-e);if(!r.length)return r+(o-r)*s;var l=r.length,p=createTypedArray("float32",l);for(a=0;a<l;a+=1)p[a]=r[a]+(o[a]-r[a])*s;return p}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var n,r=e.length;t||(t=createTypedArray("float32",r));var o=createTypedArray("float32",r),i=BMMath.random();for(n=0;n<r;n+=1)o[n]=t[n]+i*(e[n]-t[n]);return o}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,n,r){var o,i=t.length,a=shapePool.newElement();a.setPathData(!!r,i);var s,l,p=[0,0];for(o=0;o<i;o+=1)s=e&&e[o]?e[o]:p,l=n&&n[o]?n[o]:p,a.setTripleAt(t[o][0],t[o][1],l[0]+t[o][0],l[1]+t[o][1],s[0]+t[o][0],s[1]+t[o][1],o,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var n,r,o=this.pv.length?this.pv.length:1,i=createTypedArray("float32",o),a=Math.floor(5*time);for(n=0,r=0;n<a;){for(r=0;r<o;r+=1)i[r]+=-e+2*e*BMMath.random();n+=1}var s=5*time,l=s-Math.floor(s),p=createTypedArray("float32",o);if(o>1){for(r=0;r<o;r+=1)p[r]=this.pv[r]+i[r]+(-e+2*e*BMMath.random())*l;return p}return this.pv+i[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var n=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(t,e,n,r,o){return applyEase(easeOutBez,t,e,n,r,o)}function easeIn(t,e,n,r,o){return applyEase(easeInBez,t,e,n,r,o)}function ease(t,e,n,r,o){return applyEase(easeInOutBez,t,e,n,r,o)}function applyEase(t,e,n,r,o,i){void 0===o?(o=n,i=r):e=(e-n)/(r-n),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(o)){var s,l=o.length,p=createTypedArray("float32",l);for(s=0;s<l;s+=1)p[s]=(i[s]-o[s])*a+o[s];return p}return(i-o)*a+o}function nearestKey(t){var e,n,r,o=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(e=0;e<o-1;e+=1){if(t===data.k[e].t){n=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(n=e+2,r=data.k[e+1].t):(n=e+1,r=data.k[e].t);break}}-1===n&&(n=e+1,r=data.k[e].t)}else n=0,r=0;var i={};return i.index=n,i.time=r/elem.comp.globalData.frameRate,i}function key(t){var e,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=o.length,n=0;n<r;n+=1)e[n]=o[n],e.value[n]=o[n];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,n=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=n.length;for(t=0;t<e;t+=1)n[t].release();n.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===n.indexOf(t)&&n.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var n,r=createSizedArray(e.viewData.length),o=e.viewData.length;for(n=0;n<o;n+=1)r[n]=new t(e.viewData[n],e.masksProperties[n]);return function(t){for(n=0;n<o;){if(e.masksProperties[n].nm===t)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function n(t,e,n){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var o="";o="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var i="unidimensional"===n?new Number(o):Object.assign({},o);return i.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,i.value="unidimensional"===n?o[0]:o,i},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(o){return o?"unidimensional"===o.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,o=e.pv*r,i=new Number(o);return i.value=o,n(i,e,"unidimensional"),function(){return e.k&&e.getValue(),o=e.v*r,i.value!==o&&((i=new Number(o)).value=o,i[0]=o,n(i,e,"unidimensional")),i}}(o):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,o=t.data&&t.data.l||t.pv.length,i=createTypedArray("float32",o),a=createTypedArray("float32",o);return i.value=a,n(i,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<o;e+=1)a[e]=t.v[e]*r,i[e]=a[e];return i}}(o):r}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var n,r,o,i;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?i=ExpressionPropertyInterface(t.p):(n=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(o=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?i():[n(),r(),o?o():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var n=this.getMatrix(e);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,t)}function n(t,e){var n=this.getMatrix(e);return this.applyPoint(n,t)}function r(t,e){var n=this.getMatrix(e);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,t)}function o(t,e){var n=this.getMatrix(e);return this.invertPoint(n,t)}function i(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function s(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(p){var c;function d(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=t,d.invertPoint=a,d.applyPoint=i,d.toWorld=n,d.toWorldVec=e,d.fromWorld=o,d.fromWorldVec=r,d.toComp=n,d.fromComp=s,d.sampleImage=l,d.sourceRectAtTime=p.sourceRectAtTime.bind(p),d._elem=p;var u=getDescriptor(c=TransformExpressionInterface(p.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return p.hierarchy.length}},parent:{get:function(){return p.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return c}},active:{get:function(){return p.isInRange}}}),d.startTime=p.data.st,d.index=p.data.ind,d.source=p.data.refId,d.height=0===p.data.ty?p.data.h:100,d.width=0===p.data.ty?p.data.w:100,d.inPoint=p.data.ip/p.comp.globalData.frameRate,d.outPoint=p.data.op/p.comp.globalData.frameRate,d._name=p.data.nm,d.registerMaskInterface=function(t){d.mask=new MaskManagerInterface(t,p)},d.registerEffectsInterface=function(t){d.effect=t},d}}(),propertyGroupFactory=function(t,e){return function(n){return(n=void 0===n?1:n)<=0?t:e(n-1)}},PropertyInterface=function(t,e){var n={_name:t};return function(t){return(t=void 0===t?1:t)<=0?n:e(t-1)}},EffectsExpressionInterface=function(){var t={createEffectsInterface:function(t,n){if(t.effectsManager){var r,o=[],i=t.data.ef,a=t.effectsManager.effectElements.length;for(r=0;r<a;r+=1)o.push(e(i[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],l=function(t){for(r=0,a=s.length;r<a;){if(t===s[r].nm||t===s[r].mn||t===s[r].ix)return o[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function e(t,r,o,i){function a(e){for(var n=t.ef,r=0,o=n.length;r<o;){if(e===n[r].nm||e===n[r].mn||e===n[r].ix)return 5===n[r].ty?p[r]:p[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(a,o),p=[],c=t.ef.length;for(s=0;s<c;s+=1)5===t.ef[s].ty?p.push(e(t.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,i)):p.push(n(r.effectElements[s],t.ef[s].ty,i,l));return"ADBE Color Control"===t.mn&&Object.defineProperty(a,"color",{get:function(){return p[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return t.np}},_name:{value:t.nm},propertyGroup:{value:l}}),a.enabled=0!==t.en,a.active=a.enabled,a}function n(t,e,n,r){var o=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?n.comp.compInterface(t.p.v):o()}}return t}(),ShapePathInterface=function(t,e,n){var r=e.sh;function o(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?o.path:null}var i=propertyGroupFactory(o,n);return r.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(o,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),o},ShapeExpressionInterface=function(){function t(t,s,h){var b,m=[],f=t?t.length:0;for(b=0;b<f;b+=1)"gr"===t[b].ty?m.push(e(t[b],s[b],h)):"fl"===t[b].ty?m.push(n(t[b],s[b],h)):"st"===t[b].ty?m.push(i(t[b],s[b],h)):"tm"===t[b].ty?m.push(a(t[b],s[b],h)):"tr"===t[b].ty||("el"===t[b].ty?m.push(l(t[b],s[b],h)):"sr"===t[b].ty?m.push(p(t[b],s[b],h)):"sh"===t[b].ty?m.push(ShapePathInterface(t[b],s[b],h)):"rc"===t[b].ty?m.push(c(t[b],s[b],h)):"rd"===t[b].ty?m.push(d(t[b],s[b],h)):"rp"===t[b].ty?m.push(u(t[b],s[b],h)):"gf"===t[b].ty?m.push(r(t[b],s[b],h)):m.push(o(t[b],s[b])));return m}function e(e,n,r){var o=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return o.content;default:return o.transform}};o.propertyGroup=propertyGroupFactory(o,r);var i=function(e,n,r){var o,i=function(t){for(var e=0,n=o.length;e<n;){if(o[e]._name===t||o[e].mn===t||o[e].propertyIndex===t||o[e].ix===t||o[e].ind===t)return o[e];e+=1}return"number"==typeof t?o[t-1]:null};i.propertyGroup=propertyGroupFactory(i,r),o=t(e.it,n.it,i.propertyGroup),i.numProperties=o.length;var a=s(e.it[e.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.transform=a,i.propertyIndex=e.cix,i._name=e.nm,i}(e,n,o.propertyGroup),a=s(e.it[e.it.length-1],n.it[n.it.length-1],o.propertyGroup);return o.content=i,o.transform=a,Object.defineProperty(o,"_name",{get:function(){return e.nm}}),o.numProperties=e.np,o.propertyIndex=e.ix,o.nm=e.nm,o.mn=e.mn,o}function n(t,e,n){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(t,e,n){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",n)),e.e.setGroupProperty(PropertyInterface("End Point",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function o(){return function(){return null}}function i(t,e,n){var r,o=propertyGroupFactory(p,n),i=propertyGroupFactory(l,o);function a(n){Object.defineProperty(l,t.d[n].nm,{get:ExpressionPropertyInterface(e.d.dataProps[n].p)})}var s=t.d?t.d.length:0,l={};for(r=0;r<s;r+=1)a(r),e.d.dataProps[r].p.setGroupProperty(i);function p(t){return"Color"===t||"color"===t?p.color:"Opacity"===t||"opacity"===t?p.opacity:"Stroke Width"===t||"stroke width"===t?p.strokeWidth:null}return Object.defineProperties(p,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",o)),e.o.setGroupProperty(PropertyInterface("Opacity",o)),e.w.setGroupProperty(PropertyInterface("Stroke Width",o)),p}function a(t,e,n){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var o=propertyGroupFactory(r,n);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",o)),e.e.setGroupProperty(PropertyInterface("End",o)),e.o.setGroupProperty(PropertyInterface("Offset",o)),r.propertyIndex=t.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function s(t,e,n){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var o=propertyGroupFactory(r,n);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",o)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",o)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",o)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",o)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",o)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",o)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",o))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",o)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=n,r}function l(t,e,n){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var o=propertyGroupFactory(r,n);r.propertyIndex=t.ix;var i="tm"===e.sh.ty?e.sh.prop:e.sh;return i.s.setGroupProperty(PropertyInterface("Size",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function p(t,e,n){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var o=propertyGroupFactory(r,n),i="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,i.or.setGroupProperty(PropertyInterface("Outer Radius",o)),i.os.setGroupProperty(PropertyInterface("Outer Roundness",o)),i.pt.setGroupProperty(PropertyInterface("Points",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),t.ir&&(i.ir.setGroupProperty(PropertyInterface("Inner Radius",o)),i.is.setGroupProperty(PropertyInterface("Inner Roundness",o))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,n){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var o=propertyGroupFactory(r,n),i="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,i.p.setGroupProperty(PropertyInterface("Position",o)),i.s.setGroupProperty(PropertyInterface("Size",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function d(t,e,n){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var o=propertyGroupFactory(r,n),i=e;return r.propertyIndex=t.ix,i.rd.setGroupProperty(PropertyInterface("Radius",o)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,n){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var o=propertyGroupFactory(r,n),i=e;return r.propertyIndex=t.ix,i.c.setGroupProperty(PropertyInterface("Copies",o)),i.o.setGroupProperty(PropertyInterface("Offset",o)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,n,r){var o;function i(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:o[t-1];for(var e=0,n=o.length;e<n;){if(o[e]._name===t)return o[e];e+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return r}),o=t(e,n,i.propertyGroup),i.numProperties=o.length,i._name="Contents",i}}(),TextExpressionInterface=function(t){var e;function n(t){return"ADBE Text Document"===t?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){t.textProperty.getValue();var n=t.textProperty.currentData.t;return e&&n===e.value||((e=new String(n)).value=n||new String(n),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),n};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",n=t.getFootageData();function r(t){if(n[t])return e=t,"object"===_typeof(n=n[t])?r:n;var o=t.indexOf(e);if(-1!==o){var i=parseInt(t.substr(o+e.length),10);return"object"===_typeof(n=n[i])?r:n}return""}return function(){return e="",n=t.getFootageData(),r}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,n){e.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(t,e,n).bind(n)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),n=this.getValueAtTime(t+-.01),r=0;if(e.length){var o;for(o=0;o<e.length;o+=1)r+=Math.pow(n[o]-e[o],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,n,r=-.001,o=this.getValueAtTime(t),i=this.getValueAtTime(t+r);if(o.length)for(e=createTypedArray("float32",o.length),n=0;n<o.length;n+=1)e[n]=(i[n]-o[n])/r;else e=(i-o)/r;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,n){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,o,i,a,s,l=this.comp.renderedFrame,p=this.keyframes,c=p[p.length-1].t;if(l<=c)return this.pv;if(n?o=c-(r=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>p.length-1)&&(e=p.length-1),r=c-(o=p[p.length-1-e].t)),"pingpong"===t){if(Math.floor((l-o)/r)%2!=0)return this.getValueAtTime((r-(l-o)%r+o)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(o/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((l-o)%r+o)/this.comp.globalData.frameRate,0),b=Math.floor((l-o)/r);if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=(u[i]-d[i])*b+h[i];return s}return(u-d)*b+h}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-f[i])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-f)}}return this.getValueAtTime(((l-o)%r+o)/this.comp.globalData.frameRate,0)}function e(t,e,n){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,o,i,a,s,l=this.comp.renderedFrame,p=this.keyframes,c=p[0].t;if(l>=c)return this.pv;if(n?o=c+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>p.length-1)&&(e=p.length-1),r=(o=p[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(o/this.comp.globalData.frameRate,0),h=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),b=Math.floor((c-l)/r)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=h[i]-(u[i]-d[i])*b;return s}return h-(u-d)*b}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-f[i])*(c-l)/.001;return s}return m+(m-f)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function n(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var n,r,o=this.comp.renderedFrame/this.comp.globalData.frameRate,i=o-t,a=e>1?(o+t-i)/(e-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(r=this.getValueAtTime(i+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=e;else n/=e;return n}function r(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(t);e.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var o=this.sk.getValueAtTime(t),i=this.sa.getValueAtTime(t);e.skewFromAxis(-o*this.sk.mult,i*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),p=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(p*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var h=this.pz.getValueAtTime(t);e.translate(d*this.px.mult,u*this.py.mult,-h*this.pz.mult)}else e.translate(d*this.px.mult,u*this.py.mult,0)}else{var b=this.p.getValueAtTime(t);e.translate(b[0]*this.p.mult,b[1]*this.p.mult,-b[2]*this.p.mult)}return e}function o(){return this.v.clone(new Matrix)}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,n){var a=i(t,e,n);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=o.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(r,o,i,s,l){var p=a(r,o,i,s,l);p.kf?p.getValueAtTime=expressionHelpers.getValueAtTime.bind(p):p.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p.loopOut=t,p.loopIn=e,p.smooth=n,p.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(p),p.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(p),p.numKeys=1===o.a?o.k.length:0,p.propertyIndex=o.ix;var c=0;return 0!==i&&(c=createTypedArray("float32",1===o.a?o.k[0].s.length:o.k.length)),p._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,o,p),p.k&&l.addDynamicProperty(p),p};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function(t,e){this.k&&this.getValue();var n,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var o=r._length,i=r[t],a=r.v,s=createSizedArray(o);for(n=0;n<o;n+=1)s[n]="i"===t||"o"===t?[i[n][0]-a[n][0],i[n][1]-a[n][1]]:[i[n][0],i[n][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,o=this._segmentsLength,i=o.lengths,a=o.totalLength*t,s=0,l=i.length,p=0;s<l;){if(p+i[s].addedLength>a){var c=s,d=n.c&&s===l-1?0:s+1,u=(a-p)/i[s].addedLength;r=bez.getPointInSegment(n.v[c],n.v[d],n.o[c],n.i[d],u,i[s]);break}p+=i[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(t,e,n){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),o=this.pointOnPath(t+.001,e),i=o[0]-r[0],a=o[1]-r[1],s=Math.sqrt(Math.pow(i,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===n?[i/s,a/s]:[-a/s,i/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],s),extendPrototype([p],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,n,r,o){var i=c(t,e,n,r,o);return i.propertyIndex=e.ix,i.lock=!1,3===n?expressionHelpers.searchExpressions(t,e.pt,i):4===n&&expressionHelpers.searchExpressions(t,e.ks,i),i.k&&t.addDynamicProperty(i),i}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var n=this.calculateExpression(e);if(t.t!==n){var r={};return this.copyData(r,t),r.t=n.toString(),r.__complete=!1,r}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var n,r,o=createNS("feMerge");for(o.setAttribute("result",t),r=0;r<e.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",e[r]),o.appendChild(n),o.appendChild(n);return o}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,n,r,o){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=i,i.setAttribute("result",r+"_tint_1"),t.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r+"_tint_2"),t.appendChild(i),this.matrixFilter=i;var a=this.createMergeNode(r,[o,r+"_tint_1",r+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,n,r){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r),t.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(t,e,n){this.initialized=!1,this.filterManager=e,this.elem=n,this.paths=[]}function SVGTritoneFilter(t,e,n,r){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(o);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),this.matrixFilter=i;var a=createNS("feFuncR");a.setAttribute("type","table"),i.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),i.appendChild(l),this.feFuncB=l,t.appendChild(i)}function SVGProLevelsFilter(t,e,n,r){this.filterManager=e;var o=this.filterManager.effectElements,i=createNS("feComponentTransfer");(o[10].p.k||0!==o[10].p.v||o[11].p.k||1!==o[11].p.v||o[12].p.k||1!==o[12].p.v||o[13].p.k||0!==o[13].p.v||o[14].p.k||1!==o[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(o[17].p.k||0!==o[17].p.v||o[18].p.k||1!==o[18].p.v||o[19].p.k||1!==o[19].p.v||o[20].p.k||0!==o[20].p.v||o[21].p.k||1!==o[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(o[24].p.k||0!==o[24].p.v||o[25].p.k||1!==o[25].p.v||o[26].p.k||1!==o[26].p.v||o[27].p.k||0!==o[27].p.v||o[28].p.k||1!==o[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(o[31].p.k||0!==o[31].p.v||o[32].p.k||1!==o[32].p.v||o[33].p.k||1!==o[33].p.v||o[34].p.k||0!==o[34].p.v||o[35].p.k||1!==o[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i)),(o[3].p.k||0!==o[3].p.v||o[4].p.k||1!==o[4].p.v||o[5].p.k||1!==o[5].p.v||o[6].p.k||0!==o[6].p.v||o[7].p.k||1!==o[7].p.v)&&((i=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),t.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(t,e,n,r,o){var i=e.container.globalData.renderConfig.filterSize,a=e.data.fs||i;t.setAttribute("x",a.x||i.x),t.setAttribute("y",a.y||i.y),t.setAttribute("width",a.width||i.width),t.setAttribute("height",a.height||i.height),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var p=createNS("feFlood");p.setAttribute("flood-color","#00ff00"),p.setAttribute("flood-opacity","1"),p.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=p,t.appendChild(p);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(c);var d=this.createMergeNode(r,[r+"_drop_shadow_4",o]);t.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-e[0]+" 0 0 0 "+e[0]+" "+(n[1]-e[1])+" 0 0 0 "+e[1]+" "+(n[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,n,r,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);n<r;n+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:n});if(3===this.filterManager.effectElements[10].p.v){var i=createNS("mask"),a=createElementID();i.setAttribute("id",a),i.setAttribute("mask-type","alpha"),i.appendChild(e),this.elem.globalData.defs.appendChild(i);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");o[0];)s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=i,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var n,r,o=this.paths.length;for(e=0;e<o;e+=1)if(-1!==this.paths[e].m&&(n=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var i;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();i="0 0 0 "+l*a+" ";var p,c=l*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/d);for(p=0;p<u;p+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*l+" 0 0"}else i="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",i)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,o=r[0]+" "+n[0]+" "+e[0],i=r[1]+" "+n[1]+" "+e[1],a=r[2]+" "+n[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",i),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var n=createNS(t);return n.setAttribute("type","table"),e.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(t,e,n,r,o){for(var i,a,s=0,l=Math.min(t,e),p=Math.max(t,e),c=Array.call(null,{length:256}),d=0,u=o-r,h=e-t;s<=256;)a=(i=s/256)<=l?h<0?o:r:i>=p?h<0?r:o:r+u*Math.pow((i-t)/h,1/n),c[d]=a,d+=1,s+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,n=this.filterManager.effectElements;this.feFuncRComposed&&(t||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(e=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(e=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(e=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(e=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(e=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=n*Math.cos(r),i=n*Math.sin(r);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",i)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,n){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(t,e,n,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("result",r),t.appendChild(o),this.feGaussianBlur=o}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,n=_svgMatteSymbols.length;e<n;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var n=t.layerElement.parentNode;if(n){for(var r,o=n.children,i=0,a=o.length;i<a&&o[i]!==t.layerElement;)i+=1;i<=a-2&&(r=o[i+1]);var s=createNS("use");s.setAttribute("href","#"+e),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var o=t.globalData.defs;o.appendChild(r);var i=createNS("symbol");i.setAttribute("id",n),this.replaceInParent(e,n),i.appendChild(e.layerElement),o.appendChild(i);var a=createNS("use");a.setAttribute("href","#"+n),r.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,n=0,r=e.length;n<r;)e[n]&&e[n].data.ind===t&&this.setElementAsMask(this.elem,e[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:e,o=2==n?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+o);var i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,n=e[0].p.v,r=e[1].p.v,o=1===e[2].p.v,i=e[3].p.v,a=o?i:e[4].p.v,s=e[5].p.v,l=e[6].p.v,p=e[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*a,.01*i,1),this.matrix.rotate(-p*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}(lottie$1,lottie$1.exports)),lottie$1.exports}var index_umd=index_umd$1.exports,hasRequiredIndex_umd;function requireIndex_umd(){return hasRequiredIndex_umd||(hasRequiredIndex_umd=1,function(t,e,n){function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e),i=r(n);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t){if(Array.isArray(t))return t}function l(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,p=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){p=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw o}}return s}}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e){if(null==t)return{};var n,r,o=b(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function b(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function m(t,e){return s(t)||p(t,e)||v(t,e)||c()}function f(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function g(t){var e=f(t,"string");return"symbol"==typeof e?e:e+""}function v(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}var y=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],x=function(t,e){var r=t.animationData,a=t.loop,s=t.autoplay,l=t.initialSegment,p=t.onComplete,c=t.onLoopComplete,d=t.onEnterFrame,b=t.onSegmentStart,f=t.onConfigReady,g=t.onDataReady,v=t.onDataFailed,x=t.onLoadedImages,w=t.onDOMLoaded,k=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var _=h(t,y),S=m(n.useState(!1),2),C=S[0],E=S[1],P=n.useRef(),A=n.useRef(null),T=function(){var t;null===(t=P.current)||void 0===t||t.play()},D=function(){var t;null===(t=P.current)||void 0===t||t.stop()},I=function(){var t;null===(t=P.current)||void 0===t||t.pause()},z=function(t){var e;null===(e=P.current)||void 0===e||e.setSpeed(t)},M=function(t,e){var n;null===(n=P.current)||void 0===n||n.goToAndPlay(t,e)},j=function(t,e){var n;null===(n=P.current)||void 0===n||n.goToAndStop(t,e)},q=function(t){var e;null===(e=P.current)||void 0===e||e.setDirection(t)},F=function(t,e){var n;null===(n=P.current)||void 0===n||n.playSegments(t,e)},R=function(t){var e;null===(e=P.current)||void 0===e||e.setSubframe(t)},O=function(t){var e;return null===(e=P.current)||void 0===e?void 0:e.getDuration(t)},B=function(){var t;null===(t=P.current)||void 0===t||t.destroy(),P.current=void 0},L=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(A.current){null===(e=P.current)||void 0===e||e.destroy();var r=u(u(u({},t),n),{},{container:A.current});return P.current=o.default.loadAnimation(r),E(!!P.current),function(){var t;null===(t=P.current)||void 0===t||t.destroy(),P.current=void 0}}};return n.useEffect(function(){var t=L();return function(){return null==t?void 0:t()}},[r,a]),n.useEffect(function(){P.current&&(P.current.autoplay=!!s)},[s]),n.useEffect(function(){P.current&&(l?Array.isArray(l)&&l.length&&((P.current.currentRawFrame<l[0]||P.current.currentRawFrame>l[1])&&(P.current.currentRawFrame=l[0]),P.current.setSegment(l[0],l[1])):P.current.resetSegments(!0))},[l]),n.useEffect(function(){var t=[{name:"complete",handler:p},{name:"loopComplete",handler:c},{name:"enterFrame",handler:d},{name:"segmentStart",handler:b},{name:"config_ready",handler:f},{name:"data_ready",handler:g},{name:"data_failed",handler:v},{name:"loaded_images",handler:x},{name:"DOMLoaded",handler:w},{name:"destroy",handler:k}].filter(function(t){return null!=t.handler});if(t.length){var e=t.map(function(t){var e;return null===(e=P.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=P.current)||void 0===e||e.removeEventListener(t.name,t.handler)}});return function(){e.forEach(function(t){return t()})}}},[p,c,d,b,f,g,v,x,w,k]),{View:i.default.createElement("div",u({style:e,ref:A},_)),play:T,stop:D,pause:I,setSpeed:z,goToAndStop:j,goToAndPlay:M,setDirection:q,playSegments:F,setSubframe:R,getDuration:O,destroy:B,animationContainerRef:A,animationLoaded:C,animationItem:P.current}};function w(t){var e=t.getBoundingClientRect(),n=e.top,r=e.height;return(window.innerHeight-n)/(window.innerHeight+r)}function k(t,e,n){var r=t.getBoundingClientRect(),o=r.top;return{x:(e-r.left)/r.width,y:(n-o)/r.height}}var _=function(t){var e=t.wrapperRef,r=t.animationItem,o=t.mode,i=t.actions;n.useEffect(function(){var t=e.current;if(t&&r&&i.length){r.stop();var n=function(){var e=null,n=function(){var n=w(t),o=i.find(function(t){var e=t.visibility;return e&&n>=e[0]&&n<=e[1]});if(o){if("seek"===o.type&&o.visibility&&2===o.frames.length){var a=o.frames[0]+Math.ceil((n-o.visibility[0])/(o.visibility[1]-o.visibility[0])*o.frames[1]);
|
|
55
55
|
//! goToAndStop must be relative to the start of the current segment
|
|
56
|
-
r.goToAndStop(a-r.firstFrame-1,!0)}"loop"===o.type&&(null===e||e!==o.frames||r.isPaused)&&(r.playSegments(o.frames,!0),e=o.frames),"play"===o.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===o.type&&r.goToAndStop(o.frames[0]-r.firstFrame-1,!0)}};return document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)}},a=function(){var e=function(e,n){var o=e,a=n;if(-1!==o&&-1!==a){var s=k(t,o,a);o=s.x,a=s.y}var l=i.find(function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?o>=e.x[0]&&o<=e.x[1]&&a>=e.y[0]&&a<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&o===e.x&&a===e.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var p=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((p+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},n=function(t){e(t.clientX,t.clientY)},o=function(){e(-1,-1)};return t.addEventListener("mousemove",n),t.addEventListener("mouseout",o),function(){t.removeEventListener("mousemove",n),t.removeEventListener("mouseout",o)}};switch(o){case"scroll":return n();case"cursor":return a()}}},[o,r])},S=function(t){var e=t.actions,n=t.mode,r=t.lottieObj,o=r.animationItem,i=r.View,a=r.animationContainerRef;return _({actions:e,animationItem:o,mode:n,wrapperRef:a}),i},C=["style","interactivity"],E=function(t){var e,r,o,i=t.style,a=t.interactivity,s=h(t,C),l=x(s,i),p=l.View,c=l.play,d=l.stop,u=l.pause,b=l.setSpeed,m=l.goToAndStop,f=l.goToAndPlay,g=l.setDirection,v=l.playSegments,y=l.setSubframe,w=l.getDuration,k=l.destroy,_=l.animationContainerRef,E=l.animationLoaded,P=l.animationItem;return n.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:c,stop:d,pause:u,setSpeed:b,goToAndPlay:f,goToAndStop:m,setDirection:g,playSegments:v,setSubframe:y,getDuration:w,destroy:k,animationContainerRef:_,animationLoaded:E,animationItem:P})},[null===(e=t.lottieRef)||void 0===e?void 0:e.current]),S({lottieObj:{View:p,play:c,stop:d,pause:u,setSpeed:b,goToAndStop:m,goToAndPlay:f,setDirection:g,playSegments:v,setSubframe:y,getDuration:w,destroy:k,animationContainerRef:_,animationLoaded:E,animationItem:P},actions:null!==(r=null==a?void 0:a.actions)&&void 0!==r?r:[],mode:null!==(o=null==a?void 0:a.mode)&&void 0!==o?o:"scroll"})};Object.defineProperty(t,"LottiePlayer",{enumerable:!0,get:function(){return o.default}}),t.default=E,t.useLottie=x,t.useLottieInteractivity=S,Object.defineProperty(t,"__esModule",{value:!0})}(index_umd$1.exports,requireLottie(),React__default)),index_umd$1.exports}var index_umdExports=requireIndex_umd(),Lottie=getDefaultExportFromCjs(index_umdExports),css_248z$b=".bee-error-component {\n align-items: center;\n}\n@media screen and (max-width: 1200px) {\n .bee-error-component {\n flex-direction: column-reverse;\n align-content: center;\n }\n .bee-error-component .bee-error-component__media {\n width: 100%;\n }\n .bee-error-component .bee-error-component__container {\n width: 80% !important;\n }\n}\n@media screen and (max-width: 680px) {\n .bee-error-component .bee-error-component__media {\n display: none;\n }\n}\n.bee-error-component .bee-error-component__container {\n max-width: 650px;\n min-width: 400px;\n width: 40%;\n}\n.bee-error-component .bee-error-component__media {\n width: 45%;\n}\n.bee-error-component .bee-error-component__media > div {\n width: 35rem !important;\n height: 35rem !important;\n}\n.bee-error-component .bee-error-component__media > div svg {\n opacity: 0.5;\n}\n.bee-error-component .bee-error-component__media > div svg > g g:first-of-type path {\n fill: var(--secondary-dark-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g:first-of-type path:first-of-type {\n fill: var(--secondary-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g:first-of-type path:last-of-type {\n fill: var(--primary-light-active-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g path {\n fill: var(--secondary-dark-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g path:first-of-type {\n fill: var(--secondary-color-50);\n stroke: var(--secondary-dark-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g path:last-of-type {\n fill: var(--primary-light-active-color);\n}\n.bee-error-component .bee-error-component__media-placeholder {\n width: 35rem;\n height: 35rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--surface-400);\n font-size: 8rem;\n}";function BeeErrorComponent({headline:t,content:e,btnText:n,animationData:r,onClick:o}){return jsxs("div",{className:"bee-error-component flex justify-content-center",children:[jsx("div",{className:"bee-error-component__media",children:r?jsx(Lottie,{animationData:r,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):jsx("div",{className:"bee-error-component__media-placeholder","aria-hidden":!0,children:jsx("i",{className:"pi pi-exclamation-triangle"})})}),jsxs("div",{className:"bee-error-component__container",children:[jsx("div",{children:t}),jsx("div",{children:e}),jsx("div",{className:"flex justify-content-end mt-4",children:jsx(BeeMixButton,{label:n,iconClass:"pi pi-arrow-left",iconPos:"left",type:"secondary",onClick:function(t){null==o||o()}})})]})]})}styleInject(css_248z$b);var css_248z$a=".bee-error-404-page {\n text-align: center;\n}\n.bee-error-404-page .bee-error-404-page__content .bee-headline {\n margin-top: 3rem;\n}\n.bee-error-404-page .bee-error-404-page__animation {\n width: 40vw;\n min-height: 180px;\n margin: 2rem auto 4rem;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.bee-error-404-page .bee-error-404-page__animation .pi {\n font-size: 4rem;\n color: var(--primary-color-50);\n}\n.bee-error-404-page .bee-error-404-page__action .p-button {\n margin: 0 2em;\n color: var(--secondary-dark-color);\n}";function BeeError404Page({className:t,headline:e="Die Seite konnte leider nicht gefunden werden",buttonLabel:n="Zurück zur Startseite",buttonIconClass:r="icon icon-left-arrow",animationData:o,onBack:i}){const a=useNavigate();return jsxs("div",{className:"bee-error-404-page page"+(t?" "+t:""),children:[jsxs("div",{className:"bee-error-404-page__content",children:[jsx(BeeContentHeadline,{value:e,headlineType:"h1",type:"primary"}),jsx("div",{className:"bee-error-404-page__animation",children:o?jsx(Lottie,{animationData:o,loop:!0,autoplay:!0}):jsx("i",{className:"pi pi-exclamation-circle","aria-hidden":!0})})]}),jsx("div",{className:"bee-error-404-page__action flex justify-content-start",children:jsx(BeeMixButton,{label:n,iconClass:r,iconPos:"left",disabled:!1,type:"lightPrimary",isLoading:!1,onClick:function(){i?i():a("/")}})})]})}styleInject(css_248z$a);var css_248z$9=".bee-image-prev.p-card .p-card-body {\n padding: 0px;\n overflow: hidden;\n}\n\n.bee-image-prev {\n overflow: hidden;\n}\n\n.bee-image-prev.p-card .p-card-content {\n max-width: 100%;\n padding: 0px;\n}\n\n/* Cardview */\n.bee-image-card.p-card {\n box-shadow: rgba(50, 50, 93, 0.25) 0px 8px 27px 3px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n border-radius: 4px;\n padding-bottom: 10px;\n margin: 0px;\n position: relative;\n}\n\n.bee-image-card__headline {\n padding: 1em 1.25rem 0.5em 1.25rem;\n background-color: var(--secondary-dark-color);\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n}\n.bee-image-card__headline h2 {\n color: var(--primary-color);\n font-weight: 500;\n}\n\n.bee-image-card__headline div {\n font-size: 0.7em;\n color: var(--primary-color-text);\n font-weight: 800;\n line-height: 1.1em;\n height: 1.5em;\n width: calc(100% - 40px);\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n display: block;\n word-break: break-all;\n}\n\n.bee-image-card__headline h2 {\n font-size: 1em;\n line-height: 1.2em;\n height: 2.4em;\n margin: 0em;\n margin-bottom: 0.4em;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n width: calc(100% - 40px);\n padding: 0rem;\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n -ms-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n\n.bee-image-card__content-text {\n width: 100%;\n font-size: 0.9em;\n padding: 0.5rem 1.25rem 0.5rem 1.25rem;\n}\n\n.bee-image-card__img {\n position: relative;\n}\n\n.bee-image-card__content .bee-img {\n height: 180px;\n overflow: hidden;\n}\n.bee-image-card__content .bee-img img {\n width: 100%;\n height: 100%;\n overflow: hidden;\n object-fit: cover;\n object-position: 50% 50%;\n}\n.bee-image-card__content .p-skeleton {\n overflow: hidden;\n padding-bottom: 10px;\n width: inherit !important;\n height: inherit !important;\n border-radius: 0px;\n}\n\n.bee-image-card__info {\n position: absolute;\n right: 0px;\n margin-top: 1.5em;\n margin-right: 1.25em;\n z-index: 1;\n}\n.bee-image-card__info button.p-button {\n height: 1.75rem !important;\n width: 1.85rem;\n border: 1px solid !important;\n background: var(--secondary-dark-color);\n}\n.bee-image-card__info button.p-button:hover {\n background-color: var(--secondary-color-68) !important;\n}\n.bee-image-card__info .p-button-icon {\n font-size: 1rem;\n}\n\n/* Hover deactivated */\n.bee-image-card.p-card.bee-image-prev-noHover:active {\n transform: scale(0.98) translateZ(0);\n -ms-transform: scale(0.98) translateZ(0);\n -webkit-transform: scale(0.98) translateZ(0);\n filter: brightness(95%);\n transition: all 0.05s ease;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n/* Hover activated */\n.bee-image-card.p-card.bee-image-prev-hover:hover {\n transform: scale(1.02) translateZ(0);\n -ms-transform: scale(1.02) translateZ(0);\n -webkit-transform: scale(1.02) translateZ(0);\n transition: all 0.07s ease;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n.bee-image-card.p-card.bee-image-prev-hover:active {\n filter: brightness(0.9);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n\n.bee-image-card-disabled,\n.bee-image-card-disabled:hover,\n.bee-image-card-disabled:active,\n.bee-image-card-disabled:focus {\n filter: grayscale(100%) !important;\n opacity: 0.5;\n}\n\n.bee-image-card__banner {\n position: absolute;\n top: 9rem;\n left: -10%;\n transform: rotate(-10deg);\n background-color: var(--error-color);\n color: white;\n padding: 0.5rem 10%;\n font-weight: bold;\n z-index: 10;\n box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);\n min-width: 120%;\n text-align: center;\n}\n\n.bee-image-card__info--disabled {\n filter: grayscale(100%) !important;\n opacity: 0.5;\n}";function BeeImageCard({id:t,className:e,preheadline:n,headline:r,subheadline:o,showIcon:i,iconClassName:a,image:s,content:l,activateHover:p=!1,disabled:c,readOnly:d,banner:u,onClick:h,onClickIcon:b}){const m=null!=t?t:libExports.useId(1,"bee-image-card-")[0],f=c?" bee-image-card-disabled ":"";return jsxs(Card,{id:m,className:"bee-image-prev bee-image-card "+(p?"bee-image-prev-hover":"bee-image-prev-noHover")+(d?" bee-image-card-readOnly ":"")+(e?" "+e:""),children:[u&&jsx("div",{className:"bee-image-card__banner",children:u}),i?jsx("div",{className:"bee-image-card__info "+(c?"bee-image-card__info--disabled":""),children:jsx(BeeIconButton,{iconClass:a||"",rounded:!0,disabled:!1,isLoading:!1,type:"secondary",onClick:t=>function(t){b&&b(t)}(t)})}):null,jsxs("div",{className:f,onClick:t=>function(t){h&&!d&&h(t)}(t),children:[jsx("div",{className:"bee-image-card__headline",children:jsxs(Fragment,{children:[jsx("div",n?{children:n}:{}),jsx("h2",{children:r}),jsx("div",o?{children:o}:{})]})}),jsxs("div",{className:"bee-image-card__content",children:[jsx("div",{className:"bee-image-card__img",children:s&&s.url?jsx(BeeImage,{url:s.url,alt:s.alt,title:s.title,copyright:s.copyright,secured:!!s.secured&&s.secured,showPlaceholder:!!s.showPlaceholder&&s.showPlaceholder},s.key):(null==s?void 0:s.id)?jsx(BeeImage,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!0},""):jsx(BeeImage,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!1},"")}),l?jsx("div",{className:"bee-image-card__content-text",children:l}):null]})]})]})}styleInject(css_248z$9);var css_248z$8=".bee-doc-table .p-datatable-wrapper {\n border-radius: 4px;\n overflow: hidden;\n}\n\n.bee-doc-table .p-datatable-thead th,\n.bee-doc-table .p-datatable-tbody td,\n.bee-doc-table .p-datatable-tbody td p {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n\n/* padding for first and last col */\n.bee-doc-table table th:first-child,\n.bee-doc-table table td:first-child {\n padding-left: 1rem !important;\n}\n\n.bee-doc-table table th:last-child,\n.bee-doc-table table td:last-child {\n padding-right: 1rem !important;\n}\n\n/* padding for header and body */\n.bee-doc-table .p-datatable-thead th {\n padding-top: 0.75rem !important;\n padding-bottom: 0.75rem !important;\n}\n\n.bee-doc-table .p-datatable-tbody td {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n}\n\n.bee-doc-table .p-datatable-emptymessage td {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n/* cols */\n.bee-doc-table-col-action {\n padding: 0 1rem !important;\n}\n\n.bee-doc-table-col-action-oneBtn {\n width: calc(2.25rem + 3px + 2rem);\n}\n\n.bee-doc-table-col-action-twoBtn {\n width: calc(4.5rem + 3px + 2rem);\n}\n\n.bee-doc-table-col-action button {\n margin-right: 3px;\n}\n\n.bee-doc-table-col-date {\n width: 6em;\n}\n\n.bee-doc-table-selectAll-col {\n width: 4em;\n}\n.bee-doc-table-selectAll-col .bee-checkbox-input {\n border: none;\n padding: 0px 0.5em;\n}\n.bee-doc-table-selectAll-col .bee-doc-table-selectAll-empty {\n display: inline-block;\n width: 0;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.bee-doc-table-col-title {\n width: 100%;\n}\n\n.bee-doc-table-col-name {\n width: 100%;\n}\n\n.bee-doc-table-col-size {\n width: 7em;\n padding: 0 1em !important;\n}\n\n.bee-doc-table-col-type {\n width: 5.5em;\n}\n\n.button-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 1rem; /* Optional: Add some spacing if needed */\n}\n\n.bee-doc-table-downloadAll {\n order: 2; /* Optional: Ensure the download button is on the right */\n}\n\n.upload-button {\n order: 1; /* Optional: Ensure the upload button is on the left */\n}\n\n/* dark */\n.bee-doc-table .bee-doc-table-downloadAll {\n padding: 0.5rem 1.15rem;\n}\n\n.bee-doc-table.bee-doc-table-dark table .p-datatable-thead tr th {\n background: var(--primary-color);\n color: var(--primary-color-text);\n}\n\n/* light */\n.bee-doc-table.bee-doc-table-light table .p-datatable-thead tr th {\n font-size: 1.1em;\n color: var(--primary-color);\n}\n\n.bee-doc-table.bee-doc-table-light table .p-datatable-tbody tr:nth-child(odd) {\n background-color: var(--primary-color-4);\n}\n\n/* responsive */\n@media (max-width: 450px) {\n /* use headername as new set title in each row */\n .bee-doc-table table .p-column-title {\n font-weight: bold;\n }\n /* change padding */\n .bee-doc-table table th:first-child,\n .bee-doc-table table td:first-child {\n padding-left: 0.4rem !important;\n }\n .bee-doc-table table > tbody > tr:first-child td:first-child {\n padding-top: 10px !important;\n }\n .bee-doc-table table > tbody > tr td p {\n margin-top: 0.75em !important;\n margin-bottom: 0.75em !important;\n }\n .bee-doc-table table tbody > tr > td:last-child {\n padding-left: 0.4rem !important;\n padding-right: 0.4rem !important;\n padding-bottom: 10px !important;\n }\n /* alternate row colors */\n .bee-doc-table table tbody tr:nth-child(odd) {\n background: var(--primary-color-4);\n }\n}";function BeeDocumentTable({id:t,className:e,data:n,type:r="light",uploadLabel:o,readOnly:i,disabled:a,showDescription:s,showDownload:l,showDelete:p,enableBulkDownload:c,isBulkDownloadLoading:d,onDownloadAll:u,onDownload:h,onDelete:b,onUpload:m}){const[f,g]=useState(window.innerWidth),[v,y]=useState([]),x=null!=t?t:libExports.useId(1,"bee-doc-table-")[0];useEffect(()=>{const t=()=>g(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),useEffect(()=>{if(!(null==n?void 0:n.length))return void y([]);const t=new Set(n.map(t=>t.id));y(e=>{const n=e.filter(e=>t.has(e));return n.length===e.length&&e.every((t,e)=>t===n[e])?e:n})},[n]);const w="bee-doc-table "+("dark"===r?"bee-doc-table-dark":"bee-doc-table-light")+(e?" "+e:""),k="bee-doc-table-col-action"+function(){const t=i?1:(l?1:0)+(p?1:0);return 1===t?" bee-doc-table-col-action-oneBtn":2===t?" bee-doc-table-col-action-twoBtn":""}(),_="bee-doc-table-col-title",S="bee-doc-table-col-name",C="bee-doc-table-col-date",E="bee-doc-table-col-size",P="bee-doc-table-col-type",A="Dateiname",T="Stand",D="Größe",I="Beschreibung",z="Dateityp",M="pi pi-download",j=Boolean(c&&l);useEffect(()=>{j||y([])},[j]);const q=Boolean((null==n?void 0:n.length)&&v.length===n.length),F=j?jsx("div",{onClick:t=>t.stopPropagation(),role:"presentation",children:jsx(BeeCheckbox,{label:"",value:q,disabled:Boolean(a),type:"primary",formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:t=>{const e=(t=>{var e,n;return null!==(n=null!==(e=null==t?void 0:t.checked)&&void 0!==e?e:null==t?void 0:t.value)&&void 0!==n&&n})(t);e&&(null==n?void 0:n.length)?y(n.map(t=>t.id)):y([])}})}):jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"});const R=(null!=n?n:[]).map(t=>Object.assign(Object.assign({},t),{_selected:v.includes(t.id)}));return jsxs("div",{id:x,className:w,children:[jsxs(DataTable,{value:R,dataKey:"id",className:"p-datatable-sm",emptyMessage:"Keine Dokumente vorhanden.",breakpoint:"450px",children:[j?jsx(Column,{className:"bee-doc-table-selectAll-col",headerClassName:"bee-doc-table-selectAll-col",body:function(t){var e;if(!t)return null;if(!j)return jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"});const n=null!==(e=t._selected)&&void 0!==e?e:v.includes(t.id);return jsx(BeeCheckbox,{label:"",value:n,type:"primary",disabled:Boolean(a),formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:e=>{e.checked?y(e=>[...e,t.id]):y(e=>e.filter(e=>e!==t.id))}})},header:F},"bee-doc-table-col-selection"):null,s?jsx(Column,{className:_,headerClassName:_,body:function(t){return t?jsx("p",{"data-headername":I,children:t.descr}):null},header:I},"bee-doc-table-col-description"):null,jsx(Column,{className:S,headerClassName:S,body:function(t){return t?jsx("p",{"data-headername":A,children:t.filename}):null},header:A},"bee-doc-table-col-filename"),jsx(Column,{className:C,headerClassName:C,body:function(t){if(!t)return null;const e=t.timestamp;return jsx("p",{"data-headername":T,children:e?e.toLocaleDateString("de-DE"):" "})},header:T},"bee-doc-table-col-date"),f>768?jsx(Column,{className:E,headerClassName:E,body:function(t){if(!t)return null;const e=t.size?fileSizeSI(t.size):"";return jsx("p",{"data-headername":D,children:e})},header:D},"bee-doc-table-col-size"):null,f>576?jsx(Column,{className:P,headerClassName:P,body:function(t){return t?jsx("p",{"data-headername":z,children:t.type}):null},header:z},"bee-doc-table-col-type"):null,p||l?jsx(Column,{className:k,headerClassName:k,body:function(t){if(!t)return null;const e=t.id;return jsxs("div",{"data-headername":"",children:[l?jsx(BeeIconButton,{iconClass:M,isLoading:!1,rounded:!1,disabled:!1,type:"secondary",onClick:()=>{return t=e,void(h&&h(t));var t}}):null,!i&&p?jsx(BeeIconButton,{iconClass:"pi pi-trash",isLoading:!1,rounded:!1,disabled:Boolean(i),type:"danger",onClick:()=>{return t=e,void(b&&b(t));var t}}):null]})},header:""},"bee-doc-table-col-action"):null]},`bee-doc-table-dt-${String(l)}-${String(j)}`),jsxs("div",{className:"button-container",children:[j?jsx("div",{className:"bee-doc-table-downloadAll",children:jsx(BeeMixButton,{label:"Auswahl herunterladen",iconClass:M,iconPos:"right",disabled:!(v&&v.length>0),type:"secondary",isLoading:d,onClick:()=>{u&&l&&u(v)}})}):null,jsx("div",{className:"upload-button",children:i?null:jsx(BeeMixButton,{iconPos:"left",iconClass:"pi pi-upload",label:null!=o?o:"Dokument hinzufügen",disabled:i,type:"secondary",isLoading:!1,onClick:()=>{m&&m()}})})]})]})}styleInject(css_248z$8);var css_248z$7=".chat-message {\n width: 100%;\n display: flex;\n}\n.chat-message.chat-message--otherUser, .chat-message.chat-message--system {\n align-self: flex-start;\n margin-right: auto;\n margin-left: 0;\n}\n.chat-message.chat-message--otherUser .chat-message__message-container-avatar, .chat-message.chat-message--system .chat-message__message-container-avatar {\n flex-direction: row-reverse;\n}\n.chat-message.chat-message--self {\n align-self: flex-end;\n margin-left: auto;\n margin-right: 0;\n justify-content: flex-end;\n}\n.chat-message .chat-message__message-container-avatar {\n display: flex;\n align-items: center;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container {\n position: relative;\n border-radius: 0.75em;\n padding: 5px;\n color: white;\n max-width: 100%;\n overflow: hidden;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding-left: 5px;\n padding-right: 5px;\n overflow: hidden;\n max-width: 100%;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info {\n display: flex;\n align-items: center;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info .chat-message__source-separator {\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info i {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info i::before {\n margin-left: 0;\n margin-right: 0;\n color: var(--surface-400);\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .bee-label {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--surface-400) !important;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_media-container {\n max-width: 90%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_media-container .p-button.p-component.bee-mix-btn-light-primary {\n max-width: 100%;\n margin-left: 0;\n justify-content: flex-start;\n background-color: transparent;\n color: var(--surface-a);\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_media-container .p-button.p-component.bee-mix-btn-light-primary .p-button-label {\n max-width: 90%;\n text-decoration: underline;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message {\n padding-left: 5px;\n padding-right: 5px;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .p-button.p-component {\n display: flex;\n justify-content: flex-end;\n margin-left: auto;\n padding: 0 5px 5px 0;\n background-color: transparent;\n}\n.chat-message .chat-message__message-container-avatar .bee-avatar {\n margin: 0.5rem;\n}\n.chat-message.chat-message--self .chat-message__message-container {\n background-color: var(--primary-color-76);\n}\n.chat-message.chat-message--otherUser .chat-message__message-container {\n background-color: var(--tertiary-dark-color);\n}\n.chat-message.chat-message--system .chat-message__message-container {\n background-color: var(--neutral-color);\n}",ChatMessageSourceEnum,ChatParticipantTypeEnum;function parseParticipantName(t){var e,n;if(!(null==t?void 0:t.trim()))return{firstName:"U",lastName:"N"};const r=t.trim().split(" ").filter(t=>t.length>0);return 0===r.length?{firstName:"U",lastName:"N"}:{firstName:null!==(e=r[0])&&void 0!==e?e:"U",lastName:null!==(n=r[r.length-1])&&void 0!==n?n:"N"}}function BeeChatMessage({maxWindow:t=!1,msg:e,participant:n,project:r,chatMsgSource:o,isCurrentUser:i=!1,documentIconClass:a="pi pi-file",trashIconClass:s="pi pi-trash",sourceAuditIconClass:l="pi pi-briefcase",sourceLcIconClass:p="pi pi-comments",onMsgDelete:c,onDownload:d}){const[u,h]=useState(!1),b=useMemo(()=>{var t;return null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"Unbekannter Benutzer"},[null==n?void 0:n.name]),m=useMemo(()=>null==n?void 0:n.type,[null==n?void 0:n.type]),{firstName:f,lastName:g}=useMemo(()=>parseParticipantName(b),[b]),v=useMemo(()=>m!==ChatParticipantTypeEnum.USER||i?m===ChatParticipantTypeEnum.USER&&i?"chat-message--self":m===ChatParticipantTypeEnum.SYSTEM?"chat-message--system":"chat-message--otherUser":"chat-message--otherUser",[m,i]),y="chat-message_headline-container align-items-center "+(r===ChatMessageSourceEnum.AUDIT?"pl-0":""),x=r===ChatMessageSourceEnum.AUDIT&&(o===ChatMessageSourceEnum.AUDIT||o===ChatMessageSourceEnum.LC),w=useMemo(()=>{if(!(null==e?void 0:e.message)||m!==ChatParticipantTypeEnum.SYSTEM)return null;try{const t=JSON.parse(e.message);return(null==t?void 0:t.payload)||e.message}catch(t){return console.error("Error parsing system message JSON:",t),e.message}},[null==e?void 0:e.message,m]);function k(){const t=new Date,n=(null==e?void 0:e.createdAt)?new Date(e.createdAt):void 0;if(!n||isNaN(n.getTime()))return!1;const r=t.getTime()-n.getTime();return Math.floor(r/6e4)<30}function _(){var n,r,o,i;if(!(null==e?void 0:e.mediaId))return null;const s=e.mediaId;return s&&"object"==typeof s?jsx("div",{className:"chat-message_media-container",children:(null==s?void 0:s.document)?jsxs(Fragment,{children:[jsx(BeeMixButton,{label:s.document.filename||"Unbekannte Datei",iconClass:a,type:"lightPrimary",iconPos:"left",onClick:null!=d?d:()=>{}}),t&&(null===(n=null==s?void 0:s.document)||void 0===n?void 0:n.fileSize)?jsx(BeeLabel,{value:`Größe: ${null===(r=null==s?void 0:s.document)||void 0===r?void 0:r.fileSize.toString()}kb`,size:"small",type:"neutral"}):null]}):(null==s?void 0:s.image)?jsxs(Fragment,{children:[jsx(BeeMixButton,{label:s.image.filename||"Unbekanntes Bild",iconClass:a,type:"lightPrimary",iconPos:"left",onClick:null!=d?d:()=>{}}),t&&(null===(o=null==s?void 0:s.image)||void 0===o?void 0:o.fileSize)?jsx(BeeLabel,{value:`Größe: ${null===(i=null==s?void 0:s.image)||void 0===i?void 0:i.fileSize.toString()}kb`,size:"small",type:"neutral"}):null]}):null}):(console.warn("Invalid media object:",s),null)}function S(){if(!(null==e?void 0:e.createdAt))return null;const t=new Date(e.createdAt),n=t.getDate().toString().padStart(2,"0"),r=(t.getMonth()+1).toString().padStart(2,"0"),o=t.getFullYear().toString().slice(-2),i=t.getHours().toString().padStart(2,"0"),a=t.getMinutes().toString().padStart(2,"0");return jsx(Fragment,{children:jsx(BeeLabel,{value:`${n}.${r}.${o} - ${i}:${a}`,size:"small",type:"neutral"})})}return jsx("div",{className:"chat-message "+v,children:jsxs("div",{className:"chat-message__message-container-avatar",children:[(null==e?void 0:e.deletedAt)?null:e?jsxs("div",{className:"chat-message__message-container",children:[jsxs("div",{className:y,children:[jsxs("div",{className:"chat-message__user-info",children:[x?o===ChatMessageSourceEnum.AUDIT?jsx("i",{className:l}):o===ChatMessageSourceEnum.LC?jsx("i",{className:p}):null:null,x?jsx("div",{className:"chat-message__source-separator",children:jsx(BeeLabel,{value:"||",size:"small",type:"neutral"})}):null,jsx(BeeLabel,{value:b,size:"small",type:"neutral"})]}),S()]}),(null==e?void 0:e.mediaId)?_():jsx("div",{className:"chat-message",children:m===ChatParticipantTypeEnum.SYSTEM?w:(null==e?void 0:e.message)||"Keine Nachricht"}),k()&&i?jsx(BeeIconButton,{iconClass:s,type:"lightPrimary",rounded:!1,onClick:()=>{h(!0)}}):null]}):null,jsx(Fragment,{children:jsx(BeeAvatar,{showPlaceholder:!0,placeholderFirstname:f,placeholderLastname:g,showDelete:!1,disabled:!1,size:"xSmall",type:"primary"})}),jsx(BeeDeletionDialog,{visible:u,message:"Wollen Sie diese Nachricht wirklich löschen?",header:"Nachricht löschen",type:"primary",acceptLabel:"Löschen",rejectLabel:"Abbrechen",onAccept:()=>{c&&c(),h(!1)},onReject:()=>{h(!1)},onHide:()=>h(!1)})]})})}styleInject(css_248z$7),function(t){t.LC="LC",t.AUDIT="AUDIT"}(ChatMessageSourceEnum||(ChatMessageSourceEnum={})),function(t){t.ADMIN="ADMIN",t.USER="USER",t.SYSTEM="SYSTEM"}(ChatParticipantTypeEnum||(ChatParticipantTypeEnum={}));var css_248z$6=".serverStatus-input {\n width: 100%;\n display: block !important;\n}\n\n.p-input-icon-right.serverStatus-input-icon-right {\n position: relative;\n width: 100% !important;\n}\n.p-input-icon-right.serverStatus-input-icon-right .bee-dropdown + .icon,\n.p-input-icon-right.serverStatus-input-icon-right .bee-date-input-container + .icon,\n.p-input-icon-right.serverStatus-input-icon-right .bee-date-input-container + i,\n.p-input-icon-right.serverStatus-input-icon-right .bee-dropdown + .p-progress-spinner,\n.p-input-icon-right.serverStatus-input-icon-right .bee-date-input-container + .p-progress-spinner {\n right: 2em !important;\n}\n.p-input-icon-right.serverStatus-input-icon-right .bee-num-select-container + .icon,\n.p-input-icon-right.serverStatus-input-icon-right .bee-num-select-container + .p-progress-spinner {\n right: 2.5em !important;\n}\n.p-input-icon-right.serverStatus-input-icon-right .bee-dropdown .p-dropdown-label {\n padding-right: 1.5em;\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--success,\n.p-input-icon-right.serverStatus-input-icon-right .icon--error,\n.p-input-icon-right.serverStatus-input-icon-right .icon--externalChange,\n.p-input-icon-right.serverStatus-input-icon-right .icon--loading {\n position: absolute;\n right: 0.5em !important;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--success {\n color: var(--valid-color);\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--error {\n color: var(--error-dark-color);\n top: 1.5rem;\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--externalChange {\n color: var(--warning-color);\n}\n.p-input-icon-right.serverStatus-input-icon-right .p-progress-spinner {\n z-index: 10;\n top: 0.55em;\n right: 0.6em !important;\n font-size: 1.25em;\n position: absolute;\n height: 1.2em;\n width: 1.2em;\n filter: grayscale(100%);\n opacity: 0.9;\n}\n.p-input-icon-right.serverStatus-input-icon-right .p-filled {\n padding-right: 2.5rem;\n}\n\n.server-status-success .p-slider {\n box-shadow: none !important;\n}\n.server-status-success .p-chip {\n border-radius: 16px !important;\n}\n\n.server-status-error .p-slider {\n box-shadow: none !important;\n}\n.server-status-error .p-chip {\n border-radius: 16px !important;\n}\n\n.server-status-loading .p-slider {\n box-shadow: none !important;\n}\n.server-status-loading .p-chip {\n border-radius: 16px !important;\n}",ServerStatus;styleInject(css_248z$6),function(t){t.SERVER_STATUS_LOADING="loading",t.SERVER_STATUS_ERROR="error",t.SERVER_STATUS_SUCCESS="success",t.SERVER_STATUS_EXTERNAL_UPDATE="externalUpdate"}(ServerStatus||(ServerStatus={}));const DEFAULT_SUCCESS_TOOLTIP="Änderung gespeichert",DEFAULT_ERROR_TOOLTIP="Die Änderung konnte nicht gespeichert werden",DEFAULT_EXTERNAL_CHANGE_TOOLTIP="Eine andere Person hat dieses Feld soeben bearbeitet";function BeeServerStatusInput({status:t,successIcon:e="pi pi-check",loadingIcon:n,errorIcon:r="pi pi-times",externalChangeIcon:o="pi pi-user",hideIcons:i,children:a,onResetStatus:s,successTooltip:l=DEFAULT_SUCCESS_TOOLTIP,errorTooltip:p=DEFAULT_ERROR_TOOLTIP,externalChangeTooltip:c=DEFAULT_EXTERNAL_CHANGE_TOOLTIP}){const d=t===ServerStatus.SERVER_STATUS_LOADING?"server-status-loading":t===ServerStatus.SERVER_STATUS_ERROR?"server-status-error":t===ServerStatus.SERVER_STATUS_SUCCESS?"server-status-success":t===ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?"server-status-externalChange":"";return useEffect(()=>{if(t===ServerStatus.SERVER_STATUS_SUCCESS||t===ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE){const t=setTimeout(()=>{null==s||s()},5e3);return()=>clearTimeout(t)}},[t,s]),jsxs("div",{className:t?`serverStatus-input ${d} p-input-icon-right serverStatus-input-icon-right`:"serverStatus-input",children:[jsx(Fragment,{children:a}),t&&!i?jsx(Fragment,{children:t===ServerStatus.SERVER_STATUS_SUCCESS?jsxs(Fragment,{children:[jsx(Tooltip$1,{target:".icon--success",content:l}),jsx("i",{className:e+" icon--success"})]}):t===ServerStatus.SERVER_STATUS_LOADING?jsx(Fragment,{children:n?jsx("i",{className:n+" icon--loading"}):jsx(BeeLoadingSpinner,{strokeWidth:"2",type:"primary"})}):t===ServerStatus.SERVER_STATUS_ERROR?jsxs(Fragment,{children:[jsx(Tooltip$1,{target:".icon--error",content:p}),jsx("i",{className:r+" icon--error"})]}):t===ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?jsxs(Fragment,{children:[jsx(Tooltip$1,{target:".icon--externalChange",content:c}),jsx("i",{className:o+" icon--externalChange"})]}):null}):null]})}var css_248z$5=".bee-changes-chip {\n background-color: var(--primary-color) !important;\n padding: 0.25em 0.25em;\n border-radius: 0.75em;\n box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;\n display: inline-flex;\n align-items: center;\n}\n.bee-changes-chip__icon-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 4rem;\n gap: 0.1rem;\n}\n.bee-changes-chip i {\n color: white;\n width: 1em;\n height: 1em;\n margin-right: 0.15rem;\n}\n.bee-changes-chip .icon-comment-filled:before {\n font-size: 1.2em;\n}\n.bee-changes-chip .p-badge {\n font-size: 0.75em;\n font-style: normal;\n background-color: white;\n color: var(--primary-color);\n}\n.bee-changes-chip--secondary {\n background-color: var(--secondary-color) !important;\n}\n.bee-changes-chip--secondary i {\n color: var(--primary-color);\n}\n.bee-changes-chip--secondary .p-badge {\n color: var(--secondary-color);\n background-color: var(--primary-color);\n}\n.bee-changes-chip--light {\n background-color: unset !important;\n}\n.bee-changes-chip--light i {\n color: var(--primary-color);\n}\n.bee-changes-chip--light .p-badge {\n color: var(--primary-color-text);\n background-color: var(--primary-color);\n}";function BeeChangesChip({className:t,values:e,type:n="primary"}){const r=`bee-changes-chip ${`bee-changes-chip--${n}`} ${t?" "+t:""}`;return 0===e.length?null:jsx("div",{className:r,children:function(t){return t.map((t,e)=>{const n=t.value<10?t.value.toString():"9+";return jsxs("div",{className:"bee-changes-chip__icon-wrapper",children:[jsx("i",{className:t.icon}),jsx("div",{}),jsx(Badge,{value:n,severity:"info"})]},e)})}(e)})}styleInject(css_248z$5);var css_248z$4=".bee-filter-dropdown-container {\n align-items: center;\n position: relative;\n}\n.bee-filter-dropdown-container .cancel {\n position: absolute;\n right: 1.75rem;\n}\n\n.bee-filter-dropdown-container .p-dropdown {\n width: 100%;\n}\n\n.bee-filter-dropdown-container label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-right: 6px;\n}\n\n.bee-filter-dropdown-label-required {\n padding-left: 3px;\n padding-right: 4px;\n}\n\n.bee-filter-dropdown-label-required-star {\n position: absolute;\n right: 0px;\n padding-left: inherit;\n padding-right: inherit;\n max-width: 100%;\n}\n\n.bee-filter-dropdown-statusLabel {\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-filter-dropdown-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-filter-dropdown-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-filter-dropdown-readOnly {\n border-color: transparent !important;\n opacity: 1 !important;\n}\n\n.bee-filter-dropdown-readOnly .p-dropdown-trigger-icon {\n display: none;\n}";function BeeFilterDropDown({id:t,className:e,label:n,value:r,options:o,optionLabel:i,optionValue:a,disabled:s,dropdownIcon:l,deleteIcon:p,statusLabel:c,formstate:d="neutral",readOnly:u,onChange:h}){const b=null!=t?t:libExports.useId(1,"bee-filter-dropdown-")[0],m=b+"input",[f,g]=useState(r);let v="";u&&(v=" bee-filter-dropdown-readOnly",s=!0);const y=("valid"===d?"bee-filter-dropdown-valid":"error"===d?"bee-filter-dropdown-error":"bee-filter-dropdown-neutral")+v,x="p-float-label bee-filter-dropdown-container flex "+(e?" "+e:""),w=null!=p?p:"pi pi-times-circle";useEffect(()=>{g(r)},[r]);return jsxs("div",{className:"bee-filter-dropdown",children:[u&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:b,label:n})}):jsxs("span",{id:b,className:x,children:[jsx(Dropdown,{id:m,value:f,options:o,optionLabel:i,optionValue:a,disabled:null!=s&&s,className:y,dropdownIcon:null!=l?l:"",emptyMessage:"Keine Einträge gefunden",onChange:t=>{return e=t,void(!s&&h&&h(e));var e}}),f&&""!==f?jsx("div",{className:"cancel",children:jsx(BeeIconButton,{iconClass:w,rounded:!0,disabled:s||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{g("")}})}):null,n?jsx("label",{htmlFor:m,children:n}):null]}),"none"!=d&&c?(()=>{const t="medium";return jsx("div",{className:"bee-filter-dropdown-statusLabel",children:"error"===d&&null!=c?jsx(BeeLabel,{size:t,value:String(c),type:"error"}):"valid"===d&&null!=c?jsx(BeeLabel,{size:t,value:String(c),type:"valid"}):"neutral"===d&&null!=c?jsx(BeeLabel,{size:t,value:String(c),type:"neutral"}):null})})():null]})}styleInject(css_248z$4);var css_248z$3=".bee-filter-ts-container {\n position: relative;\n width: 100%;\n}\n.bee-filter-ts-container .p-treeselect {\n width: 100%;\n}\n.bee-filter-ts-container .p-treeselect-label {\n line-height: 1;\n}\n.bee-filter-ts-container .p-treeselect-label-container {\n align-items: center;\n}\n.bee-filter-ts-container .bee-filter-ts-filter__deleteBtn {\n position: absolute;\n right: 1.75rem;\n top: 0.24rem;\n width: auto;\n z-index: 1;\n}\n.bee-filter-ts-container .bee-filter-ts-filter--hidden {\n visibility: hidden;\n}\n.bee-filter-ts-container .p-treeselect-token {\n padding: 0.2rem 0.75rem !important;\n}\n.bee-filter-ts-container .p-treenode-label {\n color: var(--text-color);\n}\n\n.bee-filter-ts-invisible-header .p-treeselect-header {\n display: none;\n}\n.bee-filter-ts-invisible-header .p-treeselect-header .p-treeselect-close {\n display: none;\n}\n\n.bee-filter-ts-panel .p-treeselect-items-wrapper .p-tree,\n.bee-filter-ts-panel .p-tree .p-tree-container .p-treenode,\n.bee-filter-ts-panel .p-tree .p-tree-container .p-treenode .p-treenode-content {\n padding-right: 0px;\n}\n\n.bee-filter-ts-panel .p-treeselect-items-wrapper .p-tree {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.bee-filter-ts-panel .p-tree .p-tree-container .p-treenode .p-treenode-content {\n border-radius: 0px;\n}\n\n.bee-filter-ts-container label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-right: 6px;\n}\n\n/* required */\n.bee-filter-ts-label-required {\n padding-left: 3px;\n padding-right: 4px;\n}\n\n.bee-filter-ts-label-required-star {\n position: absolute;\n right: 0px;\n padding-left: inherit;\n padding-right: inherit;\n max-width: 100%;\n}\n\n.bee-filter-ts-statusLabel {\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n/* readonly */\n.bee-filter-ts-readOnly {\n border-color: transparent !important;\n opacity: 1 !important;\n}\n\n.bee-filter-ts-readOnly .p-treeselect-trigger-icon {\n display: none;\n}\n\n/* formstate */\n.bee-filter-ts-valid.p-inputwrapper {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-filter-ts-error.p-inputwrapper {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n/* selectable */\n.bee-filter-ts-panel .p-treenode-content {\n color: var(--surface-500);\n}\n\n.bee-filter-ts-panel .p-treenode-content.p-treenode-selectable {\n color: var(--text-color);\n}\n\n.display-none {\n display: none;\n}";function BeeFilterTreeSelect({id:t,className:e,label:n,value:r,options:o,valueTemplate:i,display:a="comma",selectionMode:s="single",placeholder:l,filter:p,filterTemplate:c,filterValue:d,filterBy:u,filterPlaceholder:h,confirmBtnText:b,confirmBtnDisabled:m,confirmBtnTooltip:f,deleteIcon:g,disabled:v,readOnly:y,statusLabel:x,formstate:w="neutral",required:k,hideDelete:_,onSelectNodes:S,onChange:C,onHide:E}){const P=null!=t?t:libExports.useId(1,"bee-filter-ts-")[0],A=P+"input",[T,D]=useState(r);let I="";y&&(I=" bee-filter-ts-readOnly",v=!0);const z=("valid"===w?"bee-filter-ts-valid":"error"===w?"bee-filter-ts-error":"bee-filter-ts-neutral")+I,M=" p-float-label bee-filter-ts-container",j=p?"bee-filter-ts-panel":"bee-filter-ts-panel bee-filter-ts-invisible-header",q=g||"pi pi-times-circle";function F(){const t=document.querySelector("body");if(t){const e=new MouseEvent("click",{bubbles:!0,view:window});t.dispatchEvent(e)}}function R(){!v&&E&&E()}useEffect(()=>{D(r)},[r]);return jsxs(Fragment,{children:[y&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:P,label:n})}):jsxs("div",{id:P,className:e?e+M:M,children:[jsx("div",{className:!y&&r&&Object.keys(r).length>0?"bee-filter-ts-filter__deleteBtn":"bee-filter-ts-filter__deleteBtn bee-filter-ts-filter--hidden",children:!T||""===T||_?null:jsx("div",{className:"cancel",children:jsx(BeeIconButton,{iconClass:q,rounded:!0,disabled:v||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{D(""),!v&&S&&(S(void 0),F())}})})}),jsxs("span",{className:"p-float-label",children:[jsx(TreeSelect,{id:A,value:T,options:o,disabled:v||!1,className:z,valueTemplate:i,panelClassName:j,display:null!=a?a:"comma",selectionMode:s,placeholder:l,filter:p,filterTemplate:c,filterValue:d,filterBy:u,filterPlaceholder:h||"Suche",onChange:t=>{D(t.value),function(t){!v&&C&&C(t)}(t)},onHide:()=>{D(r),R()},panelFooterTemplate:()=>jsx("div",{className:"p-d-flex p-jc-end p-ai-center",style:{padding:"1rem"},children:jsx(BeeButton,{label:b||"Übernehmen",type:"secondary",disabled:m||!1,tooltip:m&&f?f:void 0,onClick:()=>{R(),!v&&S&&(S(T),F())}})})}),n?jsxs("label",{htmlFor:A,className:"bee-filter-ts-label",children:[n,k&&n?jsx("span",{className:"bee-filter-ts-label-required",children:jsx("span",{className:"bee-filter-ts-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=w&&x?(()=>{const t="medium";return jsx("div",{className:"bee-filter-ts-statusLabel",children:"error"===w&&null!=x?jsx(BeeLabel,{size:t,value:String(x),type:"error"}):"valid"===w&&null!=x?jsx(BeeLabel,{size:t,value:String(x),type:"valid"}):"neutral"===w&&null!=x?jsx(BeeLabel,{size:t,value:String(x),type:"neutral"}):null})})():null]})}styleInject(css_248z$3);var css_248z$2=".bee-panel {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\n.bee-panel__toggle-wrapper {\n display: flex;\n align-items: center;\n align-content: center;\n}\n.bee-panel__toggle-invisible {\n visibility: hidden;\n pointer-events: none;\n}\n.bee-panel__title {\n align-content: center;\n padding: 0.5rem;\n}\n.bee-panel__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n}\n.bee-panel__header-row {\n min-width: 0;\n}\n.bee-panel__header-actions {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n.bee-panel .p-panel-header {\n color: var(--primary-color);\n background-color: transparent;\n}\n.bee-panel .p-panel-header .p-panel-title {\n font-size: 1.2em;\n}\n.bee-panel .p-panel-header .p-panel-header-icon {\n border-radius: 50%;\n width: 1.75rem;\n min-width: 1.75rem;\n height: 1.75rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.bee-panel .p-panel-content {\n background: transparent;\n}\n.bee-panel .bee-panel__toggle-wrapper .p-panel-header-icon {\n border-radius: 50%;\n width: 1.75rem;\n min-width: 1.75rem;\n height: 1.75rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}";function BeePanel({id:t,className:e,header:n,children:r,collapsed:o,type:i="primary",showToggle:a=!0,togglePlacement:s="right",showAdd:l=!1,addLabel:p,readOnly:c,disabled:d,isPmView:u=!1,onToggle:h,onAddAddendum:b,renderHeader:m}){const f="primary"===i?" bee-panel--primary":"secondary"===i?" bee-panel--secondary":" bee-panel--primary",g=d?" disabled":"";return jsx(Panel,Object.assign({id:t,headerTemplate:t=>{const e=t.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",r="left"===s,o=`${t.className} mb-3`,i=`${t.titleClassName}`,h=l&&!c&&!u,f=h?jsx(BeeMixButton,{label:null!=p?String(p):"",iconClass:"pi pi-plus",iconPos:"left",disabled:null!=d&&d,type:"lightPrimary",isLoading:!1,onClick:()=>null==b?void 0:b()}):null,g=h,v=!c&&a?jsx("div",{className:"bee-panel__toggle-wrapper",children:jsx("button",{className:t.togglerClassName,onClick:t.onTogglerClick,children:jsx("span",{className:e})})}):null;if(m)return jsx("div",{className:o+" bee-panel__header",children:m({toggleButton:v,addButton:f,collapsed:!!t.collapsed})});const y=jsx("div",{className:i+" bee-panel__title",children:n});return jsxs("div",{className:o+" bee-panel__header",children:[jsxs("div",{className:"bee-panel__header-row flex align-items-center",children:[r&&v,y,!r&&v]}),g&&jsx("div",{className:"bee-panel__header-actions",children:f})]})},toggleable:!0,collapsed:o,className:"bee-panel"+f+g+(e?" "+e:"")},null!=h?{onToggle:h}:{},{children:jsx(Fragment,{children:r})}))}styleInject(css_248z$2);var css_248z$1=".bee-search-bar {\n display: flex;\n align-items: stretch;\n position: relative;\n}\n.bee-search-bar .p-inputtext {\n box-sizing: border-box;\n}\n.bee-search-bar .p-button-half-rounded {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.bee-search-bar-button-col .p-button.p-button-icon-only {\n height: 100%;\n flex-grow: 1;\n align-items: center;\n justify-content: center;\n}\n.bee-search-bar-button-col .p-button.p-button-icon-only .p-button-icon::before {\n font-size: 1rem;\n}\n\n.bee-search-bar-button-col .p-button.p-button-icon-only .p-button-icon::before {\n font-weight: 600;\n}\n\n.bee-search-bar .search-cancel {\n position: absolute;\n right: 2.5rem;\n top: 0.25rem;\n}";function BeeSearchBar({id:t,className:e,label:n,value:r,disabled:o,readOnly:i,deleteIcon:a,required:s,formstate:l="neutral",type:p="primary",onSearch:c}){const d=null!=t?t:libExports.useId(1,"bee-searchbar-")[0],u=useRef(null),[h,b]=useState(null!=r?r:""),m="bee-search-bar flex"+(e?" "+e:""),f=null!=a?a:"pi pi-times-circle";useEffect(()=>{b(null!=r?r:"")},[r]);const g=useCallback(lodashExports.debounce(()=>{(null==u?void 0:u.current)&&u.current.click()},1e3),[]),v=t=>{b(t),c&&c(t)},y=()=>{g&&g.cancel()},x=()=>{y(),o||v(h)};return jsxs("div",{id:d,className:m,onKeyDown:t=>{"Enter"===t.key&&x()},children:[jsx("div",{className:"w-full",children:jsx(BeeTextInput,{value:null!==h?h:"",disabled:null!=o&&o,readOnly:null!=i&&i,required:null!=s&&s,formstate:l,halfRounded:!0,label:n,onChange:t=>{return e=t.target.value,b(e),void g();var e}})}),i?null:jsxs("div",{className:"bee-search-bar-button-col",children:[jsx(BeeIconButton,{iconClass:"pi pi-search",rounded:!1,halfRounded:!0,disabled:null!=o&&o,type:p,isLoading:!1,onClick:()=>x()}),jsx("button",{ref:u,type:"button",onClick:()=>x(),style:{display:"none"}})]}),h&&""!==h?jsx("div",{className:"search-cancel",children:jsx(BeeIconButton,{iconClass:f,rounded:!0,disabled:null!=o&&o,type:"lightPrimary",isLoading:!1,onClick:t=>{b(""),v(""),y(),t.stopPropagation()}})}):null]})}styleInject(css_248z$1);var css_248z=".bee-skeleton-list .p-skeleton.p-component.bee-skeleton-rectangle {\n position: relative;\n border-radius: 4px;\n}";function BeeSkeletonList({id:t,className:e,noSkeletons:n=3,width:r,height:o,showHover:i,showShade:a}){const s=null!=t?t:libExports.useId(1,"bee-skeleton-list-")[0],l=Math.max(0,Math.floor(n));return jsx("div",{id:s,className:"bee-skeleton-list grid grid-nogutter flex-wrap"+(e?" "+e:""),children:Array.from({length:l}).map(()=>jsx(BeeSkeleton,{width:r,height:o,showHover:i,showShade:a}))})}styleInject(css_248z);export{BasicPriceChart,BeeAddEntryCard,BeeAddressForm,BeeArrowDiff,BeeAutocompleteDropdown,BeeAutocompleteTag,BeeAvatar,BeeBadge,BeeBreadcrumb,BeeButton,BeeChangesChip,BeeChatMessage,BeeChatWindow,BeeCheckbox,BeeCheckboxTriState,BeeChip,BeeChipArea,BeeChipDropdown,BeeChipInput,BeeColorSelect,BeeConfirmDialog,BeeContentHeadline,BeeContentParagraph,BeeCopyInput,BeeCurrencyInput,BeeCurrencySelect,BeeDateInput,BeeDateTimeInput,BeeDeletionDialog,BeeDivider,BeeDocumentTable,BeeDropDown,BeeError404Page,BeeErrorComponent,BeeErrorDialog,BeeFilterDropDown,BeeFilterSortSearch,BeeFilterTreeSelect,BeeFlatImageGallery,BeeGalleryImage,BeeIconBadgeButton,BeeIconButton,BeeImage,BeeImageCard,BeeImageCropper,BeeFlatImageGallery as BeeImageGallery,BeeImageSlider,BeeImageUploadDialog,BeeInfoDialog,BeeKnob,BeeLabel,BeeLink,BeeLinkButton,BeeLoadingBar,BeeLoadingSpinner,BeeMixButton,BeeNumberInput,BeeNumberSelect,BeeNutzungsartMix,BeeOutlinedButton,BeeOutlinedIconButton,BeePanel,BeePasswordInput,BeePercentageInput,BeePlaceholder,BeeSearchBar,BeeSelectButton,BeeSequencePosition,BeeServerStatusInput,BeeShareBar,BeeSkeleton,BeeSkeletonList,BeeSlider,BeeSplitButton,BeeStarBar,BeeSwitch,BeeTabview,BeeTextArea,BeeTextInput,BeeTimeInput,BeeToolBarButton,BeeTreeSelect,BeeUploadDialog,BeeVisibleItemCount,ChatMessageSourceEnum,ChatParticipantTypeEnum,ContractPotentialsChart,LvEditingStatusChart,LvInsightsChart,ServerStatus};
|
|
56
|
+
r.goToAndStop(a-r.firstFrame-1,!0)}"loop"===o.type&&(null===e||e!==o.frames||r.isPaused)&&(r.playSegments(o.frames,!0),e=o.frames),"play"===o.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===o.type&&r.goToAndStop(o.frames[0]-r.firstFrame-1,!0)}};return document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)}},a=function(){var e=function(e,n){var o=e,a=n;if(-1!==o&&-1!==a){var s=k(t,o,a);o=s.x,a=s.y}var l=i.find(function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?o>=e.x[0]&&o<=e.x[1]&&a>=e.y[0]&&a<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&o===e.x&&a===e.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var p=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((p+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},n=function(t){e(t.clientX,t.clientY)},o=function(){e(-1,-1)};return t.addEventListener("mousemove",n),t.addEventListener("mouseout",o),function(){t.removeEventListener("mousemove",n),t.removeEventListener("mouseout",o)}};switch(o){case"scroll":return n();case"cursor":return a()}}},[o,r])},S=function(t){var e=t.actions,n=t.mode,r=t.lottieObj,o=r.animationItem,i=r.View,a=r.animationContainerRef;return _({actions:e,animationItem:o,mode:n,wrapperRef:a}),i},C=["style","interactivity"],E=function(t){var e,r,o,i=t.style,a=t.interactivity,s=h(t,C),l=x(s,i),p=l.View,c=l.play,d=l.stop,u=l.pause,b=l.setSpeed,m=l.goToAndStop,f=l.goToAndPlay,g=l.setDirection,v=l.playSegments,y=l.setSubframe,w=l.getDuration,k=l.destroy,_=l.animationContainerRef,E=l.animationLoaded,P=l.animationItem;return n.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:c,stop:d,pause:u,setSpeed:b,goToAndPlay:f,goToAndStop:m,setDirection:g,playSegments:v,setSubframe:y,getDuration:w,destroy:k,animationContainerRef:_,animationLoaded:E,animationItem:P})},[null===(e=t.lottieRef)||void 0===e?void 0:e.current]),S({lottieObj:{View:p,play:c,stop:d,pause:u,setSpeed:b,goToAndStop:m,goToAndPlay:f,setDirection:g,playSegments:v,setSubframe:y,getDuration:w,destroy:k,animationContainerRef:_,animationLoaded:E,animationItem:P},actions:null!==(r=null==a?void 0:a.actions)&&void 0!==r?r:[],mode:null!==(o=null==a?void 0:a.mode)&&void 0!==o?o:"scroll"})};Object.defineProperty(t,"LottiePlayer",{enumerable:!0,get:function(){return o.default}}),t.default=E,t.useLottie=x,t.useLottieInteractivity=S,Object.defineProperty(t,"__esModule",{value:!0})}(index_umd$1.exports,requireLottie(),React__default)),index_umd$1.exports}var index_umdExports=requireIndex_umd(),Lottie=getDefaultExportFromCjs(index_umdExports),css_248z$b=".bee-error-component {\n align-items: center;\n}\n@media screen and (max-width: 1200px) {\n .bee-error-component {\n flex-direction: column-reverse;\n align-content: center;\n }\n .bee-error-component .bee-error-component__media {\n width: 100%;\n }\n .bee-error-component .bee-error-component__container {\n width: 80% !important;\n }\n}\n@media screen and (max-width: 680px) {\n .bee-error-component .bee-error-component__media {\n display: none;\n }\n}\n.bee-error-component .bee-error-component__container {\n max-width: 650px;\n min-width: 400px;\n width: 40%;\n}\n.bee-error-component .bee-error-component__media {\n width: 45%;\n}\n.bee-error-component .bee-error-component__media > div {\n width: 35rem !important;\n height: 35rem !important;\n}\n.bee-error-component .bee-error-component__media > div svg {\n opacity: 0.5;\n}\n.bee-error-component .bee-error-component__media > div svg > g g:first-of-type path {\n fill: var(--secondary-dark-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g:first-of-type path:first-of-type {\n fill: var(--secondary-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g:first-of-type path:last-of-type {\n fill: var(--primary-light-active-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g path {\n fill: var(--secondary-dark-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g path:first-of-type {\n fill: var(--secondary-color-50);\n stroke: var(--secondary-dark-color);\n}\n.bee-error-component .bee-error-component__media > div svg > g g path:last-of-type {\n fill: var(--primary-light-active-color);\n}\n.bee-error-component .bee-error-component__media-placeholder {\n width: 35rem;\n height: 35rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--surface-400);\n font-size: 8rem;\n}";function BeeErrorComponent({headline:t,content:e,btnText:n,animationData:r,onClick:o}){return jsxs("div",{className:"bee-error-component flex justify-content-center",children:[jsx("div",{className:"bee-error-component__media",children:r?jsx(Lottie,{animationData:r,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):jsx("div",{className:"bee-error-component__media-placeholder","aria-hidden":!0,children:jsx("i",{className:"pi pi-exclamation-triangle"})})}),jsxs("div",{className:"bee-error-component__container",children:[jsx("div",{children:t}),jsx("div",{children:e}),jsx("div",{className:"flex justify-content-end mt-4",children:jsx(BeeMixButton,{label:n,iconClass:"pi pi-arrow-left",iconPos:"left",type:"secondary",onClick:function(t){null==o||o()}})})]})]})}styleInject(css_248z$b);const ip=0,fr=60,v="5.1.20",assets=[],layers=[{ty:4,nm:"Frame 1",ip:0,st:0,ind:2,hix:1,ks:{o:{a:0,k:100},or:{a:0,k:[0,0,0]},a:{a:0,k:[250,125,0]},p:{s:!0,x:{a:0,k:251.18300000000005},y:{a:1,k:[{t:0,s:[160.217],e:[127.142],i:{x:[.515],y:[.955]},o:{x:[.455],y:[.03]}},{t:120,s:[127.142],e:[152.142],i:{x:[.515],y:[.955]},o:{x:[.455],y:[.03]}},{t:203,s:[152.142],e:[122.142],i:{x:[.515],y:[.955]},o:{x:[.455],y:[.03]}},{t:287,s:[122.142],e:[160.217],i:{x:[.515],y:[.955]},o:{x:[.455],y:[.03]}},{t:367}]}},rx:{a:0,k:0},ry:{a:0,k:0},rz:{a:0,k:0},s:{a:0,k:[100,100,100]}},shapes:[{ty:"gr",nm:"Frame 1 shape group",it:[{ty:"sh",ks:{a:0,k:{c:!0,v:[[244.282,37.2174],[177.493,119.957],[244.282,202.972],[312.735,119.957]],i:[[38.87699999999998,0],[0,-57.91779999999999],[-38.876000000000005,0],[0,63.985000000000014]],o:[[-38.876000000000005,0],[0,65.64000000000001],[38.87699999999998,0],[0,-68.3981]]}}},{ty:"sh",ks:{a:0,k:{c:!0,v:[[244.538,181.184],[203.543,119.999],[245.114,58.7296],[286.684,119.999],[244.538,181.184]],i:[[0,0],[0,45.464],[-26.926999999999992,0],[0,-47.37379999999999],[26.926999999999964,0]],o:[[-26.92700000000002,0],[0,-40.11489999999999],[26.926999999999992,0],[0,44.31800000000001],[0,0]]}}},{ty:"st",o:{a:0,k:100},c:{a:0,k:[0,0,0,1]},lc:3,lj:1,ml:10,w:{a:0,k:1}},{ty:"fl",o:{a:0,k:0},c:{a:0,k:[0,0,0,0]},r:1},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]},{ty:"gr",nm:"Frame 1 shape group",it:[{ty:"sh",ks:{a:0,k:{c:!0,v:[[235.414,42.1819],[168.624,124.921],[235.414,207.936],[303.866,124.921]],i:[[38.87600000000003,0],[0,-57.91730000000001],[-38.87699999999998,0],[0,63.985]],o:[[-38.87699999999998,0],[0,65.64],[38.87600000000003,0],[0,-68.39760000000001]]}}},{ty:"sh",ks:{a:0,k:{c:!0,v:[[235.669,186.148],[194.675,124.964],[236.245,63.6941],[277.816,124.964]],i:[[26.926999999999992,0],[0,45.462999999999994],[-26.926999999999992,0],[0,-47.374300000000005]],o:[[-26.92700000000002,0],[0,-40.115399999999994],[26.92700000000002,0],[0,44.31700000000001]]}}},{ty:"st",o:{a:0,k:0},w:{a:0,k:0},c:{a:0,k:[0,0,0,0]},lc:3,lj:1,ml:1},{ty:"fl",o:{a:0,k:100},r:1,c:{a:0,k:[.2235294117647059,.2235294117647059,.2235294117647059,1]}},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]}],op:367},{ty:4,nm:"Frame 2",ip:0,st:0,ind:1,hix:2,ks:{o:{a:0,k:100},or:{a:0,k:[0,0,0]},a:{a:0,k:[250,125,0]},p:{s:!0,x:{a:0,k:250},y:{a:0,k:125}},rx:{a:0,k:0},ry:{a:0,k:0},rz:{a:0,k:0},s:{a:0,k:[100,100,100]}},shapes:[{ty:"gr",nm:"Frame 2 shape group",it:[{ty:"sh",ks:{a:0,k:{c:!0,v:[[451.303,176.638],[435.229,176.638],[435.229,129.533],[432.452,122.862],[425.749,120.099],[421.983,120.099],[418.355,120.817],[415.28,122.862],[413.225,125.923],[412.504,129.533],[412.504,176.638],[367.165,176.638],[364.503,175.941],[362.53,174.032],[361.755,171.404],[362.38,168.737],[410.366,78.3524],[411.432,74.7196],[410.978,70.9621],[409.076,67.6848],[406.032,65.4152],[403.2,64.084],[396.176,63.6576],[390.792,68.1669],[332.267,177.121],[330.749,183.152],[334.513,192.197],[343.602,195.944],[412.504,195.944],[412.504,225.73],[415.832,233.726],[423.866,237.038],[423.866,237.038],[431.901,233.726],[435.229,225.73],[435.229,195.944],[451.303,195.944],[455.014,195.209],[458.161,193.116],[460.264,189.985],[461.002,186.291],[461.002,186.291],[458.161,179.465],[451.303,176.638]],i:[[0,0],[0,0],[0,0],[1.77800000000002,1.7700000000000102],[2.513999999999953,0],[0,0],[1.1499999999999773,-.47399999999998954],[.8800000000000523,-.8759999999999906],[.47699999999997544,-1.144999999999996],[0,-1.238999999999976],[0,0],[0,0],[.8120000000000118,.45699999999999363],[.4810000000000514,.7949999999999875],[.02600000000001046,.9279999999999973],[-.4359999999999786,.8199999999999932],[0,0],[-.10500000000001819,1.2700999999999993],[.4049999999999727,1.2090999999999923],[.8499999999999659,.953400000000002],[1.1580000000000155,.5442000000000036],[0,0],[2.309000000000026,-.7600000000000051],[1.1470000000000482,-2.1347999999999985],[0,0],[0,-2.103999999999985],[-2.409999999999968,-2.399000000000001],[-3.408999999999992,0],[0,0],[0,0],[-2.130999999999972,-2.1210000000000093],[-3.012999999999977,0],[0,0],[-2.1310000000000286,2.1200000000000045],[0,2.9990000000000236],[0,0],[0,0],[-1.1759999999999877,.4849999999999852],[-.8999999999999773,.8969999999999914],[-.4870000000000232,1.1709999999999923],[0,1.266999999999996],[0,0],[1.8190000000000168,1.8100000000000023],[2.5720000000000027,0]],o:[[0,0],[0,0],[0,-2.501999999999981],[-1.7769999999999868,-1.7689999999999912],[0,0],[-1.2450000000000045,0],[-1.150000000000034,.4750000000000085],[-.8799999999999955,.8760000000000048],[-.4759999999999991,1.1439999999999912],[0,0],[0,0],[-.9329999999999927,0],[-.8120000000000118,-.45599999999998886],[-.4819999999999709,-.7950000000000159],[-.02600000000001046,-.9279999999999973],[0,0],[.5980000000000132,-1.126800000000003],[.10499999999996135,-1.2702000000000027],[-.40500000000002956,-1.2091000000000065],[-.8500000000000227,-.9532999999999987],[0,0],[-2.1999999999999886,-1.0337000000000032],[-2.3100000000000023,.7599999999999909],[0,0],[-.9970000000000141,1.8559999999999945],[0,3.3920000000000243],[2.4110000000000014,2.399000000000001],[0,0],[0,0],[0,2.9990000000000236],[2.1310000000000286,2.1200000000000045],[0,0],[3.01400000000001,0],[2.130999999999972,-2.1210000000000093],[0,0],[0,0],[1.2730000000000246,0],[1.176999999999964,-.48500000000001364],[.9010000000000105,-.896000000000015],[.48699999999996635,-1.1710000000000207],[0,0],[0,-2.5600000000000023],[-1.8190000000000168,-1.8100000000000023],[0,0]]}}},{ty:"st",o:{a:0,k:100},c:{a:0,k:[0,0,0,1]},lc:3,lj:1,ml:10,w:{a:0,k:1}},{ty:"fl",o:{a:0,k:0},c:{a:0,k:[0,0,0,0]},r:1},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]},{ty:"gr",nm:"Frame 2 shape group",it:[{ty:"sh",ks:{a:0,k:{c:!0,v:[[149.779,176.638],[133.705,176.638],[133.705,129.533],[132.984,125.923],[130.929,122.862],[127.854,120.817],[124.226,120.099],[120.46,120.099],[113.757,122.862],[110.98,129.533],[110.98,176.638],[65.6412,176.638],[62.9795,175.941],[61.0063,174.032],[60.2318,171.404],[60.8565,168.737],[108.843,78.3524],[109.909,74.7196],[109.454,70.9621],[107.552,67.6848],[104.509,65.4152],[101.676,64.084],[94.6525,63.6576],[89.2687,68.1669],[30.7431,177.121],[29.2251,183.152],[29.2251,183.152],[32.9899,192.197],[42.079,195.944],[110.98,195.944],[110.98,225.73],[111.845,230.057],[114.308,233.726],[117.994,236.177],[122.343,237.038],[122.343,237.038],[130.377,233.726],[133.705,225.73],[133.705,195.944],[149.779,195.944],[153.491,195.209],[156.638,193.116],[158.741,189.985],[159.479,186.291],[159.479,186.291],[158.741,182.597],[156.638,179.465],[153.491,177.373],[149.779,176.638]],i:[[0,0],[0,0],[0,0],[.4759999999999991,1.1439999999999912],[.8799999999999955,.8760000000000048],[1.1499999999999915,.4750000000000085],[1.2450000000000045,0],[0,0],[1.777000000000001,-1.7689999999999912],[0,-2.501999999999981],[0,0],[0,0],[.8121000000000009,.45699999999999363],[.4813999999999936,.7949999999999875],[.026200000000002888,.9279999999999973],[-.4358000000000004,.8199999999999932],[0,0],[-.10500000000000398,1.2700999999999993],[.40500000000000114,1.2090999999999923],[.8499999999999943,.953400000000002],[1.1580000000000013,.5442000000000036],[0,0],[2.3095,-.7600000000000051],[1.1467000000000098,-2.1347999999999985],[0,0],[0,-2.103999999999985],[0,0],[-2.4105999999999987,-2.399000000000001],[-3.4091000000000022,0],[0,0],[0,0],[-.570999999999998,-1.3719999999999857],[-1.0550000000000068,-1.0500000000000114],[-1.3780000000000001,-.5679999999999836],[-1.4920000000000044,0],[0,0],[-2.1310000000000002,2.1200000000000045],[0,2.9990000000000236],[0,0],[0,0],[-1.177000000000021,.4849999999999852],[-.9010000000000105,.8969999999999914],[-.48800000000002797,1.1709999999999923],[0,1.266999999999996],[0,0],[.48699999999999477,1.1709999999999923],[.900999999999982,.8969999999999914],[1.1769999999999925,.48500000000001364],[1.274000000000001,0]],o:[[0,0],[0,0],[0,-1.238999999999976],[-.47700000000000387,-1.144999999999996],[-.8799999999999955,-.8759999999999906],[-1.1509999999999962,-.47399999999998954],[0,0],[-2.5150000000000006,0],[-1.7780000000000058,1.7700000000000102],[0,0],[0,0],[-.932699999999997,0],[-.8121000000000009,-.45599999999998886],[-.48150000000000404,-.7950000000000159],[-.026200000000002888,-.9279999999999973],[0,0],[.597999999999999,-1.126800000000003],[.10499999999998977,-1.2702000000000027],[-.4049999999999869,-1.2091000000000065],[-.8500000000000085,-.9532999999999987],[0,0],[-2.199300000000008,-1.0337000000000032],[-2.3095,.7599999999999909],[0,0],[-.9965999999999973,1.8559999999999945],[0,0],[0,3.3920000000000243],[2.4106000000000023,2.399000000000001],[0,0],[0,0],[0,1.4850000000000136],[.570999999999998,1.372000000000014],[1.0549999999999926,1.0500000000000114],[1.3790000000000049,.568000000000012],[0,0],[3.012999999999991,0],[2.1310000000000002,-2.1210000000000093],[0,0],[0,0],[1.274000000000001,0],[1.1769999999999925,-.48500000000001364],[.900999999999982,-.896000000000015],[.48699999999999477,-1.1710000000000207],[0,0],[0,-1.2680000000000007],[-.48800000000002797,-1.1710000000000207],[-.9010000000000105,-.896000000000015],[-1.177000000000021,-.4849999999999852],[0,0]]}}},{ty:"st",o:{a:0,k:100},c:{a:0,k:[0,0,0,1]},lc:3,lj:1,ml:10,w:{a:0,k:1}},{ty:"fl",o:{a:0,k:0},c:{a:0,k:[0,0,0,0]},r:1},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]},{ty:"gr",nm:"Frame 2 shape group",it:[{ty:"sh",ks:{a:0,k:{c:!0,v:[[442.989,182.154],[426.915,182.154],[426.915,135.049],[424.138,128.378],[417.435,125.615],[413.669,125.615],[410.041,126.333],[406.966,128.378],[404.911,131.439],[404.19,135.049],[404.19,182.154],[358.851,182.154],[356.189,181.457],[354.216,179.548],[353.441,176.92],[354.066,174.253],[402.052,83.8684],[403.118,80.2355],[402.664,76.4781],[400.762,73.2008],[397.718,70.9312],[394.886,69.5999],[387.862,69.1736],[382.478,73.683],[323.953,182.637],[322.435,188.668],[326.199,197.713],[335.288,201.46],[404.19,201.46],[404.19,231.246],[407.518,239.241],[415.552,242.553],[423.587,239.241],[426.915,231.246],[426.915,201.46],[442.989,201.46],[449.847,198.632],[452.688,191.807],[449.847,184.981]],i:[[2.5720000000000027,0],[0,0],[0,0],[1.77800000000002,1.7690000000000055],[2.5149999999999864,0],[0,0],[1.1510000000000105,-.47400000000000375],[.8799999999999955,-.8759999999999906],[.47699999999997544,-1.1449999999999818],[0,-1.2390000000000043],[0,0],[0,0],[.811999999999955,.45699999999999363],[.48099999999999454,.7949999999999875],[.02600000000001046,.9280000000000257],[-.4359999999999786,.8200000000000216],[0,0],[-.10500000000001819,1.2702000000000027],[.40500000000002956,1.2091000000000065],[.8500000000000227,.953400000000002],[1.1589999999999918,.5441999999999894],[0,0],[2.308999999999969,-.7599999999999909],[1.1469999999999914,-2.134900000000002],[0,0],[0,-2.1040000000000134],[-2.410000000000025,-2.399000000000001],[-3.408999999999992,0],[0,0],[0,0],[-2.130999999999972,-2.1200000000000045],[-3.0130000000000337,0],[-2.130999999999972,2.120999999999981],[0,2.9989999999999952],[0,0],[0,0],[-1.81899999999996,1.811000000000007],[0,2.5600000000000023],[1.8190000000000168,1.8100000000000023]],o:[[0,0],[0,0],[0,-2.5020000000000095],[-1.7769999999999868,-1.7689999999999912],[0,0],[-1.2450000000000045,0],[-1.1499999999999773,.47400000000000375],[-.8799999999999955,.8760000000000048],[-.4759999999999991,1.1440000000000055],[0,0],[0,0],[-.9329999999999927,0],[-.8120000000000118,-.45599999999998886],[-.48200000000002774,-.7950000000000159],[-.025999999999953616,-.9279999999999973],[0,0],[.5979999999999563,-1.126899999999992],[.10500000000001819,-1.2700999999999993],[-.4049999999999727,-1.2090999999999923],[-.8500000000000227,-.9532999999999987],[0,0],[-2.2000000000000455,-1.033600000000007],[-2.3100000000000023,.7600000000000051],[0,0],[-.9969999999999573,1.8559999999999945],[0,3.391999999999996],[2.4110000000000014,2.399000000000001],[0,0],[0,0],[0,2.9989999999999952],[2.1310000000000286,2.120999999999981],[3.013999999999953,0],[2.1310000000000286,-2.1200000000000045],[0,0],[0,0],[2.5720000000000027,0],[1.8190000000000168,-1.8100000000000023],[0,-2.559999999999974],[-1.81899999999996,-1.8100000000000023]]}}},{ty:"st",o:{a:0,k:0},w:{a:0,k:0},c:{a:0,k:[0,0,0,0]},lc:3,lj:1,ml:1},{ty:"fl",o:{a:0,k:100},r:1,c:{a:0,k:[.7411764705882353,.7254901960784313,.7490196078431373,1]}},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]},{ty:"gr",nm:"Frame 2 shape group",it:[{ty:"sh",ks:{a:0,k:{c:!0,v:[[145.345,182.154],[129.271,182.154],[129.271,135.049],[126.494,128.378],[119.791,125.615],[116.025,125.615],[112.397,126.333],[109.322,128.378],[107.267,131.439],[106.546,135.049],[106.546,182.154],[61.2067,182.154],[58.545,181.457],[56.5717,179.548],[55.7972,176.92],[56.4219,174.253],[104.408,83.8684],[105.474,80.2355],[105.02,76.4781],[103.118,73.2008],[100.074,70.9312],[97.2417,69.5999],[90.2179,69.1736],[84.8341,73.683],[26.3085,182.637],[24.7905,188.668],[25.769,193.563],[28.5553,197.713],[32.7254,200.486],[37.6444,201.46],[106.546,201.46],[106.546,231.246],[107.411,235.573],[109.874,239.241],[113.56,241.693],[117.908,242.553],[117.908,242.553],[122.256,241.693],[125.943,239.241],[128.406,235.573],[129.271,231.246],[129.271,201.46],[145.345,201.46],[152.203,198.632],[155.044,191.807],[152.203,184.981]],i:[[2.5720000000000027,0],[0,0],[0,0],[1.7779999999999916,1.7690000000000055],[2.5150000000000006,0],[0,0],[1.1499999999999915,-.47400000000000375],[.8799999999999955,-.8759999999999906],[.47700000000000387,-1.1449999999999818],[0,-1.2390000000000043],[0,0],[0,0],[.8121000000000009,.45699999999999363],[.4814000000000007,.7949999999999875],[.026300000000006207,.9280000000000257],[-.4357000000000042,.8200000000000216],[0,0],[-.10500000000000398,1.2702000000000027],[.40500000000000114,1.2091000000000065],[.8500000000000085,.953400000000002],[1.1580000000000013,.5441999999999894],[0,0],[2.3095,-.7599999999999909],[1.146799999999999,-2.134900000000002],[0,0],[0,-2.1040000000000134],[-.6459999999999972,-1.5519999999999925],[-1.1936,-1.1879999999999882],[-1.5594999999999999,-.6430000000000007],[-1.6879999999999953,0],[0,0],[0,0],[-.570999999999998,-1.372000000000014],[-1.0549999999999926,-1.0500000000000114],[-1.3790000000000049,-.5690000000000168],[-1.4920000000000044,0],[0,0],[-1.3780000000000001,.5679999999999836],[-1.0549999999999926,1.0509999999999877],[-.5710000000000122,1.3719999999999857],[0,1.4849999999999852],[0,0],[0,0],[-1.8190000000000168,1.811000000000007],[0,2.5600000000000023],[1.8189999999999884,1.8100000000000023]],o:[[0,0],[0,0],[0,-2.5020000000000095],[-1.777000000000001,-1.7689999999999912],[0,0],[-1.2450000000000045,0],[-1.1500000000000057,.47400000000000375],[-.8800000000000097,.8760000000000048],[-.4759999999999991,1.1440000000000055],[0,0],[0,0],[-.9328000000000003,0],[-.8121000000000009,-.45599999999998886],[-.4814000000000007,-.7950000000000159],[-.026199999999995782,-.9279999999999973],[0,0],[.597999999999999,-1.126899999999992],[.10499999999998977,-1.2700999999999993],[-.40500000000000114,-1.2090999999999923],[-.8499999999999943,-.9532999999999987],[0,0],[-2.1995999999999896,-1.033600000000007],[-2.3095,.7600000000000051],[0,0],[-.9965999999999973,1.8559999999999945],[0,1.6800000000000068],[.645900000000001,1.552000000000021],[1.1936,1.1880000000000166],[1.5594999999999999,.6430000000000007],[0,0],[0,0],[0,1.4849999999999852],[.570999999999998,1.3719999999999857],[1.0550000000000068,1.0509999999999877],[1.3780000000000001,.5679999999999836],[0,0],[1.4920000000000044,0],[1.3790000000000049,-.5690000000000168],[1.0550000000000068,-1.0500000000000114],[.570999999999998,-1.372000000000014],[0,0],[0,0],[2.5720000000000027,0],[1.8189999999999884,-1.8100000000000023],[0,-2.559999999999974],[-1.8190000000000168,-1.8100000000000023]]}}},{ty:"st",o:{a:0,k:0},w:{a:0,k:0},c:{a:0,k:[0,0,0,0]},lc:3,lj:1,ml:1},{ty:"fl",o:{a:0,k:100},r:1,c:{a:0,k:[.7411764705882353,.7254901960784313,.7490196078431373,1]}},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]},{ty:"gr",nm:"Frame 2 shape group",it:[{ty:"sh",ks:{a:0,k:{c:!0,v:[[244.559,250],[483.173,234.28],[244.559,218.559],[5.94531,234.28]],i:[[-131.78300000000002,0],[0,8.681999999999988],[131.783,0],[0,-8.682999999999993]],o:[[131.783,0],[0,-8.682999999999993],[-131.78300000000002,0],[0,8.681999999999988]]}}},{ty:"st",o:{a:0,k:0},w:{a:0,k:0},c:{a:0,k:[0,0,0,0]},lc:3,lj:1,ml:1},{ty:"fl",o:{a:0,k:100},r:1,c:{a:0,k:[.9490196078431372,.9490196078431372,.9490196078431372,1]}},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]},{ty:"gr",nm:"Frame 2 shape group",it:[{ty:"rc",s:{a:0,k:[500,250]},r:{a:0,k:0},p:{a:0,k:[250,125]}},{ty:"st",o:{a:0,k:0},w:{a:0,k:0},c:{a:0,k:[0,0,0,0]},lc:3,lj:1,ml:1},{ty:"fl",o:{a:0,k:100},r:1,c:{a:0,k:[1,1,1,1]}},{ty:"tr",o:{a:0,k:100},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},p:{a:0,k:[0,0]},r:{a:0,k:0}}]}],op:367}],op=367,w=502,h=253;var Animation={ip:ip,fr:fr,v:v,assets:assets,layers:layers,op:op,w:w,h:h},css_248z$a=".bee-error-404-page {\n text-align: center;\n}\n.bee-error-404-page .bee-error-404-page__content .bee-headline {\n margin-top: 3rem;\n}\n.bee-error-404-page .bee-error-404-page__animation {\n width: 40vw;\n min-height: 180px;\n margin: 2rem auto 4rem;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.bee-error-404-page .bee-error-404-page__animation .pi {\n font-size: 4rem;\n color: var(--primary-color-50);\n}\n.bee-error-404-page .bee-error-404-page__action .p-button {\n margin: 0 2em;\n color: var(--secondary-dark-color);\n}";function BeeError404Page({className:t,headline:e="Die Seite konnte leider nicht gefunden werden",buttonLabel:n="Zurück zur Startseite",buttonIconClass:r="pi pi-arrow-left",animationData:o=Animation,onBack:i}){return jsxs("div",{className:"bee-error-404-page page"+(t?" "+t:""),children:[jsxs("div",{className:"bee-error-404-page__content",children:[jsx(BeeContentHeadline,{value:e,headlineType:"h1",type:"primary"}),jsx("div",{className:"bee-error-404-page__animation",children:o?jsx(Lottie,{animationData:o,loop:!0,autoplay:!0}):jsx("i",{className:"pi pi-exclamation-circle","aria-hidden":!0})})]}),jsx("div",{className:"bee-error-404-page__action flex justify-content-start",children:jsx(BeeMixButton,{label:n,iconClass:r,iconPos:"left",disabled:!1,type:"lightPrimary",isLoading:!1,onClick:function(){i?i():window.location.assign("/")}})})]})}styleInject(css_248z$a);var css_248z$9=".bee-image-prev.p-card .p-card-body {\n padding: 0px;\n overflow: hidden;\n}\n\n.bee-image-prev {\n overflow: hidden;\n}\n\n.bee-image-prev.p-card .p-card-content {\n max-width: 100%;\n padding: 0px;\n}\n\n/* Cardview */\n.bee-image-card.p-card {\n box-shadow: rgba(50, 50, 93, 0.25) 0px 8px 27px 3px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n border-radius: 4px;\n padding-bottom: 10px;\n margin: 0px;\n position: relative;\n}\n\n.bee-image-card__headline {\n padding: 1em 1.25rem 0.5em 1.25rem;\n background-color: var(--secondary-dark-color);\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n}\n.bee-image-card__headline h2 {\n color: var(--primary-color);\n font-weight: 500;\n}\n\n.bee-image-card__headline div {\n font-size: 0.7em;\n color: var(--primary-color-text);\n font-weight: 800;\n line-height: 1.1em;\n height: 1.5em;\n width: calc(100% - 40px);\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n display: block;\n word-break: break-all;\n}\n\n.bee-image-card__headline h2 {\n font-size: 1em;\n line-height: 1.2em;\n height: 2.4em;\n margin: 0em;\n margin-bottom: 0.4em;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -moz-hyphens: auto;\n -o-hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n width: calc(100% - 40px);\n padding: 0rem;\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n -ms-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n\n.bee-image-card__content-text {\n width: 100%;\n font-size: 0.9em;\n padding: 0.5rem 1.25rem 0.5rem 1.25rem;\n}\n\n.bee-image-card__img {\n position: relative;\n}\n\n.bee-image-card__content .bee-img {\n height: 180px;\n overflow: hidden;\n}\n.bee-image-card__content .bee-img img {\n width: 100%;\n height: 100%;\n overflow: hidden;\n object-fit: cover;\n object-position: 50% 50%;\n}\n.bee-image-card__content .p-skeleton {\n overflow: hidden;\n padding-bottom: 10px;\n width: inherit !important;\n height: inherit !important;\n border-radius: 0px;\n}\n\n.bee-image-card__info {\n position: absolute;\n right: 0px;\n margin-top: 1.5em;\n margin-right: 1.25em;\n z-index: 1;\n}\n.bee-image-card__info button.p-button {\n height: 1.75rem !important;\n width: 1.85rem;\n border: 1px solid !important;\n background: var(--secondary-dark-color);\n}\n.bee-image-card__info button.p-button:hover {\n background-color: var(--secondary-color-68) !important;\n}\n.bee-image-card__info .p-button-icon {\n font-size: 1rem;\n}\n\n/* Hover deactivated */\n.bee-image-card.p-card.bee-image-prev-noHover:active {\n transform: scale(0.98) translateZ(0);\n -ms-transform: scale(0.98) translateZ(0);\n -webkit-transform: scale(0.98) translateZ(0);\n filter: brightness(95%);\n transition: all 0.05s ease;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n/* Hover activated */\n.bee-image-card.p-card.bee-image-prev-hover:hover {\n transform: scale(1.02) translateZ(0);\n -ms-transform: scale(1.02) translateZ(0);\n -webkit-transform: scale(1.02) translateZ(0);\n transition: all 0.07s ease;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n.bee-image-card.p-card.bee-image-prev-hover:active {\n filter: brightness(0.9);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n\n.bee-image-card-disabled,\n.bee-image-card-disabled:hover,\n.bee-image-card-disabled:active,\n.bee-image-card-disabled:focus {\n filter: grayscale(100%) !important;\n opacity: 0.5;\n}\n\n.bee-image-card__banner {\n position: absolute;\n top: 9rem;\n left: -10%;\n transform: rotate(-10deg);\n background-color: var(--error-color);\n color: white;\n padding: 0.5rem 10%;\n font-weight: bold;\n z-index: 10;\n box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);\n min-width: 120%;\n text-align: center;\n}\n\n.bee-image-card__info--disabled {\n filter: grayscale(100%) !important;\n opacity: 0.5;\n}";function BeeImageCard({id:t,className:e,preheadline:n,headline:r,subheadline:o,showIcon:i,iconClassName:a,image:s,content:l,activateHover:p=!1,disabled:c,readOnly:d,banner:u,onClick:h,onClickIcon:b}){const m=null!=t?t:libExports.useId(1,"bee-image-card-")[0],f=c?" bee-image-card-disabled ":"";return jsxs(Card,{id:m,className:"bee-image-prev bee-image-card "+(p?"bee-image-prev-hover":"bee-image-prev-noHover")+(d?" bee-image-card-readOnly ":"")+(e?" "+e:""),children:[u&&jsx("div",{className:"bee-image-card__banner",children:u}),i?jsx("div",{className:"bee-image-card__info "+(c?"bee-image-card__info--disabled":""),children:jsx(BeeIconButton,{iconClass:a||"",rounded:!0,disabled:!1,isLoading:!1,type:"secondary",onClick:t=>function(t){b&&b(t)}(t)})}):null,jsxs("div",{className:f,onClick:t=>function(t){h&&!d&&h(t)}(t),children:[jsx("div",{className:"bee-image-card__headline",children:jsxs(Fragment,{children:[jsx("div",n?{children:n}:{}),jsx("h2",{children:r}),jsx("div",o?{children:o}:{})]})}),jsxs("div",{className:"bee-image-card__content",children:[jsx("div",{className:"bee-image-card__img",children:s&&s.url?jsx(BeeImage,{url:s.url,alt:s.alt,title:s.title,copyright:s.copyright,secured:!!s.secured&&s.secured,showPlaceholder:!!s.showPlaceholder&&s.showPlaceholder},s.key):(null==s?void 0:s.id)?jsx(BeeImage,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!0},""):jsx(BeeImage,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!1},"")}),l?jsx("div",{className:"bee-image-card__content-text",children:l}):null]})]})]})}styleInject(css_248z$9);var css_248z$8=".bee-doc-table .p-datatable-wrapper {\n border-radius: 4px;\n overflow: hidden;\n}\n\n.bee-doc-table .p-datatable-thead th,\n.bee-doc-table .p-datatable-tbody td,\n.bee-doc-table .p-datatable-tbody td p {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n\n/* padding for first and last col */\n.bee-doc-table table th:first-child,\n.bee-doc-table table td:first-child {\n padding-left: 1rem !important;\n}\n\n.bee-doc-table table th:last-child,\n.bee-doc-table table td:last-child {\n padding-right: 1rem !important;\n}\n\n/* padding for header and body */\n.bee-doc-table .p-datatable-thead th {\n padding-top: 0.75rem !important;\n padding-bottom: 0.75rem !important;\n}\n\n.bee-doc-table .p-datatable-tbody td {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n}\n\n.bee-doc-table .p-datatable-emptymessage td {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n/* cols */\n.bee-doc-table-col-action {\n padding: 0 1rem !important;\n}\n\n.bee-doc-table-col-action-oneBtn {\n width: calc(2.25rem + 3px + 2rem);\n}\n\n.bee-doc-table-col-action-twoBtn {\n width: calc(4.5rem + 3px + 2rem);\n}\n\n.bee-doc-table-col-action button {\n margin-right: 3px;\n}\n\n.bee-doc-table-col-date {\n width: 6em;\n}\n\n.bee-doc-table-selectAll-col {\n width: 4em;\n}\n.bee-doc-table-selectAll-col .bee-checkbox-input {\n border: none;\n padding: 0px 0.5em;\n}\n.bee-doc-table-selectAll-col .bee-doc-table-selectAll-empty {\n display: inline-block;\n width: 0;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.bee-doc-table-col-title {\n width: 100%;\n}\n\n.bee-doc-table-col-name {\n width: 100%;\n}\n\n.bee-doc-table-col-size {\n width: 7em;\n padding: 0 1em !important;\n}\n\n.bee-doc-table-col-type {\n width: 5.5em;\n}\n\n.button-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 1rem; /* Optional: Add some spacing if needed */\n}\n\n.bee-doc-table-downloadAll {\n order: 2; /* Optional: Ensure the download button is on the right */\n}\n\n.upload-button {\n order: 1; /* Optional: Ensure the upload button is on the left */\n}\n\n/* dark */\n.bee-doc-table .bee-doc-table-downloadAll {\n padding: 0.5rem 1.15rem;\n}\n\n.bee-doc-table.bee-doc-table-dark table .p-datatable-thead tr th {\n background: var(--primary-color);\n color: var(--primary-color-text);\n}\n\n/* light */\n.bee-doc-table.bee-doc-table-light table .p-datatable-thead tr th {\n font-size: 1.1em;\n color: var(--primary-color);\n}\n\n.bee-doc-table.bee-doc-table-light table .p-datatable-tbody tr:nth-child(odd) {\n background-color: var(--primary-color-4);\n}\n\n/* responsive */\n@media (max-width: 450px) {\n /* use headername as new set title in each row */\n .bee-doc-table table .p-column-title {\n font-weight: bold;\n }\n /* change padding */\n .bee-doc-table table th:first-child,\n .bee-doc-table table td:first-child {\n padding-left: 0.4rem !important;\n }\n .bee-doc-table table > tbody > tr:first-child td:first-child {\n padding-top: 10px !important;\n }\n .bee-doc-table table > tbody > tr td p {\n margin-top: 0.75em !important;\n margin-bottom: 0.75em !important;\n }\n .bee-doc-table table tbody > tr > td:last-child {\n padding-left: 0.4rem !important;\n padding-right: 0.4rem !important;\n padding-bottom: 10px !important;\n }\n /* alternate row colors */\n .bee-doc-table table tbody tr:nth-child(odd) {\n background: var(--primary-color-4);\n }\n}";function BeeDocumentTable({id:t,className:e,data:n,type:r="light",uploadLabel:o,readOnly:i,disabled:a,showDescription:s,showDownload:l,showDelete:p,enableBulkDownload:c,isBulkDownloadLoading:d,onDownloadAll:u,onDownload:h,onDelete:b,onUpload:m}){const[f,g]=useState(window.innerWidth),[v,y]=useState([]),x=null!=t?t:libExports.useId(1,"bee-doc-table-")[0];useEffect(()=>{const t=()=>g(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),useEffect(()=>{if(!(null==n?void 0:n.length))return void y([]);const t=new Set(n.map(t=>t.id));y(e=>{const n=e.filter(e=>t.has(e));return n.length===e.length&&e.every((t,e)=>t===n[e])?e:n})},[n]);const w="bee-doc-table "+("dark"===r?"bee-doc-table-dark":"bee-doc-table-light")+(e?" "+e:""),k="bee-doc-table-col-action"+function(){const t=i?1:(l?1:0)+(p?1:0);return 1===t?" bee-doc-table-col-action-oneBtn":2===t?" bee-doc-table-col-action-twoBtn":""}(),_="bee-doc-table-col-title",S="bee-doc-table-col-name",C="bee-doc-table-col-date",E="bee-doc-table-col-size",P="bee-doc-table-col-type",A="Dateiname",T="Stand",D="Größe",I="Beschreibung",z="Dateityp",M="pi pi-download",j=Boolean(c&&l);useEffect(()=>{j||y([])},[j]);const q=Boolean((null==n?void 0:n.length)&&v.length===n.length),F=j?jsx("div",{onClick:t=>t.stopPropagation(),role:"presentation",children:jsx(BeeCheckbox,{label:"",value:q,disabled:Boolean(a),type:"primary",formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:t=>{const e=(t=>{var e,n;return null!==(n=null!==(e=null==t?void 0:t.checked)&&void 0!==e?e:null==t?void 0:t.value)&&void 0!==n&&n})(t);e&&(null==n?void 0:n.length)?y(n.map(t=>t.id)):y([])}})}):jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"});const R=(null!=n?n:[]).map(t=>Object.assign(Object.assign({},t),{_selected:v.includes(t.id)}));return jsxs("div",{id:x,className:w,children:[jsxs(DataTable,{value:R,dataKey:"id",className:"p-datatable-sm",emptyMessage:"Keine Dokumente vorhanden.",breakpoint:"450px",children:[j?jsx(Column,{className:"bee-doc-table-selectAll-col",headerClassName:"bee-doc-table-selectAll-col",body:function(t){var e;if(!t)return null;if(!j)return jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"});const n=null!==(e=t._selected)&&void 0!==e?e:v.includes(t.id);return jsx(BeeCheckbox,{label:"",value:n,type:"primary",disabled:Boolean(a),formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:e=>{e.checked?y(e=>[...e,t.id]):y(e=>e.filter(e=>e!==t.id))}})},header:F},"bee-doc-table-col-selection"):null,s?jsx(Column,{className:_,headerClassName:_,body:function(t){return t?jsx("p",{"data-headername":I,children:t.descr}):null},header:I},"bee-doc-table-col-description"):null,jsx(Column,{className:S,headerClassName:S,body:function(t){return t?jsx("p",{"data-headername":A,children:t.filename}):null},header:A},"bee-doc-table-col-filename"),jsx(Column,{className:C,headerClassName:C,body:function(t){if(!t)return null;const e=t.timestamp;return jsx("p",{"data-headername":T,children:e?e.toLocaleDateString("de-DE"):" "})},header:T},"bee-doc-table-col-date"),f>768?jsx(Column,{className:E,headerClassName:E,body:function(t){if(!t)return null;const e=t.size?fileSizeSI(t.size):"";return jsx("p",{"data-headername":D,children:e})},header:D},"bee-doc-table-col-size"):null,f>576?jsx(Column,{className:P,headerClassName:P,body:function(t){return t?jsx("p",{"data-headername":z,children:t.type}):null},header:z},"bee-doc-table-col-type"):null,p||l?jsx(Column,{className:k,headerClassName:k,body:function(t){if(!t)return null;const e=t.id;return jsxs("div",{"data-headername":"",children:[l?jsx(BeeIconButton,{iconClass:M,isLoading:!1,rounded:!1,disabled:!1,type:"secondary",onClick:()=>{return t=e,void(h&&h(t));var t}}):null,!i&&p?jsx(BeeIconButton,{iconClass:"pi pi-trash",isLoading:!1,rounded:!1,disabled:Boolean(i),type:"danger",onClick:()=>{return t=e,void(b&&b(t));var t}}):null]})},header:""},"bee-doc-table-col-action"):null]},`bee-doc-table-dt-${String(l)}-${String(j)}`),jsxs("div",{className:"button-container",children:[j?jsx("div",{className:"bee-doc-table-downloadAll",children:jsx(BeeMixButton,{label:"Auswahl herunterladen",iconClass:M,iconPos:"right",disabled:!(v&&v.length>0),type:"secondary",isLoading:d,onClick:()=>{u&&l&&u(v)}})}):null,jsx("div",{className:"upload-button",children:i?null:jsx(BeeMixButton,{iconPos:"left",iconClass:"pi pi-upload",label:null!=o?o:"Dokument hinzufügen",disabled:i,type:"secondary",isLoading:!1,onClick:()=>{m&&m()}})})]})]})}styleInject(css_248z$8);var css_248z$7=".chat-message {\n width: 100%;\n display: flex;\n}\n.chat-message.chat-message--otherUser, .chat-message.chat-message--system {\n align-self: flex-start;\n margin-right: auto;\n margin-left: 0;\n}\n.chat-message.chat-message--otherUser .chat-message__message-container-avatar, .chat-message.chat-message--system .chat-message__message-container-avatar {\n flex-direction: row-reverse;\n}\n.chat-message.chat-message--self {\n align-self: flex-end;\n margin-left: auto;\n margin-right: 0;\n justify-content: flex-end;\n}\n.chat-message .chat-message__message-container-avatar {\n display: flex;\n align-items: center;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container {\n position: relative;\n border-radius: 0.75em;\n padding: 5px;\n color: white;\n max-width: 100%;\n overflow: hidden;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding-left: 5px;\n padding-right: 5px;\n overflow: hidden;\n max-width: 100%;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info {\n display: flex;\n align-items: center;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info .chat-message__source-separator {\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info i {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .chat-message__user-info i::before {\n margin-left: 0;\n margin-right: 0;\n color: var(--surface-400);\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_headline-container .bee-label {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--surface-400) !important;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_media-container {\n max-width: 90%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_media-container .p-button.p-component.bee-mix-btn-light-primary {\n max-width: 100%;\n margin-left: 0;\n justify-content: flex-start;\n background-color: transparent;\n color: var(--surface-a);\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message_media-container .p-button.p-component.bee-mix-btn-light-primary .p-button-label {\n max-width: 90%;\n text-decoration: underline;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .chat-message {\n padding-left: 5px;\n padding-right: 5px;\n}\n.chat-message .chat-message__message-container-avatar .chat-message__message-container .p-button.p-component {\n display: flex;\n justify-content: flex-end;\n margin-left: auto;\n padding: 0 5px 5px 0;\n background-color: transparent;\n}\n.chat-message .chat-message__message-container-avatar .bee-avatar {\n margin: 0.5rem;\n}\n.chat-message.chat-message--self .chat-message__message-container {\n background-color: var(--primary-color-76);\n}\n.chat-message.chat-message--otherUser .chat-message__message-container {\n background-color: var(--tertiary-dark-color);\n}\n.chat-message.chat-message--system .chat-message__message-container {\n background-color: var(--neutral-color);\n}",ChatMessageSourceEnum,ChatParticipantTypeEnum;function parseParticipantName(t){var e,n;if(!(null==t?void 0:t.trim()))return{firstName:"U",lastName:"N"};const r=t.trim().split(" ").filter(t=>t.length>0);return 0===r.length?{firstName:"U",lastName:"N"}:{firstName:null!==(e=r[0])&&void 0!==e?e:"U",lastName:null!==(n=r[r.length-1])&&void 0!==n?n:"N"}}function BeeChatMessage({maxWindow:t=!1,msg:e,participant:n,project:r,chatMsgSource:o,isCurrentUser:i=!1,documentIconClass:a="pi pi-file",trashIconClass:s="pi pi-trash",sourceAuditIconClass:l="pi pi-briefcase",sourceLcIconClass:p="pi pi-comments",onMsgDelete:c,onDownload:d}){const[u,h]=useState(!1),b=useMemo(()=>{var t;return null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"Unbekannter Benutzer"},[null==n?void 0:n.name]),m=useMemo(()=>null==n?void 0:n.type,[null==n?void 0:n.type]),{firstName:f,lastName:g}=useMemo(()=>parseParticipantName(b),[b]),v=useMemo(()=>m!==ChatParticipantTypeEnum.USER||i?m===ChatParticipantTypeEnum.USER&&i?"chat-message--self":m===ChatParticipantTypeEnum.SYSTEM?"chat-message--system":"chat-message--otherUser":"chat-message--otherUser",[m,i]),y="chat-message_headline-container align-items-center "+(r===ChatMessageSourceEnum.AUDIT?"pl-0":""),x=r===ChatMessageSourceEnum.AUDIT&&(o===ChatMessageSourceEnum.AUDIT||o===ChatMessageSourceEnum.LC),w=useMemo(()=>{if(!(null==e?void 0:e.message)||m!==ChatParticipantTypeEnum.SYSTEM)return null;try{const t=JSON.parse(e.message);return(null==t?void 0:t.payload)||e.message}catch(t){return console.error("Error parsing system message JSON:",t),e.message}},[null==e?void 0:e.message,m]);function k(){const t=new Date,n=(null==e?void 0:e.createdAt)?new Date(e.createdAt):void 0;if(!n||isNaN(n.getTime()))return!1;const r=t.getTime()-n.getTime();return Math.floor(r/6e4)<30}function _(){var n,r,o,i;if(!(null==e?void 0:e.mediaId))return null;const s=e.mediaId;return s&&"object"==typeof s?jsx("div",{className:"chat-message_media-container",children:(null==s?void 0:s.document)?jsxs(Fragment,{children:[jsx(BeeMixButton,{label:s.document.filename||"Unbekannte Datei",iconClass:a,type:"lightPrimary",iconPos:"left",onClick:null!=d?d:()=>{}}),t&&(null===(n=null==s?void 0:s.document)||void 0===n?void 0:n.fileSize)?jsx(BeeLabel,{value:`Größe: ${null===(r=null==s?void 0:s.document)||void 0===r?void 0:r.fileSize.toString()}kb`,size:"small",type:"neutral"}):null]}):(null==s?void 0:s.image)?jsxs(Fragment,{children:[jsx(BeeMixButton,{label:s.image.filename||"Unbekanntes Bild",iconClass:a,type:"lightPrimary",iconPos:"left",onClick:null!=d?d:()=>{}}),t&&(null===(o=null==s?void 0:s.image)||void 0===o?void 0:o.fileSize)?jsx(BeeLabel,{value:`Größe: ${null===(i=null==s?void 0:s.image)||void 0===i?void 0:i.fileSize.toString()}kb`,size:"small",type:"neutral"}):null]}):null}):(console.warn("Invalid media object:",s),null)}function S(){if(!(null==e?void 0:e.createdAt))return null;const t=new Date(e.createdAt),n=t.getDate().toString().padStart(2,"0"),r=(t.getMonth()+1).toString().padStart(2,"0"),o=t.getFullYear().toString().slice(-2),i=t.getHours().toString().padStart(2,"0"),a=t.getMinutes().toString().padStart(2,"0");return jsx(Fragment,{children:jsx(BeeLabel,{value:`${n}.${r}.${o} - ${i}:${a}`,size:"small",type:"neutral"})})}return jsx("div",{className:"chat-message "+v,children:jsxs("div",{className:"chat-message__message-container-avatar",children:[(null==e?void 0:e.deletedAt)?null:e?jsxs("div",{className:"chat-message__message-container",children:[jsxs("div",{className:y,children:[jsxs("div",{className:"chat-message__user-info",children:[x?o===ChatMessageSourceEnum.AUDIT?jsx("i",{className:l}):o===ChatMessageSourceEnum.LC?jsx("i",{className:p}):null:null,x?jsx("div",{className:"chat-message__source-separator",children:jsx(BeeLabel,{value:"||",size:"small",type:"neutral"})}):null,jsx(BeeLabel,{value:b,size:"small",type:"neutral"})]}),S()]}),(null==e?void 0:e.mediaId)?_():jsx("div",{className:"chat-message",children:m===ChatParticipantTypeEnum.SYSTEM?w:(null==e?void 0:e.message)||"Keine Nachricht"}),k()&&i?jsx(BeeIconButton,{iconClass:s,type:"lightPrimary",rounded:!1,onClick:()=>{h(!0)}}):null]}):null,jsx(Fragment,{children:jsx(BeeAvatar,{showPlaceholder:!0,placeholderFirstname:f,placeholderLastname:g,showDelete:!1,disabled:!1,size:"xSmall",type:"primary"})}),jsx(BeeDeletionDialog,{visible:u,message:"Wollen Sie diese Nachricht wirklich löschen?",header:"Nachricht löschen",type:"primary",acceptLabel:"Löschen",rejectLabel:"Abbrechen",onAccept:()=>{c&&c(),h(!1)},onReject:()=>{h(!1)},onHide:()=>h(!1)})]})})}styleInject(css_248z$7),function(t){t.LC="LC",t.AUDIT="AUDIT"}(ChatMessageSourceEnum||(ChatMessageSourceEnum={})),function(t){t.ADMIN="ADMIN",t.USER="USER",t.SYSTEM="SYSTEM"}(ChatParticipantTypeEnum||(ChatParticipantTypeEnum={}));var css_248z$6=".serverStatus-input {\n width: 100%;\n display: block !important;\n}\n\n.p-input-icon-right.serverStatus-input-icon-right {\n position: relative;\n width: 100% !important;\n}\n.p-input-icon-right.serverStatus-input-icon-right .bee-dropdown + .icon,\n.p-input-icon-right.serverStatus-input-icon-right .bee-date-input-container + .icon,\n.p-input-icon-right.serverStatus-input-icon-right .bee-date-input-container + i,\n.p-input-icon-right.serverStatus-input-icon-right .bee-dropdown + .p-progress-spinner,\n.p-input-icon-right.serverStatus-input-icon-right .bee-date-input-container + .p-progress-spinner {\n right: 2em !important;\n}\n.p-input-icon-right.serverStatus-input-icon-right .bee-num-select-container + .icon,\n.p-input-icon-right.serverStatus-input-icon-right .bee-num-select-container + .p-progress-spinner {\n right: 2.5em !important;\n}\n.p-input-icon-right.serverStatus-input-icon-right .bee-dropdown .p-dropdown-label {\n padding-right: 1.5em;\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--success,\n.p-input-icon-right.serverStatus-input-icon-right .icon--error,\n.p-input-icon-right.serverStatus-input-icon-right .icon--externalChange,\n.p-input-icon-right.serverStatus-input-icon-right .icon--loading {\n position: absolute;\n right: 0.5em !important;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--success {\n color: var(--valid-color);\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--error {\n color: var(--error-dark-color);\n top: 1.5rem;\n}\n.p-input-icon-right.serverStatus-input-icon-right .icon--externalChange {\n color: var(--warning-color);\n}\n.p-input-icon-right.serverStatus-input-icon-right .p-progress-spinner {\n z-index: 10;\n top: 0.55em;\n right: 0.6em !important;\n font-size: 1.25em;\n position: absolute;\n height: 1.2em;\n width: 1.2em;\n filter: grayscale(100%);\n opacity: 0.9;\n}\n.p-input-icon-right.serverStatus-input-icon-right .p-filled {\n padding-right: 2.5rem;\n}\n\n.server-status-success .p-slider {\n box-shadow: none !important;\n}\n.server-status-success .p-chip {\n border-radius: 16px !important;\n}\n\n.server-status-error .p-slider {\n box-shadow: none !important;\n}\n.server-status-error .p-chip {\n border-radius: 16px !important;\n}\n\n.server-status-loading .p-slider {\n box-shadow: none !important;\n}\n.server-status-loading .p-chip {\n border-radius: 16px !important;\n}",ServerStatus;styleInject(css_248z$6),function(t){t.SERVER_STATUS_LOADING="loading",t.SERVER_STATUS_ERROR="error",t.SERVER_STATUS_SUCCESS="success",t.SERVER_STATUS_EXTERNAL_UPDATE="externalUpdate"}(ServerStatus||(ServerStatus={}));const DEFAULT_SUCCESS_TOOLTIP="Änderung gespeichert",DEFAULT_ERROR_TOOLTIP="Die Änderung konnte nicht gespeichert werden",DEFAULT_EXTERNAL_CHANGE_TOOLTIP="Eine andere Person hat dieses Feld soeben bearbeitet";function BeeServerStatusInput({status:t,successIcon:e="pi pi-check",loadingIcon:n,errorIcon:r="pi pi-times",externalChangeIcon:o="pi pi-user",hideIcons:i,children:a,onResetStatus:s,successTooltip:l=DEFAULT_SUCCESS_TOOLTIP,errorTooltip:p=DEFAULT_ERROR_TOOLTIP,externalChangeTooltip:c=DEFAULT_EXTERNAL_CHANGE_TOOLTIP}){const d=t===ServerStatus.SERVER_STATUS_LOADING?"server-status-loading":t===ServerStatus.SERVER_STATUS_ERROR?"server-status-error":t===ServerStatus.SERVER_STATUS_SUCCESS?"server-status-success":t===ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?"server-status-externalChange":"";return useEffect(()=>{if(t===ServerStatus.SERVER_STATUS_SUCCESS||t===ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE){const t=setTimeout(()=>{null==s||s()},5e3);return()=>clearTimeout(t)}},[t,s]),jsxs("div",{className:t?`serverStatus-input ${d} p-input-icon-right serverStatus-input-icon-right`:"serverStatus-input",children:[jsx(Fragment,{children:a}),t&&!i?jsx(Fragment,{children:t===ServerStatus.SERVER_STATUS_SUCCESS?jsxs(Fragment,{children:[jsx(Tooltip$1,{target:".icon--success",content:l}),jsx("i",{className:e+" icon--success"})]}):t===ServerStatus.SERVER_STATUS_LOADING?jsx(Fragment,{children:n?jsx("i",{className:n+" icon--loading"}):jsx(BeeLoadingSpinner,{strokeWidth:"2",type:"primary"})}):t===ServerStatus.SERVER_STATUS_ERROR?jsxs(Fragment,{children:[jsx(Tooltip$1,{target:".icon--error",content:p}),jsx("i",{className:r+" icon--error"})]}):t===ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?jsxs(Fragment,{children:[jsx(Tooltip$1,{target:".icon--externalChange",content:c}),jsx("i",{className:o+" icon--externalChange"})]}):null}):null]})}var css_248z$5=".bee-changes-chip {\n background-color: var(--primary-color) !important;\n padding: 0.25em 0.25em;\n border-radius: 0.75em;\n box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;\n display: inline-flex;\n align-items: center;\n}\n.bee-changes-chip__icon-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 4rem;\n gap: 0.1rem;\n}\n.bee-changes-chip i {\n color: white;\n width: 1em;\n height: 1em;\n margin-right: 0.15rem;\n}\n.bee-changes-chip .icon-comment-filled:before {\n font-size: 1.2em;\n}\n.bee-changes-chip .p-badge {\n font-size: 0.75em;\n font-style: normal;\n background-color: white;\n color: var(--primary-color);\n}\n.bee-changes-chip--secondary {\n background-color: var(--secondary-color) !important;\n}\n.bee-changes-chip--secondary i {\n color: var(--primary-color);\n}\n.bee-changes-chip--secondary .p-badge {\n color: var(--secondary-color);\n background-color: var(--primary-color);\n}\n.bee-changes-chip--light {\n background-color: unset !important;\n}\n.bee-changes-chip--light i {\n color: var(--primary-color);\n}\n.bee-changes-chip--light .p-badge {\n color: var(--primary-color-text);\n background-color: var(--primary-color);\n}";function BeeChangesChip({className:t,values:e,type:n="primary"}){const r=`bee-changes-chip ${`bee-changes-chip--${n}`} ${t?" "+t:""}`;return 0===e.length?null:jsx("div",{className:r,children:function(t){return t.map((t,e)=>{const n=t.value<10?t.value.toString():"9+";return jsxs("div",{className:"bee-changes-chip__icon-wrapper",children:[jsx("i",{className:t.icon}),jsx("div",{}),jsx(Badge,{value:n,severity:"info"})]},e)})}(e)})}styleInject(css_248z$5);var css_248z$4=".bee-filter-dropdown-container {\n align-items: center;\n position: relative;\n}\n.bee-filter-dropdown-container .cancel {\n position: absolute;\n right: 1.75rem;\n}\n\n.bee-filter-dropdown-container .p-dropdown {\n width: 100%;\n}\n\n.bee-filter-dropdown-container label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-right: 6px;\n}\n\n.bee-filter-dropdown-label-required {\n padding-left: 3px;\n padding-right: 4px;\n}\n\n.bee-filter-dropdown-label-required-star {\n position: absolute;\n right: 0px;\n padding-left: inherit;\n padding-right: inherit;\n max-width: 100%;\n}\n\n.bee-filter-dropdown-statusLabel {\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n.bee-filter-dropdown-valid {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-filter-dropdown-error {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n.bee-filter-dropdown-readOnly {\n border-color: transparent !important;\n opacity: 1 !important;\n}\n\n.bee-filter-dropdown-readOnly .p-dropdown-trigger-icon {\n display: none;\n}";function BeeFilterDropDown({id:t,className:e,label:n,value:r,options:o,optionLabel:i,optionValue:a,disabled:s,dropdownIcon:l,deleteIcon:p,statusLabel:c,formstate:d="neutral",readOnly:u,onChange:h}){const b=null!=t?t:libExports.useId(1,"bee-filter-dropdown-")[0],m=b+"input",[f,g]=useState(r);let v="";u&&(v=" bee-filter-dropdown-readOnly",s=!0);const y=("valid"===d?"bee-filter-dropdown-valid":"error"===d?"bee-filter-dropdown-error":"bee-filter-dropdown-neutral")+v,x="p-float-label bee-filter-dropdown-container flex "+(e?" "+e:""),w=null!=p?p:"pi pi-times-circle";useEffect(()=>{g(r)},[r]);return jsxs("div",{className:"bee-filter-dropdown",children:[u&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:b,label:n})}):jsxs("span",{id:b,className:x,children:[jsx(Dropdown,{id:m,value:f,options:o,optionLabel:i,optionValue:a,disabled:null!=s&&s,className:y,dropdownIcon:null!=l?l:"",emptyMessage:"Keine Einträge gefunden",onChange:t=>{return e=t,void(!s&&h&&h(e));var e}}),f&&""!==f?jsx("div",{className:"cancel",children:jsx(BeeIconButton,{iconClass:w,rounded:!0,disabled:s||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{g("")}})}):null,n?jsx("label",{htmlFor:m,children:n}):null]}),"none"!=d&&c?(()=>{const t="medium";return jsx("div",{className:"bee-filter-dropdown-statusLabel",children:"error"===d&&null!=c?jsx(BeeLabel,{size:t,value:String(c),type:"error"}):"valid"===d&&null!=c?jsx(BeeLabel,{size:t,value:String(c),type:"valid"}):"neutral"===d&&null!=c?jsx(BeeLabel,{size:t,value:String(c),type:"neutral"}):null})})():null]})}styleInject(css_248z$4);var css_248z$3=".bee-filter-ts-container {\n position: relative;\n width: 100%;\n}\n.bee-filter-ts-container .p-treeselect {\n width: 100%;\n}\n.bee-filter-ts-container .p-treeselect-label {\n line-height: 1;\n}\n.bee-filter-ts-container .p-treeselect-label-container {\n align-items: center;\n}\n.bee-filter-ts-container .bee-filter-ts-filter__deleteBtn {\n position: absolute;\n right: 1.75rem;\n top: 0.24rem;\n width: auto;\n z-index: 1;\n}\n.bee-filter-ts-container .bee-filter-ts-filter--hidden {\n visibility: hidden;\n}\n.bee-filter-ts-container .p-treeselect-token {\n padding: 0.2rem 0.75rem !important;\n}\n.bee-filter-ts-container .p-treenode-label {\n color: var(--text-color);\n}\n\n.bee-filter-ts-invisible-header .p-treeselect-header {\n display: none;\n}\n.bee-filter-ts-invisible-header .p-treeselect-header .p-treeselect-close {\n display: none;\n}\n\n.bee-filter-ts-panel .p-treeselect-items-wrapper .p-tree,\n.bee-filter-ts-panel .p-tree .p-tree-container .p-treenode,\n.bee-filter-ts-panel .p-tree .p-tree-container .p-treenode .p-treenode-content {\n padding-right: 0px;\n}\n\n.bee-filter-ts-panel .p-treeselect-items-wrapper .p-tree {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.bee-filter-ts-panel .p-tree .p-tree-container .p-treenode .p-treenode-content {\n border-radius: 0px;\n}\n\n.bee-filter-ts-container label {\n white-space: nowrap;\n overflow-x: clip;\n text-overflow: ellipsis;\n max-width: -webkit-calc(100% - 2.5rem - 6px);\n max-width: -moz-calc(100% - 2.5rem - 6px);\n max-width: calc(100% - 2.5rem - 6px);\n padding-right: 6px;\n}\n\n/* required */\n.bee-filter-ts-label-required {\n padding-left: 3px;\n padding-right: 4px;\n}\n\n.bee-filter-ts-label-required-star {\n position: absolute;\n right: 0px;\n padding-left: inherit;\n padding-right: inherit;\n max-width: 100%;\n}\n\n.bee-filter-ts-statusLabel {\n padding: 0.25em 0.25em 0 0.5em;\n}\n\n/* readonly */\n.bee-filter-ts-readOnly {\n border-color: transparent !important;\n opacity: 1 !important;\n}\n\n.bee-filter-ts-readOnly .p-treeselect-trigger-icon {\n display: none;\n}\n\n/* formstate */\n.bee-filter-ts-valid.p-inputwrapper {\n border-color: var(--valid-color);\n border-width: 2px;\n}\n\n.bee-filter-ts-error.p-inputwrapper {\n border-color: var(--error-color);\n border-width: 2px;\n}\n\n/* selectable */\n.bee-filter-ts-panel .p-treenode-content {\n color: var(--surface-500);\n}\n\n.bee-filter-ts-panel .p-treenode-content.p-treenode-selectable {\n color: var(--text-color);\n}\n\n.display-none {\n display: none;\n}";function BeeFilterTreeSelect({id:t,className:e,label:n,value:r,options:o,valueTemplate:i,display:a="comma",selectionMode:s="single",placeholder:l,filter:p,filterTemplate:c,filterValue:d,filterBy:u,filterPlaceholder:h,confirmBtnText:b,confirmBtnDisabled:m,confirmBtnTooltip:f,deleteIcon:g,disabled:v,readOnly:y,statusLabel:x,formstate:w="neutral",required:k,hideDelete:_,onSelectNodes:S,onChange:C,onHide:E}){const P=null!=t?t:libExports.useId(1,"bee-filter-ts-")[0],A=P+"input",[T,D]=useState(r);let I="";y&&(I=" bee-filter-ts-readOnly",v=!0);const z=("valid"===w?"bee-filter-ts-valid":"error"===w?"bee-filter-ts-error":"bee-filter-ts-neutral")+I,M=" p-float-label bee-filter-ts-container",j=p?"bee-filter-ts-panel":"bee-filter-ts-panel bee-filter-ts-invisible-header",q=g||"pi pi-times-circle";function F(){const t=document.querySelector("body");if(t){const e=new MouseEvent("click",{bubbles:!0,view:window});t.dispatchEvent(e)}}function R(){!v&&E&&E()}useEffect(()=>{D(r)},[r]);return jsxs(Fragment,{children:[y&&!r?jsx("div",{className:null!=e?e:"",children:jsx(BeePlaceholder,{id:P,label:n})}):jsxs("div",{id:P,className:e?e+M:M,children:[jsx("div",{className:!y&&r&&Object.keys(r).length>0?"bee-filter-ts-filter__deleteBtn":"bee-filter-ts-filter__deleteBtn bee-filter-ts-filter--hidden",children:!T||""===T||_?null:jsx("div",{className:"cancel",children:jsx(BeeIconButton,{iconClass:q,rounded:!0,disabled:v||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{D(""),!v&&S&&(S(void 0),F())}})})}),jsxs("span",{className:"p-float-label",children:[jsx(TreeSelect,{id:A,value:T,options:o,disabled:v||!1,className:z,valueTemplate:i,panelClassName:j,display:null!=a?a:"comma",selectionMode:s,placeholder:l,filter:p,filterTemplate:c,filterValue:d,filterBy:u,filterPlaceholder:h||"Suche",onChange:t=>{D(t.value),function(t){!v&&C&&C(t)}(t)},onHide:()=>{D(r),R()},panelFooterTemplate:()=>jsx("div",{className:"p-d-flex p-jc-end p-ai-center",style:{padding:"1rem"},children:jsx(BeeButton,{label:b||"Übernehmen",type:"secondary",disabled:m||!1,tooltip:m&&f?f:void 0,onClick:()=>{R(),!v&&S&&(S(T),F())}})})}),n?jsxs("label",{htmlFor:A,className:"bee-filter-ts-label",children:[n,k&&n?jsx("span",{className:"bee-filter-ts-label-required",children:jsx("span",{className:"bee-filter-ts-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=w&&x?(()=>{const t="medium";return jsx("div",{className:"bee-filter-ts-statusLabel",children:"error"===w&&null!=x?jsx(BeeLabel,{size:t,value:String(x),type:"error"}):"valid"===w&&null!=x?jsx(BeeLabel,{size:t,value:String(x),type:"valid"}):"neutral"===w&&null!=x?jsx(BeeLabel,{size:t,value:String(x),type:"neutral"}):null})})():null]})}styleInject(css_248z$3);var css_248z$2=".bee-panel {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\n.bee-panel__toggle-wrapper {\n display: flex;\n align-items: center;\n align-content: center;\n}\n.bee-panel__toggle-invisible {\n visibility: hidden;\n pointer-events: none;\n}\n.bee-panel__title {\n align-content: center;\n padding: 0.5rem;\n}\n.bee-panel__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n}\n.bee-panel__header-row {\n min-width: 0;\n}\n.bee-panel__header-actions {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n.bee-panel .p-panel-header {\n color: var(--primary-color);\n background-color: transparent;\n}\n.bee-panel .p-panel-header .p-panel-title {\n font-size: 1.2em;\n}\n.bee-panel .p-panel-header .p-panel-header-icon {\n border-radius: 50%;\n width: 1.75rem;\n min-width: 1.75rem;\n height: 1.75rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.bee-panel .p-panel-content {\n background: transparent;\n}\n.bee-panel .bee-panel__toggle-wrapper .p-panel-header-icon {\n border-radius: 50%;\n width: 1.75rem;\n min-width: 1.75rem;\n height: 1.75rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}";function BeePanel({id:t,className:e,header:n,children:r,collapsed:o,type:i="primary",showToggle:a=!0,togglePlacement:s="right",showAdd:l=!1,addLabel:p,readOnly:c,disabled:d,isPmView:u=!1,onToggle:h,onAddAddendum:b,renderHeader:m}){const f="primary"===i?" bee-panel--primary":"secondary"===i?" bee-panel--secondary":" bee-panel--primary",g=d?" disabled":"";return jsx(Panel,Object.assign({id:t,headerTemplate:t=>{const e=t.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",r="left"===s,o=`${t.className}`,i=`${t.titleClassName}`,h=l&&!c&&!u,f=h?jsx(BeeMixButton,{label:null!=p?String(p):"",iconClass:"pi pi-plus",iconPos:"left",disabled:null!=d&&d,type:"lightPrimary",isLoading:!1,onClick:()=>null==b?void 0:b()}):null,g=h,v=!c&&a?jsx("div",{className:"bee-panel__toggle-wrapper",children:jsx("button",{className:t.togglerClassName,onClick:t.onTogglerClick,children:jsx("span",{className:e})})}):null;if(m)return jsx("div",{className:o+" bee-panel__header",children:m({toggleButton:v,addButton:f,collapsed:!!t.collapsed})});const y=jsx("div",{className:i+" bee-panel__title",children:n});return jsxs("div",{className:o+" bee-panel__header",children:[jsxs("div",{className:"bee-panel__header-row flex align-items-center",children:[r&&v,y,!r&&v]}),g&&jsx("div",{className:"bee-panel__header-actions",children:f})]})},toggleable:!0,collapsed:o,className:"bee-panel"+f+g+(e?" "+e:"")},null!=h?{onToggle:h}:{},{children:jsx(Fragment,{children:r})}))}styleInject(css_248z$2);var css_248z$1=".bee-search-bar {\n display: flex;\n align-items: stretch;\n position: relative;\n}\n.bee-search-bar .p-inputtext {\n box-sizing: border-box;\n}\n.bee-search-bar .p-button-half-rounded {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.bee-search-bar-button-col .p-button.p-button-icon-only {\n height: 100%;\n flex-grow: 1;\n align-items: center;\n justify-content: center;\n}\n.bee-search-bar-button-col .p-button.p-button-icon-only .p-button-icon::before {\n font-size: 1rem;\n}\n\n.bee-search-bar-button-col .p-button.p-button-icon-only .p-button-icon::before {\n font-weight: 600;\n}\n\n.bee-search-bar .search-cancel {\n position: absolute;\n right: 2.5rem;\n top: 0.25rem;\n}";function BeeSearchBar({id:t,className:e,label:n,value:r,disabled:o,readOnly:i,deleteIcon:a,required:s,formstate:l="neutral",type:p="primary",onSearch:c}){const d=null!=t?t:libExports.useId(1,"bee-searchbar-")[0],u=useRef(null),[h,b]=useState(null!=r?r:""),m="bee-search-bar flex"+(e?" "+e:""),f=null!=a?a:"pi pi-times-circle";useEffect(()=>{b(null!=r?r:"")},[r]);const g=useCallback(lodashExports.debounce(()=>{(null==u?void 0:u.current)&&u.current.click()},1e3),[]),v=t=>{b(t),c&&c(t)},y=()=>{g&&g.cancel()},x=()=>{y(),o||v(h)};return jsxs("div",{id:d,className:m,onKeyDown:t=>{"Enter"===t.key&&x()},children:[jsx("div",{className:"w-full",children:jsx(BeeTextInput,{value:null!==h?h:"",disabled:null!=o&&o,readOnly:null!=i&&i,required:null!=s&&s,formstate:l,halfRounded:!0,label:n,onChange:t=>{return e=t.target.value,b(e),void g();var e}})}),i?null:jsxs("div",{className:"bee-search-bar-button-col",children:[jsx(BeeIconButton,{iconClass:"pi pi-search",rounded:!1,halfRounded:!0,disabled:null!=o&&o,type:p,isLoading:!1,onClick:()=>x()}),jsx("button",{ref:u,type:"button",onClick:()=>x(),style:{display:"none"}})]}),h&&""!==h?jsx("div",{className:"search-cancel",children:jsx(BeeIconButton,{iconClass:f,rounded:!0,disabled:null!=o&&o,type:"lightPrimary",isLoading:!1,onClick:t=>{b(""),v(""),y(),t.stopPropagation()}})}):null]})}styleInject(css_248z$1);var css_248z=".bee-skeleton-list .p-skeleton.p-component.bee-skeleton-rectangle {\n position: relative;\n border-radius: 4px;\n}";function BeeSkeletonList({id:t,className:e,noSkeletons:n=3,width:r,height:o,showHover:i,showShade:a}){const s=null!=t?t:libExports.useId(1,"bee-skeleton-list-")[0],l=Math.max(0,Math.floor(n));return jsx("div",{id:s,className:"bee-skeleton-list grid grid-nogutter flex-wrap"+(e?" "+e:""),children:Array.from({length:l}).map(()=>jsx(BeeSkeleton,{width:r,height:o,showHover:i,showShade:a}))})}styleInject(css_248z);export{BasicPriceChart,BeeAddEntryCard,BeeAddressForm,BeeArrowDiff,BeeAutocompleteDropdown,BeeAutocompleteTag,BeeAvatar,BeeBadge,BeeBreadcrumb,BeeButton,BeeChangesChip,BeeChatMessage,BeeChatWindow,BeeCheckbox,BeeCheckboxTriState,BeeChip,BeeChipArea,BeeChipDropdown,BeeChipInput,BeeColorSelect,BeeConfirmDialog,BeeContentHeadline,BeeContentParagraph,BeeCopyInput,BeeCurrencyInput,BeeCurrencySelect,BeeDateInput,BeeDateTimeInput,BeeDeletionDialog,BeeDivider,BeeDocumentTable,BeeDropDown,BeeError404Page,BeeErrorComponent,BeeErrorDialog,BeeFilterDropDown,BeeFilterSortSearch,BeeFilterTreeSelect,BeeFlatImageGallery,BeeGalleryImage,BeeIconBadgeButton,BeeIconButton,BeeImage,BeeImageCard,BeeImageCropper,BeeFlatImageGallery as BeeImageGallery,BeeImageSlider,BeeImageUploadDialog,BeeInfoDialog,BeeKnob,BeeLabel,BeeLink,BeeLinkButton,BeeLoadingBar,BeeLoadingSpinner,BeeMixButton,BeeNumberInput,BeeNumberSelect,BeeNutzungsartMix,BeeOutlinedButton,BeeOutlinedIconButton,BeePanel,BeePasswordInput,BeePercentageInput,BeePlaceholder,BeeSearchBar,BeeSelectButton,BeeSequencePosition,BeeServerStatusInput,BeeShareBar,BeeSkeleton,BeeSkeletonList,BeeSlider,BeeSplitButton,BeeStarBar,BeeSwitch,BeeTabview,BeeTextArea,BeeTextInput,BeeTimeInput,BeeToolBarButton,BeeTreeSelect,BeeUploadDialog,BeeVisibleItemCount,ChatMessageSourceEnum,ChatParticipantTypeEnum,ContractPotentialsChart,LvEditingStatusChart,LvInsightsChart,ServerStatus};
|
|
57
57
|
//# sourceMappingURL=index.mjs.map
|