/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/procode-vs-template@1.0.20/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),e$i=require("react"),ReactDOM=require("react-dom"),reactRouterDom=require("react-router-dom");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var e__namespace=_interopNamespaceDefault(e$i),ReactDOM__namespace=_interopNamespaceDefault(ReactDOM),extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hasRequiredReactIs_production_min$2,propTypes={exports:{}},reactIs$3={exports:{}},reactIs_production_min$2={};function requireReactIs_production_min$2(){if(hasRequiredReactIs_production_min$2)return reactIs_production_min$2;hasRequiredReactIs_production_min$2=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function $(e){return y(e)===c}return reactIs_production_min$2.AsyncMode=l,reactIs_production_min$2.ConcurrentMode=c,reactIs_production_min$2.ContextConsumer=s,reactIs_production_min$2.ContextProvider=a,reactIs_production_min$2.Element=t,reactIs_production_min$2.ForwardRef=u,reactIs_production_min$2.Fragment=r,reactIs_production_min$2.Lazy=h,reactIs_production_min$2.Memo=f,reactIs_production_min$2.Portal=n,reactIs_production_min$2.Profiler=o,reactIs_production_min$2.StrictMode=i,reactIs_production_min$2.Suspense=d,reactIs_production_min$2.isAsyncMode=function(e){return $(e)||y(e)===l},reactIs_production_min$2.isConcurrentMode=$,reactIs_production_min$2.isContextConsumer=function(e){return y(e)===s},reactIs_production_min$2.isContextProvider=function(e){return y(e)===a},reactIs_production_min$2.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_production_min$2.isForwardRef=function(e){return y(e)===u},reactIs_production_min$2.isFragment=function(e){return y(e)===r},reactIs_production_min$2.isLazy=function(e){return y(e)===h},reactIs_production_min$2.isMemo=function(e){return y(e)===f},reactIs_production_min$2.isPortal=function(e){return y(e)===n},reactIs_production_min$2.isProfiler=function(e){return y(e)===o},reactIs_production_min$2.isStrictMode=function(e){return y(e)===i},reactIs_production_min$2.isSuspense=function(e){return y(e)===d},reactIs_production_min$2.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},reactIs_production_min$2.typeOf=y,reactIs_production_min$2}var hasRequiredReactIs_development$2,hasRequiredReactIs,objectAssign,hasRequiredObjectAssign,ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret,has,hasRequiredHas,checkPropTypes_1,hasRequiredCheckPropTypes,factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers,factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims,reactIs_development$2={};
/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function requireReactIs_development$2(){return hasRequiredReactIs_development$2||(hasRequiredReactIs_development$2=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case o:case i:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case f:case a:return g;default:return p}}case n:return p}}}var $=l,x=c,E=s,w=a,D=t,_=u,T=r,S=h,C=f,I=n,P=o,O=i,N=d,R=!1;function A(e){return y(e)===c}reactIs_development$2.AsyncMode=$,reactIs_development$2.ConcurrentMode=x,reactIs_development$2.ContextConsumer=E,reactIs_development$2.ContextProvider=w,reactIs_development$2.Element=D,reactIs_development$2.ForwardRef=_,reactIs_development$2.Fragment=T,reactIs_development$2.Lazy=S,reactIs_development$2.Memo=C,reactIs_development$2.Portal=I,reactIs_development$2.Profiler=P,reactIs_development$2.StrictMode=O,reactIs_development$2.Suspense=N,reactIs_development$2.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||y(e)===l},reactIs_development$2.isConcurrentMode=A,reactIs_development$2.isContextConsumer=function(e){return y(e)===s},reactIs_development$2.isContextProvider=function(e){return y(e)===a},reactIs_development$2.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_development$2.isForwardRef=function(e){return y(e)===u},reactIs_development$2.isFragment=function(e){return y(e)===r},reactIs_development$2.isLazy=function(e){return y(e)===h},reactIs_development$2.isMemo=function(e){return y(e)===f},reactIs_development$2.isPortal=function(e){return y(e)===n},reactIs_development$2.isProfiler=function(e){return y(e)===o},reactIs_development$2.isStrictMode=function(e){return y(e)===i},reactIs_development$2.isSuspense=function(e){return y(e)===d},reactIs_development$2.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},reactIs_development$2.typeOf=y}()),reactIs_development$2}function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,"production"===process.env.NODE_ENV?reactIs$3.exports=requireReactIs_production_min$2():reactIs$3.exports=requireReactIs_development$2()),reactIs$3.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return objectAssign=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(r,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))t.call(o,c)&&(s[c]=o[c]);if(e){a=e(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(s[a[u]]=o[a[u]])}}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 e=function(){};if("production"!==process.env.NODE_ENV){var t=requireReactPropTypesSecret(),n={},r=requireHas();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var u;try{if("function"!=typeof i[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=i[c](o,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},checkPropTypes_1=i}function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),n=requireReactPropTypesSecret(),r=requireHas(),i=requireCheckPropTypes(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),factoryWithTypeCheckers=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<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:h(a),arrayOf:function(e){return h((function(t,r,i,o,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+o+" `"+a+"` of type `"+b(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,i,o,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,i){var o=e[t];return s(o)?null:new f("Invalid "+r+" `"+i+"` of type `"+b(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new f("Invalid "+i+" `"+o+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,i){return v(e[t])?null:new f("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,i,o,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=t[i],c=b(l);if("object"!==c)return new f("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,o,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(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 h((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new f("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(i)+" at index "+t+"."),a}return h((function(t,i,o,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,i,o,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,i,o,a){var s=t[r],l=b(s);if("object"!==l)return new f("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(i,o,a,c,y(u));var d=u(s,c,i,o,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return h((function(i,o,a,s,l){var c=i[o],u=b(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},i[o],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return g(a,s,l,p,y(h));if(!h)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var m=h(c,p,a,s,l+"."+p,n);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,s,c,d,p,h){if(c=c||u,p=p||s,h!==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 g=c+":"+s;!t[g]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. 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."),t[g]=!0,r++)}}return null==a[s]?i?null===a[s]?new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function m(e){return h((function(t,n,r,i,o,a){var s=t[n];return b(s)!==e?new f("Invalid "+i+" `"+o+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,i){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function $(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},factoryWithTypeCheckers}function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function n(){}return n.resetWarningCache=t,factoryWithThrowingShims=function(){function r(t,n,r,i,o,a){if(a!==e){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 i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}if("production"!==process.env.NODE_ENV){var ReactIs=requireReactIs(),throwOnDirectAccess=!0;propTypes.exports=requireFactoryWithTypeCheckers()(ReactIs.isElement,throwOnDirectAccess)}else propTypes.exports=requireFactoryWithThrowingShims()();var propTypesExports=propTypes.exports,PropTypes=getDefaultExportFromCjs(propTypesExports);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const t$c=e__namespace.createContext(0),n$s=()=>e__namespace.useContext(t$c);t$c.displayName="KendoReactZIndexContext";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const t$b=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-numerictextbox button):not(.k-split-button .k-split-button-arrow)",o$k=":not(.k-dropdownlist select)",n$r=["input:not([disabled]):not([type=hidden])","select:not([disabled]):not(.k-dropdownlist select)","textarea:not([disabled])",`button:not([disabled])${t$b}`,"a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],s$k=[...n$r,`[tabindex]${t$b}${o$k}`],i$e=500,c$d=768,d$d={small:500,medium:768},t$a=e__namespace.createContext(d$d),n$q=()=>e__namespace.useContext(t$a);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */t$a.displayName="KendoReactAdaptiveModeContext";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const t$9=()=>"undefined"!=typeof document?document:{};let l$m=class{constructor(){this.scrollbar=0}get scrollbarWidth(){const e=t$9();if(!this.scrollbar&&e&&e.createElement){const t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const e$h=!("undefined"==typeof window||!window.document||!window.document.createElement),n$p=(...e)=>{const t={},n=e=>e.filter((e=>!0!==e&&!!e)).map((e=>Array.isArray(e)?n(e):(e=>"object"==typeof e?Object.keys(e).forEach((n=>{t[n]=e[n]})):t[e]=!0)(e)));return n(e),Object.keys(t).map((e=>t[e]&&e||null)).filter((e=>null!==e)).join(" ")},o$j=(...e)=>n$p(e).replace(/[^[\]a-zA-Z0-9-_!: ]/g,"")
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,e$g={tab:9,enter:13,esc:27,space:32,end:35,home:36,left:37,up:38,right:39,down:40},c$c=(e,t=s$k)=>e.querySelectorAll(t.join(",")),a$e=(e,t=s$k)=>{if(e){const n=c$c(e,t);if(n.length&&n[0].focus)return n[0]}},l$l=(e,t=s$k)=>{if(e){const n=c$c(e,t);if(n.length&&n[n.length-1].focus)return n[n.length-1]}},e$f=(e,t)=>{if(e){const n=a$e(e,t);n&&n.focus()}},n$o=(e,t,n)=>{if(t&&e.keyCode===e$g.tab&&t){const r=a$e(t,n),i=l$l(t,n);r&&i&&!e.shiftKey&&e.target===i&&(e.preventDefault(),r.focus()),r&&i&&e.shiftKey&&e.target===r&&(e.preventDefault(),i.focus()),r||e.preventDefault()}},e$e=(e,t,n)=>{const r="string"==typeof e?parseInt(e):e;if(!Number.isNaN(r))return void 0!==r?r:t?n?void 0:-1:0},e$d=()=>{let e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,(8===e||12===e||16===e||20===e)&&(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},o$i=function(){},d$c=e=>{if(!e$h||!document.body)return!1;const t=(new l$m).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",`${t}px`)},_0x4e9652=_0xb6e4;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function _0xb6e4(e,t){const n=_0x157e();return _0xb6e4=function(t,r){let i=n[t-=458];if(void 0===_0xb6e4.HNXGMp){_0xb6e4.hsTxhI=function(e){let t="",n="";for(let n,r,i=0,o=0;r=e.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?t+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let e=0,r=t.length;e<r;e++)n+="%"+("00"+t.charCodeAt(e).toString(16)).slice(-2);return decodeURIComponent(n)},e=arguments,_0xb6e4.HNXGMp=!0}const o=t+n[0],a=e[o];return a?i=a:(i=_0xb6e4.hsTxhI(i),e[o]=i),i},_0xb6e4(e,t)}!function(){const e=_0xb6e4,t=_0x157e();for(;;)try{if(910208===-parseInt(e(597))/1+-parseInt(e(469))/2+-parseInt(e(631))/3+parseInt(e(592))/4*(parseInt(e(616))/5)+parseInt(e(589))/6*(parseInt(e(622))/7)+-parseInt(e(541))/8*(-parseInt(e(490))/9)+-parseInt(e(561))/10*(-parseInt(e(566))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();const GRACE_SUBSCRIPTION_DAYS=10,JWT_LICENSE_EVIDENCE_TYPE=_0x4e9652(582),LOG_HEADER=_0x4e9652(590),PUBLIC_KEY=_0x4e9652(464),logHeader=(e,t)=>"["+e+"]["+LOG_HEADER+"]";function toNumericDate(e){const t=_0x4e9652;return Math[t(546)](e[t(640)]()/1e3)}function addDays$1(e,t){const n=_0x4e9652,r=new Date(1e3*e);return r[n(636)](r[n(555)]()+t),toNumericDate(r)}function _0x157e(){const e=["ls0Tls1cruDjtIbqvujmsumGs0vzls0Tls0","vg8Gy29UDgLUDwuGDxnPBMCGB3vYihbYB2r1y3qSignVBNnPzgvYihvWz3jHzgLUzYb0BYbHignVBw1LCMnPywWGBgLJzw5Zzs4G","vw5RBM93BIbSAwnLBNnLigv2AwrLBMnLihr5Cgu","DvrmvhK","ndG5mJG5wNrXzwTk","icbby2nLC3mGDg8GDgHLigXHDgvZDcb1CgrHDgvZigfUzcbZDxbWB3j0ihjLCxvPCMvZigeGpgeGAhjLzJ0I","zNDuAey","DuzLreu","vwrwt2y","swXUqK8","icbmzwfYBIbTB3jLigfIB3v0ia","D2fYBG","igHHCYbLEhbPCMvKia","Dxvbywy","uKTnquy","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","icbuBYbJB250Aw51zsb1C2LUzYbVDxiGChjVzhvJDcWGy29UC2LKzxiGDxbNCMfKAw5NihrVigeGy29TBwvYy2LHBcbSAwnLBNnLoIbODhrWCZOVl3bYz3jLC3mUy28Vm0m5BxiXtq","zw5JB2rL","BMrtt3a","zgvJB2rL","igfUzcbPCYbUB3qGDMfSAwqGzM9Yia","ihzLCNnPB24G","BLDlEhq","nvbmC21cBG","u0Hblti1nG","DhjPBq","sNPbt0m","BMfTzq","C3rYAw5NAwz5","mZqZntK0m2j3DMzRtG","C3bRAq","igXPy2vUC2LUzZWVyt4U","y2XLyxi","vwDLBLq","igLZig5VDcbSAxn0zwqGAw4GEw91CIbJDxjYzw50igXPy2vUC2uGzMLSzs4k","zgf0yq","su5HEfC","su5gtW","mtK5otqZnhbPu3vVvq","CvLhtK0","z2Levxu","y25ot1q","iJ52ywXPzcbSAwnLBNnLpc9HpI4","C2v0rgf0zq","ls0Tls1ftKqGufvcteLdieTfws0Tls0T","reHSBwC","igXPy2vUC2LUzYbHDca","z2v0vgLTzq","B2jQzwn0","veTmmJaZ","yxrVyIbPCYb1BMrLzMLUzwq","vg8Gy29UDgLUDwuGDxnPBMCGDgHLihbYB2r1y3qSigLUC3rHBgWGysa8ysbOCMvMpsi","AgrJDuS","D2PQwxq","y29Kzq","CMvWBgfJzq","tgLJzw5ZzsbRzxKGBwLZC2LUzYbMB3iG","s2LqEge","rwHVAue","zNjVBq","A3zzBvG","iJ5OB3CGDg8GC2v0ihvWigeGBgLJzw5ZzsbRzxK8l2e+lG","ls0Tls1cruDjtIbqvujmsumGs0vzls0Tls0ktuLjqKLQqu5cz2TXAgTPrZL3mejbuuvgqufpq0froefnsuLcq2Dlq0frrueYBw5vvK1TA3rOmNGRtI9prhn6rWPprKLzqKW2tK9pmvHxuMOXD2TTzwnlDuX6AuPeAez6mfDrBxLpALKZnfLTzZLWthvcqtLru1DYCLP1DLb3ndbocM0Wwc9hqM10DezTue52y2eZv21kmM9lttDqCeXPvvu5zJDpDJvxzuLyBNGRk3rZl0Xdl09cn0z0wITmAvjNsJCkmg1ABLbLvg9NzezYqvnMmhPtuuP2ngPTwdG0meXqytzUB21xzvvNsvzhueXmvKKXneDPyJHeBcTUt2nRCunoyWPRqvvvAZrjqKy2n0r1zLj0oxPrEvj4zZK5ExnHA3ziwdjtrgjKr3zjqMr4v3H2AgHTCKjVzwL4mhvtvNrhmMDTcMPKDLnXBfbkvMr2twjRmvHLmITtvwXKsLbYEeGXvNjuwwvsvxq0ExfxEhKXnM5gsLveAJLLEfOYmdjynfriA1uksLfjrefrquikls0Tls1ftKqGufvcteLdieTfws0Tls0T","ww91CIbSAwnLBNnLigLZig5VDcb2ywXPzcbMB3iG","ChjVzhvJDe5HBwu","zxHWAxjHDgLVBG","C2nYAxb0s2v5","mtCZoti3ngHoqM1fsG","iJ52ywXPzcbSAwnLBNnLpc9HpI4G","v0fstG","z2v0rNvSBfLLyxi","DhLWzq","rurLCLy","ChvZAa","veTmmJa0","DxnHz2u","ywrK","AgfZ","ww91CIbJDxjYzw50igXPy2vUC2uGAgfZigv4CgLYzwqGB24G","ww91CIbuCMLHBcbSAwnLBNnLihDPBgWGzxHWAxjLigLUia","CMvKAxn0CMLIDxrLzej5","t2reCw8","BM90AwzPy2f0Aw9UtwvZC2fNzq","DxnLCKLK","Dg9mB2nHBgveyxrLu3rYAw5N","tM8GBgLJzw5ZzsbMB3vUzcbMB3iG","DKjtufC","z3jVDxbfBMq","mtC5mdfJtvvMteS","C2v0","Aw1WB3j0s2v5","icbuBYbHy3f1AxjLigeGy29TBwvYy2LHBcbSAwnLBNnLlcb2AxnPDcbODhrWCZOVl3bYz3jLC3mUy28Vm1b5seLVsa","z2v0tw9UDgG","DMvYAwz5","CuPtu2q","uMvUzxCGpgeGAhjLzJ0IAhr0Chm6lY9WCMDYzxnZlMnVlZnqD1foAteIpNLVDxiGBgLJzw5ZztWVyt4Gyw5KigrVD25SB2fKigeGBMv3igXPy2vUC2uGA2v5lG","zMLSDgvY","z3jVDxa","yMTzz0y","q1bZruG","y2f0y2G","r3HAvuO","CgvYCgv0DwfS","uK95qMu","icbuBYbKB3DUBg9HzcbHigXPy2vUC2uGA2v5igzPBguSihzPC2L0igH0DhbZoI8VChjNCMvZCY5JBY8ZuhDrtuTA","C29YDa","DvD5uwG","ywXNB3jPDgHT","uLnbu1nblvblq1mXlxyXxZu","BwfW","ww91CIb0CMLHBcbSAwnLBNnLigzVCIa","A09kDLi","DMvYC2LVBG","lIbuAguGChjVzhvJDcb3yxmGChvIBgLZAgvKig9Uia","Dw5KzwzPBMvK","DuHyA3O","z2v0","ChvIBgLZAerHDgu","DhLW","C3bSAwnL","DgHLBG","zMLUza","C2XPy2u","tvfXDNe","icbszw5LDYb5B3vYigXPy2vUC2uGyxqGAhr0Chm6lY9WCMDYzxnZlMnVlZnqEdLTnuy","BwvZC2fNzq","ven5Afu","terPq2y","tKfvEfa","igfNBY4G","zNvUy3rPB24","Aw5JBhvKzxm","ChjVzhvJDhm","sw52ywXPzcbSAwnLBNnLigv2AwrLBMnL","ChjVzhvJDenVzgu","EertsLq","ww91CIb0CMLHBcbOyxmGzxHWAxjLzca","DxrMoa","ywXS","ndi0zfLHDuje","igrHEsHZksbHz28UcG","t3HowxK","zNjVBunOyxjdB2rL","CfPryNK","zMXVB3i","BgLJzw5Zzxm","C3bSAxq","Exvfv28","igrHEsHZks4k","qLrRtNO","DgLTzxn0yw1W","BgLJzw5ZAw5Nrg9JC1vYBa","ChjVzhvJDenVzgvZ","z2v0rgf0zq","wfvkCKq","C3vIrxe","AxnbCNjHEq","C3vIDgXL","veTmmJaY","mtqWotb5EK5RyLG","lcb3zsbOB3bLihLVDsbLBMPVEwvKihLVDxiGDhjPywWGCgvYAw9KlGO","CgfYC2u","icbuAgfUAYb5B3uGzM9YihrYEwLUzYbVDxqG","wfjeuvm","ndK3mLbyuKHnwq","rw5fuKS","CgfYC2vjBNq","wfvXC20","AwXyq20","C3vIC2nYAxb0Aw9U","icbbigXPy2vUC2uGA2v5igLZihjLCxvPCMvKigzVCIbIB3rOihbHAwqGyw5KihrYAwfSihvZywDLlIbmzwfYBIa8ysbOCMvMpsi","u3rVuxq","DhjPywW","y2HHCKnVzgvbDa","veDctxi","CKf4Dxu","z1H6quu","veTmmJaX","yMfZzty0","BgvUz3rO","vgvSzxjPAYbmAwnLBNnLiev2AwrLBMnL","q0vbr0y","tgvHCM4GBw9YzsbHyM91Dca8ysbOCMvMpsjODhrWCZOVl3bYz3jLC3mUy28Vm1b3uu1Kwci+","C2v2zxjPDhK","tM8GvgvSzxjPAYbHBMqGs2vUzg8GvuKGtgLJzw5ZzsbMB3vUzc4k","AM9PBG","Dg9tDhjPBMC","nNjiq0DIzG","vgvSzxjPAYbHBMqGs2vUzg8GvuKGtgLJzw5ZAw5N","Ee1Hvu8","nJGWotKXmNPXy3D4AW"];return(_0x157e=function(){return e})()}function getCurrentDate(){return toNumericDate(new Date)}function daysSinceToday(e){const t=_0x4e9652,n=getCurrentDate()-toNumericDate(e);return Math[t(546)](n/86400)}function decodeString(e){const t=_0x4e9652;if(typeof atob===t(532)){if(t(488)==t(488))return atob(e);_0x3f9147=new _0x142e0d(_0xa4812e[t(466)],_0x382d22[t(514)],_0x2febde[t(553)])}if(typeof Buffer===t(532)){if(t(474)==t(474))return Buffer[t(461)](e,t(580))[t(588)](t(539));_0x2b2088[t(521)](3,0,"")}throw new Error(t(643))}function decodeBase64(e){const t=_0x4e9652,n=decodeString(e),r=new Uint8Array(n[t(581)]);for(let e=0;e<n[t(581)];e++){if(t(565)!=t(565))return _0x1ec36d[t(546)](_0x4f8442[t(640)]()/1e3);r[e]=n[t(575)](e)}return r}function decodeBase64Url(e){const t=_0x4e9652;return decodeBase64(e[t(648)](/-/g,"+")[t(648)](/_/g,"/"))}function decodeLicenseEvidence(e){const t=_0x4e9652,n=e[t(548)](".")[1],r=String[t(544)](...decodeBase64Url(n));return JSON[t(563)](r)}function toDate(e){return new Date(1e3*e)}function isExpired(e,t){const n=_0x4e9652,r=toDate(t);return e>new Date(r[n(472)](),r[n(494)](),r[n(555)]()+1)[n(640)]()/1e3}function findPackageLicense(e,t){const n=_0x4e9652,r=t[n(498)]((e=>e[n(473)]!==n(477)))[n(498)]((t=>{const r=n;var i,o;if(r(557)==r(557))return e[r(536)]===t[r(647)]||(null===(i=e[r(482)])||void 0===i?void 0:i[r(533)](t[r(647)]))||(null===(o=e[r(554)])||void 0===o?void 0:o[r(533)](t[r(647)]));_0xe9a631=new _0x2ab351(_0x4e77cc[r(466)],_0x40763d[r(514)],_0x5859bd[r(553)])}))[n(507)](((e,t)=>t[n(467)]-e[n(467)]));return r[n(523)]((e=>e[n(473)]===n(571)&&!isExpired(getCurrentDate(),e[n(467)])))||r[n(523)]((t=>t[n(473)]===n(504)&&!isExpired(e[n(519)],t[n(467)])))||r[n(523)]((e=>e[n(473)]===n(571)&&!isExpired(addDays$1(getCurrentDate(),10),e[n(467)])))||r[n(523)]((e=>e[n(473)]===n(574)&&!isExpired(getCurrentDate(),e[n(467)])))||r[n(523)]((e=>e[n(473)]===n(571)))||r[n(523)]((e=>e[n(473)]===n(504)))||r[n(523)]((e=>e[n(473)]===n(574)))}function findRuntimeLicense(e,t){const n=_0x4e9652;var r,i;let o=[];if((null===(r=e[n(547)])||void 0===r?void 0:r[n(581)])>0){var a,s;if(n(460)===n(573))return(null===(a=_0x1d71c2[n(547)])||void 0===a?void 0:a[n(581)])>0&&_0x1f2346[n(540)](null===(s=_0x3d6149[n(547)])||void 0===s?void 0:s[n(511)]((e=>_0x2ea74c(e,_0x2fde18))))[n(522)]((()=>{_0x3b5989=!0}))[n(502)]((()=>{_0x260db5=!1,_0x563f2c[n(625)]()})),_0x23b3af;o=e[n(547)][n(511)]((e=>decodeLicenseEvidence(e)))}else if((null===(i=e[n(534)])||void 0===i?void 0:i[n(581)])>0){var l,c;if(n(556)!=n(556))return _0x174020[n(536)]===_0xe32b2c[n(647)]||(null===(l=_0xcbbcd9[n(482)])||void 0===l?void 0:l[n(533)](_0x1bcf3a[n(647)]))||(null===(c=_0x3585ec[n(554)])||void 0===c?void 0:c[n(533)](_0x347526[n(647)]));o=e[n(534)][n(511)]((t=>({type:t[n(574)]?n(574):n(504),code:t[n(647)],expiration:t[n(608)],licenseId:null,userId:e[n(485)]})))}return findPackageLicense(t,o)}const getProductCode=e=>e[_0x4e9652(536)]||e[_0x4e9652(554)][0];class NoLicenseFoundRuntimeError{constructor(e,t,n){const r=_0x4e9652;this[r(466)]=e,this[r(585)]=r(471),this[r(647)]=r(579),this[r(527)]=r(586)+r(506),this[r(484)]=r(458)+e+" v"+t+"."+(r(572)+n+r(463))}}class ProductNotLicensedRuntimeError{constructor(e,t,n){const r=_0x4e9652;this[r(466)]=e,this[r(585)]=r(471),this[r(647)]=r(560),this[r(527)]=e+r(627)+(r(603)+e+r(639)+n),this[r(484)]=r(487)+e+" v"+t+"."+(r(598)+n+r(635))}}class ExpiredTrialLicenseRuntimeError{constructor(e,t,n){const r=_0x4e9652;this[r(466)]=e,this[r(585)]=r(471),this[r(647)]=r(642),this[r(527)]=r(538)+n+r(542)+(r(564)+e+r(562))+r(609),this[r(484)]=r(512)+e+" v"+t+r(605)+n+r(531)+r(594)+(r(584)+e+r(624))}}class ExpiredLicenseRuntimeError{constructor(e,t,n,r,i){const o=_0x4e9652;this[o(466)]=e,this[o(585)]=o(471),this[o(647)]=o(476);const a=n?o(614)+n:"";this[o(527)]=o(480)+t[o(486)]()+o(613)+""+e+a+o(515)+r[o(486)]()+".\n"+o(526),this[o(484)]=o(465)+e+" v"+n+". "+(o(644)+i+o(470))+o(497)}}class TrialLicenseRuntimeInfo{constructor(e,t){const n=_0x4e9652;this[n(466)]=e,this[n(585)]=n(630),this[n(527)]=n(481)+-t+n(550)+n(493)}}function importRsaKey(e){const t=_0x4e9652,n=t(593),r=t(637),i=decodeBase64(e[t(648)](n,"")[t(648)](r,"")[t(648)](/\n/gm,""));return crypto[t(559)][t(492)](t(623),i,{name:t(510),hash:t(617)},!0,[t(495)])}async function verifyLicenseEvidence(e,t){const n=_0x4e9652;if(typeof crypto!==n(641)||typeof crypto[n(559)]!==n(641)||typeof TextEncoder!==n(532)||typeof TextDecoder!==n(532)){if(n(529)!==n(578))return;{const e=_0x12d2c6[n(563)](_0x9f2c78(_0x43319b));_0x5e1466[n(558)](e[3])&&e[n(521)](3,0,"");const t={products:e[1][n(511)]((([e,t,n])=>({code:e,licenseExpirationDate:t,trial:_0x2b8ae3(n)}))),userId:e[2],integrity:e[3],licenses:e[4],scriptKey:!0};try{const e=_0x212110[n(563)](_0x2eccfe[n(628)]);t[n(534)]=[...e[n(534)],...t[n(534)]],t[n(547)]=[...e[n(547)],...t[n(547)]]}catch(e){}_0x53734a[n(628)]=_0x1e6d93[n(621)](t)}}const r=crypto[n(559)],[i,o,a]=e[n(548)]("."),s=decodeBase64Url(a),l=new TextEncoder,c=new TextDecoder,u=l[n(610)](i+"."+o),d=c[n(612)](decodeBase64Url(i));if(!(JSON[n(563)](d)[n(520)]===JWT_LICENSE_EVIDENCE_TYPE)){if(n(629)!==n(505))throw new Error(n(595));{const e=_0x2b8c6b(_0x4e37b9),t=new _0x4d911f(e[n(581)]);for(let r=0;r<e[n(581)];r++)t[r]=e[n(575)](r);return t}}const p=await importRsaKey(t);if(!await r[n(495)](p[n(509)],p,s,u)){if(n(500)!==n(462))throw new Error(n(535));_0x7e2b1a=_0x50c9e0(_0x465f44,_0x32b805)}}const context={data:'  {"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1730359849},{"trial":true,"code":"KENDOUIANGULAR","licenseExpirationDate":1625719534}],"licenses":[],"userId":"99772f4a-dbcf-4e22-be98-f04e0c81bfed","integrity":"SYtBOCd/njkYayfarvG0dDpl7NM=","scriptKey":false,"timestamp":1708594111}  '};let publicKey=PUBLIC_KEY;const cache=new Map,touchedProducts=new Set;let validateEvidencesCache=!0;const validateEvidences=e=>{const t=_0x4e9652;var n,r;return(null===(n=e[t(547)])||void 0===n?void 0:n[t(581)])>0&&(t(591)===t(530)?_0x421b4d[t(499)](_0x297151):Promise[t(540)](null===(r=e[t(547)])||void 0===r?void 0:r[t(511)]((e=>verifyLicenseEvidence(e,publicKey))))[t(522)]((()=>{const e=t;e(567)!==e(576)?validateEvidencesCache=!0:(_0x27973b=new _0x4f1083(_0x13c3b4[e(466)],_0x109720),_0x5328a8=!0)}))[t(502)]((()=>{const e=t;if(e(615)!=e(615))return _0x4d94b2(_0x3d509c);validateEvidencesCache=!1,cache[e(625)]()}))),validateEvidencesCache};function getLicenseStatus(e){const t=_0x4e9652,n=JSON[t(563)](context[t(628)]),r=!n[t(468)]&&!n[t(552)],i=n[t(468)]&&typeof KendoLicensing===t(516);let o,a,s=!1;if(r||i||!validateEvidences(n)){if(t(601)!=t(601))return new _0x43ed92(1e3*_0x537ca5);o=new NoLicenseFoundRuntimeError(e[t(466)],e[t(514)],e[t(553)])}else if(t(549)===t(537)){this[t(466)]=_0x23c718,this[t(585)]=t(471),this[t(647)]=t(476);const e=_0x375945?t(614)+_0xdd19e5:"";this[t(527)]=t(480)+_0x42ec16[t(486)]()+t(613)+""+_0x31dafe+e+t(515)+_0x5c8ae7[t(486)]()+".\n"+t(526),this[t(484)]=t(465)+_0x338eab+" v"+_0x5c788b+". "+(t(644)+_0x4dacc1+t(470))+t(497)}else if(a=findRuntimeLicense(n,e),a){if(a[t(473)]===t(574)){if(t(632)===t(543)){var l,c;let e=[];return(null===(l=_0xa7e67c[t(547)])||void 0===l?void 0:l[t(581)])>0?e=_0x1a819d[t(547)][t(511)]((e=>_0xb4c6fc(e))):(null===(c=_0xfadd7e[t(534)])||void 0===c?void 0:c[t(581)])>0&&(e=_0xb01d9f[t(534)][t(511)]((e=>({type:e[t(574)]?t(574):t(504),code:e[t(647)],expiration:e[t(608)],licenseId:null,userId:_0x496a35[t(485)]})))),_0x3f58c2(_0x352e4e,e)}{const n=daysSinceToday(toDate(a[t(467)]));if(isExpired(getCurrentDate(),a[t(467)])){if(t(626)!=t(626)){if(_0x155598[t(479)](_0x12d0ed[t(620)]))return _0x4d8fdc[t(518)](_0x1622cf[t(620)]);const{isLicenseValid:e,message:n}=_0x51f17c(_0x272926),r=_0x453e2c(_0x2b4069);return n&&!_0x555221[t(479)](r)&&(_0x352892(n,_0x344cab),_0x51749a[t(478)](r)),_0x2b72f9[t(491)](_0x111b72[t(620)],e),e}o=new ExpiredTrialLicenseRuntimeError(e[t(466)],e[t(514)],n)}else t(600)===t(513)?(this[t(466)]=_0x35976e,this[t(585)]=t(471),this[t(647)]=t(579),this[t(527)]=t(586)+t(506),this[t(484)]=t(458)+_0x285ad0+" v"+_0x35d2a3+"."+(t(572)+_0x18b9b1+t(463))):(o=new TrialLicenseRuntimeInfo(e[t(466)],n),s=!0)}}else if(a[t(473)]===t(504)||a[t(473)]===t(571)){if(t(545)===t(570))throw new _0x5f0f00(t(535));{let n=a[t(467)];if(a[t(473)]===t(571)){if(t(607)!=t(607))return _0x4365ad[t(461)](_0x407494,t(580))[t(588)](t(539));n=addDays$1(n,10)}if(isExpired(e[t(519)],n)){if(t(634)!=t(634))throw new _0x285b82(t(595));o=new ExpiredLicenseRuntimeError(e[t(466)],toDate(a[t(467)]),e[t(514)],toDate(e[t(519)]),e[t(553)])}else t(619)==t(619)?s=!0:(_0x1e4198(_0x431298,_0x4a05b7),_0x39bec4[t(478)](_0x485458))}}}else{if(t(503)===t(459)){const e=_0x469978^_0x2a41e;return _0x1ec978=_0x3937d9,e}o=new ProductNotLicensedRuntimeError(e[t(466)],e[t(514)],e[t(553)])}const u=a,d=(null==u?void 0:u[t(467)])?toDate(u[t(467)]):void 0;return{isLicenseValid:s,licenseType:null==a?void 0:a[t(473)],licenseProductCode:null==u?void 0:u[t(647)],expiration:d,message:o}}function validatePackage(e){const t=_0x4e9652;if(cache[t(479)](e[t(620)])){if(t(577)!==t(606))return cache[t(518)](e[t(620)]);_0x473c56[t(489)]()}const{isLicenseValid:n,message:r}=getLicenseStatus(e),i=getProductCode(e);return r&&!touchedProducts[t(479)](i)&&(t(602)!==t(508)?(onMessage(r,e),touchedProducts[t(478)](i)):_0x5c92dc=new _0x2ff2a0(_0x47c79d[t(466)],_0x2ebc02[t(514)],_0x1f5410)),cache[t(491)](e[t(620)],n),n}function onMessage(e,t){const n=_0x4e9652;if(typeof console===n(641))if(n(638)===n(599))_0x3f8ac1=_0x1445aa[n(547)][n(511)]((e=>_0x5c7829(e)));else{const r=logHeader(e[n(585)])+" "+t[n(466)],i=typeof console[n(499)]===n(532);if(i){if(n(583)===n(611)){if(typeof _0x3aa332===n(532))return _0x4ef116(_0x51dcdd);if(typeof _0x31ba6f===n(532))return _0x4e420a[n(461)](_0x513fbe,n(580))[n(588)](n(539));throw new _0x4e4ff7(n(643))}console[n(499)](r)}else n(633)!==n(646)?console[n(604)](r):_0x5c387f=!0;if(console[n(604)](e[n(527)]),i)if(n(483)===n(501)){const e=_0x4cbcb5[n(563)](_0x16b5e3[n(628)]);_0x3787f6[n(534)]=[...e[n(534)],..._0x4ec76c[n(534)]],_0x56ecb3[n(547)]=[...e[n(547)],..._0x2de826[n(547)]]}else console[n(489)]()}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const l$k=["telerik.com","progress.com","stackblitz.io","csb.app"],p$i="https://www.telerik.com/kendo-react-ui/components/free?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium",s$j=new Map,h$5=()=>{const e=Array.from(s$j,(([e,t])=>`- ${e}: ${Array.from(t).join(", ")||"all"}`)).join("\n");console.group("[WARN][Telerik and Kendo UI Licensing] KendoReact"),console.warn(`License check was triggered by these premium KendoReact components/features\n${e}\nSee the full list of free and premium components here: ${p$i}`),console.groupEnd(),s$j.clear()},d$b=(e,t)=>{const n=validatePackage(e),r=l$k.some((e=>{var t;return null==(t=globalThis.document)?void 0:t.location.hostname.endsWith(e)}));if(!n&&e$h&&t)if(0===s$j.size&&setTimeout(h$5,1e3),s$j.has(t.component)){const e=s$j.get(t.component)||[];s$j.set(t.component,new Set([...t.features||[],...e]))}else s$j.set(t.component,t.features||[]);return n||r},c$b=new WeakMap,w$9=e=>{if(c$b.has(e))return c$b.get(e);const t=getLicenseStatus(e).message,n=null==t?void 0:t.notificationMessage;return"WARN"===(null==t?void 0:t.severity)&&"TKL201"===(null==t?void 0:t.code)?n+"<br />See the browser console for a list of Premium features currently in use.":(c$b.set(e,n),n)},s$i="https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-banner";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */let n$n=!0;const P$8=e=>{const[t,n]=e__namespace.useState(!0),[r]=e__namespace.useState(n$n),[i,o]=e__namespace.useState(!1);e__namespace.useEffect((()=>{o(!0),n$n&&(n$n=!1)}),[]);const a=e__namespace.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:2e3}},e__namespace.createElement("span",{style:{display:"flex",alignSelf:"center",marginRight:"8px"}},e__namespace.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z",fill:"#1E1E1E"}))),e.message?e__namespace.createElement("span",{dangerouslySetInnerHTML:{__html:e.message}}):e__namespace.createElement("span",null,"We couldn't verify your ",e__namespace.createElement("a",{href:s$i},"license key")," for KendoReact. Please see the browser console for details and resolution steps."),e__namespace.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"24px"}},e__namespace.createElement("button",{title:"Close",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},onClick:()=>{n(!1)}},e__namespace.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e__namespace.createElement("path",{d:"M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z",fill:"#1E1E1E"})))));return e__namespace.createElement(e__namespace.Fragment,null,e__namespace.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,opacity:.12,zIndex:101,pointerEvents:"none",backgroundImage:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"}}),i&&r&&t&&ReactDOM__namespace.createPortal(a,document.body))};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function v$8(e,t,n,r){if(e){const i={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(i,r))}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function o$h({onFocus:e,onBlur:t,onSyncFocus:n,onSyncBlur:r}){const i=e__namespace.useRef(!1),o=e__namespace.useRef(0),a=e__namespace.useCallback((e=>{clearTimeout(o.current),o.current=window.setTimeout((()=>e()))}),[o]),s=e__namespace.useCallback(((...t)=>{clearTimeout(o.current),n&&n.call(void 0,t[0]),!i.current&&(i.current=!0,e&&e.call(void 0,...t))}),[i,e,n]),l=e__namespace.useCallback(((...e)=>{r&&r.call(void 0,e[0]),a((()=>{i.current&&t&&(i.current=!1,t.call(void 0,...e))}))}),[i,a,t,r]);return e__namespace.useEffect((()=>()=>{clearTimeout(o.current)}),[]),{onFocus:s,onBlur:l}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */}const a$d=({children:e,onFocus:t,onBlur:n,onSyncFocus:r,onSyncBlur:i})=>{const o=o$h({onFocus:t,onBlur:n,onSyncFocus:r,onSyncBlur:i});return e__namespace.createElement(e__namespace.Fragment,null,e.call(void 0,{...o}))},n$m=(e,t)=>e__namespace.useContext(e)(t)
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,a$c=()=>e__namespace.createContext((e=>e)),x$a=(e,t)=>e__namespace.forwardRef(((n,r)=>{const i=n$m(e,n);return e__namespace.createElement(t,{...i,ref:r})}))
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,o$g="undefined"!=typeof window?e__namespace.useLayoutEffect:e__namespace.useEffect;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
function I$6(e){const[t,n]=e__namespace.useState(!1);e__namespace.useEffect((()=>{n(!0)}),[]);const[r,i]=e__namespace.useState((()=>e||(t?e$d():void 0)));o$g((()=>{void 0===r&&i(e$d())}),[]);const o=e__namespace[`useId${e$d()}`.slice(0,5)];if(void 0!==o){const t=o();return null!=e?e:t}return r}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const a$b=e=>e__namespace.forwardRef(((t,n)=>{const r=I$6(t.id);return e__namespace.createElement(e,{...t,id:r,ref:n})}))
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,e$c=e$i.createContext(void 0),n$l=()=>e$i.useContext(e$c)
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,a$a=e=>e__namespace.forwardRef(((t,n)=>{const r=n$l();return e__namespace.createElement(e,{...t,ref:n,unstyled:r})}))
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,p$h=e=>e__namespace.forwardRef(((t,n)=>{const r=n$q();return e__namespace.createElement(e,{...t,ref:n,_adaptiveMode:r})}))
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,m$a=e=>e__namespace.forwardRef(((t,n)=>{const r=n$s();return e__namespace.createElement(e,{...t,ref:n,_zIndex:r})}))
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */;function u$f(e,t,n){const[r,i]=e__namespace.useState(t);return e__namespace.useEffect((()=>{if(!r&&window&&e.current){const t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */}function u$e(e,t,n){const[r,i]=e__namespace.useState(t);return e__namespace.useEffect((()=>{if(!r&&window&&e.current){const t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),r
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */}const h$4=(e,t,n={})=>{const r=e__namespace.useCallback((r=>{n.onMouseDown&&n.onMouseDown.call(void 0,r),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseDown,e.onMouseDown,t]),i=e__namespace.useCallback((r=>{n.onMouseUp&&n.onMouseUp.call(void 0,r),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseUp,e.onMouseUp,t]),o=e__namespace.useCallback((r=>{n.onClick&&n.onClick.call(void 0,r),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onClick,e.onClick,t]),a=e__namespace.useCallback((r=>{n.onDoubleClick&&n.onDoubleClick.call(void 0,r),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onDoubleClick,e.onDoubleClick,t]),s=e__namespace.useCallback((r=>{n.onMouseEnter&&n.onMouseEnter.call(void 0,r),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseEnter,e.onMouseEnter,t]),l=e__namespace.useCallback((r=>{n.onMouseLeave&&n.onMouseLeave.call(void 0,r),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseLeave,e.onMouseLeave,t]),c=e__namespace.useCallback((r=>{n.onMouseMove&&n.onMouseMove.call(void 0,r),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseMove,e.onMouseMove,t]),u=e__namespace.useCallback((r=>{n.onMouseOut&&n.onMouseOut.call(void 0,r),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOut,e.onMouseOut,t]),d=e__namespace.useCallback((r=>{n.onMouseOver&&n.onMouseOver.call(void 0,r),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:r})}),[n.onMouseOver,e.onMouseOver,t]);return{onClick:o,onMouseUp:i,onMouseDown:r,onDoubleClick:a,onMouseEnter:s,onMouseLeave:l,onMouseMove:c,onMouseOut:u,onMouseOver:d}},n$k=()=>null,r$c=({children:e})=>e,s$h=e=>e?e===e__namespace.Fragment?[r$c,{}]:e__namespace.isValidElement(e)?[e.type,e.props]:[e,{}]:[n$k,{}],x$9={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"},n$j=e=>"k-i-"+e,r$b=PropTypes.shape({name:PropTypes.string.isRequired,content:PropTypes.string.isRequired,viewBox:PropTypes.string.isRequired}),u$d=e__namespace.forwardRef(((e,t)=>{const{className:n,name:r,themeColor:i,size:o,flip:a,style:s,id:l,tabIndex:c,...u}=e,d=e__namespace.useRef(null),p=e__namespace.useRef(null);e__namespace.useImperativeHandle(d,(()=>({element:p.current}))),e__namespace.useImperativeHandle(t,(()=>d.current));const f=e__namespace.useMemo((()=>o||p$g.size),[o]),h=e__namespace.useMemo((()=>a||p$g.flip),[a]),m=e__namespace.useMemo((()=>n$p("k-icon","k-font-icon",r&&n$j(r),{[`k-color-${i}`]:i,"k-flip-h":"horizontal"===h||"both"===h,"k-flip-v":"vertical"===h||"both"===h},x$9[f],n)),[r,i,f,h,n]),g=h$4(e,d);return e__namespace.createElement("span",{ref:p,...u,...g,className:m,id:l,tabIndex:c,style:s,role:"presentation"})}));
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */u$d.propTypes={style:PropTypes.object,classNames:PropTypes.string,name:PropTypes.string,themeColor:PropTypes.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:PropTypes.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:PropTypes.oneOf(["default","horizontal","vertical","both"])};const p$g={size:"default",flip:"default"};u$d.displayName="KendoIcon";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const e$b={prefix:"k",rtl:"rtl",rounded:"rounded",value:"value",state:"state",infinite:"infinite",clear:"clear",reset:"reset"},n$i={vstack:"vstack",hstack:"hstack"},t$8={calendar:"calendar",dateinput:"dateinput",menu:"menu"},l$j={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",xxlarge:"xxl",xxxlarge:"xxxl"},s$g={solid:"solid",outline:"outline",flat:"flat",link:"link",clear:"clear"},c$a={base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inherit:"inherit",inverse:"inverse"},d$a={small:"sm",medium:"md",large:"lg"},p$f={vertical:"vertical",horizontal:"horizontal"},f$8={up:"up",down:"down",left:"left",right:"right",start:"start",mid:"mid",end:"end"},r$a={container:"container",content:"content",group:"group",nav:"nav",wrap:"wrap",list:"list",placeholder:"placeholder",popup:"popup",item:"item",spacer:"spacer",view:"view"},a$9={table:"table",text:"text",button:"button",tbody:"tbody",thead:"thead",tr:"tr",th:"th",td:"td",header:"header",icon:"icon",title:"title",link:"link",label:"label",caption:"caption"},u$c={increase:"increase",decrease:"decrease",split:"split"},x$8={active:"active",focus:"focus",pending:"pending",selected:"selected",disabled:"disabled",highlight:"highlight",invalid:"invalid",required:"required",checked:"checked",empty:"empty",scrollable:"scrollable",alt:"alt",shown:"shown",horizontal:"horizontal",vertical:"vertical"},g$b={prefix:"animation",child:"child",relative:"relative",slide:"slide",appear:"appear",active:"active",enter:"enter",exit:"exit",pushRight:"push-right",pushLeft:"push-left",pushDown:"push-down",pushUp:"push-up",expandVertical:"expand-vertical",expandHorizontal:"expand-horizontal",fade:"fade",zoomIn:"zoom-in",zoomOut:"zoom-out",slideIn:"slide-in",slideDown:"slide-down",slideUp:"slide-up",slideRight:"slide-right",slideLeft:"slide-left",revealVertical:"reveal-vertical",revealHorizontal:"reveal-horizontal","animation-container":"animation-container","animation-container-shown":"animation-container-shown","animation-container-relative":"animation-container-relative","animation-container-fixed":"animation-container-fixed","child-animation-container":"child-animation-container"},i$d={input:"input",inner:"inner",spin:"spin",spinner:"spinner",radio:"radio",textbox:"textbox",prefix:"prefix",suffix:"suffix"},b$5={week:"week",weekdays:"weekdays",weekend:"weekend",month:"month",year:"year",decade:"decade",century:"century",number:"number",navigation:"navigation",marker:"marker",range:"range",today:"today",other:"other"},v$7={prefix:"icon",svg:"svg",i:"i",color:"color",flipH:"flip-h",flipV:"flip-v"},w$8={text:"text",floatingLabel:"floating-label",container:"container"},y$5={prefix:"popup"},z$3=`${e$b.prefix}-${i$d.input}`,P$7=`${e$b.prefix}-${t$8.calendar}`,L$7=`${e$b.prefix}-${a$9.button}`,I$5=`${e$b.prefix}-${t$8.menu}`
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,c$9={wrapper:{main:`${e$b.prefix}-${v$7.prefix}`,svgPrefix:`${e$b.prefix}-${v$7.svg}-${v$7.prefix}`,namePrefix:`${e$b.prefix}-${v$7.svg}-${v$7.i}-`,flipH:`${e$b.prefix}-${v$7.flipH}`,flipV:`${e$b.prefix}-${v$7.flipV}`,themeColor:{inherit:`${e$b.prefix}-${v$7.color}-${c$a.inherit}`,primary:`${e$b.prefix}-${v$7.color}-${c$a.primary}`,secondary:`${e$b.prefix}-${v$7.color}-${c$a.secondary}`,tertiary:`${e$b.prefix}-${v$7.color}-${c$a.tertiary}`,info:`${e$b.prefix}-${v$7.color}-${c$a.info}`,success:`${e$b.prefix}-${v$7.color}-${c$a.success}`,warning:`${e$b.prefix}-${v$7.color}-${c$a.warning}`,error:`${e$b.prefix}-${v$7.color}-${c$a.error}`,dark:`${e$b.prefix}-${v$7.color}-${c$a.dark}`,light:`${e$b.prefix}-${v$7.color}-${c$a.light}`},size:{default:"",xsmall:`${e$b.prefix}-${v$7.prefix}-${l$j.xsmall}`,small:`${e$b.prefix}-${v$7.prefix}-${l$j.small}`,medium:`${e$b.prefix}-${v$7.prefix}-${l$j.medium}`,large:`${e$b.prefix}-${v$7.prefix}-${l$j.large}`,xlarge:`${e$b.prefix}-${v$7.prefix}-${l$j.xlarge}`,xxlarge:`${e$b.prefix}-${v$7.prefix}-${l$j.xxlarge}`,xxxlarge:`${e$b.prefix}-${v$7.prefix}-${l$j.xxxlarge}`}},svg:{main:"",flipH:"",flipV:""}},m$9={wrapper:e=>{const{iconNameProp:t,themeColor:n,flipH:r,flipV:i,size:o,c:a=c$9}=e,s=a.wrapper||{};return{[s.main||""]:!0,[s.svgPrefix||""]:!0,[`${s.namePrefix||""}${t}`]:t,[s.themeColor[n]||""]:n,[s.flipH||""]:r,[s.flipV||""]:i,[s.size[o]||""]:s.size[o]}},svg:e=>{const{flipH:t,flipV:n,c:r=c$9}=e,i=r.svg;return{[i.main||""]:!0,[i.flipH||""]:t,[i.flipV||""]:n}}},M$5=e__namespace.forwardRef(((e,t)=>{const{children:n,className:r,svgClassName:i,icon:o,flip:a,id:s,tabIndex:l,size:c,style:u,svgStyle:d,themeColor:p,viewBox:f,name:h,onClick:m,...g}=e,v=e__namespace.useRef(null),b=n$l(),y=b&&b.uSvgIcon;e__namespace.useImperativeHandle(t,(()=>({element:v.current})));const $=e__namespace.useMemo((()=>o?o.name:l$i.icon),[o]),x=e__namespace.useMemo((()=>o?o.content:void 0),[o]),E=e__namespace.useMemo((()=>c||l$i.size),[c]),w=e__namespace.useMemo((()=>a||l$i.flip),[a]),D=e__namespace.useMemo((()=>f||l$i.viewBox),[f]),_=e__namespace.useMemo((()=>n$p(m$9.wrapper({c:y,iconNameProp:$,themeColor:p,flipH:"horizontal"===w||"both"===w,flipV:"vertical"===w||"both"===w,size:E}),r)),[y,$,p,w,E,r]),T=e__namespace.useMemo((()=>e.width&&e.height?{width:e.width,height:e.height,...u}:e.width?{width:e.width,height:e.width,...u}:e.height?{width:e.height,height:e.height,...u}:{...u}),[e.width,e.height,u]),S=e__namespace.useMemo((()=>x?{__html:x}:void 0),[x]);return e__namespace.createElement("span",{className:n$p(m$9.svg({c:y,themeColor:p,flipH:"horizontal"===w||"both"===w,flipV:"vertical"===w||"both"===w}),_),style:T,ref:v,onClick:m,"aria-hidden":!0},e__namespace.createElement("svg",{id:s,className:i,style:d,"aria-hidden":!0,tabIndex:l,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:o?o.viewBox:D,dangerouslySetInnerHTML:S,...g},o?void 0:n))}));M$5.propTypes={style:PropTypes.object,classNames:PropTypes.string,children:PropTypes.any,icon:PropTypes.object,themeColor:PropTypes.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:PropTypes.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:PropTypes.oneOf(["default","horizontal","vertical","both"])};const l$i={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};M$5.displayName="KendoSvgIcon";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const e$a=e__namespace.createContext({type:"svg"});e$a.displayName="KendoReactIconsContext";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const v$6=e__namespace.forwardRef(((e,t)=>{var n,r;const{type:i,icons:o}=e__namespace.useContext(e$a),{icon:a,...s}=e;let l="svg"===i?(null==(n=e.icon)?void 0:n.name)||e.name:e.name||(null==(r=e.icon)?void 0:r.name);l=l&&o&&o[l]&&"string"==typeof o[l]?o[l]:l;const c=l&&o&&o[l]&&"string"!=typeof o[l]?o[l]:a;return"svg"===i&&c?e__namespace.createElement(M$5,{...e,icon:c,ref:t}):e__namespace.createElement(u$d,{...s,name:l,ref:t})}));v$6.displayName="KendoIconWrap";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const l$h={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg",full:"full"}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */let l$g=class{constructor(e){this.rovingTabIndex=!0,this.update=()=>{},this.setFocusClass=e=>{e.target.classList.add(this.focusClass)},this.disableTabindexForRest=e=>{this.elements.forEach((t=>{t!==e&&t.setAttribute("tabindex","-1")}))},this.focusNextIndex=(e,t,n)=>{const r=1===t?this.next(e,n):this.previous(e,n);return this.focusElement(r,e),r},this.tabIndex=e.tabIndex||0,this.root=e.root,this.selectors=e.selectors,this.focusOptions=e.focusOptions||{preventScroll:!0},this.rovingTabIndex=void 0===e.rovingTabIndex||e.rovingTabIndex,this.mouseEvents=e.mouseEvents||{},this.keyboardEvents=e.keyboardEvents||{},this.focusClass=e.focusClass,this.lastFocused=null}get elements(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]}get first(){return this.root.current&&this.root.current.querySelector(this.selectors.join(","))||null}get last(){const e=this.elements;return e[e.length-1]||null}get current(){return this.elements.find((e=>e.matches(":focus")))||null}next(e,t){const n=t?this.customElements(t):this.elements;let r=n.indexOf(e)+1;return r=r<0?n.length-1:r,n[r%n.length]}previous(e,t){const n=t?this.customElements(t):this.elements;let r=n.indexOf(e)-1;return r=r<0?n.length-1:r,n[r%n.length]}focusNext(e,t){return this.focusNextIndex(e,1,t)}focusPrevious(e,t){return this.focusNextIndex(e,-1,t)}triggerKeyboardEvent(e,t){const n=this.target(e.target),r=n&&n.closest(this.selectors.join(",")),i=" "===e.key?"Space":e.key,o=e.nativeEvent.type;r&&this.keyboardEvents[o][i]&&this.keyboardEvents[o][i].call(void 0,r,this,e,t)}triggerMouseEvent(e){const t=this.target(e.target),n=t&&t.closest(this.selectors.join(",")),r=e.nativeEvent.type;n&&this.mouseEvents[r].call(void 0,n,this,e)}focusElement(e,t){e&&(t&&(this.rovingTabIndex&&t.setAttribute("tabindex","-1"),this.focusClass&&(this.removeFocusClass(t),t.removeEventListener("focus",this.setFocusClass))),this.rovingTabIndex&&e.setAttribute("tabindex",String(this.tabIndex)),this.focusClass&&(e.classList.add(this.focusClass),e.addEventListener("focus",this.setFocusClass)),e.focus(this.focusOptions),this.lastFocused=e)}initializeRovingTab(e){const t=e?this.elements[e]:this.first;t&&(this.focusClass&&t.addEventListener("focus",this.setFocusClass),t.setAttribute("tabindex",String(this.tabIndex)),this.disableTabindexForRest(t))}removeFocusListener(){this.lastFocused&&this.lastFocused.removeEventListener("focus",this.setFocusClass)}removeFocusClass(e){this.focusClass&&e.classList.remove(this.focusClass)}customElements(e){return this.root.current?Array.from(this.root.current.querySelectorAll(e.join(","))):[]}target(e){var t;const n=e&&e.ownerDocument||null;return e instanceof(n&&(null==(t=null==n?void 0:n.defaultView)?void 0:t.Element)||Element)?e:null}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const c$8=e=>{const t=e.shadowRoot,n=e.contentDocument;return t&&t.activeElement?c$8(t.activeElement):n&&n.activeElement?c$8(n.activeElement):e},o$f=e=>{if(e&&e.activeElement)return c$8(e.activeElement)},caretAltUpIcon={name:"caret-alt-up",content:'<path d="m256 160 128 192H128z" />',viewBox:"0 0 512 512"},caretAltRightIcon={name:"caret-alt-right",content:'<path d="M352 256 160 384V128z" />',viewBox:"0 0 512 512"},caretAltDownIcon={name:"caret-alt-down",content:'<path d="M256 352 128 160h256z" />',viewBox:"0 0 512 512"},caretAltLeftIcon={name:"caret-alt-left",content:'<path d="m160 256 192-128v256z" />',viewBox:"0 0 512 512"},chevronRightIcon={name:"chevron-right",content:'<path d="m158.059 129.941 126.06 126.06-126.06 126.061L192 416l160-159.999L192 96z" />',viewBox:"0 0 512 512"},chevronLeftIcon={name:"chevron-left",content:'<path d="m353.941 382.059-126.06-126.06 126.06-126.061L320 96 160 255.999 320 416z" />',viewBox:"0 0 512 512"},arrowsSwapIcon={name:"arrows-swap",content:'<path d="M256 160h-64v224h-32V160H96l80-128zm96 192V128h-32v224h-64l80 128 80-128z" />',viewBox:"0 0 512 512"},calendarIcon={name:"calendar",content:'<path d="M416 416H288V288h128zm64-352v384c0 17.6-14.4 32-32 32H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h64V0h64v32h128V0h64v32h64c17.6 0 32 14.4 32 32m-32 128H64v255.9l.1.1 383.9-.1zm0-127.9q-.15-.15 0 0l-64-.1v32h-64V64H192v32h-64V64H64.1l-.1.1V160h384z" />',viewBox:"0 0 512 512"},checkIcon={name:"check",content:'<path d="M434.7 82.7 480 128 192 416 32 256l45.3-45.3L192 325.5z" />',viewBox:"0 0 512 512"},xIcon={name:"x",content:'<path d="M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96z" />',viewBox:"0 0 512 512"};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
let g$a=class{constructor(e=0,t){this.total=e,this.offsets=[],this.heights=[];let n=0;for(let r=0;r<e;r++)this.offsets.push(n),n+=t,this.heights.push(t)}height(e){return this.heights[e]}index(e){for(let t=0;t<this.offsets.length;t++){if(e===this.offsets[t])return t;if(e<this.offsets[t])return t-1}return this.total-1}offset(e){return this.offsets[e]}totalHeight(){return this.offsets[this.offsets.length-1]+this.heights[this.heights.length-1]}update(e,t){let n=this.offsets[e];for(let r=e;r<this.heights.length;r++){this.offsets[r]=n;const i=t[r-e]||this.heights[r];n+=i,this.heights[r]=i}}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const p$e={child:{container:`${e$b.prefix}-${g$b[g$b.prefix+"-"+r$a.container]}`,relative:`${e$b.prefix}-${g$b[g$b.prefix+"-"+r$a.container+"-"+g$b.relative]}`},childContainer:{container:`${e$b.prefix}-${g$b[g$b.child+"-"+g$b.prefix+"-"+r$a.container]}`},appear:{"push-right":`${e$b.prefix}-${g$b.pushRight}-${g$b.appear}`,"push-left":`${e$b.prefix}-${g$b.pushLeft}-${g$b.appear}`,"push-down":`${e$b.prefix}-${g$b.pushDown}-${g$b.appear}`,"push-up":`${e$b.prefix}-${g$b.pushUp}-${g$b.appear}`,"expand-vertical":`${e$b.prefix}-${g$b.expandVertical}-${g$b.appear}`,"expand-horizontal":`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.appear}`,fade:`${e$b.prefix}-${g$b.fade}-${g$b.appear}`,"zoom-in":`${e$b.prefix}-${g$b.zoomIn}-${g$b.appear}`,"zoom-out":`${e$b.prefix}-${g$b.zoomOut}-${g$b.appear}`,"slide-in":`${e$b.prefix}-${g$b.slideIn}-${g$b.appear}`,"slide-down":`${e$b.prefix}-${g$b.slideDown}-${g$b.appear}`,"slide-up":`${e$b.prefix}-${g$b.slideUp}-${g$b.appear}`,"slide-right":`${e$b.prefix}-${g$b.slideRight}-${g$b.appear}`,"slide-left":`${e$b.prefix}-${g$b.slideLeft}-${g$b.appear}`,"reveal-vertical":`${e$b.prefix}-${g$b.revealVertical}-${g$b.appear}`,"reveal-horizontal":`${e$b.prefix}-${g$b.revealHorizontal}-${g$b.appear}`},appearActive:{"push-right":`${e$b.prefix}-${g$b.pushRight}-${g$b.appear}-${g$b.active}`,"push-left":`${e$b.prefix}-${g$b.pushLeft}-${g$b.appear}-${g$b.active}`,"push-down":`${e$b.prefix}-${g$b.pushDown}-${g$b.appear}-${g$b.active}`,"push-up":`${e$b.prefix}-${g$b.pushUp}-${g$b.appear}-${g$b.active}`,"expand-vertical":`${e$b.prefix}-${g$b.expandVertical}-${g$b.appear}-${g$b.active}`,"expand-horizontal":`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.appear}-${g$b.active}`,fade:`${e$b.prefix}-${g$b.fade}-${g$b.appear}-${g$b.active}`,"zoom-in":`${e$b.prefix}-${g$b.zoomIn}-${g$b.appear}-${g$b.active}`,"zoom-out":`${e$b.prefix}-${g$b.zoomOut}-${g$b.appear}-${g$b.active}`,"slide-in":`${e$b.prefix}-${g$b.slideIn}-${g$b.appear}-${g$b.active}`,"slide-down":`${e$b.prefix}-${g$b.slideDown}-${g$b.appear}-${g$b.active}`,"slide-up":`${e$b.prefix}-${g$b.slideUp}-${g$b.appear}-${g$b.active}`,"slide-right":`${e$b.prefix}-${g$b.slideRight}-${g$b.appear}-${g$b.active}`,"slide-left":`${e$b.prefix}-${g$b.slideLeft}-${g$b.appear}-${g$b.active}`,"reveal-vertical":`${e$b.prefix}-${g$b.revealVertical}-${g$b.appear}-${g$b.active}`,"reveal-horizontal":`${e$b.prefix}-${g$b.revealHorizontal}-${g$b.appear}-${g$b.active}`},enter:{"push-right":`${e$b.prefix}-${g$b.pushRight}-${g$b.enter}`,"push-left":`${e$b.prefix}-${g$b.pushLeft}-${g$b.enter}`,"push-down":`${e$b.prefix}-${g$b.pushDown}-${g$b.enter}`,"push-up":`${e$b.prefix}-${g$b.pushUp}-${g$b.enter}`,"expand-vertical":`${e$b.prefix}-${g$b.expandVertical}-${g$b.enter}`,"expand-horizontal":`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.enter}`,fade:`${e$b.prefix}-${g$b.fade}-${g$b.enter}`,"zoom-in":`${e$b.prefix}-${g$b.zoomIn}-${g$b.enter}`,"zoom-out":`${e$b.prefix}-${g$b.zoomOut}-${g$b.enter}`,"slide-in":`${e$b.prefix}-${g$b.slideIn}-${g$b.enter}`,"slide-down":`${e$b.prefix}-${g$b.slideDown}-${g$b.enter}`,"slide-up":`${e$b.prefix}-${g$b.slideUp}-${g$b.enter}`,"slide-right":`${e$b.prefix}-${g$b.slideRight}-${g$b.enter}`,"slide-left":`${e$b.prefix}-${g$b.slideLeft}-${g$b.enter}`,"reveal-vertical":`${e$b.prefix}-${g$b.revealVertical}-${g$b.enter}`,"reveal-horizontal":`${e$b.prefix}-${g$b.revealHorizontal}-${g$b.enter}`},enterActive:{"push-right":`${e$b.prefix}-${g$b.pushRight}-${g$b.enter}-${g$b.active}`,"push-left":`${e$b.prefix}-${g$b.pushLeft}-${g$b.enter}-${g$b.active}`,"push-down":`${e$b.prefix}-${g$b.pushDown}-${g$b.enter}-${g$b.active}`,"push-up":`${e$b.prefix}-${g$b.pushUp}-${g$b.enter}-${g$b.active}`,"expand-vertical":`${e$b.prefix}-${g$b.expandVertical}-${g$b.enter}-${g$b.active}`,"expand-horizontal":`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.enter}-${g$b.active}`,fade:`${e$b.prefix}-${g$b.fade}-${g$b.enter}-${g$b.active}`,"zoom-in":`${e$b.prefix}-${g$b.zoomIn}-${g$b.enter}-${g$b.active}`,"zoom-out":`${e$b.prefix}-${g$b.zoomOut}-${g$b.enter}-${g$b.active}`,"slide-in":`${e$b.prefix}-${g$b.slideIn}-${g$b.enter}-${g$b.active}`,"slide-down":`${e$b.prefix}-${g$b.slideDown}-${g$b.enter}-${g$b.active}`,"slide-up":`${e$b.prefix}-${g$b.slideUp}-${g$b.enter}-${g$b.active}`,"slide-right":`${e$b.prefix}-${g$b.slideRight}-${g$b.enter}-${g$b.active}`,"slide-left":`${e$b.prefix}-${g$b.slideLeft}-${g$b.enter}-${g$b.active}`,"reveal-vertical":`${e$b.prefix}-${g$b.revealVertical}-${g$b.enter}-${g$b.active}`,"reveal-horizontal":`${e$b.prefix}-${g$b.revealHorizontal}-${g$b.enter}-${g$b.active}`},exit:{"push-right":`${e$b.prefix}-${g$b.pushRight}-${g$b.exit}`,"push-left":`${e$b.prefix}-${g$b.pushLeft}-${g$b.exit}`,"push-down":`${e$b.prefix}-${g$b.pushDown}-${g$b.exit}`,"push-up":`${e$b.prefix}-${g$b.pushUp}-${g$b.exit}`,"expand-vertical":`${e$b.prefix}-${g$b.expandVertical}-${g$b.exit}`,"expand-horizontal":`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.exit}`,fade:`${e$b.prefix}-${g$b.fade}-${g$b.exit}`,"zoom-in":`${e$b.prefix}-${g$b.zoomIn}-${g$b.exit}`,"zoom-out":`${e$b.prefix}-${g$b.zoomOut}-${g$b.exit}`,"slide-in":`${e$b.prefix}-${g$b.slideIn}-${g$b.exit}`,"slide-down":`${e$b.prefix}-${g$b.slideDown}-${g$b.exit}`,"slide-up":`${e$b.prefix}-${g$b.slideUp}-${g$b.exit}`,"slide-right":`${e$b.prefix}-${g$b.slideRight}-${g$b.exit}`,"slide-left":`${e$b.prefix}-${g$b.slideLeft}-${g$b.exit}`,"reveal-vertical":`${e$b.prefix}-${g$b.revealVertical}-${g$b.exit}`,"reveal-horizontal":`${e$b.prefix}-${g$b.revealHorizontal}-${g$b.exit}`},exitActive:{"push-right":`${e$b.prefix}-${g$b.pushRight}-${g$b.exit}-${g$b.active}`,"push-left":`${e$b.prefix}-${g$b.pushLeft}-${g$b.exit}-${g$b.active}`,"push-down":`${e$b.prefix}-${g$b.pushDown}-${g$b.exit}-${g$b.active}`,"push-up":`${e$b.prefix}-${g$b.pushUp}-${g$b.exit}-${g$b.active}`,"expand-vertical":`${e$b.prefix}-${g$b.expandVertical}-${g$b.exit}-${g$b.active}`,"expand-horizontal":`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.exit}-${g$b.active}`,fade:`${e$b.prefix}-${g$b.fade}-${g$b.exit}-${g$b.active}`,"zoom-in":`${e$b.prefix}-${g$b.zoomIn}-${g$b.exit}-${g$b.active}`,"zoom-out":`${e$b.prefix}-${g$b.zoomOut}-${g$b.exit}-${g$b.active}`,"slide-in":`${e$b.prefix}-${g$b.slideIn}-${g$b.exit}-${g$b.active}`,"slide-down":`${e$b.prefix}-${g$b.slideDown}-${g$b.exit}-${g$b.active}`,"slide-up":`${e$b.prefix}-${g$b.slideUp}-${g$b.exit}-${g$b.active}`,"slide-right":`${e$b.prefix}-${g$b.slideRight}-${g$b.exit}-${g$b.active}`,"slide-left":`${e$b.prefix}-${g$b.slideLeft}-${g$b.exit}-${g$b.active}`,"reveal-vertical":`${e$b.prefix}-${g$b.revealVertical}-${g$b.exit}-${g$b.active}`,"reveal-horizontal":`${e$b.prefix}-${g$b.revealHorizontal}-${g$b.exit}-${g$b.active}`}},x$7={child:e=>{const{c:t=p$e}=e;return{[t.child.container]:!0,[t.child.relative]:!0}},childContainer:e=>{const{c:t=p$e}=e;return{[t.childContainer.container]:!0}},appear:e=>{const{c:t=p$e,transitionName:n}=e;return{[`${t.appear[n]}`]:t.appear[n],[`${n}-${g$b.appear}`]:!t.appear[n]}},appearActive:e=>{const{c:t=p$e,transitionName:n}=e;return{[`${t.appearActive[n]}`]:t.appearActive[n],[`${n}-${g$b.appear}-${g$b.active}`]:!t.appearActive[n]}},enter:e=>{const{c:t=p$e,transitionName:n}=e;return{[`${t.enter[n]}`]:t.enter[n],[`${n}-${g$b.enter}`]:!t.enter[n]}},enterActive:e=>{const{c:t=p$e,transitionName:n}=e;return{[`${t.enterActive[n]}`]:t.enterActive[n],[`${n}-${g$b.enter}-${g$b.active}`]:!t.enterActive[n]}},exit:e=>{const{c:t=p$e,transitionName:n}=e;return{[`${t.exit[n]}`]:t.exit[n],[`${n}-${g$b.exit}`]:!t.exit[n]}},exitActive:e=>{const{c:t=p$e,transitionName:n}=e;return{[`${t.exitActive[n]}`]:t.exitActive[n],[`${n}-${g$b.exit}-${g$b.active}`]:!t.exitActive[n]}}},s$f=(e,t)=>n=>{const{c:r=e}=n;return{[r[t]||""]:!0}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,M$4={wrapper:{main:L$7,size:{small:`${L$7}-${l$j.small}`,medium:`${L$7}-${l$j.medium}`,large:`${L$7}-${l$j.large}`},fillMode:{solid:`${L$7}-${s$g.solid}`,outline:`${L$7}-${s$g.outline}`,flat:`${L$7}-${s$g.flat}`,link:`${L$7}-${s$g.link}`,clear:`${L$7}-${s$g.clear}`},themeColor:{base:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.base}`,outline:`${L$7}-${s$g.outline}-${c$a.base}`,flat:`${L$7}-${s$g.flat}-${c$a.base}`,link:`${L$7}-${s$g.link}-${c$a.base}`,clear:`${L$7}-${s$g.clear}-${c$a.base}`}},primary:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.primary}`,outline:`${L$7}-${s$g.outline}-${c$a.primary}`,flat:`${L$7}-${s$g.flat}-${c$a.primary}`,link:`${L$7}-${s$g.link}-${c$a.primary}`,clear:`${L$7}-${s$g.clear}-${c$a.primary}`}},secondary:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.secondary}`,outline:`${L$7}-${s$g.outline}-${c$a.secondary}`,flat:`${L$7}-${s$g.flat}-${c$a.secondary}`,link:`${L$7}-${s$g.link}-${c$a.secondary}`,clear:`${L$7}-${s$g.clear}-${c$a.secondary}`}},tertiary:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.tertiary}`,outline:`${L$7}-${s$g.outline}-${c$a.tertiary}`,flat:`${L$7}-${s$g.flat}-${c$a.tertiary}`,link:`${L$7}-${s$g.link}-${c$a.tertiary}`,clear:`${L$7}-${s$g.clear}-${c$a.tertiary}`}},info:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.info}`,outline:`${L$7}-${s$g.outline}-${c$a.info}`,flat:`${L$7}-${s$g.flat}-${c$a.info}`,link:`${L$7}-${s$g.link}-${c$a.info}`,clear:`${L$7}-${s$g.clear}-${c$a.info}`}},success:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.success}`,outline:`${L$7}-${s$g.outline}-${c$a.success}`,flat:`${L$7}-${s$g.flat}-${c$a.success}`,link:`${L$7}-${s$g.link}-${c$a.success}`,clear:`${L$7}-${s$g.clear}-${c$a.success}`}},warning:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.warning}`,outline:`${L$7}-${s$g.outline}-${c$a.warning}`,flat:`${L$7}-${s$g.flat}-${c$a.warning}`,link:`${L$7}-${s$g.link}-${c$a.warning}`,clear:`${L$7}-${s$g.clear}-${c$a.warning}`}},error:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.error}`,outline:`${L$7}-${s$g.outline}-${c$a.error}`,flat:`${L$7}-${s$g.flat}-${c$a.error}`,link:`${L$7}-${s$g.link}-${c$a.error}`,clear:`${L$7}-${s$g.clear}-${c$a.error}`}},dark:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.dark}`,outline:`${L$7}-${s$g.outline}-${c$a.dark}`,flat:`${L$7}-${s$g.flat}-${c$a.dark}`,link:`${L$7}-${s$g.link}-${c$a.dark}`,clear:`${L$7}-${s$g.clear}-${c$a.dark}`}},light:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.light}`,outline:`${L$7}-${s$g.outline}-${c$a.light}`,flat:`${L$7}-${s$g.flat}-${c$a.light}`,link:`${L$7}-${s$g.link}-${c$a.light}`,clear:`${L$7}-${s$g.clear}-${c$a.light}`}},inverse:{fillMode:{solid:`${L$7}-${s$g.solid}-${c$a.inverse}`,outline:`${L$7}-${s$g.outline}-${c$a.inverse}`,flat:`${L$7}-${s$g.flat}-${c$a.inverse}`,link:`${L$7}-${s$g.link}-${c$a.inverse}`,clear:`${L$7}-${s$g.clear}-${c$a.inverse}`}}},rounded:{small:`${e$b.prefix}-${e$b.rounded}-${d$a.small}`,medium:`${e$b.prefix}-${e$b.rounded}-${d$a.medium}`,large:`${e$b.prefix}-${e$b.rounded}-${d$a.large}`},iconButton:`${e$b.prefix}-${a$9.icon}-${a$9.button}`,disabled:`${e$b.prefix}-${x$8.disabled}`,selected:`${e$b.prefix}-${x$8.selected}`,isRtl:`${e$b.prefix}-${e$b.rtl}`},text:`${L$7}-${a$9.text}`,icon:`${L$7}-${a$9.icon}`},G$6={wrapper:e=>{const{isRtl:t,selected:n,disabled:r,size:i,fillMode:o,rounded:a,themeColor:s,iconButton:l,c:c=M$4}=e,u=c.wrapper,d=u.themeColor[s],p=d.fillMode[o];return{[u.main]:!0,[u.size[i]]:u.size[i],[`${L$7}-${i}`]:i&&!u.size[i],[u.fillMode[o]]:u.fillMode[o],[p]:p,[u.rounded[a]]:u.rounded[a],[`${e$b.prefix}-${e$b.rounded}-${a}`]:a&&!u.rounded[a],[u.iconButton]:l,[d.disabled]:r&&d&&d.disabled,[d.selected]:n&&d&&d.selected,[u.disabled]:r,[u.selected]:n,[u.isRtl]:t}},text:e=>{const{c:t=M$4}=e;return{[t.text]:!0}},icon:e=>{const{c:t=M$4}=e;return{[t.icon]:!0}}},m$8={wrapper:{main:`${I$5}-${a$9.button}`,focus:`${e$b.prefix}-${x$8.focus}`,disabled:`${e$b.prefix}-${x$8.disabled}`},ul:{group:`${I$5}-${r$a.group}`,size:{small:`${I$5}-${r$a.group}-${l$j.small}`,medium:`${I$5}-${r$a.group}-${l$j.medium}`,large:`${I$5}-${r$a.group}-${l$j.large}`}},li:{item:`${e$b.prefix}-${r$a.item}`,focus:`${e$b.prefix}-${x$8.focus}`},item:`${I$5}-${r$a.item}`,link:{main:`${e$b.prefix}-${a$9.link}`,link:`${I$5}-${a$9.link}`,selected:`${e$b.prefix}-${x$8.selected}`,disabled:`${e$b.prefix}-${x$8.disabled}`},popup:`${I$5}-${r$a.popup}`},F$2={wrapper:e=>{const{focused:t,disabled:n,c:r=m$8}=e,i=r.wrapper;return{[i.main]:!0,[i.focus]:t,[i.disabled]:n}},ul:e=>{const{size:t,c:n=m$8}=e,r=n.ul;return{[r.group]:!0,[r.size[t]]:r.size[t],[`${I$5}-${r$a.group}-${t}`]:t&&!r.size[t]}},li:e=>{const{focused:t,c:n=m$8}=e,r=n.li;return{[r.item]:!0,[r.focus]:t}},item:s$f(m$8,"item"),link:e=>{const{selected:t,disabled:n,c:r=m$8}=e,i=r.link;return{[i.main]:!0,[i.link]:!0,[i.selected]:t,[i.disabled]:n}},popup:s$f(m$8,"popup")},u$b={wrapper:{main:`${P$7}`,infinite:`${P$7}-${e$b.infinite}`,disabled:`${e$b.prefix}-${x$8.disabled}`,weekNumber:`${e$b.prefix}-${b$5.week}-${b$5.number}`,size:{medium:`${P$7}-${l$j.medium}`,large:`${P$7}-${l$j.large}`}},view:{main:`${P$7}-${r$a.view}`,vertical:`${e$b.prefix}-${n$i.vstack}`,month:`${P$7}-${b$5.month}${r$a.view}`,year:`${P$7}-${b$5.year}${r$a.view}`,decade:`${P$7}-${b$5.decade}${r$a.view}`,century:`${P$7}-${b$5.century}${r$a.view}`},navigation:`${P$7}-${b$5.navigation}`,navigationHighlight:`${P$7}-${b$5.navigation}-${x$8.highlight}`,table:{main:`${P$7}-${a$9.table}`,weekdays:`${P$7}-${b$5.weekdays}`},thead:`${P$7}-${a$9.thead}`,tr:`${P$7}-${a$9.tr}`,th:`${P$7}-${a$9.th}`,caption:`${P$7}-${a$9.caption}`,tbody:`${P$7}-${a$9.tbody}`,ul:`${e$b.prefix}-${e$b.reset}`,li:"",td:{main:`${P$7}-${a$9.td}`,rangeStart:`${e$b.prefix}-${b$5.range}-${f$8.start}`,rangeEnd:`${e$b.prefix}-${b$5.range}-${f$8.end}`,rangeMid:`${e$b.prefix}-${b$5.range}-${f$8.mid}`,rangeSplitEnd:`${e$b.prefix}-${b$5.range}-${u$c.split}-${f$8.end}`,rangeSplitStart:`${e$b.prefix}-${b$5.range}-${u$c.split}-${f$8.start}`,active:`${e$b.prefix}-${x$8.active}`,focused:`${e$b.prefix}-${e$b.state}-${x$8.pending}-${x$8.focus}`,selected:`${e$b.prefix}-${x$8.selected}`,today:`${e$b.prefix}-${b$5.today}`,weekend:`${e$b.prefix}-${b$5.weekend}`,disabled:`${e$b.prefix}-${x$8.disabled}`,isOtherMonth:`${e$b.prefix}-${b$5.other}-${b$5.month}`,isEmpty:`${e$b.prefix}-${x$8.empty}`,isWeek:`${e$b.prefix}-${x$8.alt}`},title:`${P$7}-${a$9.title}`,header:{main:`${P$7}-${a$9.header}`,vertical:`${e$b.prefix}-${n$i.hstack}`},spacer:`${e$b.prefix}-${r$a.spacer}`,nav:`${P$7}-${r$a.nav}`,today:{main:`${P$7}-${r$a.nav}-${b$5.today}`,disabled:`${e$b.prefix}-${x$8.disabled}`},scrollable:{main:`${e$b.prefix}-${x$8.scrollable}`,content:`${e$b.prefix}-${r$a.content}`,horizontal:`${e$b.prefix}-${x$8.scrollable}-${p$f.horizontal}`},scrollableSelector:`${e$b.prefix}-${x$8.scrollable}`,scrollablePlaceholder:{main:`${e$b.prefix}-${x$8.scrollable}-${r$a.placeholder}`,horizontal:`${e$b.prefix}-${x$8.scrollable}-${p$f.horizontal}-${r$a.placeholder}`},link:`${e$b.prefix}-${a$9.link}`,navigationMarker:`${P$7}-${b$5.navigation}-${b$5.marker}`},j$3={wrapper:e=>{const{c:t=u$b,disabled:n,weekNumber:r,mobileMode:i}=e,o=t.wrapper;return{[o.main]:!0,[o.infinite]:!0,[o.disabled]:n,[o.weekNumber]:r,[o.size.large]:i,[o.size.medium]:!i}},view:e=>{const{c:t=u$b,month:n,year:r,decade:i,century:o}=e,a=t.view;return{[a.main]:!0,[a.vertical]:!0,[a.month]:n,[a.year]:r,[a.decade]:i,[a.century]:o}},navigation:s$f(u$b,"navigation"),navigationHighlight:s$f(u$b,"navigationHighlight"),table:e=>{const{c:t=u$b,weekdays:n}=e,r=t.table;return{[r.main]:!0,[r.weekdays]:n}},thead:s$f(u$b,"thead"),tr:s$f(u$b,"tr"),th:s$f(u$b,"th"),tbody:s$f(u$b,"tbody"),title:s$f(u$b,"title"),header:e=>{const{c:t=u$b,vertical:n}=e,r=t.header;return{[r.main]:!0,[r.vertical]:n}},today:e=>{const{c:t=u$b,disabled:n}=e,r=t.today;return{[r.main]:!0,[r.disabled]:n}},spacer:s$f(u$b,"spacer"),nav:s$f(u$b,"nav"),caption:s$f(u$b,"caption"),ul:s$f(u$b,"ul"),li:s$f(u$b,"li"),td:e=>{const{c:t=u$b,rangeStart:n,rangeEnd:r,rangeMid:i,rangeSplitEnd:o,rangeSplitStart:a,active:s,focused:l,selected:c,today:u,weekend:d,disabled:p,isOtherMonth:f,isEmpty:h,isWeek:m}=e,g=t.td;return m?{[g.main]:!0,[g.isWeek]:m}:h?{[g.main]:!0,[g.isEmpty]:h}:{[g.main]:!0,[g.rangeStart]:n,[g.rangeEnd]:r,[g.rangeMid]:i,[g.rangeSplitEnd]:o,[g.rangeSplitStart]:a,[g.active]:s,[g.focused]:l,[g.selected]:c,[g.today]:u,[g.weekend]:d,[g.disabled]:p,[g.isOtherMonth]:f}},scrollable:e=>{const{c:t=u$b,horizontal:n}=e,r=t.scrollable;return{[r.main]:!0,[r.content]:!0,[r.horizontal]:n}},scrollableSelector:s$f(u$b,"scrollableSelector"),scrollablePlaceholder:e=>{const{c:t=u$b,horizontal:n}=e,r=t.scrollablePlaceholder;return{[r.main]:!0,[r.horizontal]:n}},link:s$f(u$b,"link"),navigationMarker:e=>{const{c:t=u$b,isRangeStart:n}=e;return{[t.navigationMarker]:n}}},S$7={wrapper:{main:`${e$b.prefix}-${t$8.dateinput}`,input:`${z$3}`,size:{small:`${z$3}-${l$j.small}`,medium:`${z$3}-${l$j.medium}`,large:`${z$3}-${l$j.large}`},fillMode:{solid:`${z$3}-${s$g.solid}`,outline:`${z$3}-${s$g.outline}`,flat:`${z$3}-${s$g.flat}`},rounded:{small:`${e$b.prefix}-${e$b.rounded}-${d$a.small}`,medium:`${e$b.prefix}-${e$b.rounded}-${d$a.medium}`,large:`${e$b.prefix}-${e$b.rounded}-${d$a.large}`},disabled:`${e$b.prefix}-${x$8.disabled}`,required:`${e$b.prefix}-${x$8.required}`,invalid:`${e$b.prefix}-${x$8.invalid}`},inputInner:`${z$3}-${i$d.inner}`,inputSpinner:{main:`${z$3}-${i$d.spinner}`,button:`${e$b.prefix}-${i$d.spin}-${a$9.button}`},spinnerIncrease:`${e$b.prefix}-${i$d.spinner}-${u$c.increase}`,spinnerDecrease:`${e$b.prefix}-${i$d.spinner}-${u$c.decrease}`,clearButton:`${e$b.prefix}-${e$b.clear}-${e$b.value}`},A$6={wrapper:e=>{const{c:t=S$7,size:n,fillMode:r,rounded:i,disabled:o,required:a,invalid:s}=e,l=t.wrapper;return{[l.main]:!0,[l.input]:!0,[l.size[n]]:l.size[n],[`${z$3}-${n}`]:n&&!l.size[n],[l.fillMode[r]]:l.fillMode[r],[l.rounded[i]]:l.rounded[i],[`${e$b.prefix}-${e$b.rounded}-${i}`]:i&&!l.rounded[i],[l.disabled]:o,[l.invalid]:s,[l.required]:a}},inputInner:s$f(S$7,"inputInner"),inputSpinner:e=>{const{c:t=S$7}=e,n=t.inputSpinner;return{[n.main]:!0,[n.button]:!0}},spinnerIncrease:s$f(S$7,"spinnerIncrease"),spinnerDecrease:s$f(S$7,"spinnerDecrease"),clearButton:s$f(S$7,"clearButton")},s$e=`${e$b.prefix}-${i$d.input}`,m$7=`${e$b.prefix}-${i$d.radio}`,N$2=`${e$b.prefix}-${i$d.textbox}`,h$3=`${e$b.prefix}-${i$d.input}-${i$d.prefix}`,p$d=`${e$b.prefix}-${i$d.input}-${i$d.suffix}`,C$9={input:{radio:m$7,size:{prefix:`${m$7}-`,small:`${m$7}-${l$j.small}`,medium:`${m$7}-${l$j.medium}`,large:`${m$7}-${l$j.large}`},invalid:`${e$b.prefix}-${x$8.invalid}`,checked:`${e$b.prefix}-${x$8.checked}`},wrap:`${m$7}-${r$a.wrap}`,label:`${m$7}-${a$9.label}`},j$2={input:e=>{var t;const{size:n,invalid:r,checked:i,c:o=C$9}=e,a=o.input;return{[null==a?void 0:a.radio]:!0,[null==a?void 0:a.size[n]]:null==a?void 0:a.size[n],[`${null==(t=null==a?void 0:a.size)?void 0:t.prefix}${n}`]:n&&!(null!=a&&a.size[n]),[null==a?void 0:a.invalid]:r,[null==a?void 0:a.checked]:i}},label:e=>{const{c:t=C$9}=e;return{[null==t?void 0:t.label]:!0}},wrap:e=>{const{c:t=C$9}=e;return{[null==t?void 0:t.wrap]:!0}}},B$4={ul:{main:`${m$7}-${r$a.list}`,horizontal:`${e$b.prefix}-${r$a.list}-${x$8.horizontal}`,vertical:`${e$b.prefix}-${r$a.list}-${x$8.vertical}`},item:{main:`${m$7}-${r$a.list}-${r$a.item}`,disabled:`${e$b.prefix}-${x$8.disabled}`}},A$5={ul:e=>{const{horizontal:t,vertical:n,c:r=B$4}=e,i=r.ul;return{[null==i?void 0:i.main]:!0,[null==i?void 0:i.horizontal]:t,[null==i?void 0:i.vertical]:n}},item:e=>{const{disabled:t,c:n=B$4}=e,r=n.item;return{[null==r?void 0:r.main]:!0,[null==r?void 0:r.disabled]:t}}},M$3={wrapper:{main:N$2,input:s$e,size:{small:`${s$e}-${l$j.small}`,medium:`${s$e}-${l$j.medium}`,large:`${s$e}-${l$j.large}`},fillMode:{solid:`${s$e}-${s$g.solid}`,outline:`${s$e}-${s$g.outline}`,flat:`${s$e}-${s$g.flat}`},rounded:{small:`${e$b.prefix}-${e$b.rounded}-${d$a.small}`,medium:`${e$b.prefix}-${e$b.rounded}-${d$a.medium}`,large:`${e$b.prefix}-${e$b.rounded}-${d$a.large}`},disabled:`${e$b.prefix}-${x$8.disabled}`,focused:`${e$b.prefix}-${x$8.focus}`,required:`${e$b.prefix}-${x$8.required}`,invalid:`${e$b.prefix}-${x$8.invalid}`,isRtl:`${e$b.prefix}-${e$b.rtl}`},inputInner:`${s$e}-${i$d.inner}`,prefix:{main:h$3,orientation:{horizontal:`${h$3}-${p$f.horizontal}`,vertical:`${h$3}-${p$f.vertical}`}},suffix:{main:p$d,orientation:{horizontal:`${p$d}-${p$f.horizontal}`,vertical:`${p$d}-${p$f.vertical}`}}},E$4={wrapper:e=>{const{disabled:t,invalid:n,focused:r,required:i,size:o,fillMode:a,rounded:s,isRtl:l,c:c=M$3}=e,u=c.wrapper;return{[null==u?void 0:u.main]:!0,[null==u?void 0:u.input]:!0,[null==u?void 0:u.size[o]]:null==u?void 0:u.size[o],[`${s$e}-${o}`]:o&&!(null!=u&&u.size[o]),[null==u?void 0:u.fillMode[a]]:null==u?void 0:u.fillMode[a],[null==u?void 0:u.rounded[s]]:null==u?void 0:u.rounded[s],[`${e$b.prefix}-${e$b.rounded}-${s}`]:s&&!(null!=u&&u.rounded[s]),[null==u?void 0:u.disabled]:t,[null==u?void 0:u.focused]:r,[null==u?void 0:u.required]:i,[null==u?void 0:u.invalid]:n,[null==u?void 0:u.isRtl]:l}},inputInner:s$f(M$3,"inputInner"),prefix:e=>{const{orientation:t,c:n=M$3}=e,r=n.prefix;return{[r.main]:!0,[r.orientation[t]]:r.orientation[t]}},suffix:e=>{const{orientation:t,c:n=M$3}=e,r=n.suffix;return{[null==r?void 0:r.main]:!0,[null==r?void 0:r.orientation[t]]:null==r?void 0:r.orientation[t]}}},k$7={input:{main:`${s$e} ${s$e}-${l$j.medium} ${e$b.prefix}-${e$b.rounded}-${d$a.medium} ${s$e}-${s$g.solid}`,disabled:`${e$b.prefix}-${x$8.disabled}`,required:`${e$b.prefix}-${x$8.required}`,invalid:`${e$b.prefix}-${x$8.invalid}`,isRtl:`${e$b.prefix}-${e$b.rtl}`},clearButton:`${e$b.prefix}-${e$b.clear}-${e$b.value}`},F$1={input:e=>{const{disabled:t,invalid:n,required:r,isRtl:i,c:o=k$7}=e,a=o.input;return{[null==a?void 0:a.main]:!0,[null==a?void 0:a.disabled]:t,[null==a?void 0:a.required]:r,[null==a?void 0:a.invalid]:n,[null==a?void 0:a.isRtl]:i}},clearButton:s$f(k$7,"clearButton")},m$6=`${e$b.prefix}-${w$8.floatingLabel}`,f$7={wrapper:{main:`${m$6}-${w$8.container}`,focused:`${e$b.prefix}-${x$8.focus}`,empty:`${e$b.prefix}-${x$8.empty}`,notEmpty:"",disabled:`${e$b.prefix}-${w$8.text}-${x$8.disabled}`,isRtl:`${e$b.prefix}-${e$b.rtl}`},label:{main:m$6,focused:"",empty:"",notEmpty:"",invalid:`${e$b.prefix}-${w$8.text}-${c$a.error}`,disabled:`${e$b.prefix}-${w$8.text}-${x$8.disabled}`}},g$9={wrapper:e=>{const{focused:t,empty:n,notEmpty:r,disabled:i,isRtl:o,c:a=f$7}=e,s=a.wrapper;return{[null==s?void 0:s.main]:!0,[null==s?void 0:s.focused]:t,[null==s?void 0:s.empty]:n,[null==s?void 0:s.notEmpty]:r,[null==s?void 0:s.disabled]:i,[null==s?void 0:s.isRtl]:o}},label:e=>{const{focused:t,empty:n,notEmpty:r,invalid:i,disabled:o,c:a=f$7}=e,s=a.label;return{[null==s?void 0:s.main]:!0,[null==s?void 0:s.focused]:t,[null==s?void 0:s.empty]:n,[null==s?void 0:s.notEmpty]:r,[null==s?void 0:s.invalid]:i,[null==s?void 0:s.disabled]:o}}},d$9={animationContainer:`${e$b.prefix}-${g$b.prefix}-${r$a.container}`,animationContainerShown:`${e$b.prefix}-${g$b.prefix}-${r$a.container}-${x$8.shown}`,animationChild:`${e$b.prefix}-${g$b.child}-${g$b.prefix}-${r$a.container}`,popup:`${e$b.prefix}-${y$5.prefix}`,slide:{up:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.up}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.up}-${g$b.exit}`},down:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.down}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.down}-${g$b.exit}`},left:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.left}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.left}-${g$b.exit}`},right:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.right}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.right}-${g$b.exit}`}},slideActive:{up:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.up}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.up}-${g$b.exit}-${g$b.active}`},down:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.down}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.down}-${g$b.exit}-${g$b.active}`},left:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.left}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.left}-${g$b.exit}-${g$b.active}`},right:{enter:`${e$b.prefix}-${g$b.slide}-${f$8.right}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.slide}-${f$8.right}-${g$b.exit}-${g$b.active}`}},zoom:{in:{enter:`${e$b.prefix}-${g$b.zoomIn}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.zoomIn}-${g$b.exit}`},out:{enter:`${e$b.prefix}-${g$b.zoomIn}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.zoomOut}-${g$b.exit}`}},zoomActive:{in:{enter:`${e$b.prefix}-${g$b.zoomIn}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.zoomIn}-${g$b.exit}-${g$b.active}`},out:{enter:`${e$b.prefix}-${g$b.zoomOut}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.zoomOut}-${g$b.exit}-${g$b.active}`}},fade:{enter:`${e$b.prefix}-${g$b.fade}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.fade}-${g$b.exit}`},fadeActive:{enter:`${e$b.prefix}-${g$b.fade}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.fade}-${g$b.exit}-${g$b.active}`},push:{up:{enter:`${e$b.prefix}-${g$b.pushUp}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.pushUp}-${g$b.exit}`},down:{enter:`${e$b.prefix}-${g$b.pushDown}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.pushDown}-${g$b.exit}`},left:{enter:`${e$b.prefix}-${g$b.pushLeft}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.pushLeft}-${g$b.exit}`},right:{enter:`${e$b.prefix}-${g$b.pushRight}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.pushRight}-${g$b.exit}`}},pushActive:{up:{enter:`${e$b.prefix}-${g$b.pushUp}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.pushUp}-${g$b.exit}-${g$b.active}`},down:{enter:`${e$b.prefix}-${g$b.pushDown}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.pushDown}-${g$b.exit}-${g$b.active}`},left:{enter:`${e$b.prefix}-${g$b.pushLeft}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.pushLeft}-${g$b.exit}-${g$b.active}`},right:{enter:`${e$b.prefix}-${g$b.pushRight}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.pushRight}-${g$b.exit}-${g$b.active}`}},expand:{horizontal:{enter:`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.exit}`},vertical:{enter:`${e$b.prefix}-${g$b.expandVertical}-${g$b.enter}`,exit:`${e$b.prefix}-${g$b.expandVertical}-${g$b.exit}`}},expandActive:{horizontal:{enter:`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.expandHorizontal}-${g$b.exit}-${g$b.active}`},vertical:{enter:`${e$b.prefix}-${g$b.expandVertical}-${g$b.enter}-${g$b.active}`,exit:`${e$b.prefix}-${g$b.expandVertical}-${g$b.exit}-${g$b.active}`}}},v$5={animationContainer:e=>{const{c:t=d$9}=e;return{[null==t?void 0:t.animationContainer]:!0}},animationContainerShown:e=>{const{c:t=d$9}=e;return{[null==t?void 0:t.animationContainerShown]:!0}},animationChild:e=>{const{c:t=d$9}=e;return{[null==t?void 0:t.animationChild]:!0}},popup:e=>{const{c:t=d$9}=e;return{[null==t?void 0:t.popup]:!0}},slide:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.slide)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.slide)?void 0:r[o])?void 0:i[a]}},slideActive:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.slideActive)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.slideActive)?void 0:r[o])?void 0:i[a]}},zoom:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.zoom)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.zoom)?void 0:r[o])?void 0:i[a]}},zoomActive:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.zoomActive)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.zoomActive)?void 0:r[o])?void 0:i[a]}},fade:e=>{var t,n;const{type:r,c:i=d$9}=e;return{[null==(t=null==i?void 0:i.fade)?void 0:t[r]]:null==(n=null==i?void 0:i.fade)?void 0:n[r]}},fadeActive:e=>{var t,n;const{type:r,c:i=d$9}=e;return{[null==(t=null==i?void 0:i.fadeActive)?void 0:t[r]]:null==(n=null==i?void 0:i.fadeActive)?void 0:n[r]}},push:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.push)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.push)?void 0:r[o])?void 0:i[a]}},pushActive:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.pushActive)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.pushActive)?void 0:r[o])?void 0:i[a]}},expand:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.expand)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.expand)?void 0:r[o])?void 0:i[a]}},expandActive:e=>{var t,n,r,i;const{direction:o,type:a,c:s=d$9}=e;return{[null==(n=null==(t=null==s?void 0:s.expandActive)?void 0:t[o])?void 0:n[a]]:null==(i=null==(r=null==s?void 0:s.expandActive)?void 0:r[o])?void 0:i[a]}}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
function Q$8({imageUrl:e,name:t,iconClass:n,svgIcon:r,imageAlt:i,buttonClasses:o,iconSize:a}){return e?e__namespace.createElement("img",{role:"presentation",className:n$p(G$6.icon({c:o})),alt:i,src:e}):t||r?e__namespace.createElement(v$6,{className:n$p(G$6.icon({c:o})),name:t,icon:r,size:a}):n?e__namespace.createElement("span",{role:"presentation",className:n$p(G$6.icon({c:o}),n)}):null}const k$6=e__namespace.forwardRef(((e,t)=>{const{children:n,togglable:r,dir:i,disabled:o,selected:a,icon:s,iconClass:l,svgIcon:c,imageUrl:u,imageAlt:d,className:p,startIcon:f,endIcon:h,onClick:m,size:g=g$8.size,rounded:v=g$8.rounded,fillMode:b=g$8.fillMode,themeColor:y=g$8.themeColor,ariaPressed:$,iconSize:x,...E}=e,w=e__namespace.useRef(void 0),D=e__namespace.useRef(null),[_,T]=e__namespace.useState(!0===r&&!0===a),S=void 0!==c||void 0!==s||void 0!==l||void 0!==u,C=void 0!==n,I=n$l(),P=e.unstyled||I,O=P&&P.uButton;e__namespace.useImperativeHandle(t,(()=>({element:D.current,selected:void 0!==w.current?w.current:_}))),e__namespace.useMemo((()=>{r&&void 0!==a&&a!==_&&T(a)}),[r,a]),e__namespace.useEffect((()=>{w.current=void 0}),[_]);const N=Q$8({name:s,svgIcon:c,iconClass:l,imageUrl:u,imageAlt:d,buttonClasses:O,iconSize:x}),R=e=>e__namespace.cloneElement(e,{className:n$p(G$6.icon({c:O}),e.props.className)}),A=e__namespace.useMemo((()=>r?_:$||void 0),[]);return e__namespace.createElement("button",{ref:D,"aria-pressed":A,...E,dir:i,disabled:o,onClick:e=>{r&&void 0===a&&(w.current=!_,T(!_)),m&&m.call(void 0,e)},className:n$p(G$6.wrapper({c:O,isRtl:"rtl"===i,selected:_,disabled:o,size:g,fillMode:b,rounded:v,themeColor:y,iconButton:!C&&S}),p)},f&&R(f),N,n&&e__namespace.createElement("span",{className:n$p(G$6.text({c:O}))},n),h&&R(h))})),g$8={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};k$6.displayName="KendoReactButton",k$6.propTypes={children:PropTypes.node,selected:PropTypes.bool,togglable:PropTypes.bool,icon:PropTypes.string,svgIcon:r$b,iconClass:PropTypes.string,imageUrl:PropTypes.string,imageAlt:PropTypes.string,size:PropTypes.oneOf([null,"small","medium","large"]),rounded:PropTypes.oneOf([null,"small","medium","large","full"]),fillMode:PropTypes.oneOf([null,"flat","link","outline","solid","clear"]),themeColor:PropTypes.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const k$5=e=>{const t=n$l(),n=e.unstyled||t,r=n&&n.uDropDownButton,i=e__namespace.useCallback((t=>{e.onClick(t,e.index)}),[e]),o=e.dataItem.render||e.item||(void 0===e.item?e.render:null),a=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,s=e__namespace.createElement("li",{id:e.id,className:n$p(F$2.li({c:r,focused:e.focused}),e.className),tabIndex:-1,onClick:i,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},e__namespace.createElement("span",{tabIndex:-1,className:n$p(F$2.link({c:r,selected:e.dataItem.selected,disabled:e.dataItem.disabled})),key:"icon"},o?e__namespace.createElement(o,{item:e.dataItem,itemIndex:e.index}):e__namespace.createElement(e__namespace.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass||e.dataItem.svgIcon)&&e__namespace.createElement(v$6,{className:e.dataItem.iconClass,name:e.dataItem.icon,icon:e.dataItem.svgIcon}),e.dataItem.imageUrl&&e__namespace.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),a&&e__namespace.createElement("span",{className:"k-menu-link-text"},a))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,s,e):s};k$5.displayName="KendoReactButtonItem";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const s$d=class extends e__namespace.Component{render(){return null}};s$d.propTypes={text:PropTypes.string,icon:PropTypes.string,iconClass:PropTypes.string,imageUrl:PropTypes.string,disabled:PropTypes.bool,render:PropTypes.any};let e$9=s$d;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const i$c=(e,t,n,r)=>{if(n)return e;const i=Math.min(r-1,Math.max(0,e));switch(t){case e$g.enter:case e$g.space:case e$g.esc:return-1;case e$g.up:case e$g.left:return i-1<0?r-1:i-1;case e$g.down:case e$g.right:return i+1>=r?0:i+1;case e$g.home:return 0;case e$g.end:return r-1;default:return e}},y$4=(e,t,n)=>{e.style.transitionDuration="",t&&e.classList.remove(...t.split(" ")),n&&e.classList.remove(...n.split(" "))},A$4="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),x$6=(e,t,n,r,i,o,a)=>{if(0===t)return r();const s=`${o}Active`,l=n$p(v$5[o]({direction:a,type:n,c:i})),c=n$p(v$5[s]({direction:a,type:n,c:i})),u=t=>{t.target===e&&(e.removeEventListener("transitionend",u),y$4(e,l,c),e.style.display="exit"===n?"none":"",r())};e.addEventListener("transitionend",u);const d=e.ownerDocument;if(!d)return;const p=d.defaultView;if(!p)return;const f=()=>{y$4(e,l,c),"enter"===n&&(e.style.display=""),l&&e.classList.add(...l.split(" ").filter((e=>e))),p.requestAnimationFrame((()=>{e.style.transitionDuration=t+"ms",e.classList.add(...c.split(" ").filter((e=>e)))}))};A$4?p.requestAnimationFrame(f):f()};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */var AlignPoint;!function(e){e.bottom="bottom",e.center="center",e.middle="middle",e.left="left",e.right="right",e.top="top"}(AlignPoint||(AlignPoint={}));var Collision,align=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,o=e.margin,a=void 0===o?{}:o,s=n.horizontal,l=n.vertical,c=i.horizontal,u=i.vertical,d=a.horizontal||0,p=a.vertical||0,f=t.top,h=t.left;return l===AlignPoint.bottom&&(f+=t.height),l!==AlignPoint.center&&l!==AlignPoint.middle||(f+=Math.round(t.height/2)),u===AlignPoint.bottom&&(f-=r.height,p*=-1),u!==AlignPoint.center&&u!==AlignPoint.middle||(f-=Math.round(r.height/2),p*=-1),s===AlignPoint.right&&(h+=t.width),s!==AlignPoint.center&&s!==AlignPoint.middle||(h+=Math.round(t.width/2)),c===AlignPoint.right&&(h-=r.width,d*=-1),c!==AlignPoint.center&&c!==AlignPoint.middle||(h-=Math.round(r.width/2),d*=-1),{top:f+p,left:h+d}},addScroll=function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},ownerDocument=function(e){return e&&e.ownerDocument||document},getDocumentElement$1=function(e){return ownerDocument(e).documentElement},cachedWidth=0,scrollbarWidth=function(){if(!cachedWidth&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),cachedWidth=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return cachedWidth},getWindow$1=function(e){return ownerDocument(e).defaultView},windowViewport=function(e){var t=getWindow$1(e),n=getDocumentElement$1(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=scrollbarWidth()),r},boundingOffset=function(e){if(!e.getBoundingClientRect){var t=windowViewport(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},offsetParent=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||e.ownerDocument.documentElement},rectOfHiddenElement=function(e){var t=e.style,n=t.display,r=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=i,{top:o.top,left:o.left,height:o.height,width:o.width}},offset$2=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return t.height||t.width||(t=rectOfHiddenElement(e)),{top:r,left:n,height:t.height,width:t.width}},parents=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n},scrollPosition=function(e){var t=getDocumentElement$1(e),n=getWindow$1(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}},elementScrollPosition$1=function(e){return e===(e.ownerDocument||{}).body?scrollPosition(e):{x:e.scrollLeft,y:e.scrollTop}},parentScrollPosition=function(e){var t=offsetParent(e);return t?elementScrollPosition$1(t):{x:0,y:0}},position$2=function(e,t){var n=getWindow$1(e),r=n.getComputedStyle(e),i=offset$2(e),o=t||offsetParent(e),a=e.ownerDocument,s=o!==a.body&&o!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var c=n.getComputedStyle(o);(l=offset$2(o)).top+=parseFloat(c.borderTopWidth),l.left+=parseFloat(c.borderLeftWidth)}return{top:i.top-l.top,left:i.left-l.left,height:i.height,width:i.width}},offsetParentScrollPosition=function(e,t){return e?elementScrollPosition$1(e):parentScrollPosition(t)},positionWithScroll=function(e,t,n){void 0===n&&(n=1);var r=t?offsetParent(t):null,i=position$2(e,r),o=i.top,a=i.left,s=i.height,l=i.width,c=offsetParentScrollPosition(r,e),u=c.x,d=c.y,p=e.ownerDocument,f=r===p.body||r===p.documentElement?1:n;return{top:o+d*f,left:a+u*f,height:s,width:l}},removeScroll=function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}};!function(e){e.fit="fit",e.flip="flip",e.none="none"}(Collision||(Collision={}));var fit=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},flip=function(e){var t=e.offset,n=e.size,r=e.anchorSize,i=e.viewPortSize,o=e.anchorAlignPoint,a=e.elementAlignPoint,s=e.margin,l=0,c=a===AlignPoint.center||a===AlignPoint.middle,u=o===AlignPoint.center||o===AlignPoint.middle,d=2*s;if(a!==o&&!c&&!u){var p=o===AlignPoint.top||o===AlignPoint.left;t<0&&p?t+(l=n+r+d)+n>i&&(l=0):t>=0&&!p&&(t+n>i&&(l+=-(r+n+d)),t+l<0&&(l=0))}return l},restrictToView=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,o=e.collisions,a=e.viewPort,s=e.margin,l=void 0===s?{}:s,c=r.top,u=r.left,d=r.height,p=r.width,f=a.height,h=a.width,m=l.horizontal||0,g=l.vertical||0,v=0,b=0,y=o.vertical===Collision.fit,$=o.horizontal===Collision.fit,x=o.vertical===Collision.flip,E=o.horizontal===Collision.flip;y&&(b+=fit(c,d,f)),$&&(v+=fit(u,p,h)),x&&(b+=flip({margin:g,offset:c,size:d,anchorSize:t.height,viewPortSize:f,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),E&&(v+=flip({margin:m,offset:u,size:p,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var w=x&&0!==b,D=E&&0!==v,_=y&&0!==b,T=$&&0!==v;return{flipped:D||w,fitted:_||T,flip:{horizontal:D,vertical:w},fit:{horizontal:T,vertical:_},offset:{left:v,top:b}}},siblings=function(e){for(var t,n=[],r=null===(t=e.parentNode)||void 0===t?void 0:t.firstElementChild;r;)r!==e&&n.push(r),r=r.nextElementSibling;return n},siblingContainer=function(e,t){for(var n,r,i=parents(e),o=t;o&&(n=siblings(o),r=i.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0],!r);)o=o.parentElement;return r},eitherRect=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e};function memoize(e){var t,n=this,r=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return r||(t=e.apply(n,i),r=!0),t}}var hasRelativeStackingContext=memoize((function(e){if(!canUseDOM())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: '.concat(10,'px;">child</div>'),t.body.appendChild(n);var r=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),r})),canUseDOM=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},utils$2={eitherRect:eitherRect,scaleRect:scaleRect,removeStackingOffset:removeStackingOffset,hasRelativeStackingContext:hasRelativeStackingContext,canUseDOM:canUseDOM},STYLES=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},getWindow=function(){return utils$2.canUseDOM()?window:null},getFontStyles=function(e){var t=getWindow();if(!t||!e)return[];var n=t.getComputedStyle(e);return STYLES.map((function(e){return{key:e,value:n[e]}}))},hasOffsetParent=function(e){return!!e&&Boolean(e.offsetParent)},offset$1=function(e){return e?offset$2(e):null},offsetAtPoint=function(e,t){if(!e)return null;var n=e.style,r=n.left,i=n.top,o=n.transition;e.style.transition="none",e.style.left="".concat(t.left,"px"),e.style.top="".concat(t.top,"px");var a=offset$2(e);return e.style.left=r,e.style.top=i,e.offsetHeight,e.style.transition=o,a},position$1=function(e,t,n){return e&&t?positionWithScroll(e,t,n||1):null},OVERFLOW_REGEXP=/auto|scroll/,overflowElementStyle=function(e){return"".concat(window.getComputedStyle(e).overflow)},overflowComputedStyle=function(e){var t=window.getComputedStyle(e);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)},overflowStyle=function(e){return overflowElementStyle(e)||overflowComputedStyle(e)},scrollableParents=function(e){var t=[];if(!utils$2.canUseDOM())return t;for(var n=e.parentElement;n;)(OVERFLOW_REGEXP.test(overflowStyle(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement=function(e){if(!e||!utils$2.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},stackingElementOffset=function(e){var t=getRelativeContextElement(e);return t?offset$2(t):null},stackingElementScroll=function(e){var t=getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort=function(e){var t=getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition=function(e){return Boolean(getRelativeContextElement(e))},zoomLevel=function(){return utils$2.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},isZoomed=function(){return zoomLevel()>1},zIndex=function(e,t){if(!e||!utils$2.canUseDOM())return null;var n=siblingContainer(e,t);if(!n)return null;var r=[e].concat(parents(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,r=parseInt(n,10);return r>e?r:e}),0);return r?r+1:null},domUtils={addOffset:addOffset,addScroll:addScroll,align:align,boundingOffset:boundingOffset,getFontStyles:getFontStyles,getWindow:getWindow,hasOffsetParent:hasOffsetParent,offset:offset$1,offsetAtPoint:offsetAtPoint,position:position$1,removeScroll:removeScroll,restrictToView:restrictToView,scrollPosition:scrollPosition,scrollableParents:scrollableParents,getRelativeContextElement:getRelativeContextElement,stackingElementOffset:stackingElementOffset,stackingElementScroll:stackingElementScroll,stackingElementViewPort:stackingElementViewPort,useRelativePosition:useRelativePosition,windowViewport:windowViewport,zoomLevel:zoomLevel,isZoomed:isZoomed,zIndex:zIndex},absoluteRect=function(e,t,n,r){var i=elementScrollPosition(e,t),o=utils$2.eitherRect(domUtils.offset(e),n),a=2*r,s=domUtils.stackingElementScroll(t);1!==r&&s&&(s.x/=a,s.y/=a);var l=domUtils.stackingElementOffset(t);return 1!==r&&l&&(l.left/=a,l.top/=a),domUtils.removeScroll(domUtils.addScroll(utils$2.removeStackingOffset(utils$2.scaleRect(o,r),l),s),i)},relativeRect=function(e,t,n,r){var i=utils$2.eitherRect(domUtils.position(e,t,r),n);return utils$2.scaleRect(i,r)},elementScrollPosition=function(e,t){return e?{x:0,y:0}:domUtils.scrollPosition(t)},alignElement=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,i=e.elementAlign,o=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,c="fixed"===s||!domUtils.hasOffsetParent(n)?absoluteRect(t,n,a,l):relativeRect(t,n,a,l),u=utils$2.scaleRect(domUtils.offset(n),l);return domUtils.align({anchorAlign:r,anchorRect:c,elementAlign:i,elementRect:u,margin:o})},positionElement=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,i=e.anchorAlign,o=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,c=domUtils.offsetAtPoint(r,n),u=utils$2.scaleRect(c,l),d=utils$2.scaleRect(domUtils.offset(t),l),p=utils$2.eitherRect(d,n),f=e.viewPort||domUtils.windowViewport(r);f.width=f.width/l,f.height=f.height/l;var h=domUtils.restrictToView({anchorAlign:i,anchorRect:p,collisions:a,elementAlign:o,elementRect:u,margin:s,viewPort:f}),m=domUtils.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,fit:h.fit,fitted:h.fitted,offset:m}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const d$8=16.666666666666668,g$7=function(e,t,n={}){let r,i,o,a,s=0;n=n||{};const l=function(){s=!1===n.leading?0:(new Date).getTime(),r=void 0,a=e.apply(i,o),r||(i=o=null)};return function(){const c=(new Date).getTime();!s&&!1===n.leading&&(s=c);const u=t-(c-s);return i=void 0,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=void 0),s=c,a=e.apply(i,o),r||(i=o=null)):!r&&!1!==n.trailing&&(r=window.setTimeout(l,u)),a}},ze$1=e__namespace.createContext((e=>e)),Ne$1=100,Ie$1=1;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function C$8(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(e[i]!==t[i])return!1}return!0}const Le$1={left:-1e3,top:0},se=e__namespace.forwardRef(((e,t)=>{const n=e__namespace.useContext(ze$1).call(void 0,e),{collision:r=g$6.collision,anchorAlign:i=g$6.anchorAlign,popupAlign:o=g$6.popupAlign,offset:a=g$6.offset,animate:s=g$6.animate,show:l=g$6.show,margin:c=g$6.margin,positionMode:u=g$6.positionMode,appendTo:d,contentKey:p,anchor:f,scale:h,role:m,onKeyDown:g,onPosition:v,onOpen:b,onMouseDownOutside:y,onClose:$,className:x,popupClass:E,id:w,style:D,children:_}=n,T=n$l(),S=n.unstyled||T,C=S&&S.uPopup,[I,P]=e__namespace.useState({current:"hidden",previous:"hidden",props:{}}),O=s&&"object"!=typeof s?ie:{...ie,...s},N=e=>{null==window||window.addEventListener("mousedown",k),R(e),M(e.firstChild,"enter",A),P({...K,current:"shown",previous:K.current})},R=e=>{const{width:t,height:n}=e.style;if(0===e.offsetWidth&&0===e.offsetHeight)return;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";const s=alignElement({anchor:f,anchorAlign:i,element:e,elementAlign:o,offset:a,margin:c,positionMode:u,scale:h}),l=positionElement({anchor:f,anchorAlign:i,element:e,elementAlign:o,collisions:r,currentLocation:s,margin:c});if(e.style.top=l.offset.top+"px",e.style.left=l.offset.left+"px",e.style.width=t,e.style.height=n,H.current={fit:l.fit,fitted:l.fitted,flip:l.flip,flipped:l.flipped},v){const e={target:W.current,flipped:l.flipped,fitted:l.fitted};v.call(void 0,e)}},A=()=>{const e=U.current;e&&(l&&e.classList.add(...n$p(v$5.animationContainerShown({c:C})).split(" ").filter((e=>e))),F(e),b&&b.call(void 0,{target:W.current}))},M=(t,n,r)=>{if(o){if("slide"===O.type){let i;const{horizontal:a,vertical:s}=o;i="object"==typeof e.animate&&e.animate.direction?O.direction:"left"===a&&"center"===s?"right":"right"===a&&"center"===s?"left":"top"===s?"down":"up";const l={down:"up",up:"down",left:"right",right:"left"};H.current&&H.current.flipped&&(i=l[i],x$6(t,j()[n],n,r,C,O.type,i))}x$6(t,j()[n],n,r,C,O.type,O.direction)}},k=e=>{var t;const n=null===(null==(t=null==e?void 0:e.target)?void 0:t.closest(".k-animation-container")),r=(null==f?void 0:f.contains(null==e?void 0:e.target))||!1;if(n){if(y){const t={target:W.current,event:e,state:I,isAnchorClicked:r};y.call(void 0,t)}null==window||window.removeEventListener("mousedown",k)}},L=()=>{"hiding"===K.current&&("shown"===K.previous||"reposition"===K.previous)&&P({...K,current:"hidden",previous:K.current}),$&&$.call(void 0,{target:W.current})},j=()=>{const e=s;let t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},F=e=>{V(),G.current=domUtils.scrollableParents(f||e),G.current&&G.current.map((e=>e.addEventListener("scroll",B))),window.addEventListener("resize",B)},V=()=>{G.current&&(G.current.map((e=>e.removeEventListener("scroll",B))),G.current=void 0),window.removeEventListener("resize",B)},B=g$7((()=>{U.current&&"hidden"!==K.current&&"hiding"!==K.current&&P({...I,current:"reposition",previous:K.current})}),d$8),z=n$s()||0,H=e__namespace.useRef(void 0),G=e__namespace.useRef(void 0),U=e__namespace.useRef(null),W=e__namespace.useRef(null),q=e__namespace.useRef({}),Y=e__namespace.useRef(!1);e__namespace.useImperativeHandle(W,(()=>({element:U.current,setPosition:R,props:e}))),e__namespace.useImperativeHandle(t,(()=>W.current));const K=e__namespace.useMemo((()=>{const e={...I,props:{show:l,anchor:f,anchorAlign:i,appendTo:d,collision:r,popupAlign:o,className:x,popupClass:E,style:D,offset:a,contentKey:p}};return l?"hidden"===I.current||"hiding"===I.current?{...e,current:"showing",previous:I.current}:"showing"===I.current?{...e,current:"shown",previous:I.current}:"shown"!==I.current||C$8(a,I.props.offset)&&C$8(i,I.props.anchorAlign)&&C$8(d,I.props.appendTo)&&C$8(r,I.props.collision)&&C$8(o,I.props.popupAlign)&&C$8(D,I.props.style)&&f===I.props.anchor&&E===I.props.popupClass&&x===I.props.className?e:{...e,current:"reposition",previous:I.current}:"hiding"===I.current||"hidden"===I.current?{...e,current:"hidden",previous:I.current}:{...e,current:"hiding",previous:I.current}}),[l,f,i,d,r,o,x,E,D,a,p,I]);e__namespace.useEffect((()=>{"hiding"===K.current&&!Y.current&&U.current?(Y.current=!0,(e=>{if(!l){const t=S&&S.uPopup;e.classList.remove(...n$p(v$5.animationContainerShown({c:t})).split(" ").filter((e=>e)))}V()})(U.current),M(U.current.firstChild,"exit",L)):(Y.current=!1,"showing"===K.current&&U.current&&!U.current.classList.contains("k-animation-container-shown")?N(U.current):"hiding"===K.current&&U.current?L():"reposition"===K.current&&"shown"===K.previous?setTimeout((()=>{P({...K,current:"shown",previous:K.current})}),0):"shown"===K.current&&q.current.contentKey!==p&&U.current&&R(U.current)),"reposition"===K.current&&("shown"===K.previous||"showing"===K.previous)&&U.current&&R(U.current),q.current={contentKey:p}}),[K]),e__namespace.useEffect((()=>("showing"===K.current&&U.current&&N(U.current),()=>{V()})),[]);const X=d||(e$h?f&&f.ownerDocument?f.ownerDocument.body:document.body:void 0),J=Object.assign({},{position:u,top:0,left:-1e4},D||{}),Q="hiding"===K.current;if((l||Q)&&X){const e=z?z+1:100,t=e__namespace.createElement(t$c.Provider,{value:e},e__namespace.createElement("div",{onKeyDown:g,className:n$p(v$5.animationContainer({c:C}),x),id:w,ref:U,style:{zIndex:e,...J}},e__namespace.createElement("div",{className:n$p(v$5.animationChild({c:C})),style:{transitionDelay:"0ms"}},e__namespace.createElement("div",{role:m,className:n$p(v$5.popup({c:C}),E)},_))));return null!==d?ReactDOM__namespace.createPortal(t,X):t}return null})),g$6={collision:{horizontal:Collision.fit,vertical:Collision.flip},anchorAlign:{horizontal:AlignPoint.left,vertical:AlignPoint.bottom},popupAlign:{horizontal:AlignPoint.left,vertical:AlignPoint.top},offset:Le$1,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},ie={type:"slide",direction:"down"};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
function n$h(e){const t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function i$b(e){const t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */}se.displayName="Popup",se.propTypes={anchor:function(e){const t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){const t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string.isRequired)]),id:PropTypes.string,popupClass:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string),PropTypes.object]),collision:PropTypes.shape({horizontal:PropTypes.oneOf([Collision.fit,Collision.flip,Collision.none]),vertical:PropTypes.oneOf([Collision.fit,Collision.flip,Collision.none])}),anchorAlign:PropTypes.shape({horizontal:PropTypes.oneOf([AlignPoint.left,AlignPoint.center,AlignPoint.right]),vertical:PropTypes.oneOf([AlignPoint.top,AlignPoint.center,AlignPoint.bottom])}),popupAlign:PropTypes.shape({horizontal:PropTypes.oneOf([AlignPoint.left,AlignPoint.center,AlignPoint.right]),vertical:PropTypes.oneOf([AlignPoint.top,AlignPoint.center,AlignPoint.bottom])}),offset:PropTypes.shape({left:PropTypes.number,top:PropTypes.number}),children:PropTypes.oneOfType([PropTypes.element,PropTypes.node]),show:PropTypes.bool,animate:PropTypes.oneOfType([PropTypes.bool,PropTypes.shape({type:PropTypes.oneOf(["slide","zoom","push","expand","fade"]),openDuration:PropTypes.number,closeDuration:PropTypes.number})]),margin:PropTypes.shape({horizontal:PropTypes.number,vertical:PropTypes.number}),positionMode:PropTypes.oneOf(["fixed","absolute"]),scale:PropTypes.number,style:PropTypes.object,onClose:PropTypes.func,onPosition:PropTypes.func,onOpen:PropTypes.func,onKeyDown:PropTypes.func,onMouseDownOutside:PropTypes.func};const e$8=Object.freeze({name:"@progress/kendo-react-buttons",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1758806203,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"}),u$a=class extends e__namespace.Component{constructor(e){super(e),this.state={focused:!1,focusedIndex:-1,opened:!1},this.wrapper=null,this.mainButton=null,this.list=null,this.skipFocus=!1,this.buttonsData=[],this.showLicenseWatermark=!1,this.onKeyDown=e=>{const{focusedIndex:t}=this.state;if(e.altKey)return void(this.opened||e.keyCode!==e$g.down?this.opened&&e.keyCode===e$g.up&&(e.preventDefault(),this.setState({focusedIndex:-1}),this.setOpen(!1,e)):(e.preventDefault(),this.setState({focusedIndex:0}),this.setOpen(!0,e)));let n;if(e.keyCode===e$g.enter||e.keyCode===e$g.space){if(e.preventDefault(),this.dispatchClickEvent(e,t),t>=0){n={focusedIndex:this.opened?-1:0};const t=!this.opened;this.setOpen(t,e)}}else if(this.opened&&e.keyCode===e$g.esc)return this.setState({focusedIndex:-1}),void this.setOpen(!1,e);if(this.opened){const r=i$c(t,e.keyCode,e.altKey,this.buttonsData.length);r!==t&&(n=n||{},n.focusedIndex=r);const i=e.keyCode===e$g.up||e.keyCode===e$g.down||e.keyCode===e$g.left||e.keyCode===e$g.right;!e.altKey&&(i||e.keyCode===e$g.home||e.keyCode===e$g.end)&&e.preventDefault()}n&&this.setState(n)},this.switchFocus=e=>{this.skipFocus=!0,e(),window.setTimeout((()=>this.skipFocus=!1),0)},this.onFocus=e=>{this.skipFocus||(v$8(this.props.onFocus,e,this,void 0),this.setState({focused:!0}))},this.setOpen=(e,t)=>{this.opened!==e&&(this.openedDuringOnChange=e,this.setState({opened:e}),t?this.dispatchPopupEvent(t,e):this.openedDuringOnChange=void 0)},this.onItemClick=(e,t)=>{this.opened&&this.setState({focusedIndex:0}),this.dispatchClickEvent(e,t),this.setOpen(!1,e)},this.onBlur=e=>{this.skipFocus||(this.setState({focused:!1,focusedIndex:-1}),v$8(this.props.onBlur,e,this,void 0),setTimeout((()=>{this.setOpen(!1,e)}),0))},this.onPopupClose=e=>{var t;const n=o$f(document);this.element&&this.element.removeAttribute("tabindex"),(n===this.list||null!=(t=this.list)&&t.contains(n))&&this.switchFocus((()=>{this.element&&this.element.focus({preventScroll:!0})})),this.props.popupSettings&&this.props.popupSettings.onClose&&this.props.popupSettings.onClose.call(void 0,e)},this.listRef=e=>{this.list=e,e&&this.state.focused&&this.switchFocus((()=>{e.focus({preventScroll:!0}),this.element&&(this.element.tabIndex=-1)}))},this.onSplitPartClick=e=>{if(this.buttonsData.length){const t=!this.opened;this.setState({focusedIndex:t?0:-1,focused:!0}),this.setOpen(t,e)}},this.onDownSplitPart=e=>{e.preventDefault();const t=o$f(document);this.element&&t!==this.element&&t!==this.list&&this.element.focus()},this.onItemDown=e=>{o$f(document)===this.list&&e.preventDefault()},this.dispatchPopupEvent=(e,t)=>{v$8(t?this.props.onOpen:this.props.onClose,e,this,void 0),this.openedDuringOnChange=void 0},this.showLicenseWatermark=!d$b(e$8,{component:"SplitButton"}),this.licenseMessage=w$9(e$8)}get guid(){return this.props.id?this.props.id+"-accessibility-id":this.props.id}get opened(){return void 0!==this.openedDuringOnChange?this.openedDuringOnChange:void 0===this.props.opened?this.state.opened:this.props.opened}render(){this.buttonsData=this.props.items||e__namespace.Children.toArray(this.props.children).filter((e=>e&&e.type===e$9)).map((e=>e.props));const e=this.isRtl(),t=e?"rtl":void 0,{id:n,style:r,tabIndex:i,disabled:o}=this.props;return e__namespace.createElement(e__namespace.Fragment,null,e__namespace.createElement("div",{id:n,style:r,className:n$p("k-split-button","k-button-group",{"k-focus":this.state.focused},`k-rounded-${l$h.roundedMap[this.props.rounded||"medium"]}`,this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:t,ref:e=>{this.wrapper=e}},e__namespace.createElement(k$6,{ref:e=>{this.mainButton=e&&e.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:e=>this.onItemClick(e,-1),disabled:o||void 0,tabIndex:i,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,svgIcon:this.props.svgIcon,iconClass:this.props.iconClass,startIcon:this.props.startIcon,endIcon:this.props.endIcon,imageUrl:this.props.imageUrl,dir:t,"aria-disabled":o,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),e__namespace.createElement(k$6,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",svgIcon:caretAltDownIcon,className:"k-split-button-arrow",disabled:o||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:t,"aria-label":"menu toggling button"}),this.renderPopup(e)),this.showLicenseWatermark&&e__namespace.createElement(P$8,{message:this.licenseMessage}))}componentDidMount(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()}get element(){return this.mainButton}dispatchClickEvent(e,t){this.isItemDisabled(t)||(-1===t?v$8(this.props.onButtonClick,e,this,void 0):v$8(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))}renderPopup(e){const{popupSettings:t={}}=this.props,{focusedIndex:n}=this.state;return e__namespace.createElement(se,{anchor:this.wrapper,show:this.opened,animate:t.animate,popupClass:n$p("k-menu-popup",t.popupClass),anchorAlign:t.anchorAlign||n$h(e),popupAlign:t.popupAlign||i$b(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},e__namespace.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":n>=0?`${this.guid}-${n}`:void 0,className:n$p("k-menu-group",{[`k-menu-group-${l$h.sizeMap[this.props.size]||this.props.size}`]:this.props.size})},this.renderChildItems()))}renderChildItems(){const{item:e,itemRender:t,textField:n}=this.props;return this.buttonsData.length>0?this.buttonsData.map(((r,i)=>e__namespace.createElement(k$5,{className:n$p("k-menu-item",{"k-first":0===i},{"k-last":i===this.buttonsData.length-1}),dataItem:r,textField:n,focused:this.state.focusedIndex===i,onClick:this.onItemClick,onDown:this.onItemDown,render:t,item:e,key:i,index:i,id:`${this.guid}-${i}`}))):null}isItemDisabled(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled}isRtl(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */u$a.propTypes={accessKey:PropTypes.string,ariaLabel:PropTypes.string,title:PropTypes.string,onButtonClick:PropTypes.func,onFocus:PropTypes.func,onBlur:PropTypes.func,onItemClick:PropTypes.func,onOpen:PropTypes.func,onClose:PropTypes.func,text:PropTypes.string,items:PropTypes.arrayOf(PropTypes.any),textField:PropTypes.string,tabIndex:PropTypes.number,disabled:PropTypes.bool,icon:PropTypes.string,svgIcon:r$b,imageUrl:PropTypes.string,popupSettings:PropTypes.object,itemRender:PropTypes.any,item:PropTypes.func,className:PropTypes.string,buttonClass:PropTypes.string,dir:PropTypes.string},u$a.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};let C$7=u$a;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const r$9=class extends e__namespace.Component{render(){return null}};r$9.propTypes={text:PropTypes.string,icon:PropTypes.string,iconClass:PropTypes.string,imageUrl:PropTypes.string,selected:PropTypes.bool,disabled:PropTypes.bool,render:PropTypes.any};let s$c=r$9;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const J$4=12e3,Q$7=2e3,m$5=class extends e__namespace.Component{constructor(e){super(e),this.state={opened:!1,focused:!1,focusedIndex:-1},this.mainButton=null,this.list=null,this.skipFocus=!1,this.showLicenseWatermark=!1,this.buttonsData=[],this.onKeyDown=e=>{const{focusedIndex:t}=this.state;if(e.altKey)return void(this.opened||e.keyCode!==e$g.down?this.opened&&e.keyCode===e$g.up&&(e.preventDefault(),this.setState({focusedIndex:-1}),this.setOpen(!1,e)):(e.preventDefault(),this.setOpen(!0,e),this.setState({focusedIndex:0})));const n={...this.state};if(e.keyCode===e$g.enter||e.keyCode===e$g.space){e.preventDefault(),t>=0&&this.dispatchClickEvent(e,t);const n=!this.opened;return this.setState({focused:!0,focusedIndex:n?0:-1}),void this.setOpen(n,e)}if(this.opened&&e.keyCode===e$g.esc)return this.setState({focusedIndex:-1}),void this.setOpen(!1,e);if(this.opened){const r=i$c(t,e.keyCode,e.altKey,this.buttonsData.length);n.focusedIndex=r;const i=e.keyCode===e$g.up||e.keyCode===e$g.down||e.keyCode===e$g.left||e.keyCode===e$g.right;!e.altKey&&(i||e.keyCode===e$g.home||e.keyCode===e$g.end)&&e.preventDefault()}this.setState(n)},this.switchFocus=e=>{this.skipFocus=!0,e(),window.setTimeout((()=>this.skipFocus=!1),0)},this.handleFocus=e=>{this.skipFocus||(this.setState({focused:!0,focusedIndex:this.opened?0:-1}),v$8(this.props.onFocus,e,this,void 0))},this.handleButtonBlur=e=>{this.opened||(this.setState({focused:!1}),v$8(this.props.onBlur,e,this,void 0))},this.handleMenuBlur=e=>{this.skipFocus||(this.setState({focused:!1,focusedIndex:-1}),v$8(this.props.onBlur,e,this,void 0),setTimeout((()=>{this.setOpen(!1,e)}),0))},this.setOpen=(e,t)=>{this.opened!==e&&(this.openedDuringOnChange=e,this.setState({opened:e}),t?this.dispatchPopupEvent(t,e):this.openedDuringOnChange=void 0)},this.onItemClick=(e,t)=>{this.setState({focusedIndex:-1}),this.dispatchClickEvent(e,t),this.setOpen(!1,e)},this.onItemDown=e=>{o$f(document)===this.list&&e.preventDefault()},this.mouseDown=e=>{e.preventDefault();const t=o$f(document);this.element&&t!==this.element&&t!==this.list&&this.element.focus()},this.onPopupClose=e=>{var t;const n=o$f(document);this.element&&this.element.removeAttribute("tabindex"),(n===this.list||null!=(t=this.list)&&t.contains(n))&&this.switchFocus((()=>{this.element&&this.element.focus({preventScroll:!0})})),this.props.popupSettings&&this.props.popupSettings.onClose&&this.props.popupSettings.onClose.call(void 0,e)},this.listRef=e=>{this.list=e,e&&this.state.focused&&this.switchFocus((()=>{e.focus({preventScroll:!0}),this.element&&(this.element.tabIndex=-1)}))},this.onClickMainButton=e=>{if(v$8(this.props.onClick,e,this,void 0),!this.buttonsData.length)return;const t=!this.opened;this.setState({focused:!0,focusedIndex:t?0:-1}),this.setOpen(t,e)},this.dispatchPopupEvent=(e,t)=>{v$8(t?this.props.onOpen:this.props.onClose,e,this,void 0),this.openedDuringOnChange=void 0},this.showLicenseWatermark=!d$b(e$8,{component:"DropDownButton"}),this.licenseMessage=w$9(e$8)}get guid(){return this.props.id+"-accessibility-id"}get opened(){return void 0!==this.openedDuringOnChange?this.openedDuringOnChange:void 0===this.props.opened?this.state.opened:this.props.opened}render(){const e=this.isRtl(),t=this.props.unstyled&&this.props.unstyled.uDropDownButton,n=e?"rtl":void 0,{id:r,style:i,tabIndex:o,disabled:a,size:s,rounded:l,fillMode:c,themeColor:u,ariaLabel:d,title:p,accessKey:f,icon:h,svgIcon:m,iconClass:g,buttonClass:v,className:b,imageUrl:y,startIcon:$,endIcon:x}=this.props;return this.buttonsData=this.props.items||e__namespace.Children.toArray(this.props.children).filter((e=>e&&e.type===s$c)).map((e=>e.props)),e__namespace.createElement(e__namespace.Fragment,null,e__namespace.createElement(k$6,{id:r,size:s,style:i,rounded:l,fillMode:c,themeColor:u,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleButtonBlur,"aria-disabled":a?"true":void 0,tabIndex:o,accessKey:f,icon:h,svgIcon:m,iconClass:g,className:n$p(v,b,F$2.wrapper({c:t,focused:this.state.focused,disabled:a})),imageUrl:y,dir:n,ref:e=>{this.mainButton=(null==e?void 0:e.element)||null},type:"button","aria-expanded":this.opened?"true":"false","aria-label":d,"aria-controls":this.opened?this.guid:void 0,title:p,startIcon:$,endIcon:x},this.props.text),this.showLicenseWatermark&&e__namespace.createElement(P$8,{message:this.licenseMessage}),this.renderPopup(e))}componentDidMount(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()}get element(){return this.mainButton}dispatchClickEvent(e,t){this.isItemDisabled(t)||v$8(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})}renderPopup(e){const{popupSettings:t={},_zIndex:n,unstyled:r}=this.props,i=n?n+Q$7:J$4,o=r&&r.uDropDownButton,{focusedIndex:a}=this.state;return e__namespace.createElement(t$c.Provider,{value:i},e__namespace.createElement(se,{anchor:this.mainButton,show:this.opened,animate:t.animate,popupClass:n$p(F$2.popup({c:o}),t.popupClass),anchorAlign:t.anchorAlign||n$h(e),popupAlign:t.popupAlign||i$b(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},e__namespace.createElement("ul",{role:"list",id:this.guid,tabIndex:-1,"aria-activedescendant":a>=0?`${this.guid}-${a}`:void 0,ref:this.listRef,onKeyDown:this.onKeyDown,onBlur:this.handleMenuBlur,className:n$p(F$2.ul({c:o,size:this.props.size}))},this.renderChildItems())))}renderChildItems(){const{item:e,itemRender:t,textField:n,unstyled:r}=this.props,i=r&&r.uDropDownButton;return this.buttonsData.length>0?this.buttonsData.map(((r,o)=>e__namespace.createElement(k$5,{className:n$p(F$2.item({c:i}),r.className,{"k-first":0===o},{"k-last":o===this.buttonsData.length-1}),dataItem:r,textField:n,focused:this.state.focusedIndex===o,onClick:this.onItemClick,onDown:this.onItemDown,render:t,item:e,index:o,key:o,id:`${this.guid}-${o}`}))):null}isItemDisabled(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled}isRtl(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.mainButton&&"rtl"===getComputedStyle(this.mainButton).direction}};m$5.propTypes={accessKey:PropTypes.string,ariaLabel:PropTypes.string,title:PropTypes.string,onFocus:PropTypes.func,onBlur:PropTypes.func,onClick:PropTypes.func,onItemClick:PropTypes.func,onOpen:PropTypes.func,onClose:PropTypes.func,items:PropTypes.arrayOf(PropTypes.any),textField:PropTypes.string,tabIndex:PropTypes.number,disabled:PropTypes.bool,icon:PropTypes.string,svgIcon:r$b,iconClass:PropTypes.string,imageUrl:PropTypes.string,popupSettings:PropTypes.object,itemRender:PropTypes.func,item:PropTypes.func,className:PropTypes.string,buttonClass:PropTypes.string,dir:PropTypes.string},m$5.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};let g$5=m$5;const V$5=a$c(),Y$2=a$b(x$a(V$5,a$a(m$a(g$5))));Y$2.displayName="KendoReactDropDownButton";var defaultData={en:{name:"en",identity:{version:{_unicodeVersion:"14.0.0",_cldrVersion:"41"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":",approximatelySign:"~"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y GGGGG",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},weekOfMonth:{wide:"week of month",short:"wk. of mo.",narrow:"wk. of mo."},day:{wide:"day",short:"day",narrow:"day"},dayOfYear:{wide:"day of year",short:"day of yr.",narrow:"day of yr."},weekday:{wide:"day of the week",short:"day of wk.",narrow:"day of wk."},weekdayOfMonth:{wide:"weekday of the month",short:"wkday. of mo.",narrow:"wkday. of mo."},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone",short:"zone",narrow:"zone"},millisecond:{narrow:"ms",short:"ms",wide:"millisecond"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function isString$1(e){return"string"==typeof e}var errorDetails={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},formatRegExp$2=/\{(\d+)}?\}/g,IntlError=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};IntlError.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=flatten(e),r=this.message.replace(formatRegExp$2,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+r},IntlError.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var flatten=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},toIntlErrors=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new IntlError({name:n,message:e[n]}),t}),{})},errors=toIntlErrors(errorDetails);function availableLocaleInfo(e,t){var n=e.split("-"),r=n[0],i=n[1],o=n[2];return cldr[e]||-1!==t.indexOf(o)&&cldr[r+"-"+o]||-1!==t.indexOf(i)&&cldr[r+"-"+i]||cldr[r]}function localeFullName(e,t){for(var n=cldr.supplemental.likelySubtags,r=0;r<t.length;r++){var i=n[e+"-"+t[r]];if(i)return i}if(n[e])return n[e]}var cldr=defaultData;function getLocaleInfo(e){return isString$1(e)?localeInfo(e):e}function localeInfo(e){if(cldr[e])return cldr[e];if(cldr.supplemental.likelySubtags){var t=e.split("-"),n=t[0],r=t.slice(1),i=localeFullName(n,r),o=i?availableLocaleInfo(i,r):null;if(o)return o}throw errors.NoLocale.error(e)}var DECIMAL="decimal",CURRENCY="currency",ACCOUNTING="accounting",PERCENT="percent",SCIENTIFIC="scientific",CURRENCY_PLACEHOLDER="$",PERCENT_PLACEHOLDER="%",NUMBER_PLACEHOLDER="n",LIST_SEPARATOR=";",GROUP_SEPARATOR=",",POINT=".",EMPTY="",DEFAULT_LOCALE="en";function territoryFromName(e,t){var n=cldr.supplemental.likelySubtags,r=e.split("-");if(n){var i=n[e]||n[r[0]];i&&(r=i.split("-"))}if(t)for(var o=r.length-1;o>=1;o--){var a=r[o];a!==t.variant&&a!==t.script||r.splice(o,1)}var s=r.length;if(s>1)return r[s-1].toUpperCase()}function localeTerritory(e){if(e.territory)return e.territory;var t,n=e.name,r=e.identity;return t=r&&r.territory?r.territory:territoryFromName(n,r),e.territory=t,t}function dateFieldName(e,t){void 0===t&&(t=DEFAULT_LOCALE);var n=localeInfo(t).calendar.dateFields;if(!n)throw errors.NoDateFieldNames.error();var r=n[e.type]||{};return r[e.nameType]||r.wide}function lowerArray(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}function lowerObject(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}function cloneLower(e){return Array.isArray(e)?lowerArray(e):lowerObject(e)}function dateFormatNames(e,t){var n=t.type,r=t.nameType,i=t.standAlone,o=t.lower,a=getLocaleInfo(e),s=i?"stand-alone":"format",l=(o?"lower-":EMPTY)+r,c=a.calendar[n][s],u=c[l];return!u&&o&&(u=c[l]=cloneLower(c[r])),u}function parseRangeDate(e){var t=e.split("-"),n=parseInt(t[0],10),r=parseInt(t[1],10)-1,i=parseInt(t[2],10);return new Date(n,r,i)}var NoCurrency=errors.NoCurrency,NoCurrencyDisplay=errors.NoCurrencyDisplay,NoSupplementalCurrency=errors.NoSupplementalCurrency,NoCurrencyRegion=errors.NoCurrencyRegion,NoValidCurrency=errors.NoValidCurrency,DEFAULT_CURRENCY_FRACTIONS=2,SYMBOL="symbol",INVALID_CURRENCY_CODE="XXX",GLOBAL_CURRENCIES={"001":"USD",150:"EUR"};function getCurrencyInfo(e,t,n){var r=getLocaleInfo(e).numbers.currencies;if(r){var i=r[t];if(i)return i;if(n)throw NoCurrencyDisplay.error()}else if(n)throw NoCurrency.error()}function lengthComparer(e,t){return t.length-e.length}function regionCurrency(e){for(var t,n,r,i,o=0;o<e.length;o++){var a=e[o],s=Object.keys(a)[0],l=a[s];if(s!==INVALID_CURRENCY_CODE&&"false"!==l._tender&&l._from)if(l._to){if(!r){var c=parseRangeDate(l._from),u=parseRangeDate(l._to);(!n||n.to<u||n.from<c)&&(t=s,n={from:c,to:u})}}else{var d=parseRangeDate(l._from);(!i||i<d)&&(r=s,i=d)}}return r||t}function currencyDisplays(e,t,n){void 0===n&&(n=!0);var r=getCurrencyInfo(e,t,n);if(r){if(!r.displays){var i=[t];for(var o in r)i.push(r[o]);i.sort(lengthComparer),r.displays=i}return r.displays}}function currencyDisplay(e,t){var n=t.value,r=t.currency,i=t.currencyDisplay;if(void 0===i&&(i=SYMBOL),"code"===i)return r;var o=getCurrencyInfo(e,r,!0);return i===SYMBOL?o["symbol-alt-narrow"]||o[SYMBOL]||r:void 0===n||1!==n?o["displayName-count-other"]:o["displayName-count-one"]}function currencyFractionOptions(e){var t=DEFAULT_CURRENCY_FRACTIONS,n=DEFAULT_CURRENCY_FRACTIONS,r=((cldr.supplemental.currencyData||{}).fractions||{})[e];return r&&r._digits&&(n=t=parseInt(r._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}function territoryCurrencyCode(e,t){if(void 0===t&&(t=!0),GLOBAL_CURRENCIES[e])return GLOBAL_CURRENCIES[e];var n=cldr.supplemental.currencyData;if(n){var r=n.region[e];if(r)return regionCurrency(r);if(t)throw NoCurrencyRegion.error(e)}else if(t)throw NoSupplementalCurrency.error()}function localeCurrency(e,t){var n=getLocaleInfo(e),r=n.numbers;if(!r.localeCurrency){var i=territoryCurrencyCode(localeTerritory(n),t);if(!i&&t)throw NoValidCurrency.error(n.name);r.localeCurrency=i}return r.localeCurrency}var DAYS_OF_WEEK=["sun","mon","tue","wed","thu","fri","sat"],DEFAULT_TERRITORY="001",NoWeekData=errors.NoWeekData,NoFirstDay=errors.NoFirstDay;function firstDay(e){var t=getLocaleInfo(e);if(!isNaN(t.firstDay))return t.firstDay;var n=cldr.supplemental.weekData;if(!n)throw NoWeekData.error();var r=n.firstDay[localeTerritory(t)]||n.firstDay[DEFAULT_TERRITORY];if(!r)throw NoFirstDay.error();return t.firstDay=DAYS_OF_WEEK.indexOf(r),t.firstDay}function numberSymbols(e){return getLocaleInfo(e).numbers.symbols}function isNegativeZero(e){return 1/e==-1/0}function formatCurrencySymbol(e,t){return void 0===t&&(t={}),t.currency||(t.currency=localeCurrency(e,!0)),currencyDisplay(e,t)}function groupInteger(e,t,n,r,i){var o=i.numbers.symbols,a=e.indexOf(o.decimal),s=r.groupSize.slice(),l=s.shift(),c=-1!==a?a:n+1,u=e.substring(t,c),d=e,p=u.length;if(p>=l){for(var f=p,h=[];f>-1;){var m=u.substring(f-l,f);m&&h.push(m),f-=l;var g=s.shift();if(0===(l=void 0!==g?g:l)){(m=u.substring(0,f))&&h.push(m);break}}u=h.reverse().join(o.group),d=e.substring(0,t)+u+e.substring(c)}return d}function isCurrencyStyle(e){return e===CURRENCY||e===ACCOUNTING}function pad(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var r=t-String(e).length,i=e;if(r>0){var o=new Array(r+1).join("0");i=n?e+o:o+e}return i}errors.NoWeekData;var MAX_PRECISION=20;function round(e,t){var n=e,r=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,MAX_PRECISION))}var DEFAULT_DECIMAL_ROUNDING=3,DEFAULT_PERCENT_ROUNDING=0,trailingZeroRegex=/0+$/;function fractionOptions(e){var t,n=e.minimumFractionDigits,r=e.maximumFractionDigits,i=e.style,o=isCurrencyStyle(i);return o&&(t=currencyFractionOptions(e.currency)),void 0===n&&(n=o?t.minimumFractionDigits:0),void 0===r&&(r=i===PERCENT?Math.max(n,DEFAULT_PERCENT_ROUNDING):o?Math.max(n,t.maximumFractionDigits):Math.max(n,DEFAULT_DECIMAL_ROUNDING)),{minimumFractionDigits:n,maximumFractionDigits:r}}function applyPattern(e,t,n){for(var r=EMPTY,i=0,o=t.length;i<o;i++){var a=t.charAt(i);r+=a===NUMBER_PLACEHOLDER?e:a===CURRENCY_PLACEHOLDER||a===PERCENT_PLACEHOLDER?n:a}return r}function currencyUnitPattern(e,t){var n=e.numbers.currency,r=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(r=r.replace(NUMBER_PLACEHOLDER,"-"+NUMBER_PLACEHOLDER)),r}function standardNumberFormat(e,t,n){var r=n.numbers.symbols,i=t.style,o=isCurrencyStyle(i);if(i===SCIENTIFIC)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(POINT,r.decimal);var a,s=e;o&&(t.value=s,a=formatCurrencySymbol(n,t)),i===PERCENT&&(s*=100,a=r.percentSign);var l=fractionOptions(t),c=l.minimumFractionDigits,u=(s=round(s,l.maximumFractionDigits))<0,d=isNegativeZero(e),p=s.split(POINT),f=p[0],h=pad(p[1]?p[1].replace(trailingZeroRegex,EMPTY):EMPTY,c,!0);u&&(f=f.substring(1)),t.minimumIntegerDigits&&(f=pad(f,t.minimumIntegerDigits));var m,g=!1!==t.useGrouping?groupInteger(f,0,f.length,t,n):f;if(h&&(g+=r.decimal+h),o&&"name"===t.currencyDisplay)m=currencyUnitPattern(n,e);else{var v=t.patterns;m=u||d?v[1]||"-"+v[0]:v[0]}return m!==NUMBER_PLACEHOLDER||u?applyPattern(g,m,a):g}var literalRegExp=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,PLACEHOLDER$1="__??__";function setStyleOptions(e,t){var n=e.format;-1!==n.indexOf(PERCENT_PLACEHOLDER)&&(e.style=PERCENT,e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf(CURRENCY_PLACEHOLDER)&&(e.style=CURRENCY,e.symbol=formatCurrencySymbol(t))}function setFormatLiterals(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(literalRegExp,(function(e){var t=e.charAt(0).replace("\\",EMPTY),r=e.slice(1).replace(t,EMPTY);return n.push(r),PLACEHOLDER$1}))}}function replaceLiterals(e,t){var n=e;if(t)for(var r=t.length,i=0;i<r;i++)n=n.replace(PLACEHOLDER$1,t[i]);return n}var SHARP="#",ZERO="0",trailingZerosRegExp=/(\.(?:[0-9]*[1-9])?)0+$/g,trailingPointRegExp=/\.$/,commaRegExp=/,/g;function trimTrailingZeros(e,t){var n;return n=0===t?trailingZerosRegExp:new RegExp("(\\.[0-9]{"+t+"}[1-9]*)0+$","g"),e.replace(n,"$1").replace(trailingPointRegExp,EMPTY)}function roundNumber(e){var t=e.number,n=e.format,r=n.indexOf(POINT);if(-1!==r){var i=n.lastIndexOf(ZERO)-r,o=n.lastIndexOf(SHARP)-r,a=i>-1,s=o>-1,l=t.toString().split("e"),c=(l=(l=l[1]?round(t,Math.abs(l[1])):l[0]).split(POINT)[1]||EMPTY).length,u=-1;a||s?a&&i>o?c=i:o>i&&(s&&c>o?c=o:a&&c<i&&(c=i),u=a?i:0):(e.format=n.substring(0,r)+n.substring(r+1),r=-1,c=0),c>-1&&(t=round(t,c),u>-1&&(t=trimTrailingZeros(t,u)))}else t=round(t);e.negative&&-1*t>=0&&!e.negativeZero&&(e.negative=!1),e.number=t,e.decimalIndex=r}function isConstantFormat(e){return-1===e.indexOf(SHARP)&&-1===e.indexOf(ZERO)}function setValueSpecificFormat(e){var t=e.number,n=e.format;if(n=n.split(LIST_SEPARATOR),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var r=n[2];n=r||n[0],r&&isConstantFormat(r)&&(e.constant=r)}else n=n[0];e.format=n}function setGroupOptions(e){e.hasGroup=e.format.indexOf(GROUP_SEPARATOR)>-1,e.hasGroup&&(e.format=e.format.replace(commaRegExp,EMPTY))}function placeholderIndex(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function setPlaceholderIndices(e){var t=e.format,n=t.indexOf(SHARP),r=t.indexOf(ZERO),i=placeholderIndex(n,r,!0),o=placeholderIndex(n=t.lastIndexOf(SHARP),r=t.lastIndexOf(ZERO));i===t.length&&(o=i),e.start=i,e.end=o,e.lastZeroIndex=r}function replaceStyleSymbols(e,t,n){var r=e;if(t===CURRENCY||t===PERCENT){r=EMPTY;for(var i=0,o=e.length;i<o;i++){var a=e.charAt(i);r+=a===CURRENCY_PLACEHOLDER||a===PERCENT_PLACEHOLDER?n:a}}return r}function replacePlaceHolders(e,t){var n=e.start,r=e.end,i=e.negative,o=e.negativeZero,a=e.format,s=e.decimalIndex,l=e.lastZeroIndex,c=e.hasNegativeFormat,u=e.hasGroup,d=e.number,p=d.toString().split(POINT),f=a.length,h=p[0],m=p[1]||EMPTY,g=h.length,v=EMPTY;d=a.substring(0,n),!i&&!o||c||(d+="-");for(var b=n;b<f;b++){var y=a.charAt(b);if(-1===s){if(r-b<g){d+=h;break}}else if(-1!==l&&l<b&&(v=EMPTY),s-b<=g&&s-b>-1&&(d+=h,b=s),s===b){d+=(m?t.numbers.symbols.decimal:EMPTY)+m,b+=r-s+1;continue}y===ZERO?(d+=y,v=y):y===SHARP&&(d+=v)}return u&&(d=groupInteger(d,n+(i&&!c?1:0),Math.max(r,g+n),t.numbers.decimal,t)),r>=n&&(d+=a.substring(r+1)),d}function applyCustomFormat(e,t){var n=e.number;return-1!==e.start&&(n=replaceLiterals(n=replaceStyleSymbols(n=replacePlaceHolders(e,t),e.style,e.symbol),e.literals)),n}function customNumberFormat(e,t,n){var r={negative:e<0,number:Math.abs(e),negativeZero:isNegativeZero(e),format:t};return setValueSpecificFormat(r),r.constant?r.constant:(setFormatLiterals(r),setStyleOptions(r,n),setGroupOptions(r),roundNumber(r),setPlaceholderIndices(r),applyCustomFormat(r,n))}var standardFormatRegExp=/^(n|c|p|e|a)(\d*)$/i;function standardFormatOptions(e){var t=standardFormatRegExp.exec(e);if(t){var n={style:DECIMAL},r=t[1].toLowerCase();return"c"===r?n.style=CURRENCY:"a"===r?n.style=ACCOUNTING:"p"===r?n.style=PERCENT:"e"===r&&(n.style=SCIENTIFIC),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}function formatOptions(e){return isString$1(e)?standardFormatOptions(e):e}function formatNumber(e,t,n){if(void 0===t&&(t=NUMBER_PLACEHOLDER),void 0===n&&(n=DEFAULT_LOCALE),null==e)return EMPTY;if(!isFinite(e))return String(e);var r,i=localeInfo(n),o=formatOptions(t);if(o){var a=o.style||DECIMAL;r=standardNumberFormat(e,Object.assign({},i.numbers[a],o),i)}else r=customNumberFormat(e,t,i);return r}function isNumber$2(e){return"number"==typeof e}var exponentRegExp=/[eE][-+]?[0-9]+/,nonBreakingSpaceRegExp=/\u00A0/g;function cleanNegativePattern(e,t){if(t.length>1){var n=(t[1]||EMPTY).replace(CURRENCY_PLACEHOLDER,EMPTY).split(NUMBER_PLACEHOLDER);if(e.indexOf(n[0])>-1&&e.indexOf(n[1])>-1)return e.replace(n[0],EMPTY).replace(n[1],EMPTY)}}function cleanCurrencyNumber(e,t,n){var r,i=formatOptions(n)||{},o=isCurrencyStyle(i.style),a=e,s=i.currency||localeCurrency(t,o);if(s){var l=currencyDisplays(t,s,o);if(l)for(var c=0;c<l.length;c++){var u=l[c];if(a.includes(u)){a=a.replace(u,EMPTY),o=!0;break}}if(o){var d=cleanNegativePattern(a,t.numbers.currency.patterns)||cleanNegativePattern(a,t.numbers.accounting.patterns);d&&(r=!0,a=d)}}return{number:a,negative:r}}function cleanLiterals(e,t){var n=t.literals,r=e;if(n)for(var i=0;i<n.length;i++)r=r.replace(n[i],EMPTY);return r}function divideBy100(e){var t=String(e),n=t.indexOf(POINT),r=e/Math.pow(10,2);if(-1===n||String(r).length<=t.length+2)return r;var i=t.length-n+1+2;return parseFloat(r.toFixed(i))}function parseNumber(e,t,n){if(void 0===t&&(t=DEFAULT_LOCALE),void 0===n&&(n={}),!e&&0!==e)return null;if(isNumber$2(e))return e;var r,i=localeInfo(t),o=i.numbers.symbols,a=e.toString(),s=n||{};if(isString$1(n)&&(setFormatLiterals(s={format:n}),a=cleanLiterals(a,s),setStyleOptions(s,i)),(s.style===PERCENT||a.indexOf(o.percentSign)>-1)&&(a=a.replace(o.percentSign,EMPTY),r=!0),exponentRegExp.test(a))return a=parseFloat(a.replace(o.decimal,POINT)),isNaN(a)?null:a;var l=cleanCurrencyNumber(a,i,s),c=l.negative,u=l.number,d=(a=String(u).trim()).indexOf("-");if(d>0)return null;var p=d>-1;return p=void 0!==c?c:p,a=a.replace("-",EMPTY).replace(nonBreakingSpaceRegExp," ").split(o.group.replace(nonBreakingSpaceRegExp," ")).join(EMPTY).replace(o.decimal,POINT),a=parseFloat(a),isNaN(a)?a=null:p&&(a*=-1),a&&r&&(a=divideBy100(a)),a}var formatRegExp$1=/\{(\d+)}/g;function formatString(e){var t=arguments;return e.replace(formatRegExp$1,(function(e,n){return t[parseInt(n,10)+1]}))}var REMOVAL_PENALTY=120,ADDITION_PENALTY=20,LENGHT_DELTA=[2,1,5,3,4],LONG_LESS_PENALTY_DELTA=-2,SHORT_LESS_PENALTY_DELTA=-1,SHORT_MORE_PENALTY_DELTA=1,LONG_MORE_PENALTY_DELTA=2,PENALTIES={};PENALTIES[LONG_LESS_PENALTY_DELTA.toString()]=8,PENALTIES[SHORT_LESS_PENALTY_DELTA.toString()]=6,PENALTIES[LONG_MORE_PENALTY_DELTA.toString()]=6,PENALTIES[SHORT_MORE_PENALTY_DELTA.toString()]=3;var VALUE_FORMAT_LENGTH={numeric:1,"2-digit":2,short:3,long:4,narrow:5},TIME_SPECIFIERS_REGEX=/[hHmsSzZoOvVxX]/;function getHourSpecifier(e){return e.hour12?"h":"H"}var DATE_OPTIONS_MAP=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:getHourSpecifier},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],STAND_ALONE_SPECIFIERS={e:"c",E:"c",M:"L",Q:"q"},specifiersRegex={},resolvedFormats={};function getSpecifierRegex(e){return specifiersRegex[e]||(specifiersRegex[e]=new RegExp(e+"+")),specifiersRegex[e]}function skeletonSpecifiers(e){for(var t=[],n=e.charAt(0),r=n,i=1;i<e.length;i++){var o=e.charAt(i);o===r?n+=o:(t.push(n),n=r=o)}return t.push(n),t}function findBestMatch(e,t){var n,r,i=e.length,o=-Number.MAX_VALUE;for(var a in t){for(var s=[],l=a.replace("v","z"),c=0,u=0;u<i;u++){var d=e[u],p=(getSpecifierRegex(d[0]).exec(l)||[])[0];if(p){if(l=l.replace(p,EMPTY),p.length!==d.length){var f=Math.max(Math.min(LENGHT_DELTA[p.length]-LENGHT_DELTA[d.length],2),-2);c-=PENALTIES[f]}}else c-=REMOVAL_PENALTY;if(s.push(p),c<o)break}l.length&&(c-=skeletonSpecifiers(l).length*ADDITION_PENALTY),c>o&&(o=c,n=s,r=t[a])}r=r.replace("v","z");for(var h=0;h<i;h++){var m=n[h];if(m&&m!==e[h]){var g=n[h][0];r=r.replace(getSpecifierRegex(g),e[h]),STAND_ALONE_SPECIFIERS[g]&&(r=r.replace(getSpecifierRegex(STAND_ALONE_SPECIFIERS[g]),e[h]))}}return r}function cacheFormat(e,t,n){resolvedFormats[n]||(resolvedFormats[n]={}),resolvedFormats[n][e]=t}function skeletonFormat(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(resolvedFormats[t.name]&&resolvedFormats[t.name][e])return resolvedFormats[t.name][e];var r,i=e.search(TIME_SPECIFIERS_REGEX);if(i>0){var o=e.substr(0,i),a=e.substr(i);r=formatString(t.calendar.dateTimeFormats.short,n[a]||findBestMatch(skeletonSpecifiers(a),n),n[o]||findBestMatch(skeletonSpecifiers(o),n))}else r=findBestMatch(skeletonSpecifiers(e),n);return cacheFormat(e,r,t.name),r}function skeletonFromOptions(e){for(var t=[],n=0;n<DATE_OPTIONS_MAP.length;n++){var r=DATE_OPTIONS_MAP[n],i=e[r.key];if(i){var o=r.specifier||r.getSpecifier(e);t.push(o.repeat(VALUE_FORMAT_LENGTH[i]))}}return t.join(EMPTY)}function datePattern(e,t){var n,r=t.calendar;if(isString$1(e))n=r.patterns[e]?r.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var i=e.skeleton;i||(e.datetime?n=formatString(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:i=skeletonFromOptions(e)),i&&(n=skeletonFormat(i,t))}return n||(n=r.patterns.d),n}function dateNameType(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function formatNames(e,t,n,r,i){return dateFormatNames(e,{type:t,nameType:dateNameType(n),standAlone:r,lower:i})}function isFunction$3(e){return"function"==typeof e}function isDate$2(e){return Boolean(e)&&isFunction$3(e.getTime)&&isFunction$3(e.getMonth)}var MONTH="month",HOUR="hour",ZONE="zone",WEEKDAY="weekday",QUARTER="quarter",DATE_FIELD_MAP={G:"era",y:"year",q:QUARTER,Q:QUARTER,M:MONTH,L:MONTH,d:"day",E:WEEKDAY,c:WEEKDAY,e:WEEKDAY,h:HOUR,H:HOUR,k:HOUR,K:HOUR,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:ZONE,X:ZONE,z:ZONE,Z:ZONE},dateFormatRegExp=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function formatDayOfWeekIndex(e,t,n){var r=firstDay(n);return(e<r?7-r+e:e-r)+1}function formatMonth(e,t,n,r){return t<=2?pad(e+1,t):formatNames(n,"months",t,r)[e]}function formatQuarter(e,t,n,r){var i=Math.floor(e.getMonth()/3);return t<3?i+1:formatNames(n,"quarters",t,r)[i]}function formatTimeZone(e,t,n){var r=n.shortHours,i=n.optionalMinutes,o=n.separator,a=n.localizedName,s=n.zZeroOffset,l=e.getTimezoneOffset()/60;if(0===l&&s)return"Z";var c=l<=0?"+":"-",u=Math.abs(l).toString().split("."),d=u[1]||0,p=c+(r?u[0]:pad(u[0],2));(!d&&i||(p+=(o?":":EMPTY)+pad(d,2)),a)&&(p=formatString(0===l?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p));return p}function formatDayOfWeek(e,t,n,r){return t<3?formatDayOfWeekIndex(e.getDay(),t,n):formatNames(n,"days",t,r)[e.getDay()]}var formatters={};function formatDate(e,t,n){if(void 0===n&&(n=DEFAULT_LOCALE),!isDate$2(e))return null==e?EMPTY:e;var r=localeInfo(n);return datePattern(t,r).replace(dateFormatRegExp,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):formatters[t[0]](e,n,r)}))}function convertTimeZone(e,t,n){var r=e.getTimezoneOffset(),i=new Date(e.getTime()+6e4*(t-n)),o=i.getTimezoneOffset();return new Date(i.getTime()+6e4*(o-r))}function adjustDST$1(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}formatters.d=function(e,t){return pad(e.getDate(),t)},formatters.E=function(e,t,n){return formatNames(n,"days",t)[e.getDay()]},formatters.M=function(e,t,n){return formatMonth(e.getMonth(),t,n,!1)},formatters.L=function(e,t,n){return formatMonth(e.getMonth(),t,n,!0)},formatters.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),pad(n,t)},formatters.h=function(e,t){return pad(e.getHours()%12||12,t)},formatters.H=function(e,t){return pad(e.getHours(),t)},formatters.k=function(e,t){return pad(e.getHours()||24,t)},formatters.K=function(e,t){return pad(e.getHours()%12,t)},formatters.m=function(e,t){return pad(e.getMinutes(),t)},formatters.s=function(e,t){return pad(e.getSeconds(),t)},formatters.S=function(e,t){var n=e.getMilliseconds();return 0!==n?pad(String(n/1e3).split(".")[1].substr(0,t),t,!0):pad(EMPTY,t)},formatters.a=function(e,t,n){return formatNames(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},formatters.z=function(e,t,n){return formatTimeZone(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},formatters.Z=function(e,t,n){return formatTimeZone(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},formatters.x=function(e,t,n){return formatTimeZone(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},formatters.X=function(e,t,n){return formatTimeZone(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},formatters.G=function(e,t,n){var r=e.getFullYear()>=0?1:0;return formatNames(n,"eras",t)[r]},formatters.e=formatDayOfWeek,formatters.c=function(e,t,n){return formatDayOfWeek(e,t,n,!0)},formatters.q=function(e,t,n){return formatQuarter(e,t,n,!0)},formatters.Q=formatQuarter;var timeZoneOffsetRegExp=/([+|-]\d{1,2})(:?)(\d{2})?/,dateRegExp=/^\/Date\((.*?)\)\/$/,offsetRegExp=/[+-]\d*/,numberRegExp={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},numberRegex=/\d+/,PLACEHOLDER="{0}",leadingSpacesRegex=/^ */,trailingSpacesRegex=/ *$/,standardDateFormats=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],FORMATS_SEQUENCE=["G","g","F","Y","y","M","m","D","d","y","T","t"],TWO_DIGIT_YEAR_MAX=2029;function outOfRange(e,t,n){return!(e>=t&&e<=n)}function lookAhead(e,t){for(var n=t.format,r=t.idx,i=0;n[r]===e;)i++,r++;return i>0&&(r-=1),t.idx=r,i}function getNumber(e,t){var n=e?numberRegExp[e]||new RegExp("^\\d{1,"+e+"}"):numberRegex,r=t.value.substr(t.valueIdx,e).match(n);return r?(r=r[0],t.valueIdx+=r.length,parseInt(r,10)):null}function getIndexByName(e,t,n){for(var r,i,o=0,a=e.length,s=0,l=0;o<a;o++)i=(r=e[o]).length,t.value.substr(t.valueIdx,i).toLowerCase()===r&&i>s&&(s=i,l=o);return s?(t.valueIdx+=s,l+1):null}function checkLiteral(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function calendarGmtFormats(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw errors.NoGMTInfo.error();return[t.replace(PLACEHOLDER,EMPTY).toLowerCase(),n.replace(PLACEHOLDER,EMPTY).toLowerCase()]}function parseTimeZoneOffset(e,t,n){var r=n.shortHours,i=n.noSeparator,o=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!getIndexByName(calendarGmtFormats(t.calendar),e))return!0;var l=timeZoneOffsetRegExp.exec(e.value.substr(e.valueIdx,6));if(!l)return!a;var c=l[1],u=l[3],d=parseInt(c,10),p=l[2],f=parseInt(u,10);return!!(isNaN(d)||!r&&3!==c.length||!o&&isNaN(f)||i&&p)||(isNaN(f)&&(f=null),!!(outOfRange(d,-12,13)||f&&outOfRange(f,0,59))||(e.valueIdx+=l[0].length,e.hoursOffset=d,void(e.minutesOffset=f)))}function parseMonth(e,t,n){var r=lookAhead(e,t),i=formatNames(n,"months",r,"L"===e,!0),o=r<3?getNumber(2,t):getIndexByName(i,t);if(null===o||outOfRange(o,1,12))return!0;t.month=o-1}function parseDayOfWeek(e,t,n){var r=lookAhead(e,t),i=formatNames(n,"days",r,"c"===e,!0),o=r<3?getNumber(1,t):getIndexByName(i,t);if(!o&&0!==o||outOfRange(o,1,7))return!0}var parsers={};function createDate$1(e){var t,n=e.year,r=e.month,i=e.day,o=e.hours,a=e.minutes,s=e.seconds,l=e.milliseconds,c=e.pmHour,u=e.UTC,d=e.hoursOffset,p=e.minutesOffset,f=null!==o||null!==a||s||null,h=new Date;return null===n&&null===r&&null===i&&f?(n=h.getFullYear(),r=h.getMonth(),i=h.getDate()):(null===n&&(n=h.getFullYear()),null===i&&(i=1)),c&&o<12&&(o+=12),u?(d&&(o+=-d),p&&(a+=-p*(d<0?-1:1)),t=new Date(Date.UTC(n,r,i,o,a,s,l))):adjustDST$1(t=new Date(n,r,i,o,a,s,l),o),n<100&&t.setFullYear(n),t.getDate()!==i&&void 0===u?null:t}function addFormatSpaces(e,t){return""+leadingSpacesRegex.exec(t)[0]+e+trailingSpacesRegex.exec(t)[0]}function parseExact(e,t,n){for(var r=datePattern(t,n).split(EMPTY),i={format:r,idx:0,value:addFormatSpaces(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},o=r.length,a=!1;i.idx<o;i.idx++){var s=r[i.idx];if(a)"'"===s&&(a=!1),checkLiteral(i);else if(parsers[s]){if(parsers[s](i,n))return null}else if("'"===s)a=!0,checkLiteral(i);else if(!checkLiteral(i))return null}return i.valueIdx<e.length?null:createDate$1(i)||null}function parseMicrosoftDateOffset(e){var t="-"===e.substr(0,1)?-1:1,n=e.substring(1);return t*(n=60*parseInt(n.substr(0,2),10)+parseInt(n.substring(2),10))}function parseMicrosoftDateFormat(e){if(e&&0===e.indexOf("/D")){var t=dateRegExp.exec(e);if(t){t=t[1];var n=offsetRegExp.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(n=parseMicrosoftDateOffset(n[0]),t=convertTimeZone(t,t.getTimezoneOffset(),0),t=convertTimeZone(t,0,-1*n)),t}}}function defaultFormats(e){for(var t=[],n=e.patterns,r=FORMATS_SEQUENCE.length,i=0;i<r;i++)t.push(n[FORMATS_SEQUENCE[i]]);return t.concat(standardDateFormats)}function parseDate(e,t,n){if(void 0===n&&(n=DEFAULT_LOCALE),!e)return null;if(isDate$2(e))return e;var r=String(e).trim(),i=parseMicrosoftDateFormat(r);if(i)return i;for(var o=localeInfo(n),a=t||defaultFormats(o.calendar),s=(a=Array.isArray(a)?a:[a]).length,l=0;l<s;l++)if(i=parseExact(r,a[l],o))return i;return i}parsers.d=function(e){lookAhead("d",e);var t=getNumber(2,e);if(null===t||outOfRange(t,1,31))return!0;null===e.day&&(e.day=t)},parsers.E=function(e,t){if(null===getIndexByName(formatNames(t,"days",lookAhead("E",e),!1,!0),e))return!0},parsers.M=function(e,t){return parseMonth("M",e,t)},parsers.L=function(e,t){return parseMonth("L",e,t)},parsers.y=function(e){var t=lookAhead("y",e),n=getNumber(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var r=(new Date).getFullYear();(n=r-r%100+n)>TWO_DIGIT_YEAR_MAX&&(n-=100)}e.year=n},parsers.h=function(e){lookAhead("h",e);var t=getNumber(2,e);if(12===t&&(t=0),null===t||outOfRange(t,0,11))return!0;e.hours=t},parsers.K=function(e){lookAhead("K",e);var t=getNumber(2,e);if(null===t||outOfRange(t,0,11))return!0;e.hours=t},parsers.a=function(e,t){var n=formatNames(t,"dayPeriods",lookAhead("a",e),!1,!0),r=getIndexByName([n.pm],e);if(!r&&!getIndexByName([n.am],e))return!0;e.pmHour=r},parsers.H=function(e){lookAhead("H",e);var t=getNumber(2,e);if(null===t||outOfRange(t,0,23))return!0;e.hours=t},parsers.k=function(e){lookAhead("k",e);var t=getNumber(2,e);if(null===t||outOfRange(t,1,24))return!0;e.hours=24===t?0:t},parsers.m=function(e){lookAhead("m",e);var t=getNumber(2,e);if(null===t||outOfRange(t,0,59))return!0;e.minutes=t},parsers.s=function(e){lookAhead("s",e);var t=getNumber(2,e);if(null===t||outOfRange(t,0,59))return!0;e.seconds=t},parsers.S=function(e){var t=lookAhead("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=round(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||outOfRange(r,0,999))return!0;e.milliseconds=r},parsers.z=function(e,t){var n=lookAhead("z",e)<4,r=parseTimeZoneOffset(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},parsers.Z=function(e,t){var n=lookAhead("Z",e),r=parseTimeZoneOffset(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},parsers.x=function(e,t){var n=lookAhead("x",e),r=parseTimeZoneOffset(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},parsers.X=function(e,t){var n=lookAhead("X",e),r=parseTimeZoneOffset(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},parsers.G=function(e,t){var n=formatNames(t,"eras",lookAhead("G",e),!1,!0);if(null===getIndexByName([n[0],n[1]],e))return!0},parsers.e=function(e,t){return parseDayOfWeek("e",e,t)},parsers.c=function(e,t){return parseDayOfWeek("c",e,t)};var NAME_TYPES={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},LITERAL="literal";function addLiteral(e,t){var n=e[e.length-1];n&&n.type===LITERAL?n.pattern+=t:e.push({type:LITERAL,pattern:t})}function isHour12(e){return"h"===e||"K"===e}function splitDateFormat(e,t){void 0===t&&(t=DEFAULT_LOCALE);for(var n=datePattern(e,localeInfo(t)),r=[],i=dateFormatRegExp.lastIndex=0,o=dateFormatRegExp.exec(n);o;){var a=o[0];if(i<o.index&&addLiteral(r,n.substring(i,o.index)),a.startsWith('"')||a.startsWith("'"))addLiteral(r,a);else{var s=a[0],l=DATE_FIELD_MAP[s],c={type:l,pattern:a};"hour"===l&&(c.hour12=isHour12(a));var u=NAME_TYPES[l];if(u){var d=isNumber$2(u.minLength)?u.minLength:u.minLength[s],p=a.length;p>=d&&(c.names={type:u.type,nameType:dateNameType(p),standAlone:u.standAlone===s})}r.push(c)}i=dateFormatRegExp.lastIndex,o=dateFormatRegExp.exec(n)}return i<n.length&&addLiteral(r,n.substring(i)),r}var formatRegExp=/\{(\d+)(:[^}]+)?\}/g;function toString$1(e,t,n){if(t){if(isDate$2(e))return formatDate(e,t,n);if(isNumber$2(e))return formatNumber(e,t,n)}return null!=e?e:EMPTY}function format(e,t,n){return e.replace(formatRegExp,(function(e,r,i){return toString$1(t[parseInt(r,10)],i?i.substring(1):EMPTY,n)}))}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */let o$e=class{constructor(e){if(this.locale=e,""===e&&"production"!==process.env.NODE_ENV)throw"Locale should not be empty string"}format(e,...t){return 1===t.length&&Array.isArray(t[0])?format(e,t[0],this.locale):format(e,t,this.locale)}formatDate(e,t){return formatDate(e,t,this.locale)}toString(e,t){return toString$1(e,t,this.locale)}parseNumber(e,t){return parseNumber(e,this.locale,t)}parseDate(e,t){return parseDate(e,t,this.locale)}formatNumber(e,t){return formatNumber(e,t,this.locale)}dateFieldName(e){return dateFieldName(e,this.locale)}dateFormatNames(e){return dateFormatNames(this.locale,e)}splitDateFormat(e){return splitDateFormat(e,this.locale)}numberSymbols(){return numberSymbols(this.locale)}firstDay(){return firstDay(this.locale)}localeInfo(){return localeInfo(this.locale)}localeCurrency(){return localeCurrency(this.locale)}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const e$7=Object.create({});
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */let s$b=class{constructor(e){if(this.language=e,""===e&&"production"!==process.env.NODE_ENV)throw"Language should not be an empty string"}toLanguageString(e,t){return this.language&&e$7[this.language]&&e$7[this.language].hasOwnProperty(e)?e$7[this.language][e]:t}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const r$8=e__namespace.createContext({intl:new o$e("en"),localization:new s$b});
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function l$f(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.context;return t&&t.intl?t.intl:new o$e("en")}function s$a(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.context;return t&&t.localization?t.localization:new s$b}function p$c(e){e.contextType=r$8}function v$4(e){e.contextType=r$8}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const i$a=()=>e__namespace.useContext(r$8).intl
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,i$9=()=>e__namespace.useContext(r$8).localization
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,p$b=a$b(Y$2);p$b.displayName="KendoReactDropDownButton";const n$g=a$b(C$7);n$g.displayName="KendoReactSplitButton";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const s$9=({children:e,onCloseButtonClick:t,id:n,closeIcon:r})=>e__namespace.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:n},e__namespace.createElement("span",{className:"k-window-title k-dialog-title"},e),r&&e__namespace.createElement("div",{className:"k-window-titlebar-actions k-dialog-titlebar-actions"},e__namespace.createElement(k$6,{role:"button","aria-label":"Close",onClick:t,icon:"x",svgIcon:xIcon,fillMode:"flat",className:"k-window-titlebar-action k-dialog-titlebar-action"})))
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,i$8=e=>{const t={layout:"stretched",...e},{layout:n,children:r}=t,i=n$p("k-actions","k-actions-horizontal","k-window-actions k-dialog-actions",{[`k-actions-${n}`]:n});return e__namespace.createElement("div",{className:i},r)};i$8.propTypes={children:PropTypes.any,layout:PropTypes.oneOf(["start","center","end","stretched"])};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const o$d="data-windowid",D$2=10002,n$f=2,ce=a$c(),$$7=e__namespace.forwardRef(((e,t)=>{const n=n$s(),r=n?n+2:D$2,i=e__namespace.useRef(null),o=e__namespace.useRef(null),a=e__namespace.useRef(o$f(document)),s=n$m(ce,e),l=e__namespace.useMemo((()=>({...d$7,...s})),[s]),{title:c,width:u,height:d,children:p,minWidth:f,dir:h,style:m,themeColor:g,contentStyle:v,autoFocusedElement:b,appendTo:y,className:$,overlayStyle:x,modal:E=d$7.modal,closeIcon:w=d$7.closeIcon,autoFocus:D=d$7.autoFocus}=l,_=e__namespace.useCallback((()=>({props:l,element:o.current})),[l]);e__namespace.useImperativeHandle(i,_),e__namespace.useImperativeHandle(t,(()=>i.current));const T=e__namespace.useMemo((()=>e__namespace.Children.toArray(p).filter((e=>!e__namespace.isValidElement(e)||e.type!==i$8))),[p]),S=e__namespace.useMemo((()=>e__namespace.Children.toArray(p).filter((e=>e__namespace.isValidElement(e)&&e.type===i$8))),[p]),{_id:C,contentId:I,id:P}=e__namespace.useMemo((()=>{const e=l.id,t=`${null!=e?e:"accessibility"}-id`;return{_id:t,contentId:`dialog-content-${t}`,id:e||`dialog-title-${t}`}}),[l.id]),O=e__namespace.useCallback((()=>{if(o.current)if(D&&!b)o.current.focus();else if(!D&&b&&o.current){const e=o.current.querySelector(b);null==e||e.focus()}else{const e=[...s$k].map((e=>e+":not(.k-dialog-titlebar *)"));e$f(o.current,e)}}),[D,b]);e__namespace.useEffect((()=>(O(),()=>{setTimeout((()=>{var e;!o.current&&a.current&&e$h&&(document.contains(a.current)?a.current.focus():a.current.id&&(null==(e=document.getElementById(a.current.id))||e.focus()))}))})),[O]);const N=e__namespace.useCallback((e=>{e.preventDefault(),v$8(l.onClose,e,_(),void 0)}),[l.onClose]),R=e__namespace.useCallback((e=>{e.keyCode===e$g.esc&&l.onClose&&(e.preventDefault(),N(e)),n$o(e,o.current)}),[l.onClose,N]),A=e__namespace.useMemo((()=>e__namespace.createElement(t$c.Provider,{value:r},e__namespace.createElement("div",{ref:o,[o$d]:C,className:"k-dialog-wrapper"+($?" "+$:""),onKeyDown:R,tabIndex:0,dir:h,style:{zIndex:r,...m}},E&&e__namespace.createElement("div",{className:"k-overlay",style:x}),e__namespace.createElement("div",{className:n$p("k-window k-dialog",{[`k-window-${g}`]:g}),role:"dialog","aria-labelledby":P,"aria-modal":!0,"aria-describedby":I,style:{width:u,height:d,minWidth:f}},c&&e__namespace.createElement(s$9,{closeIcon:w,onCloseButtonClick:N,id:P},c),e__namespace.createElement("div",{className:"k-window-content k-dialog-content",style:v,id:I},T),S)))),[r,C,$,R,m,h,x,g,P,I,u,d,f,w,N,v,c,T,S,E]);return e$h?null!==y?ReactDOM__namespace.createPortal(A,y||document.body):A:null})),d$7={autoFocus:!1,modal:!0,closeIcon:!0},ae$1={autoFocus:PropTypes.bool,autoFocusedElement:PropTypes.string,title:PropTypes.any,className:PropTypes.string,closeIcon:PropTypes.bool,modal:PropTypes.bool,overlayStyle:PropTypes.object,width:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),height:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),minWidth:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),onClose:PropTypes.func,children:PropTypes.node,id:PropTypes.string,dir:PropTypes.string,style:PropTypes.object,contentStyle:PropTypes.object,appendTo:PropTypes.any,themeColor:PropTypes.oneOf(["primary","dark","light"])};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */$$7.displayName="KendoReactDialog",$$7.propTypes=ae$1;const FactoryRenderer=e=>{var t,n,r,i,o,a,s,l;const c=null===(t=TemplateWidgetFactory.getStandardFactory())||void 0===t?void 0:t.getWidgets(),u=null===(n=TemplateWidgetFactory.getCustomFactory())||void 0===n?void 0:n.getWidgets(),d=TemplateWidgetFactory.getTemplateWidgets(),p=null!==(l=null!==(a=null!==(i=null===(r=null==u?void 0:u.get)||void 0===r?void 0:r.call(u,e.widgetType))&&void 0!==i?i:null===(o=null==d?void 0:d.get)||void 0===o?void 0:o.call(d,e.widgetType))&&void 0!==a?a:null===(s=null==c?void 0:c.get)||void 0===s?void 0:s.call(c,e.widgetType))&&void 0!==l?l:jsxRuntime.jsx(jsxRuntime.Fragment,{});return jsxRuntime.jsx(p,Object.assign({},e))},ConfirmationAlertView=e=>{var t,n,r,i,o,a,s;const l=()=>{var t,n,r;try{e.onCancel?e.onCancel():(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.onCancel)&&e.value.onCancel()}finally{null===(n=e.onModelUpdate)||void 0===n||n.call(e,null,null!==(r=e.screenDataField)&&void 0!==r?r:"",null)}};return jsxRuntime.jsx($$7,Object.assign({id:(null===(t=e.widgetStyle)||void 0===t?void 0:t.id)||"",className:`tmpl-confirmation-dialog ${(null===(n=e.widgetStyle)||void 0===n?void 0:n.className)||""}`,"data-prc-col-important":(null===(r=e.widgetStyle)||void 0===r?void 0:r.important)&&(null===(i=e.widgetStyle)||void 0===i?void 0:i.className)||void 0,style:(null===(o=e.widgetStyle)||void 0===o?void 0:o.inline)||{},onClose:l},{children:jsxRuntime.jsxs("div",Object.assign({className:"tmpl-dialog-box-container"},{children:[jsxRuntime.jsx("div",Object.assign({className:"tmpl-dialog-box__icon-wrapper"},{children:jsxRuntime.jsx(FactoryRenderer,{name:"warning",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:""})})),jsxRuntime.jsx("h4",Object.assign({className:"tmpl-dialog-box__header"},{children:(null==e?void 0:e.handleHeader)?null==e?void 0:e.handleHeader(null!==(a=e.messageHeader)&&void 0!==a?a:"",e.viewModel):e.messageHeader})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-dialog-box__body"},{children:jsxRuntime.jsx("p",{children:(null==e?void 0:e.handleBody)?null==e?void 0:e.handleBody(null!==(s=e.messageBody)&&void 0!==s?s:"",e.value):e.messageBody})})),jsxRuntime.jsxs("div",Object.assign({className:"tmpl-dialog-box__footer"},{children:[jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-btn-default qo-btn-md"},onClick:l,title:"Cancel",uiElementType:"WIDGET",widgetType:"BUTTON"}),jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-btn-primary qo-btn-md tmpl-confirm-btn--confirm"},themeColor:"primary",onClick:()=>__awaiter(void 0,void 0,void 0,(function*(){var t,n,r;try{e.onConfirm?yield e.onConfirm():(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.onConfirm)&&(yield e.value.onConfirm())}finally{null===(n=e.onModelUpdate)||void 0===n||n.call(e,null,null!==(r=e.screenDataField)&&void 0!==r?r:"",null)}})),title:"Confirm",uiElementType:"WIDGET",widgetType:"BUTTON"})]}))]}))}))},ConfirmationAlert=e=>jsxRuntime.jsx(ConfirmationAlertView,Object.assign({},e));var WidgetTypes;!function(e){e.GRIDTOOLBAR="GRIDTOOLBAR",e.CONFOMATIONALERTBOX="CONFOMATIONALERTBOX",e.INFOMATIONALERTBOX="INFOMATIONALERTBOX",e.MENU="MENU",e.BLOCK="BLOCK"}(WidgetTypes||(WidgetTypes={}));const SYSTEM_DEFAULT="-1",AdvancedSearchView=({handlePopupShow:e,disabled:t,hasAppliedFilter:n})=>jsxRuntime.jsx(FactoryRenderer,{onClick:e,title:"Advanced Search",rootStyle:{className:"tmpl-advanced-search"},widgetStyle:{className:"qo-btn qo-btn-default qo-btn-md tmpl-button "+(n?"tmpl-filter-applied":"")},uiElementType:"WIDGET",widgetType:"BUTTON",disabled:t});var OperatorCreiteria,FilterTargetType,Operator;!function(e){e.AND="AND",e.OR="OR"}(OperatorCreiteria||(OperatorCreiteria={})),function(e){e.TEXT="TEXT",e.DATE="DATE",e.NUMBER="NUMBER",e.LIST="LIST",e.BOOLEAN="BOOLEAN"}(FilterTargetType||(FilterTargetType={})),function(e){e[e.Equal=0]="Equal",e[e.NotEqual=1]="NotEqual",e[e.Like=2]="Like",e[e.NotLike=3]="NotLike",e[e.In=4]="In",e[e.NotIn=5]="NotIn",e[e.LessThan=6]="LessThan",e[e.LessThanOrEqual=7]="LessThanOrEqual",e[e.GreaterThan=8]="GreaterThan",e[e.GreaterThanOrEqual=9]="GreaterThanOrEqual",e[e.Between=10]="Between",e[e.NotBetween=11]="NotBetween",e[e.IsNull=12]="IsNull",e[e.IsNotNull=13]="IsNotNull"}(Operator||(Operator={}));
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const l$e="labels.optional",o$c={[l$e]:"(Optional)"},I$4=e=>{const[t,n]=e__namespace.useState({focused:!1}),{label:r,editorId:i,className:o,labelClassName:a,editorValue:s,editorPlaceholder:l,editorValid:c,editorDisabled:u,style:d,id:p,optional:f,unstyled:h,...m}=e,g=i$9(),v=f?g.toLanguageString(l$e,o$c[l$e]):"",b=v&&e__namespace.createElement("span",{className:"k-label-optional"},v),y=h&&h.uFloatingLabel,$=!l&&!s&&0!==s,x=n$p(g$9.wrapper({c:y,focused:t.focused,empty:$,notEmpty:!$,disabled:u,isRtl:"rtl"===e.dir}),o),E=n$p(g$9.label({c:y,focused:t.focused,empty:$,notEmpty:!$,invalid:!1===c,disabled:u}),a);return e__namespace.createElement("span",{...m,id:e.id,className:x,onFocus:e=>{n({focused:!0})},onBlur:e=>{n({focused:!1})},style:d,dir:e.dir},e.children,r?i?e__namespace.createElement("label",{id:p,htmlFor:i,className:E},r,b):e__namespace.createElement("span",{id:p,className:E},r,b):null)};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */I$4.propTypes={label:PropTypes.node,editorId:PropTypes.string,editorValue:PropTypes.oneOfType([PropTypes.string,PropTypes.bool,PropTypes.number]),editorPlaceholder:PropTypes.string,editorValid:PropTypes.bool,editorDisabled:PropTypes.bool,id:PropTypes.string,style:PropTypes.object,className:PropTypes.string,labelClassName:PropTypes.string,optional:PropTypes.bool};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const o$b="numerictextbox.increment",e$6="numerictextbox.decrement",t$7="slider.increment",r$7="slider.decrement",a$8="slider.dragTitle",l$d="colorGradient.r",n$e="colorGradient.g",i$7="colorGradient.b",c$7="colorGradient.a",s$8="colorGradient.hex",d$6="colorGradient.contrastRatio",G$5="colorGradient.colorGradientAALevel",u$9="colorGradient.colorGradientAAALevel",p$a="colorGradient.colorGradientPass",A$3="colorGradient.colorGradientFail",C$6="colorGradient.hueSliderLabel",P$6="colorGradient.alphaSliderLabel",g$4="colorGradient.toggleInputsButton",k$4="flatColorPicker.cancelBtn",x$5="flatColorPicker.applyBtn",b$4="flatColorPicker.colorGradientBtn",m$4="flatColorPicker.colorPaletteBtn",B$3="flatColorPicker.clearBtn",h$2="colorPicker.adaptiveTitle",v$3="checkbox.validation",f$6="checkbox.optionalText",L$6="radioButton.validation",w$7="switch.validation",T$4="colorPicker.dropdownButtonAriaLabel",D$1="rating.ariaLabel",V$4="signature.clear",y$3="signature.maximize",z$2="signature.minimize",I$3={[o$b]:"Increase value",[e$6]:"Decrease value",[t$7]:"Increase",[r$7]:"Decrease",[a$8]:"Drag",[l$d]:"r",[n$e]:"g",[i$7]:"b",[c$7]:"a",[s$8]:"hex",[d$6]:"Contrast ratio",[G$5]:"AA",[u$9]:"AAA",[p$a]:"Pass",[A$3]:"Fail",[C$6]:"Hue slider",[P$6]:"Alpha slider",[g$4]:"Toggle colorgradient inputs",[k$4]:"Cancel",[x$5]:"Apply",[b$4]:"Color Gradient view",[m$4]:"Color Palette view",[B$3]:"Clear color value",[h$2]:"Choose color",[v$3]:"Please check this box if you want to proceed!",[f$6]:"(Optional)",[L$6]:"Please select option if you want to proceed!",[w$7]:"Please turn on if you want to proceed!",[T$4]:"Select",[D$1]:"Rating",[V$4]:"Clear",[y$3]:"Maximize",[z$2]:"Minimize"},M$2=1111111.1111111,ae=.31111111111111117,de=1,Y$1=1,w$6=0,m$3=/\d/,ee=15,Ie=()=>({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),Ne=(e,t)=>void 0!==e?e:t,p$9=(e,t,n)=>null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t),J$3=e=>(String(e).split(".")[1]||"").length,ne$1=(e,t)=>Math.max(J$3(e),J$3(t)),ge=e=>Math.min(e,15),te$1=(e,t)=>{const n=ge(t);return parseFloat(e.toFixed(n))},Ce=(e,t,n,r,i,o,a)=>{const s=ne$1(e||0,n||0),l=re(te$1((e||0)+(n||0),s),r,i);t.eventValue=l,t.currentLooseValue=p$9(l,o,a),t.selectionStart=t.selectionEnd=O$3(t.currentLooseValue,m$3)},Ee$1=(e,t,n,r,i,o,a)=>{const s=ne$1(e||0,n||0),l=re(te$1((e||0)-(n||0),s),r,i);t.eventValue=l,t.currentLooseValue=p$9(l,o,a),t.selectionStart=t.selectionEnd=O$3(t.currentLooseValue,m$3)},re=(e,t,n)=>null==e?e:!(e>1||e<1||1===e)||void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e),fe=(e,t)=>{const n=t.findIndex((([t,n])=>!!n&&e.indexOf(n)===e.length-n.length));if(-1===n)return-1;const r=t[n][1];return e.length-r.length},me$1=(e,t)=>{const n=t.findIndex((([t,n])=>!!t&&0===e.indexOf(t)));return-1===n?-1:t[n][0].length},Ve=(e,t,n)=>{const r=fe(e,t);if(-1!==r&&n.selectionStart>r)return void(n.selectionStart=n.selectionEnd=r);n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);const i=me$1(e,t);-1!==i&&n.selectionStart<i&&(n.selectionStart=n.selectionEnd=i),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)},L$5=(e,t,n,r)=>{e.selectionStart=e.selectionEnd=t,Ve(n,r,e)},A$2=(e,t,n,r)=>{e.eventValue=r.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,L$5(e,e.selectionStart,e.currentLooseValue,n)},_$3=(e,t,n)=>t.split(e).length!==n.split(e).length&&t.length===n.length+e.length,pe$1=(e,t)=>{const n=String(e.currentLooseValue),r=String(e.prevLooseValue);return _$3(t.minusSign,n,r)||_$3("-",n,r)||_$3("−",n,r)},xe=(e,t)=>{const n=String(e.currentLooseValue),r=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==r.indexOf(t.minusSign)},Le=(e,t)=>String(e.currentLooseValue).split(t.decimal).length>2,be=(e,t)=>{const n=t.formatNumber(M$2,e),r=t.formatNumber(-M$2,e),i=t.formatNumber(0,e),o=t.formatNumber(1,e),a=D(n),s=D(r),l=D(i),c=D(o);return{positiveInfo:[a,P$5(n)],negativeInfo:[s,P$5(r)],zeroInfo:[l,P$5(i)],oneInfo:[c,P$5(o)]}},he=(e,t)=>{const n=t.formatNumber(M$2,e),r=t.formatNumber(-M$2,e),i=t.formatNumber(0,e),o=t.formatNumber(1,e),a=t.numberSymbols(),s=new RegExp(`[\\d\\${a.decimal}${a.group}]`,"g");return[n,r,i,o].map((e=>e.replace(s,""))).join("").split("").filter(((e,t,n)=>n.indexOf(e)===t)).join("")},B$2=(e,t)=>{const n=e.indexOf(t.decimal);return n>-1?n:O$3(e,m$3)},T$3=e=>e.split("").reverse().join(""),O$3=(e,t)=>e.length-T$3(e).search(t),D=e=>e.split(e[e.search(m$3)])[0],P$5=e=>{const t=T$3(e);return T$3(t.split(t[t.search(m$3)])[0])},$$6=(e,t)=>e.search(t),K$3=(e,t)=>{const n=e.indexOf(t);return n>-1?e.length-n-1:0},Q$6=(e,t,n,r,i)=>{const o="0"===e.replace(i,"")[0],a="0"===t.replace(i,"")[0];if(o&&!a)return n-1;if(a&&r)return n+1;let s=0;for(let t=0;t<n;t++)m$3.test(e.charAt(t))&&s++;let l=0;for(;s>0&&t.length>l;)m$3.test(t.charAt(l))&&s--,l++;return l},Oe=(e,t,n)=>{const r={...e},{prevLooseValue:i}=r,o=n.numberSymbols(),a=he(t,n),s=String(r.currentLooseValue),l=String(i),c=new RegExp(`[^\\d\\${o.decimal}]`,"g"),u=new RegExp(`[^\\d\\${o.decimal}\\${o.group}]`,"g"),d=new RegExp(`[\\d\\${o.decimal}\\${o.group}]`),p=s.replace(c,""),f=$$6(s,m$3),h=-1===f?-1:O$3(s,m$3),m=s.indexOf(o.decimal),g=(s.substring(0,f)+s.substring(f,h).replace(u,"")+s.substring(h,s.length)).split("").filter((e=>-1!==a.indexOf(e)||-1!==e.search(d))).join(""),v=n.formatNumber(ae,t).replace(c,""),b=v.indexOf(o.decimal),y=b>-1?v.length-b-1:0,$=n.formatNumber(1,t).replace(c,""),x=$.indexOf(o.decimal),E=x>-1?$.length-x-1:0,{positiveInfo:w,negativeInfo:D,zeroInfo:_,oneInfo:T}=be(t,n),S=[w,D,_,T],C=1!==S.findIndex((e=>-1!==e.findIndex((e=>!!e)))),I=s.length>0&&s.length<l.length,P="string"==typeof t&&"p"===t[0]&&s&&-1===s.indexOf(o.percentSign);if(!r.isPaste){if(""===s)return r.eventValue=null,r.currentLooseValue="",r;if(r.currentLooseValue===o.minusSign&&n.formatNumber(-0,t)!==l)return r.eventValue=-0,r.currentLooseValue=p$9(r.eventValue,t,n),L$5(r,B$2(r.currentLooseValue,o),r.currentLooseValue,S),r;if(r.currentLooseValue===o.decimal){r.eventValue=0;const e=p$9(r.eventValue,t,n);if(0===E&&y>0){const t=O$3(e,m$3);r.currentLooseValue=e.substring(0,t)+o.decimal+e.substring(t)}else r.currentLooseValue=e;return L$5(r,B$2(r.currentLooseValue,o)+1,r.currentLooseValue,S),r}if(pe$1(r,o)){const e=n.parseNumber(i,t);r.eventValue=-(null!==e?e:0),r.currentLooseValue=p$9(r.eventValue,t,n);const o=$$6(r.currentLooseValue,m$3),a=$$6(l,m$3);return L$5(r,r.selectionEnd-1+(o-a),r.currentLooseValue,S),r}if(xe(r,o))return r.eventValue=n.parseNumber(r.currentLooseValue,t),L$5(r,r.selectionStart,r.currentLooseValue,S),r;if(Le(r,o))return A$2(r,t,S,n),r;if(P)return r.eventValue=n.parseNumber(s,t)/100,r.currentLooseValue=p$9(r.eventValue,t,n),r;if(String(r.currentLooseValue).replace(/[^\d]/g,"").length>15||p!==s&&s&&C&&-1===S.findIndex((([e,t])=>{const n=s.indexOf(e),r=s.indexOf(t),i=0===n,a=r===s.length-t.length,l=n+e.length!==f&&-1!==f&&s[n+e.length]!==o.decimal,c=r!==h&&-1!==h&&s[r-1]!==o.decimal;return e&&t?!l&&!c&&(i&&a):e?!l&&i:!!t&&(!c&&a)})))return A$2(r,t,S,n),r;if(p[p.length-1]===o.decimal&&y>0)return r.eventValue=n.parseNumber(s,t),r.currentLooseValue=g,r;if(r.currentLooseValue&&i&&(a+o.decimal+o.group).split("").findIndex((e=>s.split("").filter((t=>t===e)).length<l.split("").filter((t=>t===e)).length&&s.length+1===l.length&&!(e===o.decimal&&0===K$3(l.replace(c,""),o.decimal))))>-1)return r.eventValue=n.parseNumber(e.prevLooseValue,t),r.currentLooseValue=e.prevLooseValue,r;const u=K$3(p,o.decimal),d="0"===p[p.length-1];if(I&&d&&u<E)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=p$9(r.eventValue,t,n),r;if(u>0){const e=s.substring(0,m);if(d&&(!e||0!==l.indexOf(e))){r.eventValue=n.parseNumber(r.currentLooseValue,t);const e=p$9(r.eventValue,t,n);return L$5(r,Q$6(s,e,r.selectionEnd,I,c),e,S),r.currentLooseValue=e,r}if(u>y){const e=s.indexOf(o.decimal),i=s.substring(0,e)+s.substring(e,e+1+y)+s.substring(h,String(r.currentLooseValue).length);return r.eventValue=n.parseNumber(i,t),r.currentLooseValue=i,L$5(r,r.selectionStart,i,S),r}if(E!==y&&u<=y&&d)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=g,r;if(u<E)return r.eventValue=n.parseNumber(r.currentLooseValue,t),r.currentLooseValue=p$9(r.eventValue,t,n),r}}if(r.eventValue=n.parseNumber(r.currentLooseValue,t),P&&(r.eventValue=r.eventValue/100),"number"==typeof r.eventValue){const e=p$9(r.eventValue,t,n);1===s.length?L$5(r,B$2(e,o),e,S):L$5(r,Q$6(s,e,r.selectionEnd,I,c),e,S),r.currentLooseValue=e}else r.currentLooseValue=p$9(n.parseNumber(p),t,n);return r},it="Please enter a valid value!",ct=a$c(),Ee=e__namespace.forwardRef(((e,t)=>{const n=n$m(ct,e),{className:r,value:i,defaultValue:o,format:a,width:s,tabIndex:l,accessKey:c,title:u,placeholder:d,min:p,max:f,dir:h,name:m,label:g,id:v,ariaDescribedBy:b,ariaLabelledBy:y,ariaLabel:$,inputType:x,readOnly:E,validationMessage:w,children:D,touched:_,visited:T,modified:S,style:C,inputStyle:I,valid:P,step:O=o$a.step,spinners:N=o$a.spinners,disabled:R=o$a.disabled,required:A=o$a.required,validityStyles:M=o$a.validityStyles,prefix:k=o$a.prefix,suffix:L=o$a.suffix,onChange:j=o$a.onChange,onFocus:F=o$a.onFocus,onBlur:V=o$a.onBlur,rangeOnEnter:B=o$a.rangeOnEnter,size:z=o$a.size,rounded:H=o$a.rounded,fillMode:G=o$a.fillMode,autoFocus:U=o$a.autoFocus,inputAttributes:W,...q}=n,Y=I$6(),K=v||Y,X=i$a(),J=i$9(),Q=e__namespace.useRef(null),Z=e__namespace.useRef(void 0),[ee,te]=e__namespace.useState(!1),ne=e__namespace.useRef(Ie()),ie=e__namespace.useRef(!1),oe=e__namespace.useRef(void 0),ae=e__namespace.useRef(o),se=p$9(ne.current.focused&&!R?ne.current.currentLooseValue:Ne(i,ae.current),a,X);oe.current=se;const[le]=s$h(k),[ce]=s$h(L);e__namespace.useEffect((()=>{Q.current&&Q.current.setCustomValidity&&Q.current.setCustomValidity(he().valid?"":w||it)}));const ue=e__namespace.useCallback((()=>{Q.current&&Q.current.focus()}),[]),de=e__namespace.useCallback((()=>void 0!==Z.current?Z.current:Ne(i,ae.current)),[i]),pe=e__namespace.useCallback((()=>m),[m]),fe=e__namespace.useCallback((()=>A),[A]),he=e__namespace.useCallback((()=>{const e=void 0!==w,t=de();return{customError:e,valid:void 0!==P?P:!(ne.current.valueIsOutOfRange||fe()&&null==t),valueMissing:null==t}}),[w,P,de,fe]),me=e__namespace.useCallback((()=>M),[M]),ge=e__namespace.useCallback((()=>n),[n]),ve=e__namespace.useCallback((()=>{const e={element:Q.current,focus:ue};return Object.defineProperty(e,"name",{get:pe}),Object.defineProperty(e,"value",{get:de}),Object.defineProperty(e,"validity",{get:he}),Object.defineProperty(e,"validityStyles",{get:me}),Object.defineProperty(e,"required",{get:fe}),Object.defineProperty(e,"props",{get:ge}),e}),[pe,de,he,me,fe,ue,ge]);e__namespace.useImperativeHandle(t,ve);const be=e__namespace.useCallback((()=>({eventValue:Ne(i,ae.current),prevLooseValue:oe.current,currentLooseValue:Q.current.value,selectionStart:Q.current.selectionStart,selectionEnd:Q.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:ie.current,focused:ne.current.focused})),[i]),ye=e__namespace.useCallback(((e,t)=>{if(R)return;Z.current=t.eventValue,ae.current=t.eventValue;const n=p$9(re(t.eventValue,p,f),a,X),r=re(X.parseNumber(n,a),p,f);r!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=r,ae.current=r),i!==t.eventValue&&v$8(j,e,ve(),{value:t.eventValue}),Z.current=void 0,ne.current=t,te((e=>!e))}),[i,j,R,te,ve]),$e=e__namespace.useCallback((e=>{const t=be();ie.current=!1,ye(e,Oe(t,a,X))}),[a,j,X,ye,be]),xe=e__namespace.useCallback((e=>{if(E||R)return;let t=be();const n=X.parseNumber(String(t.currentLooseValue),a);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length){const t=X.numberSymbols(),n=t&&e.key===t.minusSign,r=t&&e.key===t.decimal;ie.current=!n&&!r}else{switch(e.keyCode){case 38:Ce(n,t,O,p,f,a,X);break;case 40:Ee$1(n,t,O,p,f,a,X);break;case 13:{if(!1===B)return;const e=p$9(re(n,p,f),a,X),r=re(X.parseNumber(e,a),p,f);t.eventValue=r,t.currentLooseValue=p$9(r,a,X),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break}case 110:{const e=Q.current,n=X.numberSymbols();e&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+n.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=Oe(t,a,X));break}default:return}e.preventDefault(),ye(e,t)}}),[a,p,f,O,j,B,ye,be]),Ee=e__namespace.useCallback((()=>{ie.current=!0}),[]),we=e__namespace.useCallback((e=>{if(E||R)return;const t=be();Ce(X.parseNumber(String(t.currentLooseValue),a),t,O,p,f,a,X),ye(e,t)}),[a,p,f,O,j,E,R,ye,be]),De=e__namespace.useCallback((e=>{if(E||R)return;const t=be();Ee$1(X.parseNumber(String(t.currentLooseValue),a),t,O,p,f,a,X),ye(e,t)}),[a,p,f,O,j,E,R,ye,be]),_e=e__namespace.useCallback((e=>{const t=o$f(document);!document||t!==Q.current||!Q.current||E||R||(e.nativeEvent.deltaY<0&&we(e),e.nativeEvent.deltaY>0&&De(e))}),[we,De,R,E]),Te=e__namespace.useCallback((e=>{ne.current.currentLooseValue=oe.current,ne.current.focused=!0,v$8(F,e,ve(),{}),te((e=>!e))}),[F,te,ve]),Se=e__namespace.useCallback((e=>{ne.current=Ie(),v$8(V,e,ve(),{}),te((e=>!e))}),[V,te,ve]),Pe=e__namespace.useCallback((e=>{if(document&&Q.current){const t=o$f(document);e.preventDefault(),t!==Q.current&&Q.current.focus()}}),[]);o$g((()=>{Q.current&&"number"!==Q.current.type&&void 0!==ne.current.selectionStart&&void 0!==ne.current.selectionEnd&&(Q.current.selectionStart=ne.current.selectionStart,Q.current.selectionEnd=ne.current.selectionEnd,ne.current.selectionStart=void 0,ne.current.selectionEnd=void 0)}),[ee]);const Re=!me()||he().valid,Ae=e__namespace.createElement("span",{dir:h,style:g?C:{width:s,...C},className:n$p("k-input","k-numerictextbox",{[`k-input-${l$h.sizeMap[z]||z}`]:z,[`k-input-${G}`]:G,[`k-rounded-${l$h.roundedMap[H]||H}`]:H,"k-invalid":!Re,"k-required":A,"k-disabled":R},r),"aria-disabled":R?"true":void 0,...g?{}:q},e__namespace.createElement(le,null),e__namespace.createElement("input",{role:"spinbutton",value:null===se?"":se,tabIndex:e$e(l,R),accessKey:c,disabled:R,title:u,"aria-disabled":R?"true":void 0,"aria-valuemin":p,"aria-valuemax":f,"aria-label":$,"aria-labelledby":y,"aria-describedby":b,"aria-required":A,placeholder:d,spellCheck:!1,autoComplete:"off",autoCorrect:"off",autoFocus:U,type:x||"tel",className:"k-input-inner",id:K,name:m,readOnly:E,style:I,onChange:$e,onFocus:Te,onBlur:Se,onKeyDown:xe,onPaste:Ee,onWheel:_e,ref:Q,...W}),e__namespace.createElement(ce,null),D,N&&e__namespace.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:Pe},e__namespace.createElement(k$6,{tabIndex:-1,type:"button",icon:"caret-alt-up",svgIcon:caretAltUpIcon,rounded:null,fillMode:G,className:"k-spinner-increase","aria-label":J.toLanguageString(o$b,I$3[o$b]),title:J.toLanguageString(o$b,I$3[o$b]),onClick:we}),e__namespace.createElement(k$6,{tabIndex:-1,type:"button",icon:"caret-alt-down",svgIcon:caretAltDownIcon,rounded:null,fillMode:G,className:"k-spinner-decrease","aria-label":J.toLanguageString(e$6,I$3[e$6]),title:J.toLanguageString(e$6,I$3[e$6]),onClick:De})));return g?e__namespace.createElement(I$4,{label:g,editorId:K,editorValue:null===se?"":se,editorValid:Re,editorDisabled:R,editorPlaceholder:d,children:Ae,style:{width:s},dir:h,...q}):Ae}));
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */Ee.propTypes={value:PropTypes.number,defaultValue:PropTypes.number,step:PropTypes.number,format:PropTypes.oneOfType([PropTypes.string,PropTypes.shape({style:PropTypes.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:PropTypes.string,currencyDisplay:PropTypes.oneOf(["symbol","code","name"]),useGrouping:PropTypes.bool,minimumIntegerDigits:PropTypes.number,minimumFractionDigits:PropTypes.number,maximumFractionDigits:PropTypes.number})]),width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),tabIndex:PropTypes.number,accessKey:PropTypes.string,title:PropTypes.string,placeholder:PropTypes.string,min:PropTypes.number,max:PropTypes.number,spinners:PropTypes.bool,disabled:PropTypes.bool,readOnly:PropTypes.bool,dir:PropTypes.string,name:PropTypes.string,label:PropTypes.string,validationMessage:PropTypes.string,required:PropTypes.bool,id:PropTypes.string,rangeOnEnter:PropTypes.bool,ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,ariaLabel:PropTypes.string,onChange:PropTypes.func,onFocus:PropTypes.func,onBlur:PropTypes.func,size:PropTypes.oneOf([null,"small","medium","large"]),rounded:PropTypes.oneOf([null,"small","medium","large","full"]),fillMode:PropTypes.oneOf([null,"solid","flat","outline"]),inputAttributes:PropTypes.object};const o$a={prefix:e=>null,suffix:e=>null,step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,autoFocus:!1,onChange:e=>{},onFocus:e=>{},onBlur:e=>{},size:"medium",rounded:"medium",fillMode:"solid"};Ee.displayName="KendoNumericTextBox";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const B$1=e__namespace.forwardRef(((e,t)=>{const n=e__namespace.useRef(null),r=e__namespace.useRef(null),i=e__namespace.useRef(void 0),o=n$l(),a=o&&o.uTextBox,s=e__namespace.useCallback((()=>{var e;return void 0!==i.current?i.current:null==(e=n.current)?void 0:e.value}),[]);e__namespace.useImperativeHandle(r,(()=>({get element(){return n.current},get name(){return n.current&&n.current.name},get value(){return s()}}))),e__namespace.useImperativeHandle(t,(()=>r.current));const{size:l=u$8.size,fillMode:c=u$8.fillMode,rounded:u=u$8.rounded,autoFocus:d=u$8.autoFocus,inputAttributes:p,className:f,dir:h,style:m,prefix:g=u$8.prefix,suffix:v=u$8.suffix,valid:b,onFocus:y,onBlur:$,modified:x,touched:E,visited:w,...D}=e,[_]=s$h(g),[T]=s$h(v),[S,C]=e__namespace.useState(!1),I=e__namespace.useCallback((t=>{i.current=t.target.value,e.onChange&&e.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:r.current}),i.current=void 0}),[e.onChange]),{onFocus:P,onBlur:O}=o$h({onFocus:e=>{C(!0)},onBlur:e=>{C(!1)},onSyncFocus:y,onSyncBlur:$}),N=e__namespace.useMemo((()=>n$p(E$4.wrapper({c:a,rounded:u,fillMode:c,size:l,focused:S,required:e.required,disabled:e.disabled,invalid:!1===e.valid}),f)),[f,c,S,e.disabled,e.required,e.valid,u,l,a]);return e__namespace.createElement("span",{style:m,dir:h,className:N,onFocus:P,onBlur:O},e__namespace.createElement(_,null),e__namespace.createElement("input",{ref:n,className:n$p(E$4.inputInner({c:a})),autoFocus:d,...Object.assign({},D,p),"aria-required":e.required,onChange:I}),e__namespace.createElement(T,null))})),u$8={prefix:e=>null,suffix:e=>null,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1};B$1.propTypes={size:PropTypes.oneOf([null,"small","medium","large"]),rounded:PropTypes.oneOf([null,"small","medium","large","full"]),fillMode:PropTypes.oneOf([null,"solid","flat","outline"]),autoFocus:PropTypes.bool,inputAttributes:PropTypes.object},B$1.displayName="KendoReactTextBoxComponent";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const u$7="",c$6="0",t$6="_";function f$5(e,t){if(i$6(e))return t[Number(e)];const n=t[Number(s$7(e))];return n.items?f$5(g$3(e),n.items):void 0}function s$7(e){return o$9(e)?e:e.split("_")[0]}function g$3(e){if(o$9(e))return e;const t=e.indexOf("_");return e.substring(t+1)}function b$3(e){return a$7("0",e)}function x$4(e,t){return 0===t.indexOf(e)&&(t.length===e.length||"_"===t.charAt(e.length))}function a$7(e,t){return t?t+"_"+e:e}function O$2(e){const t=e.lastIndexOf("_");return t<0?"":e.substring(0,t)}function o$9(e){return""===e||e.indexOf("_")<0}function i$6(e){return""!==e&&e.indexOf("_")<0}function E$3(e){return 1===S$6(e)}function p$8(e){return"0"===l$c(e)}function l$c(e){const t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}function L$4(e,t,n){return i$6(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}function S$6(e){return e.split("_").length-1}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const s$6=class extends e__namespace.Component{render(){return null}};s$6.propTypes={text:PropTypes.string,url:PropTypes.string,icon:PropTypes.string,disabled:PropTypes.bool,cssClass:PropTypes.string,cssStyle:PropTypes.object,render:PropTypes.any,linkRender:PropTypes.any,contentRender:PropTypes.any,data:PropTypes.any,separator:PropTypes.bool};let t$5=s$6;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function L$3(e,t){if(e&&e.length>0)return{items:c$5(e),inputItems:e};if(s$5(t).length>0){const e=R$1(s$5(t));return{items:c$5(e),inputItems:e}}return{items:[],inputItems:[]}}function h$1(e,t){const n={},{text:r,url:i,icon:o,svgIcon:a,disabled:s,cssClass:l,cssStyle:c,render:u,linkRender:d,contentRender:p,data:f,separator:h}=e||t.props;return void 0!==r&&(n.text=r),void 0!==i&&(n.url=i),void 0!==o&&(n.icon=o),void 0!==a&&(n.svgIcon=a),void 0!==s&&(n.disabled=s),void 0!==l&&(n.cssClass=l),void 0!==c&&(n.cssStyle=c),void 0!==u&&(n.render=u),void 0!==d&&(n.linkRender=d),void 0!==p&&(n.contentRender=p),void 0!==f&&(n.data=f),void 0!==h&&(n.separator=h),n}function s$5(e){return e__namespace.Children.toArray(e).filter((e=>e&&e.type===t$5))}function R$1(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=h$1(void 0,r),o=R$1(s$5(r.props.children));o.length>0&&(i.items=o),t.push(i)}return t}function c$5(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=h$1(i);o.id=a$7(r.toString(),t),o.isLastFromSiblings=r===e.length-1,o.separator=!0===i.separator,o.items=E$2(i,o),n.push(o)}return n}function E$2(e,t){return e.contentRender?[{contentParentItemId:t.id,id:a$7("0",t.id),isLastFromSiblings:!0,separator:!1,contentRender:e.contentRender,items:[]}]:e.items?c$5(e.items,t.id):[]}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const Q$5=/\S/;function V$3(e,t,n,r,i,o){const a=f();switch(n){case e$g.left:return i?o?u():l():o?c():s();case e$g.right:return i?o?l():u():o?s():c();case e$g.up:return i?m():i$6(t)?p():m();case e$g.down:return i?g():i$6(t)?d():g();case e$g.enter:case e$g.space:return a.disabled?t:h()?b$3(t):s$7(t);case e$g.home:return v()[0].id;case e$g.end:return function(){const e=v();return e[e.length-1].id}();case e$g.esc:return i$6(t)?t:O$2(t);default:return 1===r.length&&Q$5.test(r)?function(){const e=r.toLowerCase(),n=v(),i=Number(l$c(t)),o=n.slice(i+1).concat(n.slice(0,i+1)).find((t=>(t.text||"").toLowerCase().startsWith(e)));return o?o.id:t}():t}function s(){return i$6(t)?m():E$3(t)?d(m(s$7(t))):O$2(t)}function l(){return i$6(t)?p():O$2(t)}function c(){return i$6(t)?g():d(h()?t:g(s$7(t)))}function u(){return d(i$6(t)||h()?t:g(s$7(t)))}function d(e){return b(!0,e)}function p(e){return b(!1,e)}function f(n,r){return void 0===n&&(n=t),void 0===r&&(r=e),f$5(n,r)}function h(e){return f(e).items.length>0}function m(e){return y(!1,e)}function g(e){return y(!0,e)}function v(){return i$6(t)?e:f(O$2(t),e).items}function b(e,n){void 0===n&&(n=t);const r=f(n);return h(n)&&!r.disabled?e?b$3(n):function(e){const t=f(e).items;return t[t.length-1].id}(n):n}function y(n,r){if(void 0===r&&(r=t),i$6(r))return L$4(n,r,e.length);const i=O$2(r);return a$7(L$4(n,l$c(r),f(i).items.length),i)}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function n$d(e){return void 0!==e.hoverOpenDelay?e.hoverOpenDelay:e.openOnClick?0:100}function o$8(e){return void 0!==e.hoverCloseDelay?e.hoverCloseDelay:100}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const t$4={vertical:"top",horizontal:"left"},n$c={vertical:"top",horizontal:"left"},l$b={vertical:"top",horizontal:"right"},r$6={vertical:"top",horizontal:"right"},o$7={vertical:"flip",horizontal:"fit"},i$5={vertical:"fit",horizontal:"flip"},a$6={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:l$b,collision:o$7,animationDirection:"down"},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:r$6,collision:i$5,animationDirection:"left"}},c$4={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:t$4,collision:o$7,animationDirection:"down"},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:n$c,collision:i$5,animationDirection:"right"}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function f$4(e,t,n){const r=i$4(e,t,n);return n?"downward"===r?a$6.downward:a$6.leftward:"downward"===r?c$4.downward:c$4.rightward}function i$4(e,t,n){return i$6(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}function l$a(e){return e?"rtl":"ltr"}function P$4(e,t){return`${e}_${t}`}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const s$4=class extends e__namespace.Component{render(){return this.props.url?e__namespace.createElement("a",{className:this.getMenuItemClassName(),role:"presentation",href:this.props.url,tabIndex:-1},this.props.children):e__namespace.createElement("span",{id:this.props.id,className:n$p(this.getMenuItemClassName(),this.props.className),style:this.props.style,role:"presentation"},this.props.children)}getMenuItemClassName(){return n$p("k-link","k-menu-link",{"k-active":this.props.opened})}};s$4.propTypes={opened:PropTypes.bool,url:PropTypes.string};let p$7=s$4;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const l$9="caret-alt-down",p$6="caret-alt-right",d$5="caret-alt-left",r$5=class extends e__namespace.Component{render(){return e__namespace.createElement(v$6,{"aria-hidden":!0,...this.getIcon()})}getIcon(){switch(i$4(this.props.itemId,!0===this.props.verticalMenu,"rtl"===this.props.dir)){case"downward":return{name:l$9,icon:caretAltDownIcon};case"rightward":return{name:p$6,icon:caretAltRightIcon};case"leftward":return{name:d$5,icon:caretAltLeftIcon};default:return{}}}};r$5.propTypes={itemId:PropTypes.string,dir:PropTypes.string,verticalMenu:PropTypes.bool};let o$6=r$5,k$3=class extends e__namespace.Component{constructor(){super(...arguments),this.onMouseOver=e=>{this.props.onMouseOver(this.props.parentItemId),e.stopPropagation()},this.onMouseLeave=e=>{this.props.onMouseLeave(this.props.parentItemId),e.stopPropagation()}}render(){const e=this.props.parentItemId;return e__namespace.createElement("ul",{className:this.props.className,role:this.props.role?this.props.role:void 0!==e?"menu":"menubar",id:void 0!==e?P$4(this.props.menuGuid,e):void 0,onMouseOver:void 0!==e?this.onMouseOver:void 0,onMouseLeave:void 0!==e?this.onMouseLeave:void 0,"aria-orientation":this.props["aria-orientation"]},this.renderChildItems())}renderChildItems(){return this.props.items.length>0?this.props.items.map(((e,t)=>e__namespace.createElement(O$1,{item:e,animate:this.props.animate,isMenuVertical:this.props.isMenuVertical,isDirectionRightToLeft:this.props.isDirectionRightToLeft,focusedItemId:this.props.focusedItemId,lastItemIdToBeOpened:this.props.lastItemIdToBeOpened,tabbableItemId:this.props.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,menuGuid:this.props.menuGuid,onMouseOver:this.props.onMouseOver,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:this.props.onClick,onOriginalItemNeeded:this.props.onOriginalItemNeeded,key:t}))):null}},O$1=class extends e__namespace.Component{constructor(e){super(e),this.isFirstRender=!0,this.onMouseOver=e=>{this.props.onMouseOver(this.props.item.id),e.stopPropagation()},this.onMouseLeave=e=>{this.props.onMouseLeave(this.props.item.id),e.stopPropagation()},this.state={opened:!1}}componentDidMount(){const e=this.props.focusedItemId,t=this.props.item.id;e&&e===t&&this.itemElement.focus({preventScroll:!0}),this.isFirstRender=!1}componentDidUpdate(e){const t=this.props.focusedItemId,n=this.props.item.id;if(t){const r=o$f(document);e.focusedItemId!==t&&t===n&&!this.itemElement.contains(r)&&this.itemElement.focus({preventScroll:!0})}}render(){const e=this.props.item,t=e.id,n=P$4(this.props.menuGuid,t),r=e.separator;return e__namespace.createElement(e__namespace.Fragment,null,r?e__namespace.createElement("li",{className:"k-separator k-item","aria-hidden":!0,key:n,id:n,ref:e=>{this.itemElement=e}}):e__namespace.createElement("li",{id:n,className:this.getMenuItemClassName(e),style:e.cssStyle,tabIndex:t===this.props.tabbableItemId?0:-1,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,onMouseDown:e=>this.props.onMouseDown(e),onBlur:e=>this.props.onBlur(t,e),onFocus:()=>this.props.onFocus(t),onClick:e=>this.props.onClick(e,t),role:"menuitem","aria-disabled":!!e.disabled||void 0,"aria-haspopup":e.items.length>0||void 0,"aria-expanded":e.items.length>0?this.Opened:void 0,"aria-label":e.text,"aria-owns":this.Opened?n:void 0,ref:e=>{this.itemElement=e},key:n},this.contentRender?this.renderContent():this.renderMenuItemLink()),this.renderPopupIfOpened())}renderContent(){const e=this.props.item.contentParentItemId;return e__namespace.createElement("div",{className:"k-content",role:"presentation"},e__namespace.createElement(this.contentRender,{item:this.props.onOriginalItemNeeded(e),itemId:e}))}renderMenuItemLink(){const e=this.props.item;if(this.linkRender)return e__namespace.createElement(this.linkRender,{item:this.props.onOriginalItemNeeded(e.id),itemId:e.id,opened:this.Opened,dir:l$a(this.props.isDirectionRightToLeft)});const t=this.itemRender?e__namespace.createElement(this.itemRender,{item:this.props.onOriginalItemNeeded(e.id),itemId:e.id,key:"1"}):e__namespace.createElement("span",{className:"k-menu-link-text"},e.text);return e__namespace.createElement(p$7,{url:e.url,opened:this.Opened},this.renderMenuIconIfApplicable(),t,this.renderArrowIfApplicable())}renderPopupIfOpened(){const e=this.props.item.id,t=this.props.animate,{anchorAlign:n,popupAlign:r,collision:i,animationDirection:o}=f$4(e,this.props.isMenuVertical,this.props.isDirectionRightToLeft),a=!0===t?{openDuration:300,closeDuration:300,direction:o}:!1!==t&&{openDuration:(null==t?void 0:t.openDuration)||300,closeDuration:(null==t?void 0:t.closeDuration)||300,direction:(null==t?void 0:t.direction)||o};return e__namespace.createElement(se,{anchor:this.itemElement,show:this.Opened,popupClass:this.getPopupClassName(),anchorAlign:n,popupAlign:r,collision:i,animate:a,key:"1"},e__namespace.createElement(k$3,{parentItemId:e,animate:this.props.animate,items:this.props.item.items,menuGuid:this.props.menuGuid,focusedItemId:this.props.focusedItemId,lastItemIdToBeOpened:this.props.lastItemIdToBeOpened,tabbableItemId:this.props.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,isMenuVertical:this.props.isMenuVertical,isDirectionRightToLeft:this.props.isDirectionRightToLeft,className:"k-group k-menu-group k-reset k-menu-group-md",onMouseOver:this.props.onMouseOver,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:this.props.onClick,onOriginalItemNeeded:this.props.onOriginalItemNeeded}))}renderMenuIconIfApplicable(){const{icon:e,svgIcon:t}=this.props.item;return e||t?e__namespace.createElement(v$6,{name:e,icon:t,key:"0"}):null}renderArrowIfApplicable(){return this.props.item.items.length>0?e__namespace.createElement("span",{className:"k-menu-expand-arrow","aria-hidden":!0},e__namespace.createElement(o$6,{itemId:this.props.item.id,verticalMenu:this.props.isMenuVertical,dir:l$a(this.props.isDirectionRightToLeft),key:"2"})):null}get itemRender(){return this.props.item.render||this.props.itemRender}get linkRender(){return this.props.item.linkRender||this.props.linkRender}get contentRender(){return this.props.item.contentParentItemId?this.props.item.contentRender:null}get Opened(){const e=this.props;return e.item.items.length>0&&x$4(e.item.id,e.lastItemIdToBeOpened)&&!this.isFirstRender}getPopupClassName(){return n$p("k-menu-popup",{"k-rtl":this.props.isDirectionRightToLeft})}getMenuItemClassName(e){return n$p("k-item","k-menu-item",{"k-first":p$8(e.id),"k-last":e.isLastFromSiblings,"k-disabled":e.disabled},e.cssClass)}},e$5=class{constructor(){this.phase="Initialized"}getIsDirectionRightToLeft(){return this.isDirectionRightToLeft}setIsDirectionRightToLeft(e){this.phase="NotInitialized"===this.phase?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=e}hasDirectionChanged(){return"NewValueReceived"===this.phase&&this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft}},n$b=class{constructor(e,t,n){this.openOnClick=e,this.resetMenu=t,this.openItem=n,this.mouseDown=!1,this.openOnClick=e,this.isMouseOverEnabled=!e}set OpenOnClick(e){!!e!=!!this.openOnClick&&(this.mouseDown=!1,this.isMouseOverEnabled=!e),this.openOnClick=e}handleItemSelectedViaKeyboard(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())}get IsMouseOverEnabled(){return this.isMouseOverEnabled}handleItemMouseDown(){this.mouseDown=!0}handleItemFocus(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1}handleItemClick(e,t){this.openOnClick&&(this.isMouseOverEnabled?t&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(e)))}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const p$5={focusedItemId:"",hoveredItemId:"",tabbableItemId:"0"},n$a=class e extends e__namespace.Component{constructor(e){super(e),this.menuWrapperEl=null,this.directionHolder=new e$5,this.inputItems=[],this.items=[],this.reset=()=>{this.clearItemHoverAndLeaveRequestsIfApplicable(),this.setState(p$5)},this.onKeyDown=e=>{if(""!==this.state.focusedItemId){const t=f$5(this.state.focusedItemId,this.items);let n=V$3(this.items,t.id,e.keyCode,e.key,this.props.vertical,this.directionHolder.getIsDirectionRightToLeft());const r=f$5(n,this.items);r&&r.separator&&(n=V$3(this.items,n,e.keyCode,e.key,this.props.vertical,this.directionHolder.getIsDirectionRightToLeft())),t.id!==n&&(e.preventDefault(),this.setFocusedItemId(n)),(e.keyCode===e$g.enter||e.keyCode===e$g.space)&&!t.disabled&&(this.mouseOverHandler.handleItemSelectedViaKeyboard(),this.dispatchSelectEventIfWired(e,t.id),!e.isDefaultPrevented()&&0===t.items.length&&t.url&&window.location.assign(t.url))}e.keyCode===e$g.esc&&this.props.onClose&&this.props.onClose.call(void 0,e)},this.onItemMouseOver=e=>{this.mouseOverHandler.IsMouseOverEnabled&&(this.clearItemHoverAndLeaveRequestsIfApplicable(),this.itemHoverRequest=window.setTimeout((()=>{this.setHoveredItemId(e),this.itemHoverRequest=null}),n$d(this.props)))},this.onItemMouseLeave=e=>{this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(e)&&(this.clearItemHoverAndLeaveRequestsIfApplicable(),this.itemLeaveRequest=window.setTimeout((()=>{this.setHoveredItemId(""),this.itemLeaveRequest=null}),o$8(this.props)))},this.onItemMouseDown=()=>{this.mouseOverHandler.handleItemMouseDown()},this.onItemFocus=e=>{this.setFocusedItemId(e),this.mouseOverHandler.handleItemFocus()},this.onItemClick=(e,t)=>{const n=f$5(t,this.items);n.disabled||(this.setFocusedItemId(t),this.mouseOverHandler.handleItemClick(t,this.isItemWithDefaultClose(t)),this.dispatchSelectEventIfWired(e,t),!e.isDefaultPrevented()&&n.url&&window.location.assign(n.url))},this.onItemBlur=(e,t)=>{if(this.isItemWithDefaultClose(e)&&this.setFocusedItemId(""),t.relatedTarget&&"LI"===t.relatedTarget.nodeName){const e=t.relatedTarget.getAttribute("id");if(e&&e.includes(this.menuItemId))return}this.props.onClose&&this.props.onClose.call(void 0,t)},this.getInputItem=e=>f$5(e,this.inputItems),this.mouseOverHandler=new n$b(this.props.openOnClick,this.reset,this.onItemMouseOver),this.state=Object.assign({},p$5,{isFirstRender:!0})}get menuItemId(){return this.props.id}get element(){return this.menuWrapperEl}get animate(){return void 0!==this.props.animate?this.props.animate:e.defaultProps.animate}render(){this.prepareItems(),this.state.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());const e=this.state.hoveredItemId?this.state.hoveredItemId:this.state.focusedItemId?O$2(this.state.focusedItemId):"";return e__namespace.createElement("div",{id:this.props.id,onKeyDown:this.onKeyDown,style:this.props.style,className:this.directionHolder.getIsDirectionRightToLeft()?"k-rtl":void 0,ref:e=>{this.menuWrapperEl=e}},e__namespace.createElement(k$3,{className:this.getMenuClassName(),"aria-orientation":this.props.vertical?"vertical":void 0,items:this.items,animate:this.animate,isMenuVertical:this.props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.state.focusedItemId,lastItemIdToBeOpened:e,tabbableItemId:this.state.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,menuGuid:this.menuItemId,onMouseLeave:this.onItemMouseLeave,onMouseOver:this.onItemMouseOver,onMouseDown:this.onItemMouseDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,onOriginalItemNeeded:this.getInputItem,role:this.props.role}))}componentDidMount(){this.setState({isFirstRender:!1})}componentDidUpdate(e){(!!e.vertical!=!!this.props.vertical||this.directionHolder.hasDirectionChanged())&&this.reset(),this.mouseOverHandler.OpenOnClick=this.props.openOnClick}componentWillUnmount(){this.clearItemHoverAndLeaveRequestsIfApplicable()}setFocusedItemId(e){this.setState((t=>{const n=""===e?t.tabbableItemId:s$7(e);return{hoveredItemId:""===e||o$9(t.hoveredItemId)&&o$9(e)?t.hoveredItemId:"",focusedItemId:e,tabbableItemId:n}}))}setHoveredItemId(e){this.setState((t=>o$9(e)&&o$9(t.focusedItemId)?{hoveredItemId:e,focusedItemId:t.focusedItemId,tabbableItemId:t.tabbableItemId}:{hoveredItemId:e,focusedItemId:"",tabbableItemId:"0"}))}getMenuClassName(){return n$p("k-reset","k-header","k-menu",{"k-menu-horizontal":!this.props.vertical},{"k-menu-vertical":this.props.vertical},this.props.className)}clearItemHoverAndLeaveRequestsIfApplicable(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)}isItemWithDefaultClose(e){return!this.props.customCloseItemIds||-1===this.props.customCloseItemIds.indexOf(e)}checkIsDirectionRightToLeft(){return!!(void 0!==this.props.dir?"rtl"===this.props.dir:this.menuWrapperEl&&"rtl"===getComputedStyle(this.menuWrapperEl).direction)}prepareItems(){const{items:e,inputItems:t}=L$3(this.props.items,this.props.children);this.items=e,this.inputItems=t}dispatchSelectEventIfWired(e,t){v$8(this.props.onSelect,e,this,{item:this.getInputItem(t),itemId:t})}};n$a.propTypes={vertical:PropTypes.bool,items:PropTypes.arrayOf(PropTypes.object),style:PropTypes.object,animate:PropTypes.oneOfType([PropTypes.bool,PropTypes.shape({openDuration:PropTypes.number,closeDuration:PropTypes.number})]),dir:PropTypes.string,hoverOpenDelay:PropTypes.number,hoverCloseDelay:PropTypes.number,openOnClick:PropTypes.bool,itemRender:PropTypes.any,linkRender:PropTypes.any,customCloseItemIds:PropTypes.arrayOf(PropTypes.string),onSelect:PropTypes.func,role:PropTypes.string},n$a.defaultProps={vertical:!1,animate:!0};let u$6=n$a;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const o$5=class extends e__namespace.Component{constructor(){super(...arguments),this.itemRef=null,this.focus=()=>{this.itemRef&&this.itemRef.focus()},this.blur=()=>{this.itemRef&&this.itemRef.blur()},this.onClick=()=>{this.props.onSelect&&this.props.onSelect(this.props.index),this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())}}render(){const{id:e,active:t,disabled:n,title:r="Untitled",index:i,renderAllContent:o,first:a,last:s}=this.props,l=o?`${this.props.contentPanelId}-${i.toString()}`:this.props.contentPanelId,c={id:`${e}-${i.toString()}`,"aria-selected":t,"aria-controls":t?l:void 0,"aria-disabled":n,role:"tab",onClick:n?void 0:this.onClick},u=n$p("k-item","k-tabstrip-item",{"k-disabled":n,"k-active":t,"k-first":a,"k-last":s});return e__namespace.createElement("li",{...c,className:u,ref:e=>{this.itemRef=e},onBlur:this.blur,"aria-controls":l},e__namespace.createElement("span",{className:"k-link"},r))}};o$5.propTypes={active:PropTypes.bool,disabled:PropTypes.bool,index:PropTypes.number,onSelect:PropTypes.func,title:PropTypes.oneOfType([PropTypes.string,PropTypes.element]),first:PropTypes.bool,last:PropTypes.bool};let l$8=o$5;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const r$4="prevArrow.title",t$3="nextArrow.title",e$4={[r$4]:"Previous tab arrow",[t$3]:"Next tab arrow"},W$2=e=>Array.apply(null,Array(e)),b$2="smooth",f$3="prev",m$2="next",w$5=class extends e__namespace.Component{constructor(){super(...arguments),this.itemsNavRef=this.props.itemsNavRef||e__namespace.createRef(),this.onScroll=()=>{var e,t;null==(t=(e=this.props).onScroll)||t.call(e)},this.isRtl=()=>"rtl"===this.props.dir,this.arrowClickPrev=e=>{this.handleArrowClick(f$3,e)},this.arrowClickNext=e=>{this.handleArrowClick(m$2,e)},this.handleArrowClick=(e,t)=>{this.setNewScrollPosition(e,t)},this.setNewScrollPosition=(e,t)=>{const n=this.itemsNavRef.current;if(!n)return;const r=this.horizontalScroll(),i=r?n.scrollWidth-n.offsetWidth:n.scrollHeight-n.offsetHeight,o=("click"===t.type?this.props.buttonScrollSpeed:this.props.mouseScrollSpeed)||0;let a=r?n.scrollLeft:n.scrollTop;this.isRtl()&&this.horizontalScroll()?(e===f$3&&a<0&&(a+=o),e===m$2&&a<i&&(a-=o),a=Math.min(0,Math.min(i,a))):(e===f$3&&a>0&&(a-=o),e===m$2&&a<i&&(a+=o),a=Math.max(0,Math.min(i,a)));const s="click"===t.type?b$2:void 0;r?n.scrollTo({left:a,behavior:s}):n.scrollTo({top:a,behavior:s})},this.renderArrow=e=>{const t=this.horizontalScroll(),n=s$a(this),r={prev:{arrowTab:"k-tabstrip-prev",fontIcon:t?this.isRtl()?"caret-alt-right":"caret-alt-left":"caret-alt-up",svgIcon:t?this.isRtl()?caretAltRightIcon:caretAltLeftIcon:caretAltUpIcon,title:n.toLanguageString(r$4,e$4[r$4])},next:{arrowTab:"k-tabstrip-next",fontIcon:t?this.isRtl()?"caret-alt-left":"caret-alt-right":"caret-alt-down",svgIcon:t?this.isRtl()?caretAltLeftIcon:caretAltRightIcon:caretAltDownIcon,title:n.toLanguageString(t$3,e$4[t$3])}},i=(e===f$3?this.props.prevButton:this.props.nextButton)||k$6,o=e===f$3?this.arrowClickPrev:this.arrowClickNext,a=null===this.props.containerScrollPosition||e===f$3&&("start"===this.props.containerScrollPosition||"top"===this.props.containerScrollPosition)||e===m$2&&("end"===this.props.containerScrollPosition||"bottom"===this.props.containerScrollPosition);return e__namespace.createElement(i,{disabled:a,className:n$p(`${r[e].arrowTab}`),onClick:o,icon:r[e].fontIcon,svgIcon:r[e].svgIcon,size:this.props.size,tabIndex:-1,fillMode:"flat",title:r[e].title})}}componentDidMount(){this.props.scrollable&&this.scrollToSelected()}componentDidUpdate(e){const{scrollable:t,selected:n}=this.props;t&&e.selected!==n&&this.scrollToSelected()}render(){const{selected:e,tabPosition:t,tabAlignment:n,children:r,onSelect:i,onKeyDown:o,navItemId:a,contentPanelId:s,renderAllContent:l,scrollable:c,scrollButtons:u,scrollButtonsPosition:d}=this.props,p=e__namespace.Children.count(r),f=e__namespace.Children.toArray(r);let h;r&&(h=W$2(p).map(((t,n,r)=>{const o={active:e===n,disabled:f[n].props.disabled,index:n,title:f[n].props.title,first:0===n,last:n===r.length-1,contentPanelId:s,renderAllContent:l,id:a,onSelect:i,onScroll:this.onScroll};return e__namespace.createElement(l$8,{key:n,...o})})));const m=n$p("k-tabstrip-items-wrapper k-tabstrip-items-wrapper-scroll",{"k-hstack":"top"===t||"bottom"===t,"k-vstack":"left"===t||"right"===t}),g=n$p("k-tabstrip-items k-tabstrip-items-scroll k-reset",`k-tabstrip-items-${n}`);return e__namespace.createElement("div",{className:m},c?e__namespace.createElement(e__namespace.Fragment,null,"hidden"!==u&&d&&["split","start","around","before"].includes(d)&&this.renderArrow(f$3),"hidden"!==u&&("start"===d||"before"===d)&&this.renderArrow(m$2),e__namespace.createElement("ul",{ref:this.itemsNavRef,className:g,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:o,onScroll:this.onScroll,"aria-orientation":"left"===t||"right"===t?"vertical":void 0},h),"hidden"!==u&&("end"===d||"after"===d)&&this.renderArrow(f$3),"hidden"!==u&&d&&["split","end","around","after"].includes(d)&&this.renderArrow(m$2)):e__namespace.createElement("ul",{className:g,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:o},h))}scrollToSelected(){const e=this.itemsNavRef.current,t=e&&e.children[this.props.selected||0];if(t instanceof HTMLElement&&e instanceof HTMLElement){const n=this.horizontalScroll(),r=n?e.offsetWidth:e.offsetHeight,i=n?t.offsetWidth:t.offsetHeight,o=n?"left":"top";let a=n?e.scrollLeft:e.scrollTop,s=0;if(this.isRtl()){const n=t.offsetLeft;a*=-1,n<0?(s=n-i+e.offsetLeft,e.scrollTo({[o]:s,behavior:b$2})):n+i>r-a&&(s=a+n-i,e.scrollTo({[o]:s,behavior:b$2}))}else{const l=n?t.offsetLeft-e.offsetLeft:t.offsetTop-e.offsetTop;a+r<l+i?(s=l+i-r,e.scrollTo({[o]:s,behavior:b$2})):a>l&&(s=l,e.scrollTo({[o]:s,behavior:b$2}))}}}horizontalScroll(){return/top|bottom/.test(this.props.tabPosition||"top")}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */w$5.propTypes={children:PropTypes.oneOfType([PropTypes.element,PropTypes.arrayOf(PropTypes.element)]),onSelect:PropTypes.func,onKeyDown:PropTypes.func,onScroll:PropTypes.func,selected:PropTypes.number,tabIndex:PropTypes.number,scrollable:PropTypes.bool,size:PropTypes.oneOf(["small","medium","large"]),scrollButtons:PropTypes.oneOf(["auto","visible","hidden"]),scrollButtonsPosition:PropTypes.oneOf(["split","start","end","around","before","after"]),containerScrollPosition:PropTypes.oneOf(["start","end","top","bottom","middle",null])};let C$5=w$5;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function hasClass(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}function addClass(e,t){e.classList?e.classList.add(t):hasClass(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function replaceClassName(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=replaceClassName(e.className,t):e.setAttribute("class",replaceClassName(e.className&&e.className.baseVal||"",t))}var config$1={disabled:!1},timeoutsShape="production"!==process.env.NODE_ENV?PropTypes.oneOfType([PropTypes.number,PropTypes.shape({enter:PropTypes.number,exit:PropTypes.number,appear:PropTypes.number}).isRequired]):null,classNamesShape="production"!==process.env.NODE_ENV?PropTypes.oneOfType([PropTypes.string,PropTypes.shape({enter:PropTypes.string,exit:PropTypes.string,active:PropTypes.string}),PropTypes.shape({enter:PropTypes.string,enterDone:PropTypes.string,enterActive:PropTypes.string,exit:PropTypes.string,exitDone:PropTypes.string,exitActive:PropTypes.string})]):null,TransitionGroupContext=e$i.createContext(null),forceReflow=function(e){return e.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=EXITED,r.appearStatus=ENTERING):i=ENTERED:i=t.unmountOnExit||t.mountOnEnter?UNMOUNTED:EXITED,r.state={status:i},r.nextCallback=null,r}_inheritsLoose(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===UNMOUNTED?{status:EXITED}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ENTERING&&n!==ENTERED&&(t=ENTERING):n!==ENTERING&&n!==ENTERED||(t=EXITING)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);n&&forceReflow(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ReactDOM.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||config$1.disabled?this.safeSetState({status:ENTERED},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:ENTERING},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ENTERED},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);t&&!config$1.disabled?(this.props.onExit(r),this.safeSetState({status:EXITING},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:EXITED},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:EXITED},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===UNMOUNTED)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=_objectWithoutPropertiesLoose(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return e$i.createElement(TransitionGroupContext.Provider,{value:null},"function"==typeof n?n(e,r):e$i.cloneElement(e$i.Children.only(n),r))},t}(e$i.Component);function noop$3(){}Transition.contextType=TransitionGroupContext,Transition.propTypes="production"!==process.env.NODE_ENV?{nodeRef:PropTypes.shape({current:"undefined"==typeof Element?PropTypes.any:function(e,t,n,r,i,o){var a=e[t];return PropTypes.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:PropTypes.oneOfType([PropTypes.func.isRequired,PropTypes.element.isRequired]).isRequired,in:PropTypes.bool,mountOnEnter:PropTypes.bool,unmountOnExit:PropTypes.bool,appear:PropTypes.bool,enter:PropTypes.bool,exit:PropTypes.bool,timeout:function(e){var t=timeoutsShape;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:PropTypes.func,onEnter:PropTypes.func,onEntering:PropTypes.func,onEntered:PropTypes.func,onExit:PropTypes.func,onExiting:PropTypes.func,onExited:PropTypes.func}:{},Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$3,onEntering:noop$3,onEntered:noop$3,onExit:noop$3,onExiting:noop$3,onExited:noop$3},Transition.UNMOUNTED=UNMOUNTED,Transition.EXITED=EXITED,Transition.ENTERING=ENTERING,Transition.ENTERED=ENTERED,Transition.EXITING=EXITING;var _addClass=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return addClass(e,t)}))},removeClass=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return removeClass$1(e,t)}))},CSSTransition=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}_inheritsLoose(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&forceReflow(e),r&&(this.appliedClasses[t][n]=r,_addClass(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&removeClass(e,r),i&&removeClass(e,i),o&&removeClass(e,o)},n.render=function(){var e=this.props;e.classNames;var t=_objectWithoutPropertiesLoose(e,["classNames"]);return e$i.createElement(Transition,_extends({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(e$i.Component);function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function getChildMapping(e,t){var n=Object.create(null);return e&&e$i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&e$i.isValidElement(e)?t(e):e}(e)})),n}function mergeChildMappings(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function getProp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function getInitialChildMapping(e,t){return getChildMapping(e.children,(function(n){return e$i.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:getProp(n,"appear",e),enter:getProp(n,"enter",e),exit:getProp(n,"exit",e)})}))}function getNextChildMapping(e,t,n){var r=getChildMapping(e.children),i=mergeChildMappings(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(e$i.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=e$i.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&e$i.isValidElement(c)&&(i[o]=e$i.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:getProp(a,"exit",e),enter:getProp(a,"enter",e)})):i[o]=e$i.cloneElement(a,{in:!1}):i[o]=e$i.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:getProp(a,"exit",e),enter:getProp(a,"enter",e)})}})),i}CSSTransition.defaultProps={classNames:""},CSSTransition.propTypes="production"!==process.env.NODE_ENV?_extends({},Transition.propTypes,{classNames:classNamesShape,onEnter:PropTypes.func,onEntering:PropTypes.func,onEntered:PropTypes.func,onExit:PropTypes.func,onExiting:PropTypes.func,onExited:PropTypes.func}):{};var values$1=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},defaultProps$1={component:"div",childFactory:function(e){return e}},TransitionGroup=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(_assertThisInitialized(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}_inheritsLoose(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?getInitialChildMapping(e,r):getNextChildMapping(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=getChildMapping(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=_extends({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=_objectWithoutPropertiesLoose(e,["component","childFactory"]),i=this.state.contextValue,o=values$1(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?e$i.createElement(TransitionGroupContext.Provider,{value:i},o):e$i.createElement(TransitionGroupContext.Provider,{value:i},e$i.createElement(t,r,o))},t}(e$i.Component);TransitionGroup.propTypes="production"!==process.env.NODE_ENV?{component:PropTypes.any,children:PropTypes.node,appear:PropTypes.bool,enter:PropTypes.bool,exit:PropTypes.bool,childFactory:PropTypes.func}:{},TransitionGroup.defaultProps=defaultProps$1;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const R=e__namespace.forwardRef(((e,t)=>{const n=e__namespace.useRef(null),{mountOnEnter:r=n$9.mountOnEnter,unmountOnExit:i=n$9.unmountOnExit,onEnter:o=n$9.onEnter,onEntering:a=n$9.onEntering,onEntered:s=n$9.onEntered,onExit:l=n$9.onExit,onExiting:c=n$9.onExiting,onExited:u=n$9.onExited,onAfterExited:d=n$9.onAfterExited,animationEnteringStyle:p=n$9.animationEnteringStyle,animationEnteredStyle:f=n$9.animationEnteredStyle,animationExitingStyle:h=n$9.animationExitingStyle,animationExitedStyle:m=n$9.animationExitedStyle,children:g,style:v,appear:b,enter:y,exit:$,transitionName:x,transitionEnterDuration:E,transitionExitDuration:w,className:D,unstyled:_,...T}=e,S={transitionDelay:"0ms",...v},C=_&&_.uAnimation,I=n$p(D,x$7.childContainer({c:C})),P=e__namespace.useRef({element:n.current,props:e}),O=e__namespace.useRef(null);e__namespace.useImperativeHandle(O,(()=>({element:n.current,props:e}))),e__namespace.useImperativeHandle(t,(()=>O.current),[]);const N={entering:{transitionDuration:`${E}ms`,...p},entered:{...f},exiting:{transitionDuration:`${w}ms`,...h},exited:{...m}},R={in:e.in,appear:b,enter:y,exit:$,mountOnEnter:r,unmountOnExit:i,timeout:{enter:E,exit:w},onEnter:()=>{o&&o.call(void 0,{animatedElement:n.current,target:O.current||P.current})},onEntering:()=>{a&&a.call(void 0,{animatedElement:n.current,target:O.current||P.current})},onEntered:()=>{s&&s.call(void 0,{animatedElement:n.current,target:O.current||P.current})},onExit:()=>{l&&l.call(void 0,{animatedElement:n.current,target:O.current||P.current})},onExiting:()=>{c&&c.call(void 0,{animatedElement:n.current,target:O.current||P.current})},onExited:()=>{d&&d.call(void 0,{animatedElement:n.current,target:O.current||P.current}),u&&u.call(void 0,{animatedElement:n.current,target:O.current||P.current})},classNames:{appear:n$p(x$7.appear({c:C,transitionName:x})),appearActive:n$p(x$7.appearActive({c:C,transitionName:x})),enter:n$p(x$7.enter({c:C,transitionName:x})),enterActive:n$p(x$7.enterActive({c:C,transitionName:x})),exit:n$p(x$7.exit({c:C,transitionName:x})),exitActive:n$p(x$7.exitActive({c:C,transitionName:x}))}};return e__namespace.createElement(CSSTransition,{...R,...T,nodeRef:n},(e=>e__namespace.createElement("div",{style:{...S,...N[e]},className:I,ref:e=>{n.current=e,P.current.element=e}},g)))})),n$9={mountOnEnter:!0,unmountOnExit:!1,onEnter:o$i,onEntering:o$i,onEntered:o$i,onExit:o$i,onExiting:o$i,onExited:o$i,onAfterExited:o$i,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}};R.displayName="KendoReactAnimationChild",R.propTypes={in:PropTypes.bool,children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),transitionName:PropTypes.string.isRequired,className:PropTypes.string,appear:PropTypes.bool,enter:PropTypes.bool,exit:PropTypes.bool,transitionEnterDuration:PropTypes.number.isRequired,transitionExitDuration:PropTypes.number.isRequired,mountOnEnter:PropTypes.bool,unmountOnExit:PropTypes.bool,animationEnteringStyle:PropTypes.object,animationEnteredStyle:PropTypes.object,animationExitingStyle:PropTypes.object,animationExitedStyle:PropTypes.object};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const x$3=e=>{const{id:t,style:n,children:r,component:i="div",className:o,childFactory:a,stackChildren:s,componentChildStyle:l,componentChildClassName:c,...u}=e,d=n$l(),p=e.unstyled||d,f=p&&p.uAnimation,h={id:t,style:n,component:i,childFactory:a,className:n$p(x$7.child({c:f}),o)},m=e__namespace.Children.map(r||null,(e=>e__namespace.createElement(R,{...u,unstyled:p,style:l,className:c},e)));return e__namespace.createElement(TransitionGroup,{...h},m)};x$3.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),childFactory:PropTypes.any,className:PropTypes.string,component:PropTypes.node,id:PropTypes.string,style:PropTypes.any,transitionName:PropTypes.string.isRequired,appear:PropTypes.bool.isRequired,enter:PropTypes.bool.isRequired,exit:PropTypes.bool.isRequired,transitionEnterDuration:PropTypes.number.isRequired,transitionExitDuration:PropTypes.number.isRequired};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const l$7=e=>{const{appear:t=n$8.appear,enter:n=n$8.enter,exit:r=n$8.exit,transitionEnterDuration:i=n$8.transitionEnterDuration,transitionExitDuration:o=n$8.transitionExitDuration,children:a,...s}=e;return e__namespace.createElement(x$3,{transitionName:"fade",appear:t,enter:n,exit:r,transitionEnterDuration:i,transitionExitDuration:o,...s},a)},n$8={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500};l$7.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),childFactory:PropTypes.any,className:PropTypes.string,component:PropTypes.node,id:PropTypes.string,style:PropTypes.any};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const l$6=class extends e__namespace.Component{constructor(){super(...arguments),this.contentId=this.props.contentPanelId,this.childFactory=e=>e__namespace.cloneElement(e,{...e.props,in:e.props.children.props.id===String(this.contentId+this.props.selected)})}render(){const{children:e,selected:t,contentPanelId:n,keepTabsMounted:r,navItemId:i,renderAllContent:o}=this.props,a=e&&"number"==typeof t&&e__namespace.Children.toArray(e)[t],s=n$p("k-tabstrip-content","k-active",a&&a.props.contentClassName);return o?this.renderAllContent(e):e__namespace.createElement("div",{className:s,style:this.props.style,id:n,role:"tabpanel","aria-hidden":r,"aria-labelledby":`${i}-${(null==t?void 0:t.toString())||""}`,tabIndex:0},this.renderContent(e))}renderContent(e){return this.props.keepTabsMounted?e__namespace.Children.map(this.props.children,((e,t)=>this.renderChild(e,t))):this.renderChild(e__namespace.Children.toArray(e)[this.props.selected],this.props.selected)}renderAllContent(e){return e__namespace.Children.map(e,((e,t)=>{const n=e,r=t===this.props.selected,i=n$p("k-tabstrip-content",{"k-active":r},n.props.contentClassName);return e__namespace.createElement("div",{className:i,style:this.props.style,id:`${this.props.contentPanelId}-${t}`,role:"tabpanel","aria-hidden":!r,hidden:!r,"aria-labelledby":`${this.props.navItemId}-${t}`},this.props.animation?e__namespace.createElement(l$7,{key:`${t}-${r}`,appear:!0,enter:!0,exit:!1},n.props.children):n.props.children)}))}renderChild(e,t){const n=t===this.props.selected,r={style:{display:n?void 0:"none"}},i={position:"initial",display:n?void 0:"none"};return e.props.disabled?null:this.props.animation?e__namespace.createElement(l$7,{appear:!0,exit:this.props.keepTabsMounted,style:i,childFactory:this.props.keepTabsMounted?this.childFactory:void 0},e__namespace.createElement("div",{...r,id:String(this.contentId+t),key:t},e.props.children)):e__namespace.createElement("div",{...r,key:t},e.props.children)}};l$6.propTypes={animation:PropTypes.bool,children:PropTypes.oneOfType([PropTypes.element,PropTypes.arrayOf(PropTypes.element)]),selected:PropTypes.number,style:PropTypes.object};let h=l$6;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const p$4=class extends e__namespace.Component{constructor(e){super(e),this.tabStripRef=e__namespace.createRef(),this.itemsNavRef=e__namespace.createRef(),this.onScroll=()=>{const e=this.horizontalScroll(),t=this.itemsNavRef.current;if(!t)return;const n=t.scrollLeft,r=t.clientWidth,i=t.scrollWidth,o=t.scrollTop,a=t.scrollHeight,s=t.clientHeight;let l=null;const c=e?i>r:a>s,u="rtl"===this.props.dir;l=c?e?n+r===i||(u&&r-n)===i?"end":0===n||u&&0==-n?"start":n>0&&n+r<i||-n>0&&r-n<i?"middle":null:a-(o+s)==0?"bottom":0===o?"top":o>0&&a-(o+s)>0?"middle":null:null,this.setState({containerScrollPosition:l})},this.onSelect=e=>{this.props.selected!==e&&this.props.onSelect&&this.props.onSelect({selected:e})},this.onKeyDown=e=>{this.navigation&&this.navigation.triggerKeyboardEvent(e)},this.onKeyboardSelect=e=>{const t=this.children();t&&t[e].props.disabled||this.onSelect(e)},this.renderContent=e=>{const{selected:t,children:n,tabContentStyle:r}=e;return t<e__namespace.Children.count(n)&&t>-1?e__namespace.createElement(h,{index:t,...e,style:r}):null},this.state={containerScrollPosition:null},this.itemsNavRef=e__namespace.createRef()}get contentPanelId(){return this.props.id+"-content-panel-id"}get navItemId(){return this.props.id+"-nav-item-id"}componentDidMount(){var e;const t=this.tabStripRef.current,n=t&&"rtl"===getComputedStyle(t).direction||!1;t&&(this.navigation=new l$g({tabIndex:0,root:this.tabStripRef,rovingTabIndex:!0,focusClass:"k-focus",selectors:[".k-tabstrip .k-tabstrip-item"],keyboardEvents:{keydown:{ArrowLeft:(e,t,r)=>{r.preventDefault();const i=t.elements.indexOf(e),o=0!==i?i-1:t.elements.length-1,a=i!==t.elements.length-1?i+1:0;n?(t.focusNext(e),this.onKeyboardSelect(a)):(t.focusPrevious(e),this.onKeyboardSelect(o))},ArrowRight:(e,t,r)=>{r.preventDefault();const i=t.elements.indexOf(e),o=0!==i?i-1:t.elements.length-1,a=i!==t.elements.length-1?i+1:0;n?(t.focusPrevious(e),this.onKeyboardSelect(o)):(t.focusNext(e),this.onKeyboardSelect(a))},ArrowDown:(e,t,n)=>{n.preventDefault();const r=t.elements.indexOf(e),i=r!==t.elements.length-1?r+1:0;t.focusNext(e),this.onKeyboardSelect(i)},ArrowUp:(e,t,n)=>{n.preventDefault();const r=t.elements.indexOf(e),i=0!==r?r-1:t.elements.length-1;t.focusPrevious(e),this.onKeyboardSelect(i)},Home:(e,t,n)=>{n.preventDefault(),t.focusElement(t.first,e),this.onKeyboardSelect(0)},End:(e,t,n)=>{n.preventDefault(),t.focusElement(t.last,e),this.onKeyboardSelect(t.elements.length-1)}}}}),null==(e=this.navigation)||e.initializeRovingTab(this.props.selected),this.onScroll(),this.resizeObserver=window.ResizeObserver&&new ResizeObserver((()=>this.onScroll())),this.tabStripRef.current&&this.resizeObserver&&this.resizeObserver.observe(this.tabStripRef.current))}componentWillUnmount(){var e;null==(e=this.navigation)||e.removeFocusListener(),this.resizeObserver&&this.resizeObserver.disconnect()}horizontalScroll(){return/top|bottom/.test(this.props.tabPosition||"top")}render(){const e={itemsNavRef:this.itemsNavRef,...this.props,children:this.children(),contentPanelId:this.contentPanelId,renderAllContent:this.props.renderAllContent,navItemId:this.navItemId,onKeyDown:this.onKeyDown,onSelect:this.onSelect,onScroll:this.onScroll,containerScrollPosition:this.state.containerScrollPosition,scrollButtons:"hidden"===this.props.scrollButtons||null===this.state.containerScrollPosition&&"auto"===this.props.scrollButtons?"hidden":"visible"},{scrollable:t,scrollButtons:n,size:r,tabPosition:i,tabIndex:o}=e,a="bottom"===i,s=n$p("k-tabstrip k-pos-relative",{[`k-tabstrip-${l$h.sizeMap[r]||r}`]:r,"k-tabstrip-left":"left"===i,"k-tabstrip-right":"right"===i,"k-tabstrip-bottom":"bottom"===i,"k-tabstrip-top":"top"===i,"k-tabstrip-scrollable":t,"k-tabstrip-scrollable-start k-tabstrip-scrollable-end":t&&"visible"===n,"k-tabstrip-scrollable-start":t&&("auto"===n||!n)&&("end"===this.state.containerScrollPosition||"middle"===this.state.containerScrollPosition),"k-tabstrip-scrollable-end":t&&"auto"===n&&("start"===this.state.containerScrollPosition||"middle"===this.state.containerScrollPosition)},this.props.className);return e__namespace.createElement("div",{id:this.props.id,ref:this.tabStripRef,dir:this.props.dir,className:s,style:this.props.style,onScroll:this.onScroll},!a&&e__namespace.createElement(C$5,{...e,tabIndex:o}),this.renderContent(e),a&&e__namespace.createElement(C$5,{...e,tabIndex:o}))}children(){return e__namespace.Children.toArray(this.props.children).filter((e=>e))}};p$4.propTypes={id:PropTypes.string,animation:PropTypes.bool,children:PropTypes.node,onSelect:PropTypes.func,selected:PropTypes.number,style:PropTypes.object,tabContentStyle:PropTypes.object,tabPosition:PropTypes.string,tabAlignment:PropTypes.string,tabIndex:PropTypes.number,className:PropTypes.string,dir:PropTypes.string,renderAllContent:PropTypes.bool,size:PropTypes.oneOf(["small","medium","large",null]),scrollButtons:PropTypes.oneOf(["auto","visible","hidden"]),scrollButtonsPosition:PropTypes.oneOf(["split","start","end","around","before","after"])},p$4.defaultProps={animation:!0,tabPosition:"top",tabAlignment:"start",keepTabsMounted:!1,buttonScrollSpeed:100,mouseScrollSpeed:10,scrollButtons:"auto",scrollButtonsPosition:"split",size:"medium",renderAllContent:!1};let u$5=p$4;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const s$3=e=>{const t=e__namespace.useRef(null),n=e__namespace.useCallback((t=>{e.onClick&&e.onClick.call(void 0,{syntheticEvent:t,item:e.item,title:e.title})}),[e.item,e.title,e.onClick]);return e__namespace.useEffect((()=>{t.current&&e.focused&&t.current.focus()}),[e.focused]),e__namespace.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:n$p("k-actionsheet-item","k-cursor-pointer",e.disabled&&"k-disabled",e.className),ref:t,role:"button","aria-disabled":e.disabled,onClick:n},e__namespace.createElement("span",{className:"k-actionsheet-action"},e.icon&&e__namespace.createElement("span",{className:"k-icon-wrap"},e.icon),(e.title||e.description)&&e__namespace.createElement("span",{className:"k-actionsheet-item-text"},e.title&&e__namespace.createElement("span",{className:"k-actionsheet-item-title"},e.title),e.description&&e__namespace.createElement("span",{className:"k-actionsheet-item-description"},e.description))))};s$3.propTypes={className:PropTypes.string,style:PropTypes.object,description:PropTypes.string,disabled:PropTypes.bool,group:PropTypes.oneOf(["top","bottom"]),icon:PropTypes.element,title:PropTypes.string};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const o$4="ActionSheetHeader";PropTypes.string,PropTypes.any;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const l$5="ActionSheetFooter",n$7=e=>{const{actionButtonsAlignment:t="stretched",actionButtonsOrientation:n="horizontal",className:r,children:i}=e;return e__namespace.createElement("div",{className:n$p("k-actionsheet-footer",{"k-actions":t||n,"k-actions-horizontal":"horizontal"===n,"k-actions-vertical":"vertical"===n,"k-actions-start":"start"===t&&"horizontal"===n,"k-actions-center":"center"===t&&"horizontal"===n,"k-actions-end":"end"===t&&"horizontal"===n,"k-actions-stretched":"stretched"===t,"k-actions-justify":"justify"===t&&"horizontal"===n},r)},i)};n$7.propTypes={className:PropTypes.string,children:PropTypes.any,actionButtonsOrientation:PropTypes.oneOf(["horizontal","vertical"]),actionButtonsAlignment:PropTypes.oneOf(["start","center","end","stretched","justify"])},n$7.displayName=l$5;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const a$5="ActionSheetContent",e$3=e=>e__namespace.createElement("div",{className:n$p("k-actionsheet-content",e.className)},e.children);e$3.propTypes={className:PropTypes.string},e$3.displayName=a$5,e$3.propTypes={children:PropTypes.any};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const o$3="ActionSheetView",s$2=e$i.forwardRef(((e,t)=>{const n=e$i.useRef(null);return e$i.useImperativeHandle(t,(()=>n),[]),e$i.createElement("div",{ref:n,style:e.style,className:n$p("k-actionsheet-view",e.className)},e.children)}));s$2.displayName="ActionSheetView";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const j$1=e__namespace.forwardRef(((e,t)=>{var n,r;const{navigatableElements:i=S$5.navigatableElements,navigatable:o=S$5.navigatable,position:a=S$5.position,animationDuration:s=300,prefixActions:l,suffixActions:c,filter:u}=e,d=(e,t,n)=>{n.preventDefault(),n.shiftKey?t.focusPrevious(e):t.focusNext(e)},p=(t,n,r)=>{if(t.ariaDisabled)return;const i=!(!t.className||!t.className.indexOf)&&-1!==t.className.indexOf("k-actionsheet-item"),o=n.elements.filter((e=>-1!==e.className.indexOf("k-actionsheet-item")));if(i&&e.onItemSelect){r.preventDefault();const n=e.items[o.indexOf(t)];e.onItemSelect.call(void 0,{syntheticEvent:r,item:n,title:n&&n.title})}e.animation||h()},f=(t,n,r)=>{e.onClose&&(r.preventDefault(),e.onClose.call(void 0,r)),e.animation||h()},h=()=>{w({show:!1})},m=t=>{e.onItemSelect&&e.onItemSelect.call(void 0,t),e.animation||h()},g=e__namespace.useRef(null),v=e__namespace.useRef(null);e__namespace.useImperativeHandle(g,(()=>({props:e,element:v.current}))),e__namespace.useImperativeHandle(t,(()=>g.current));const b=e__namespace.useRef(void 0),y=e__namespace.useRef({bottom:"0",width:"100%"}),$=e__namespace.useRef(void 0),[x,E]=e__namespace.useState({show:!1,slide:!1}),w=e=>{E((t=>({...t,...e})))};e__namespace.useEffect((()=>{e.expand&&!x.show&&w({show:!0})}),[]),e__namespace.useEffect((()=>{const t=v.current;if(e.expand&&!x.show&&w({show:!0}),e.expand&&x.show&&!x.slide&&w({slide:!0}),!e.expand&&x.show&&x.slide&&w({slide:!1}),$!==x&&x.slide&&t&&!e.className&&(t.style.setProperty("--kendo-actionsheet-height","auto"),t.style.setProperty("--kendo-actionsheet-max-height","none")),t&&o){const t=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-view",".k-actionsheet-titlebar"].map((e=>s$k.concat(i).map((t=>`${e} ${t}`)))).flat()];b.current=new l$g({tabIndex:e.tabIndex||0,root:v,rovingTabIndex:!1,selectors:t,keyboardEvents:{keydown:{Tab:d,Enter:p,Escape:f}}}),b.current.focusElement(b.current.first,null)}$.current={...x}}));const D="k-actionsheet-title",_=D,T=null==(n=e.items)?void 0:n.filter((e=>!e.group||"top"===e.group)),S=null==(r=e.items)?void 0:r.filter((e=>"bottom"===e.group)),C=T&&T.length>0&&S&&S.length>0,I=(e=>{const t={},n=[];return e__namespace.Children.forEach(e,(e=>{e&&(e.type.displayName===o$3?n.push(e):t[e.type.displayName]=e)})),n.length>0?n:t})(e.children),P=x.slide&&e__namespace.createElement("div",{className:n$p(`k-actionsheet k-actionsheet-${a}`,e.className),role:"dialog","aria-modal":"true",style:e.style,"aria-hidden":!1,"aria-labelledby":_,ref:v,onKeyDown:e=>{o&&b.current.triggerKeyboardEvent(e)}},Array.isArray(I)?e__namespace.createElement(e__namespace.Fragment,null,I.map((e=>e))):e__namespace.createElement(s$2,null,I[o$4]&&!e.title&&!e.subTitle&&I[o$4],(e.title||e.subTitle||l||c||u)&&e__namespace.createElement("div",{className:"k-actionsheet-titlebar"},e__namespace.createElement("div",{className:"k-actionsheet-titlebar-group"},l&&e__namespace.createElement("div",{className:"k-actionsheet-actions"},l),e__namespace.createElement("div",{className:D,id:_},e__namespace.createElement("div",{className:"k-text-center"},e.title),e.subTitle&&e__namespace.createElement("div",{className:"k-actionsheet-subtitle k-text-center"},e.subTitle)),c&&e__namespace.createElement("div",{className:"k-actionsheet-actions"},c)),u&&e__namespace.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},u)),I[a$5]||e__namespace.createElement("div",{className:"k-actionsheet-content"},e__namespace.createElement("div",{className:"k-list-ul",role:"group"},T&&T.map(((e,t)=>e__namespace.createElement(s$3,{...e,id:t,key:t,item:e,onClick:m}))),C&&e__namespace.createElement("hr",{className:"k-hr"}),S&&S.map(((e,t)=>e__namespace.createElement(s$3,{...e,id:t+((null==T?void 0:T.length)||0),key:t,item:e,onClick:m}))))),I[l$5]));return e__namespace.createElement(e__namespace.Fragment,null,e.expand||x.show?e__namespace.createElement("div",{className:"k-actionsheet-container"},e__namespace.createElement("div",{className:"k-overlay",onClick:t=>{e.onClose&&e.onClose.call(void 0,t),e.animation||h()}}),e.animation?e__namespace.createElement(x$3,{transitionName:x.slide?"slide-up":"slide-down",onExited:h,transitionEnterDuration:"object"==typeof s&&Object.keys(s).length>0&&s.openDuration?Number(s.openDuration):Number(s),transitionExitDuration:"object"==typeof s&&Object.keys(s).length>0&&s.closeDuration?Number(s.closeDuration):Number(s),animationEnteringStyle:e.animationStyles||y.current,animationEnteredStyle:e.animationStyles||y.current,animationExitingStyle:e.animationStyles||y.current,exit:!0,enter:!0,appear:!1},P):P):null)})),S$5={navigatable:!0,navigatableElements:[],position:"bottom"};j$1.propTypes={items:PropTypes.array,subTitle:PropTypes.node,title:PropTypes.node,navigatable:PropTypes.bool,navigatableElements:PropTypes.array,position:PropTypes.oneOf(["top","bottom","left","right","fullscreen"])},j$1.displayName="KendoReactActionSheet";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const e$2=a$b(u$6);e$2.displayName="KendoReactMenu",a$b(u$5),e$2.displayName="KendoReactMenu";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const ze=a$c(),A$1=e__namespace.forwardRef(((e,t)=>{const n=n$m(ze,e),{ariaDescribedBy:r,ariaLabelledBy:i,checked:o,className:a,labelClassName:s,children:l,defaultChecked:c,disabled:u,defaultValue:d,id:p,size:f=$$5.size,rounded:h=$$5.rounded,label:m,labelPlacement:g,name:v,labelOptional:b,onChange:y,onFocus:$,onBlur:x,tabIndex:E,value:w,required:D,valid:_,validationMessage:T,validityStyles:S,autoFocus:C,visited:I,touched:P,modified:O,...N}=n,R=e__namespace.useRef(null),A=e__namespace.useCallback((()=>{R.current&&R.current.focus()}),[]),M=e__namespace.useCallback((()=>({element:R.current,focus:A,get name(){return R.current&&R.current.name}})),[A]);e__namespace.useImperativeHandle(t,M);const[k,L]=e__namespace.useState(c),[j,F]=e__namespace.useState(d),V="boolean"==typeof w||null===w,B=void 0!==o,z=V,H=z?w:j,G=B?o:z?void 0:k,U=void 0===G&&H,W=U?H:G,q=U||z?null===w?w:void 0:w||H,Y=null===W||null===q,K=I$6(),X=i$9(),J=e=>X.toLanguageString(e,I$3[e]),Q=J(v$3),Z=J(f$6),ee=void 0!==_?_:!D||!!G;e__namespace.useEffect((()=>{R.current&&R.current.setCustomValidity&&R.current.setCustomValidity(ee?"":T||Q)}),[ee,T,Q]);const te=e__namespace.useCallback(((e,t)=>{!z&&!u&&(F(t),!B&&!u&&L(t)),y&&!u&&v$8(y,e,{...M(),value:t},{value:t})}),[B,u,y,z,M]),ne=e__namespace.useCallback((e=>{const t=e.target.checked;te(e,t)}),[te,w]),re=e__namespace.useCallback((e=>{if(u)return;const{keyCode:t}=e,n=e.currentTarget.checked;t===e$g.space&&(e.preventDefault(),e.stopPropagation(),te(e,!n))}),[u,te]),ie=e__namespace.useCallback((e=>{if(u)return;const{keyCode:t}=e;t===e$g.space&&e.preventDefault()}),[u]),oe=e__namespace.useCallback((e=>{$&&!u&&v$8($,e,M(),void 0)}),[$,u,M]),ae=e__namespace.useCallback((e=>{x&&!u&&v$8(x,e,M(),void 0)}),[x,u,M]),se=u$f(R,n.dir),le=n$p("k-checkbox-wrap",a),ce={type:"checkbox",className:n$p("k-checkbox",{[`k-checkbox-${l$h.sizeMap[f]||f}`]:f,[`k-rounded-${l$h.roundedMap[h]||h}`]:h,"k-indeterminate":Y,"k-disabled":u,"k-invalid k-invalid":!(ee||void 0!==S||!0===S)}),ref:R,name:v,id:p||K,disabled:u,required:void 0!==D&&D,tabIndex:e$e(E,u),role:"checkbox",checked:!!W,"aria-describedby":r,"aria-labelledby":i,"aria-disabled":u||void 0,"aria-required":D,autoFocus:C,...N,onChange:ne,onKeyDown:re,onKeyUp:ie,onFocus:oe,onBlur:ae},ue=void 0===q?e__namespace.createElement("input",{...ce}):e__namespace.createElement("input",{...ce,value:V?void 0:null===q?"":q}),de=void 0!==m?e__namespace.createElement("label",{className:n$p("k-checkbox-label",s),htmlFor:p||K,style:{userSelect:"none"}},m,b&&e__namespace.createElement("span",{className:"k-label-optional"},Z)):null,pe=e__namespace.createElement("span",{className:le},ue,l);return e__namespace.createElement(e__namespace.Fragment,null,"before"===g?e__namespace.createElement("div",{dir:"rtl"},pe,de):"after"===g?e__namespace.createElement("div",{dir:"ltr"},pe,de):e__namespace.createElement("div",{dir:se},pe,de))}));A$1.propTypes={checked:PropTypes.bool,className:PropTypes.string,defaultChecked:PropTypes.bool,defaultValue:PropTypes.any,dir:PropTypes.string,disabled:PropTypes.bool,id:PropTypes.string,size:PropTypes.oneOf([null,"small","medium","large"]),rounded:PropTypes.oneOf([null,"small","medium","large"]),ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,label:PropTypes.any,labelPlacement:PropTypes.string,labelOptional:PropTypes.bool,name:PropTypes.string,tabIndex:PropTypes.number,value:PropTypes.any,validationMessage:PropTypes.string,required:PropTypes.bool,validate:PropTypes.bool,valid:PropTypes.bool,autoFocus:PropTypes.bool,onChange:PropTypes.func,onFocus:PropTypes.func,onBlur:PropTypes.func};const $$5={size:"medium",rounded:"medium"};A$1.displayName="KendoCheckbox";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const Q$4=a$c(),x$2=e__namespace.forwardRef(((e,t)=>{const n=n$m(Q$4,e),{ariaDescribedBy:r,checked:i,children:o,className:a,disabled:s,id:l,size:c=V$2.size,label:u,labelPlacement:d,name:p,style:f,tabIndex:h,value:m,valid:g,onChange:v,onFocus:b,onBlur:y,required:$,...x}=n,E=n$l(),w=E&&E.uRadioButton,D=e__namespace.useRef(null),_=e__namespace.useCallback((()=>{D.current&&D.current.focus()}),[]),T=e__namespace.useCallback((()=>({element:D.current,focus:_})),[_]);e__namespace.useImperativeHandle(t,T);const S=I$6(),C=e__namespace.useCallback((e=>{v$8(v,e,T(),{value:m})}),[v,m,s]),I=e__namespace.useCallback((e=>{b&&!s&&v$8(b,e,T(),void 0)}),[b,s]),P=e__namespace.useCallback((e=>{y&&!s&&v$8(y,e,T(),void 0)}),[y,s]),O={type:"radio",id:l||S,name:p,className:n$p(j$2.input({c:w,size:c,invalid:!1===g,checked:i}),a),ref:D,disabled:s,tabIndex:e$e(h,s),checked:i,style:f,"aria-describedby":r,"aria-required":$,value:m,onChange:C,onFocus:I,onBlur:P,...x},N=e__namespace.createElement(e__namespace.Fragment,null,void 0!==u?e__namespace.createElement("label",{className:n$p(j$2.label({c:w})),htmlFor:l||S,style:{userSelect:"none"},"aria-label":u},u):null),R=e__namespace.createElement("span",{className:n$p(j$2.wrap({c:w}))},e__namespace.createElement("input",{...O}));return"before"===d?e__namespace.createElement(e__namespace.Fragment,null,N,R,o):e__namespace.createElement(e__namespace.Fragment,null,R,N,o)}));x$2.propTypes={ariaDescribedBy:PropTypes.string,checked:PropTypes.bool,className:PropTypes.string,disabled:PropTypes.bool,id:PropTypes.string,size:PropTypes.oneOf([null,"small","medium","large"]),label:PropTypes.string,labelPlacement:PropTypes.string,name:PropTypes.string,style:PropTypes.object,tabIndex:PropTypes.number,value:PropTypes.any,valid:PropTypes.bool,onChange:PropTypes.func,onFocus:PropTypes.func,onBlur:PropTypes.func};const V$2={size:"medium"};x$2.displayName="KendoRadioButton";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const _$2=a$c(),G$4=e__namespace.forwardRef(((e,t)=>{const n=n$m(_$2,e),{id:r,ariaLabelledBy:i,ariaDescribedBy:o,className:a,data:s,defaultValue:l,disabled:c,name:u,labelPlacement:d,layout:p,style:f,value:h,valid:m,item:g=$$4.item,onChange:v,onFocus:b}=n,y=n$l(),$=y&&y.uRadioGroup,x=e__namespace.useRef(null),E=e__namespace.useCallback((()=>{x.current&&e$f(x.current)}),[]),w=e__namespace.useCallback((()=>({element:x.current,focus:E})),[E]);e__namespace.useImperativeHandle(t,w);const[D,_]=e__namespace.useState(l),T=void 0!==h,S=T?h:D,C=e__namespace.useCallback((e=>{const t=e.value;!T&&!c&&_(t),v&&!c&&v$8(v,e.syntheticEvent,w(),{value:t})}),[_,v,c]),I=e__namespace.useCallback((e=>{b&&!c&&v$8(b,e.syntheticEvent,w(),void 0)}),[b,c]),P=I$6(),O=n$p(A$5.ul({c:$,horizontal:"horizontal"===p,vertical:"vertical"===p||void 0===p}),a),N=u$e(x,n.dir),R=s&&s.map(((e,t)=>{const n=S===e.value,r=null==S,i={...e,valid:m,checked:n,disabled:!(!e.disabled&&!c),labelPlacement:e.labelPlacement?e.labelPlacement:d,tabIndex:e.tabIndex?e.tabIndex:r&&0===t||n?0:-1,index:t,name:u||P,required:e.required,onChange:C,onFocus:I};return e__namespace.createElement(g,{className:n$p(A$5.item({c:$,disabled:i.disabled||c})),key:t,role:"none"},e__namespace.createElement(x$2,{...i}))}));return e__namespace.createElement("ul",{id:r,role:"radiogroup",className:O,ref:x,dir:N,style:f,"aria-labelledby":i,"aria-describedby":o},R)})),$$4={item:e=>e__namespace.createElement("li",{...e})};G$4.propTypes={ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,className:PropTypes.string,data:PropTypes.arrayOf(PropTypes.object),defaultValue:PropTypes.any,dir:PropTypes.string,disabled:PropTypes.bool,labelPlacement:PropTypes.string,layout:PropTypes.string,name:PropTypes.string,style:PropTypes.object,value:PropTypes.any,onChange:PropTypes.func,onFocus:PropTypes.func},G$4.displayName="KendoRadioGroup";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const p$3=e__namespace.forwardRef(((e,t)=>{const n=e__namespace.useRef(null),r=e__namespace.useRef(null),i=n$l(),o=i&&i.uInput,a=n$p(F$1.clearButton({c:o}),e.className);return e__namespace.useImperativeHandle(n,(()=>({element:r.current}))),e__namespace.useImperativeHandle(t,(()=>n.current)),e__namespace.createElement("span",{...e,className:a})}));p$3.displayName="KendoReactInputClearValue";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const m$1=e__namespace.forwardRef((({orientation:e="vertical",...t},n)=>{const r=e__namespace.useRef(null),i=e__namespace.useRef(null);return e__namespace.useImperativeHandle(r,(()=>({element:i.current}))),e__namespace.useImperativeHandle(n,(()=>r.current)),e__namespace.createElement("span",{...t,className:n$p("k-input-separator",t.className,`k-input-separator-${e}`)})}));m$1.displayName="KendoReactInputSeparator";var Direction,cloneDate=function(e){return e?new Date(e.getTime()):null},adjustDST=function(e,t){var n=cloneDate(e);return 0===t&&23===n.getHours()&&n.setHours(n.getHours()+2),n},addDays=function(e,t){var n=cloneDate(e);return n.setDate(n.getDate()+t),adjustDST(n,e.getHours())},createDate=function(e,t,n,r,i,o,a){void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=0);var s=new Date(e,t,n,r,i,o,a);return e>-1&&e<100&&s.setFullYear(s.getFullYear()-1900),adjustDST(s,r)},lastDayOfMonth=function(e){var t=createDate(e.getFullYear(),e.getMonth()+1,1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return addDays(t,-1)},MONTHS_LENGTH=12,normalize=function(e,t){return e.getMonth()!==t?lastDayOfMonth(addMonths(e,-1)):e},addMonths=function(e,t){var n=cloneDate(e),r=(n.getMonth()+t)%MONTHS_LENGTH,i=(MONTHS_LENGTH+r)%MONTHS_LENGTH;return n.setMonth(n.getMonth()+t),normalize(adjustDST(n,e.getHours()),i)},setYear=function(e,t){var n=e.getMonth(),r=createDate(t,n,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return r.getMonth()===n?r:lastDayOfMonth(addMonths(r,-1))},addYears=function(e,t){return adjustDST(setYear(e,e.getFullYear()+t),e.getHours())},addCenturies=function(e,t){return addYears(e,100*t)},addDecades=function(e,t){return addYears(e,10*t)},addWeeks=function(e,t){return addDays(e,7*t)},MS_PER_DAY=864e5;!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Direction||(Direction={}));var Day,dayOfWeek=function(e,t,n){void 0===n&&(n=Direction.Forward);var r=cloneDate(e),i=(t-r.getDay()+7*n)%7;return r.setDate(r.getDate()+i),adjustDST(r,e.getHours())};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(Day||(Day={}));var normalizeYear=function(e,t){return setYear(e,t(e.getFullYear()))},firstDecadeOfCentury=function(e){return normalizeYear(e,(function(e){return e-e%100}))},durationInCenturies=function(e,t){return(firstDecadeOfCentury(t).getFullYear()-firstDecadeOfCentury(e).getFullYear())/100},firstYearOfDecade=function(e){return normalizeYear(e,(function(e){return e-e%10}))},durationInDecades=function(e,t){return(firstYearOfDecade(t).getFullYear()-firstYearOfDecade(e).getFullYear())/10},durationInMonths=function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},durationInYears=function(e,t){return t.getFullYear()-e.getFullYear()},firstDayOfMonth=function(e){return createDate(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},setMonth=function(e,t){var n=e.getDate(),r=createDate(e.getFullYear(),t,n,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return r.getDate()===n?r:lastDayOfMonth(addMonths(r,-1))},firstMonthOfYear=function(e){return setMonth(e,0)},getDate=function(e){return createDate(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0)},isEqual$3=function(e,t){return!e&&!t||e&&t&&e.getTime()===t.getTime()},isEqualDate=function(e,t){return!e&&!t||e&&t&&isEqual$3(getDate(e),getDate(t))},lastDecadeOfCentury=function(e){return normalizeYear(e,(function(e){return e-e%100+90}))},lastMonthOfYear=function(e){return setMonth(e,11)},lastYearOfDecade=function(e){return normalizeYear(e,(function(e){return e-e%10+9}))},prevDayOfWeek=function(e,t){return dayOfWeek(e,t,Direction.Backward)},moveDateToWeekStart=function(e,t){return t!==Day.Monday?addDays(prevDayOfWeek(e,t),4):addDays(e,4-(e.getDay()||7))},calcWeekInYear=function(e,t){var n=createDate(e.getFullYear(),0,1,-6),r=moveDateToWeekStart(e,t).getTime()-n.getTime(),i=Math.floor(r/MS_PER_DAY);return 1+Math.floor(i/7)},weekInYear=function(e,t){void 0===t&&(t=Day.Monday),e=getDate(e);var n=addDays(e,-7),r=addDays(e,7),i=calcWeekInYear(e,t);return 0===i?calcWeekInYear(n,t)+1:53===i&&calcWeekInYear(r,t)>1?1:i};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const a$4=e=>Math.max(e,0);let f$2=class{constructor(e){this.offset=e}},d$4=class{constructor(e){this.skip=e}},w$4=class{constructor(e,t){this.onScrollAction=e,this.onPageAction=t,this.direction="vertical",this.firstLoaded=0,this.lastLoaded=0,this.lastScrollTop=0,this.take=0,this.total=0,this.rowHeightService=null,this.bottomOffset=0,this.topOffset=0}create(e,t,n,r,i=0,o=0,a="vertical"){this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=r,this.lastScrollTop=0,this.topOffset=i,this.bottomOffset=o,this.direction=a;const s=this.rowsForHeight(i),l=a$4(t-s);this.onScrollAction(new f$2(this.rowOffset(l))),this.onPageAction(new d$4(l))}onScroll({scrollLeft:e,scrollTop:t,offsetHeight:n,offsetWidth:r}){const i="vertical"===this.direction?t:e,o="vertical"===this.direction?n:r;if(this.lastScrollTop===i||!this.rowHeightService)return;const a=this.lastScrollTop>=i;this.lastScrollTop=i;const s=this.rowHeightService.index(a$4(i-this.topOffset)),l=this.rowHeightService.index(a$4(i+o-this.bottomOffset));if(!a&&l>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=s,this.onScrollAction(new f$2(this.rowOffset(s))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new d$4(this.firstLoaded))),a&&s<=this.firstLoaded){const e=Math.floor(.3*this.take);this.firstLoaded=a$4(s-e),this.onScrollAction(new f$2(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),this.onPageAction(new d$4(this.firstLoaded))}}rowOffset(e){return this.rowHeightService?this.rowHeightService.offset(e)+this.topOffset:0}rowsForHeight(e){return this.rowHeightService?Math.ceil(e/this.rowHeightService.height(0)):0}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const T$2=(e,t,n)=>Math.min(Math.abs(t-e),n),A=17,C$4=10,x$1={1:e=>t=>t+e,0:e=>t=>t-e},I$2={1:e=>t=>Math.min(t,e),0:e=>t=>Math.max(t,e)},M$1={1:e=>t=>t<e,0:e=>t=>t>e},a$3=class e extends e__namespace.Component{constructor(t){super(t),this.rowHeightService=null,this.scrollContainer=null,this.lastDirection=null,this.lastTotal=0,this.lastTake=0,this.animationInProgress=!1,this.restrictScroll=!1,this.scrollTo=e=>{const t="vertical"===this.direction?"scrollTop":"scrollLeft";if(!this.scrollContainer)return;const n=this.scrollContainer[t];this.restrictScroll&&"scrollTop"===t&&(!Number.isInteger(n)||!Number.isInteger(e))&&Math.abs(n-e)<10||(this.scrollContainer[t]=e)},this.scrollToIndex=e=>{this.animationInProgress=!1,this.rowHeightService&&this.scrollTo(this.rowHeightService.offset(e))},this.animateToIndex=e=>{if(!this.rowHeightService||!window)return;window.cancelAnimationFrame(this.cancelAnimation);const t=this.rowHeightService.offset(e),n=this.getContainerScrollDirection(t),{start:r,end:i}=this.scrollRange(t,n);if(r===i)return;const o=this.scrollStep(r,i),a=x$1[n](o),s=I$2[n](i),l=M$1[n](a(i)),c=e=>{this.animationInProgress=!0;const t=a(e);this.scrollTo(s(t)),l(t)?this.cancelAnimation=window.requestAnimationFrame((()=>{c(t)})):this.animationInProgress=!1};this.cancelAnimation=window.requestAnimationFrame((()=>{c(r)}))},this.scrollToBottom=()=>{this.rowHeightService&&this.scrollTo(this.rowHeightService.totalHeight()+this.props.bottomOffset)},this.scrollStep=(t,n)=>{const r=this.props.scrollDuration||e.defaultProps.scrollDuration;return Math.abs(n-t)/(r/A)},this.scrollRange=(e,t)=>{const n=this.containerScrollPosition;if(parseInt(`${e}`,10)===parseInt(`${n}`,10))return{start:e,end:e};const r=this.containerMaxScroll(),i=0===t?1:-1,o=T$2(n,e,this.props.maxScrollDifference||0),a=Math.min(e,r);return{start:Math.min(Math.max(a+i*o,0),r),end:a}},this.containerMaxScroll=()=>this.containerScrollSize-this.containerOffsetSize,this.getContainerScrollDirection=e=>e<this.containerScrollPosition?0:1,this.initServices=(e=this.props)=>{const t="vertical"===this.direction?e.itemHeight:e.itemWidth;void 0!==t&&(this.rowHeightService=new g$a(e.total,t),this.scrollerService.create(this.rowHeightService,e.skip,e.take,e.total,e.topOffset,this.scrollOffsetSize,this.direction))},this.getContainerProperty=e=>this.scrollContainer?this.scrollContainer[e]:0,this.handleScroll=e=>{if(!this.scrollContainer||!this.rowHeightService)return;const t=e.target;this.scrollerService.onScroll({scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,offsetHeight:t.offsetHeight,offsetWidth:t.offsetWidth});const n=this.rowHeightService.index(this.containerScrollPosition-this.props.topOffset),{onScrollAction:r}=this.props,i={index:n,target:t,scrollAction:this.scrollAction,pageAction:this.pageAction,animationInProgress:this.animationInProgress};this.props.onScroll&&this.props.onScroll.call(void 0,e),r&&r.call(void 0,i),this.scrollAction=void 0,this.pageAction=void 0},this.handleScrollAction=e=>{this.scrollAction=e},this.handlePageAction=e=>{this.pageAction=e},this.scrollerService=new w$4(this.handleScrollAction,this.handlePageAction),this.restrictScroll=Number.parseFloat(e__namespace.version)>17}get element(){return this.scrollContainer}get containerOffsetSize(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}get direction(){return void 0!==this.props.direction?this.props.direction:e.defaultProps.direction}get scrollOffsetSize(){return void 0!==this.props.scrollOffsetSize?this.props.scrollOffsetSize:e.defaultProps.scrollOffsetSize}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(e){return this.rowHeightService?this.rowHeightService.index(e):0}itemOffset(e){return this.rowHeightService?this.rowHeightService.offset(e):0}isIndexVisible(e){if(!this.rowHeightService)return!1;const t=this.containerScrollPosition,n=t+this.containerOffsetSize,r=this.rowHeightService.offset(e),i=r+this.rowHeightService.height(e);return r>=t&&i<=n}isListScrolled(e){return!!this.rowHeightService&&this.containerScrollPosition!==this.rowHeightService.offset(e)}componentDidMount(){const{onMount:e}=this.props;e&&e.call(void 0,this)}render(){const{total:e,take:t,bottomOffset:n,className:r,tabIndex:i,role:o,children:a,unstyled:s}=this.props,l=s&&s.uCalendar;(this.lastTotal!==e||this.lastDirection!==this.direction||this.lastTake!==t)&&(this.initServices(),this.lastTotal=e,this.lastDirection=this.direction,this.lastTake=t);const c=`${(this.rowHeightService?this.rowHeightService.totalHeight():0)+n}`,u="vertical"===this.direction?{height:`${c}px`}:{width:`${c}px`},d=n$p(j$3.scrollableSelector({c:l}),j$3.scrollable({c:l,horizontal:"horizontal"===this.direction}),r),p=n$p(j$3.scrollablePlaceholder({c:l,horizontal:"horizontal"===this.direction}));return e__namespace.createElement("div",{ref:e=>{this.scrollContainer=e},onScroll:this.handleScroll,className:d,tabIndex:i,role:o},a,e__namespace.createElement("div",{style:u,className:p}))}};a$3.propTypes={bottomOffset:PropTypes.number.isRequired,className:PropTypes.string,direction:PropTypes.oneOf(["horizontal","vertical"]),forceScroll:PropTypes.bool,itemHeight:PropTypes.number,itemWidth:PropTypes.number,maxScrollDifference:PropTypes.number,onScroll:PropTypes.func,onScrollAction:PropTypes.func,scrollDuration:PropTypes.number,scrollOffsetSize:PropTypes.number,skip:PropTypes.number.isRequired,tabIndex:PropTypes.number,take:PropTypes.number.isRequired,topOffset:PropTypes.number.isRequired,total:PropTypes.number.isRequired,role:PropTypes.string},a$3.defaultProps={direction:"vertical",forceScroll:!1,scrollOffsetSize:0,maxScrollDifference:100,scrollDuration:100};let w$3=a$3;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const y$2=(e,t)=>{const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(e[i]!==t[i])return!1}return!0};let L$2=class extends e__namespace.Component{constructor(){super(...arguments),this.handleClick=e=>{const{onClick:t,value:n}=this.props;t&&t.call(void 0,n,e)},this.handleMouseEnter=()=>{const{onMouseEnter:e,value:t}=this.props;e&&e.call(void 0,t)},this.handleMouseLeave=()=>{const{onMouseLeave:e,value:t}=this.props;e&&e.call(void 0,t)}}shouldComponentUpdate(e){const{value:t,...n}=this.props,{value:r,...i}=e;return!((!t||!r||t.getTime()===r.getTime())&&y$2(n,i))}render(){const{className:e,formattedValue:t,isWeekend:n,isFocused:r,isInRange:i,isSelected:o,isRangeStart:a,isRangeMid:s,isRangeEnd:l,isRangeSplitStart:c,isRangeSplitEnd:u,isToday:d,isDisabled:p,view:f,value:h,isOtherMonth:m,showOtherMonthDays:g,allowReverse:v,unstyled:b,...y}=this.props,$="end"===this.props.activeRangeEnd&&l,x="start"===this.props.activeRangeEnd&&a,E=b&&b.uCalendar,w=n$p(j$3.td({c:E,rangeStart:!m&&!v&&a,rangeEnd:!m&&!v&&l,rangeMid:!m&&s,rangeSplitEnd:!m&&u,rangeSplitStart:!m&&c,active:x||$,focused:r,selected:!m&&(o||a||l),today:!m&&d,weekend:n,disabled:p,isOtherMonth:m,isEmpty:!g&&m}),e);return!g&&m?e__namespace.createElement("td",{role:"gridcell",className:w}):e__namespace.createElement("td",{...y,className:w,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},e__namespace.createElement("span",{className:n$p(j$3.link({c:E}))},this.props.children))}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const f$1=e=>{const{className:t,firstDate:n,weekDays:r,...i}=e,o=n$l(),a=o&&o.uCalendar;return e__namespace.createElement("td",{className:n$p(j$3.td({c:a,isWeek:!0}),t),...i,onClick:t=>{const{onClick:i}=e;i&&t&&i.call(void 0,n,r||[],t)}},e.children)};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */var c$3=(e=>(e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century",e))(c$3||{});
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const l$4={start:null,end:null};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */function W$1(e){const t=(t,n,r,...i)=>null===n[r]?null:(t?e.isRequired:e)(n,r,...i),n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}const d$3=(e,t,n)=>void 0===t||void 0===n||t<=e&&e<=n?e:e<t?t:n,k$2=new Date(1980,0,1),H$1=new Date(1900,0,1),L$1=new Date(2099,11,31),q=new Date(1980,0,1),G$3=new Date(1980,0,1,23,59,59),O=(e,t)=>{const n=cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},X=()=>getDate(new Date),j=(e,t,n)=>!e||!(t&&t>e||n&&n<e),P$3=(e,t,n)=>null===e||!(t&&getDate(t)>getDate(e)||n&&getDate(n)<getDate(e)),Y=(e,t)=>{const{start:n,end:r}=t||l$4;return!(!n||!r)&&(n<e&&e<r)},z$1=(e,t,n=1)=>{const r=[];for(let i=e;i<t;i+=n)r.push(i);return r},B=(e,t,n)=>t.getTime()<=e.getTime()&&e.getTime()<=n.getTime(),J$2=(e,t)=>e.slice(t).concat(e.slice(0,t)),K$2=(e,t,n)=>e&&(t&&e<t?cloneDate(t):n&&e>n?cloneDate(n):e),Q$3=e=>(t,n="",r={})=>{const i=document.createElement(e);return i.className=n,Object.keys(r).forEach((e=>{i.style[e]=r[e]})),"string"==typeof t?i.innerHTML=t||"":(t||[]).forEach((e=>e&&i.appendChild(e))),i}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */;let r$3=class{constructor(e){this.intl=e}getWeekNames(e=!1,t){const n=J$2(this.intl.dateFormatNames({nameType:null!=t?t:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(n):n}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const y$1=(e,t)=>{const n=t;return e__namespace.createElement("td",{key:e,role:"gridcell",className:n$p(j$3.td({c:n,isEmpty:!0}))}," ")},u$4=class e extends e__namespace.Component{constructor(){super(...arguments),this.intl=null,this.weekService=null,this.buildWeekNumber=(e,t)=>{if(!this.firstDate(e))return y$1(`week-cell-${t}`);const n=this.firstDate(e),r=this.getWeekNumber(n),i=`kendo-react-calendar-week-cell-${r}`,o={value:r,firstDate:n,weekDays:e,unstyled:this.props.unstyled,onClick:this.handleWeekCellClick};return this.props.weekCell?e__namespace.createElement(this.props.weekCell,{...o,key:i},r):e__namespace.createElement(f$1,{...o,key:i},r)},this.buildRow=e=>e.map(((e,t)=>{if(!e)return y$1(t);const n={"aria-selected":e.isSelected},r=`kendo-react-calendar-cell-${e.value.getTime()}`,i={...n,...e,isDisabled:!e.isInRange,view:this.props.activeView,showOtherMonthDays:this.props.showOtherMonthDays,allowReverse:this.props.allowReverse,unstyled:this.props.unstyled,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave};return this.props.cell?e__namespace.createElement(this.props.cell,{...i,key:r},e.formattedValue):e__namespace.createElement(L$2,{...i,key:r},e.formattedValue)})),this.firstDate=e=>{const t=this.firstWeekDateContext(e);return t?t.value:null},this.firstWeekDateContext=e=>{if(!this.weekNumber)return null;let t=0,n=e[t];for(;!n&&t<e.length;)n=e[++t];return n},this.handleClick=(e,t)=>{const{onChange:n}=this.props;if(n&&t){const r={value:cloneDate(e),target:this,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};n.call(void 0,r)}},this.handleWeekCellClick=(e,t,n)=>{const{onWeekSelect:r}=this.props,i=t.findIndex((t=>t&&t.value===e));r&&n&&r.call(void 0,e,i,n)},this.handleMouseEnter=e=>{const{onCellEnter:t}=this.props;t&&t.call(void 0,cloneDate(e))},this.handleMouseLeave=e=>{const{onCellLeave:t}=this.props;t&&t.call(void 0,cloneDate(e))}}get min(){return this.props.min}get max(){return this.props.max}get isHorizontal(){return"horizontal"===this.props.direction}get isMonthView(){return this.props.activeView===c$3.month}get weekNumber(){return!(!this.props.showWeekNumbers||this.props.activeView!==c$3.month)}get selectedDate(){return void 0!==this.props.selectedDate?this.props.selectedDate:e.defaultProps.selectedDate}render(){const{service:e,weekDaysFormat:t,cellUID:n,focusedDate:r,bus:i,activeView:o,selectionRange:a,unstyled:s}=this.props,l=s&&s.uCalendar;this.intl=l$f(this),this.weekService=new r$3(this.intl);const c=this.weekService.getWeekNames(this.weekNumber,t),u=e.rowLength(this.weekNumber),d=e.title(this.props.viewDate),p=X(),f=O(this.props.viewDate,p),h=e.data({cellUID:n,min:this.min,max:this.max,focusedDate:r,isActiveView:!i.canMoveDown(o),selectedDate:this.selectedDate,selectionRange:a,viewDate:f});return e__namespace.createElement(e__namespace.Fragment,null,this.isMonthView&&this.isHorizontal&&e__namespace.createElement("thead",{role:"rowgroup",className:n$p(j$3.thead({c:l}))},e__namespace.createElement("tr",{role:"row",className:n$p(j$3.tr({c:l}))},c.map(((e,t)=>e__namespace.createElement("th",{key:t,className:n$p(j$3.th({c:l}))},e))))),e__namespace.createElement("tbody",{role:"rowgroup",className:n$p(j$3.tbody({c:l}))},!this.isHorizontal&&e__namespace.createElement("tr",{role:"presentation",className:n$p(j$3.tr({c:l}))},e__namespace.createElement("th",{scope:"col",colSpan:u,className:n$p(j$3.caption({c:l}))},d)),h.map(((e,t)=>e__namespace.createElement("tr",{role:"row",className:n$p(j$3.tr({c:l})),key:t},this.weekNumber&&this.buildWeekNumber(e,t),this.buildRow(e))))))}getWeekNumber(e){return this.weekNumber&&this.intl?weekInYear(e,this.intl.firstDay()):null}};u$4.propTypes={activeRangeEnd:PropTypes.oneOf(["start","end",null]),activeView:PropTypes.number.isRequired,cellUID:PropTypes.string.isRequired,direction:PropTypes.oneOf(["horizontal","vertical"]),focusedDate:PropTypes.instanceOf(Date).isRequired,max:PropTypes.instanceOf(Date).isRequired,min:PropTypes.instanceOf(Date).isRequired,onChange:PropTypes.func,selectedDate:PropTypes.oneOfType([PropTypes.instanceOf(Date),PropTypes.arrayOf(PropTypes.instanceOf(Date))]),showWeekNumbers:PropTypes.bool,showOtherMonthDays:PropTypes.bool,viewDate:PropTypes.instanceOf(Date).isRequired},u$4.defaultProps={direction:"vertical",selectedDate:X(),showWeekNumbers:!1};let f=u$4;p$c(f);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const n$6=e=>{const{view:t,...n}=e;return e__namespace.createElement(k$6,{type:"button",fillMode:"flat",themeColor:"primary",...n},e.children)},t$2=class e extends e__namespace.Component{constructor(){super(...arguments),this.getTitle=()=>{if(!this.props.currentDate)return"";const e=this.rangeLength-1,t=this.props.service.title(this.props.currentDate),n=this.props.service.addToDate(this.props.currentDate,e);return e<1||!this.props.service.isInRange(n,this.min,this.max)?t:`${t} - ${this.props.service.title(n)}`},this.handleTitleClick=e=>{this.canMoveUp&&this.props.bus.moveUp(this.props.activeView,e)}}get min(){return void 0!==this.props.min?this.props.min:e.defaultProps.min}get max(){return void 0!==this.props.max?this.props.max:e.defaultProps.max}get rangeLength(){return void 0!==this.props.rangeLength?this.props.rangeLength:e.defaultProps.rangeLength}get canMoveUp(){return this.props.bus.canMoveUp(this.props.activeView)}render(){const{activeView:e,commands:t,unstyled:n}=this.props,r=n&&n.uCalendar,i=this.getTitle(),o={children:i,value:i,view:e,className:n$p(j$3.title({c:r})),onClick:this.handleTitleClick,disabled:!this.canMoveUp},a={headerTitleProps:o,commands:t},s=this.props.headerTitle?e__namespace.createElement(this.props.headerTitle,{...o},i):e__namespace.createElement(n$6,{...o},i),l=this.props.header?e__namespace.createElement(this.props.header,{...a}):e__namespace.createElement(e__namespace.Fragment,null,s,e__namespace.createElement("span",{className:n$p(j$3.spacer({c:r}))}),e__namespace.createElement("span",{className:n$p(j$3.nav({c:r}))},this.props.commands));return e__namespace.createElement("div",{className:n$p(j$3.header({c:r,vertical:this.props.verticalView}))},l)}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */t$2.propTypes={activeView:PropTypes.number.isRequired,currentDate:PropTypes.instanceOf(Date).isRequired,max:PropTypes.instanceOf(Date).isRequired,min:PropTypes.instanceOf(Date).isRequired,rangeLength:PropTypes.number},t$2.defaultProps={rangeLength:1,min:H$1,max:L$1};let l$3=t$2;v$4(l$3);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const e$1="multiviewcalendar.prevView",t$1="multiviewcalendar.nextView",a$2="dateinput.increment",c$2="dateinput.decrement",n$5="dateinput.clear",i$3="calendar.today",r$2="datepicker.toggleCalendar",o$2="daterangepicker.swapStartEnd",l$2="daterangepicker.start",s$1="daterangepicker.end",d$2="daterangepicker.separator",g$2="datetimepicker.toggleDateTimeSelector",p$2="timepicker.now",m="timepicker.selectNow",k$1="timepicker.cancel",w$2="timepicker.set",S$4="timepicker.toggleTimeSelector",T$1="timepicker.toggleClock",v$2="datetimepicker.date",u$3="datetimepicker.time",C$3="datetimepicker.cancel",N$1="datetimepicker.set",P$2="daterangepicker.cancel",V$1="daterangepicker.set",x={[i$3]:"Today",[p$2]:"NOW",[w$2]:"Set",[k$1]:"Cancel",[v$2]:"Date",[u$3]:"Time",[C$3]:"Cancel",[N$1]:"Set",[P$2]:"Cancel",[V$1]:"Set",[l$2]:"Start",[s$1]:"End",[d$2]:" ",[m]:"Select Now",[S$4]:"Toggle TimeSelector",[T$1]:"Toggle Clock",[a$2]:"Increase value",[c$2]:"Decrease value",[n$5]:"clear",[r$2]:"Toggle calendar",[e$1]:"Navigate to previous view",[t$1]:"Navigate to next view",[o$2]:"Swap start and end values",[g$2]:"Toggle date-time selector"},t=class e extends e__namespace.Component{constructor(){super(...arguments),this.localization=null,this.handleClick=e=>{if(this.todayIsInRange&&this.props.onClick){const t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:K$2(X(),this.min,this.max),target:this,isTodayClick:!0};this.props.onClick.call(void 0,t)}}}get min(){return void 0!==this.props.min?this.props.min:e.defaultProps.min}get max(){return void 0!==this.props.max?this.props.max:e.defaultProps.max}get todayIsInRange(){return j(X(),getDate(this.min),getDate(this.max))}render(){const{disabled:e,tabIndex:t,unstyled:n}=this.props,r=n&&n.uCalendar;this.localization=s$a(this);const i=this.localization.toLanguageString(i$3,x[i$3]),o=n$p(j$3.today({c:r,disabled:e}));return e__namespace.createElement(k$6,{className:o,onClick:this.handleClick,tabIndex:t,fillMode:"flat",themeColor:"base",role:"link"},i)}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */t.propTypes={max:PropTypes.instanceOf(Date).isRequired,min:PropTypes.instanceOf(Date).isRequired,onClick:PropTypes.func,disabled:PropTypes.bool},t.defaultProps={min:H$1,max:L$1};let a$1=t;v$4(a$1);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const M=5,d$1=class e extends e__namespace.Component{constructor(e){super(e),this.virtualization=null,this.calendarView=null,this.table=null,this.intl=null,this.bottomOffset=0,this.viewOffset=0,this.viewHeight=0,this._element=null,this.isActive=!1,this.animateToIndex=!0,this.shouldScroll=!1,this.weekService=null,this.focusActiveDate=()=>{if(!this._element)return;const e=this._element.querySelector("td.k-focus"),t=this._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),this.isActive=!0},this.blurActiveDate=()=>{if(!this._element)return;const e=this._element.querySelector("td.k-focus");e&&e.classList.remove("k-focus"),this.isActive=!1},this.handleVirtualizationMount=e=>{if(this.virtualization=e,this.virtualization&&this.table){this.table.style.transform=`translateY(${this.viewOffset}px)`;const e=K$2(this.props.focusedDate,this.props.min,this.props.max),t=this.props.service.skip(e,this.props.min);this.virtualization.scrollToIndex(t)}},this.buildMonthView=(e,t)=>{const{unstyled:n}=this.props,r=n&&n.uCalendar;return e__namespace.createElement("table",{key:"calendar-view-list-weekdays",className:n$p(j$3.table({c:r,weekdays:!0})),role:"grid",tabIndex:this.props.tabIndex},e__namespace.createElement("colgroup",null,e.map(((e,t)=>e__namespace.createElement("col",{key:t})))),e__namespace.createElement("thead",{className:n$p(j$3.thead({c:r}))},e__namespace.createElement("tr",{className:n$p(j$3.tr({c:r}))},t.map(((e,t)=>e__namespace.createElement("th",{key:t,className:n$p(j$3.th({c:r}))},e))))))},this.buildDates=(e,t)=>{const n=this.props.cellUID,{unstyled:r}=this.props,i=r&&r.uCalendar;return e__namespace.createElement("table",{className:n$p(j$3.table({c:i})),ref:e=>{this.table=e},role:"grid",tabIndex:this.props.tabIndex,"aria-activedescendant":n+this.props.focusedDate.getTime()},e__namespace.createElement("colgroup",null,e.map(((e,t)=>e__namespace.createElement("col",{key:t})))),t.map((e=>e__namespace.createElement(f,{ref:e=>{this.calendarView||(this.calendarView=e)},key:e.getTime(),activeView:this.props.activeView,viewDate:e,min:this.props.min,max:this.props.max,cellUID:n,focusedDate:this.props.focusedDate,cell:this.props.cell,selectedDate:this.props.value,showWeekNumbers:this.weekNumber,onChange:this.handleDateChange,bus:this.props.bus,service:this.props.service,weekCell:this.props.weekCell,showOtherMonthDays:this.props.showOtherMonthDays,unstyled:r}))))},this.calculateHeights=()=>{if(!this.props.dom)return;const e=this.props.activeView===c$3.month?this.props.dom.scrollableContentHeight:this.props.dom.scrollableYearContentHeight;this.bottomOffset=e-this.props.dom.viewHeight(this.props.activeView),this.viewOffset=-1*this.props.dom.headerHeight,this.viewHeight=this.props.dom.viewHeight(this.props.activeView)||1},this.getTake=(e,t)=>Math.min(t-e,this.take),this.handleScrollAction=({index:e,scrollAction:t,pageAction:n})=>{const r=n?n.skip:this.state.skip;if((this.state.index!==e||this.state.skip!==r)&&this.setState({index:e,skip:r}),this.table&&t){const e=`translateY(${t.offset}px)`;this.table.style.transform=e}},this.handleTodayClick=e=>{this.shouldScroll=!0,this.handleDateChange.call(void 0,e,!0)},this.handleDateChange=(e,t=!1)=>{const{onChange:n}=this.props;if(n){const r={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:cloneDate(e.value),target:this,isTodayClick:t};n.call(void 0,r)}},this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.state={skip:this.props.service.skip(this.props.focusedDate,this.props.min),index:this.props.service.skip(this.props.focusedDate,this.props.min)}}get element(){return this._element}get weekNames(){return this.intl=l$f(this),this.weekService=new r$3(this.intl),this.weekService.getWeekNames(this.weekNumber,this.props.weekDaysFormat)}get weekNumber(){return!(!this.props.showWeekNumbers||this.props.activeView!==c$3.month)}get take(){return void 0!==this.props.take?this.props.take:e.defaultProps.take}get animate(){return!(!this.props.smoothScroll||!this.animateToIndex)}get todayIsInRange(){return j(X(),getDate(this.props.min),getDate(this.props.max))}componentDidUpdate(e,t){this.shouldScroll=!1,void 0!==this.indexToScroll&&this.virtualization&&this.virtualization[this.animate?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.isActive&&this.focusActiveDate(),this.lastView=this.props.activeView,this.indexToScroll=void 0}render(){const{activeView:e,min:t,max:n,service:r,unstyled:i}=this.props,o=i&&i.uCalendar;this.calculateHeights();const a=this.lastView!==e,s=K$2(this.props.focusedDate,t,n),l=a?r.skip(s,t):this.state.skip,c=r.total(t,n),u=this.getTake(l,c),d=r.addToDate(t,l),p=r.addToDate(t,this.state.index),f=new Array(r.rowLength(this.weekNumber)).fill(""),h=e!==this.lastView;this.animateToIndex=!h,(h||!isEqualDate(this.lastFocus,s)||this.shouldScroll||!this.props.shouldScroll||this.props.shouldScroll())&&(this.indexToScroll=this.props.service.skip(s,this.props.min)),this.lastFocus=s;const m=n$p(j$3.view({c:o,month:e===c$3.month,year:e===c$3.year,decade:e===c$3.decade,century:e===c$3.century})),g=this.buildDates(f,r.datesList(d,u)),v=e__namespace.createElement(e__namespace.Fragment,null,e__namespace.createElement(l$3,{key:"calendar-view-list-header",currentDate:p,min:this.props.min,max:this.props.max,activeView:this.props.activeView,bus:this.props.bus,service:this.props.service,headerTitle:this.props.headerTitle,header:this.props.header,unstyled:i,commands:e__namespace.createElement(a$1,{min:this.props.min,max:this.props.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange,tabIndex:this.props.tabIndex,unstyled:i})}),this.props.activeView===c$3.month&&this.buildMonthView(f,this.weekNames),e__namespace.createElement(w$3,{key:"calendar-view-list-content",skip:l,take:this.take,total:c,itemHeight:this.viewHeight,topOffset:this.viewOffset,bottomOffset:this.bottomOffset,scrollOffsetSize:this.viewOffset,maxScrollDifference:this.viewHeight,onScroll:this.props.onScroll,onScrollAction:this.handleScrollAction,onMount:e=>!this.virtualization&&this.handleVirtualizationMount(e),children:g,tabIndex:this.props.tabIndex,unstyled:i}));return e__namespace.createElement("div",{ref:e=>{this._element=e},className:m},this.props.dom.didCalculate?v:null)}};d$1.propTypes={activeView:PropTypes.number.isRequired,bottomOffset:PropTypes.number,cellUID:PropTypes.string.isRequired,focusedDate:PropTypes.instanceOf(Date).isRequired,max:PropTypes.instanceOf(Date).isRequired,min:PropTypes.instanceOf(Date).isRequired,onChange:PropTypes.func,showWeekNumbers:PropTypes.bool,smoothScroll:PropTypes.bool,take:PropTypes.number,value:PropTypes.instanceOf(Date),viewHeight:PropTypes.number,viewOffset:PropTypes.number,weekDaysFormat:PropTypes.oneOf(["short","abbreviated","narrow"]),tabIndex:PropTypes.number},d$1.defaultProps={take:5,showWeekNumbers:!1,weekDaysFormat:"short",smoothScroll:!0};let v$1=d$1;p$c(v$1);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const g$1=e=>{const{className:t,isRangeStart:n,value:r,text:i,view:o,...a}=e,s=n$l(),l=s&&s.uCalendar;return e__namespace.createElement("li",{...a,onClick:t=>{var n;null==(n=e.onClick)||n.call(e,r,t)},className:n$p(j$3.li({c:l}),t)},e__namespace.createElement("span",{className:n$p(j$3.navigationMarker({c:l,isRangeStart:n}))},e.children))},I$1=30,p$1=class e extends e__namespace.Component{constructor(e){super(e),this.virtualization=null,this.list=null,this.itemHeight=0,this.topOffset=0,this.maxViewHeight=0,this.bottomOffset=0,this.handleVirtualizationMount=e=>{if(this.virtualization=e,this.virtualization&&this.list){this.list.style.transform=`translateY(${this.topOffset}px)`;const e=K$2(this.props.focusedDate,this.props.min,this.props.max),t=this.props.service.skip(e,this.props.min);this.virtualization.scrollToIndex(t)}},this.buildNavigationItem=e=>{const t=this.props.service.navigationTitle(e),n=this.props.service.isRangeStart(e),r=`kendo-react-calendar-nav-item-${e.getTime()}`,i={text:t,value:e,isRangeStart:n,view:this.props.activeView,onClick:this.handleDateChange};return this.props.navigationItem?e__namespace.createElement(this.props.navigationItem,{...i,key:r},t):e__namespace.createElement(g$1,{...i,key:r},t)},this.calculateHeights=()=>{const e=this.props.dom.calendarHeight;this.itemHeight=this.props.dom.navigationItemHeight||1,this.maxViewHeight=this.props.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight},this.handleDateChange=(e,t)=>{const{onChange:n}=this.props;if(n&&t){const r={value:cloneDate(e),target:this,nativeEvent:t&&t.nativeEvent,syntheticEvent:t};n.call(void 0,r)}},this.handleScrollAction=({scrollAction:e,pageAction:t})=>{const n=t?t.skip:this.state.skip;if(this.state.skip!==n&&this.setState({skip:n}),this.list&&e){const t=`translateY(${e.offset}px)`;this.list.style.transform=t}},this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate;const t=this.props.service.skip(this.props.focusedDate,this.props.min),n=this.props.service.total(this.props.min,this.props.max);this.state={skip:t-this.getTake(t,n)>0?t:0}}get take(){return void 0!==this.props.take?this.props.take:e.defaultProps.take}componentDidUpdate(e,t){void 0!==this.indexToScroll&&this.virtualization&&this.virtualization.scrollToIndex(this.indexToScroll),this.lastView=this.props.activeView,this.lastFocus=this.props.focusedDate,this.indexToScroll=void 0}render(){const{activeView:e,min:t,max:n,service:r,unstyled:i}=this.props;this.calculateHeights();const o=i&&i.uCalendar,a=this.lastView!==e,s=K$2(this.props.focusedDate,t,n),l=a?r.skip(s,t):this.state.skip,c=r.total(t,n),u=this.getTake(l,c),d=r.addToDate(t,l),p=r.datesList(d,u);(e!==this.lastView||!isEqual$3(s,this.lastFocus))&&(this.indexToScroll=r.skip(s,t));const f=e__namespace.createElement(w$3,{skip:l,take:this.take,total:c,itemHeight:this.itemHeight,topOffset:this.topOffset,bottomOffset:this.bottomOffset,onScroll:this.props.onScroll,maxScrollDifference:this.maxViewHeight,onScrollAction:this.handleScrollAction,onMount:e=>!this.virtualization&&this.handleVirtualizationMount(e),tabIndex:this.props.tabIndex,unstyled:i},e__namespace.createElement("ul",{ref:e=>{this.list=e},className:n$p(j$3.ul({c:o}))},p.map((e=>this.buildNavigationItem(e)))));return e__namespace.createElement("div",{className:n$p(j$3.navigation({c:o}))},e__namespace.createElement("span",{className:n$p(j$3.navigationHighlight({c:o}))}),this.props.dom.didCalculate?f:null)}getTake(e,t){return Math.min(t-e,this.take)}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */p$1.propTypes={activeView:PropTypes.number.isRequired,focusedDate:PropTypes.instanceOf(Date).isRequired,max:PropTypes.instanceOf(Date).isRequired,min:PropTypes.instanceOf(Date).isRequired,onChange:PropTypes.func,take:PropTypes.number,tabIndex:PropTypes.number},p$1.defaultProps={take:30};let g=p$1;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */var w$1=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView",e))(w$1||{});
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const $$3=[[]],T=4,b$1=3,G$2={[w$1.Left]:e=>addDecades(e,-1),[w$1.Up]:e=>addDecades(e,-5),[w$1.Right]:e=>addDecades(e,1),[w$1.Down]:e=>addDecades(e,5),[w$1.PrevView]:e=>addCenturies(e,-1),[w$1.NextView]:e=>addCenturies(e,1),[w$1.FirstInView]:e=>firstDecadeOfCentury(e),[w$1.LastInView]:e=>lastDecadeOfCentury(e)};class W{addToDate(e,t){return addCenturies(e,t)}datesList(e,t){return z$1(0,t).map((t=>addCenturies(e,t)))}data(e){const{cellUID:t,focusedDate:n,isActiveView:r,max:i,min:o,selectedDate:a,selectionRange:s=l$4,viewDate:l}=e;if(!l)return $$3;const c=z$1(0,4),u=firstDecadeOfCentury(l),d=lastDecadeOfCentury(l),p=X();return z$1(0,3).map((e=>{const l=addDecades(u,4*e);return c.map((e=>{const c=this.normalize(addDecades(l,e),o,i),f=this.isEqual(c,s.start),h=this.isEqual(c,s.end),m=!f&&!h&&Y(c,s),g=r&&(Array.isArray(a)?this.isSelectedFromArray(c,a,o,i):j(a,o,i)&&this.isEqual(c,a));return B(c,u,d)?{formattedValue:this.value(c),id:`${t}${c.getTime()}`,isFocused:this.isEqual(c,n),isSelected:g,isWeekend:!1,isInRange:j(c,o,i),isRangeStart:f,isRangeMid:m,isRangeEnd:h,isRangeSplitEnd:m&&this.isEqual(c,d),isRangeSplitStart:m&&this.isEqual(c,u),isToday:this.isEqual(c,p),title:this.cellTitle(c),value:c}:null}))}))}isSelectedFromArray(e,t,n,r){let i=!1;return t.forEach((t=>{j(e,n,r)&&this.isEqual(e,t)&&(i=!0)})),i}isEqual(e,t){return!(!e||!t)&&firstYearOfDecade(e).getFullYear()===firstYearOfDecade(t).getFullYear()}isInArray(e,t){if(!t.length)return!1;const n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99}isInRange(e,t,n){const r=firstYearOfDecade(e).getFullYear(),i=!t||firstYearOfDecade(t).getFullYear()<=r,o=!n||r<=firstYearOfDecade(n).getFullYear();return i&&o}isInSameView(e,t){return 0===durationInCenturies(e,t)}isRangeStart(e){return e.getFullYear()%1e3==0}move(e,t){const n=G$2[t];return n?n(e):e}cellTitle(e){return firstYearOfDecade(e).getFullYear().toString()}navigationTitle(e){return e?firstDecadeOfCentury(e).getFullYear().toString():""}title(e){return e?`${firstDecadeOfCentury(e).getFullYear()} - ${lastDecadeOfCentury(e).getFullYear()}`:""}rowLength(e){return 4}skip(e,t){return durationInCenturies(t,e)}total(e,t){return durationInCenturies(e,t)+1}value(e){return e?firstYearOfDecade(e).getFullYear().toString():""}viewDate(e,t,n=1){return durationInCenturies(e,t)<n?addCenturies(e,-1):e}normalize(e,t,n){return e<t&&this.isEqual(e,t)?cloneDate(t):e>n&&this.isEqual(e,n)?cloneDate(n):e}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const $$2=[[]],w=4,b=3,C$2={[w$1.Left]:e=>addYears(e,-1),[w$1.Up]:e=>addYears(e,-5),[w$1.Right]:e=>addYears(e,1),[w$1.Down]:e=>addYears(e,5),[w$1.PrevView]:e=>addDecades(e,-1),[w$1.NextView]:e=>addDecades(e,1),[w$1.FirstInView]:e=>firstYearOfDecade(e),[w$1.LastInView]:e=>lastYearOfDecade(e)};let U$1=class{addToDate(e,t){return addDecades(e,t)}datesList(e,t){return z$1(0,t).map((t=>addDecades(e,t)))}data(e){const{cellUID:t,focusedDate:n,isActiveView:r,max:i,min:o,selectedDate:a,selectionRange:s=l$4,viewDate:l}=e;if(!l)return $$2;const c=z$1(0,4),u=firstYearOfDecade(l),d=lastYearOfDecade(l),p=X();return z$1(0,3).map((e=>{const l=addYears(u,4*e);return c.map((e=>{const c=this.normalize(addYears(l,e),o,i),f=this.isEqual(c,s.start),h=this.isEqual(c,s.end),m=!f&&!h&&Y(c,s),g=r&&(Array.isArray(a)?this.isSelectedFromArray(c,a,o,i):j(a,o,i)&&this.isEqual(c,a));return B(c,u,d)?{formattedValue:this.value(c),id:`${t}${c.getTime()}`,isFocused:this.isEqual(c,n),isSelected:g,isWeekend:!1,isInRange:j(c,o,i),isRangeStart:f,isRangeMid:m,isRangeEnd:h,isRangeSplitEnd:m&&this.isEqual(c,d),isRangeSplitStart:m&&this.isEqual(c,u),isToday:this.isEqual(c,p),title:this.cellTitle(c),value:c}:null}))}))}isSelectedFromArray(e,t,n,r){let i=!1;return t.forEach((t=>{j(e,n,r)&&this.isEqual(e,t)&&(i=!0)})),i}isEqual(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()}isInArray(e,t){if(!t.length)return!1;const n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9}isInRange(e,t,n){const r=e.getFullYear(),i=!t||t.getFullYear()<=r,o=!n||r<=n.getFullYear();return i&&o}isRangeStart(e){return e.getFullYear()%100==0}isInSameView(e,t){return 0===durationInDecades(e,t)}move(e,t){const n=C$2[t];return n?n(e):e}cellTitle(e){return e.getFullYear().toString()}navigationTitle(e){return e?firstYearOfDecade(e).getFullYear().toString():""}title(e){return e?`${firstYearOfDecade(e).getFullYear()} - ${lastYearOfDecade(e).getFullYear()}`:""}rowLength(e){return 4}skip(e,t){return durationInDecades(t,e)}total(e,t){return durationInDecades(e,t)+1}value(e){return e?e.getFullYear().toString():""}viewDate(e,t,n=1){return durationInDecades(e,t)<n?addDecades(e,-1):e}normalize(e,t,n){return e<t&&this.isEqual(e,t)?cloneDate(t):e>n&&this.isEqual(e,n)?cloneDate(n):e}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const _$1=[[]],S$3=7,$$1=6,C$1=6,G$1=0,P$1={[w$1.Left]:e=>addDays(e,-1),[w$1.Up]:e=>addWeeks(e,-1),[w$1.Right]:e=>addDays(e,1),[w$1.Down]:e=>addWeeks(e,1),[w$1.PrevView]:e=>addMonths(e,-1),[w$1.NextView]:e=>addMonths(e,1),[w$1.FirstInView]:e=>firstDayOfMonth(e),[w$1.LastInView]:e=>lastDayOfMonth(e)};let Q$2=class{constructor(e){this.intl=e}addToDate(e,t){return addMonths(e,t)}datesList(e,t){return z$1(0,t).map((t=>addMonths(e,t)))}data(e){const{cellUID:t,focusedDate:n,isActiveView:r,max:i,min:o,selectedDate:a,selectionRange:s=l$4,viewDate:l}=e;if(!l)return _$1;const c=firstDayOfMonth(l),u=lastDayOfMonth(l),d=dayOfWeek(c,this.intl.firstDay(),-1),p=z$1(0,7),f=X();return z$1(0,6).map((e=>{const l=addDays(d,7*e);return p.map((e=>{const d=this.normalize(addDays(l,e),o,i),p=d<c||d>u,h=this.isEqual(d,s.start),m=this.isEqual(d,s.end),g=!h&&!m&&Y(d,s),v=r&&(Array.isArray(a)?this.isSelectedFromArray(d,a,o,i):j(a,o,i)&&this.isEqual(d,a));return{formattedValue:this.value(d),id:`${t}${d.getTime()}`,isFocused:this.isEqual(d,n),isSelected:v,isInRange:j(d,o,i),isWeekend:this.isWeekend(d),isRangeStart:h,isRangeMid:g,isRangeEnd:m,isRangeSplitStart:g&&this.isEqual(d,c),isRangeSplitEnd:g&&this.isEqual(d,u),isToday:this.isEqual(d,f),title:this.cellTitle(d),value:d,isOtherMonth:p}}))}))}isEqual(e,t){return!(!e||!t)&&getDate(e).getTime()===getDate(t).getTime()}isSelectedFromArray(e,t,n,r){let i=!1;return t.forEach((t=>{j(e,n,r)&&this.isEqual(e,t)&&(i=!0)})),i}isInArray(e,t){return!!t.length&&firstDayOfMonth(t[0])<=e&&e<=lastDayOfMonth(t[t.length-1])}isInRange(e,t,n){const r=getDate(e),i=!t||getDate(t)<=r,o=!n||r<=getDate(n);return i&&o}isInSameView(e,t){return 0===durationInMonths(e,t)}isRangeStart(e){return!e.getMonth()}move(e,t){const n=P$1[t];return n?n(e):e}cellTitle(e){return this.intl.formatDate(e,"D")}navigationTitle(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""}title(e){return`${this.wideMonthNames()[e.getMonth()]} ${e.getFullYear()}`}rowLength(e){return 7+(e?1:0)}skip(e,t){return durationInMonths(t,e)}total(e,t){return durationInMonths(e,t)+1}value(e){return e?e.getDate().toString():""}viewDate(e,t,n=1){return durationInMonths(e,t)<n?addMonths(e,-1):e}isWeekend(e){const t=e.getDay();return 6===t||0===t}abbrMonthNames(){return this.intl.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(e,t,n){return e<t&&this.isEqual(e,t)?getDate(t):e>n&&this.isEqual(e,n)?getDate(n):e}wideMonthNames(){return this.intl.dateFormatNames({nameType:"wide",type:"months",standAlone:!0})}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const C=[[]],S$2=4,G=3,P=e=>e>4?-5:e<2?-2:-7,k=e=>e<7?5:e<10?7:2,z={[w$1.Left]:e=>addMonths(e,-1),[w$1.Up]:e=>addMonths(e,P(e.getMonth())),[w$1.Right]:e=>addMonths(e,1),[w$1.Down]:e=>addMonths(e,k(e.getMonth())),[w$1.PrevView]:e=>addYears(e,-1),[w$1.NextView]:e=>addYears(e,1),[w$1.FirstInView]:e=>firstMonthOfYear(e),[w$1.LastInView]:e=>lastMonthOfYear(e)};let K$1=class{constructor(e){this._intl=e}addToDate(e,t){return addYears(e,t)}datesList(e,t){return z$1(0,t).map((t=>addYears(e,t)))}data(e){const{cellUID:t,focusedDate:n,isActiveView:r,max:i,min:o,selectedDate:a,selectionRange:s=l$4,viewDate:l}=e;if(!l)return C;const c=this.abbrMonthNames(),u=firstMonthOfYear(l),d=lastMonthOfYear(l),p=u.getFullYear(),f=z$1(0,4),h=X();return z$1(0,3).map((e=>{const l=addMonths(u,4*e);return f.map((e=>{const f=this.normalize(addMonths(l,e),o,i);if(p<f.getFullYear())return null;const m=this.isEqual(f,s.start),g=this.isEqual(f,s.end),v=!m&&!g&&Y(f,s),b=r&&(Array.isArray(a)?this.isSelectedFromArray(f,a,o,i):j(a,o,i)&&this.isEqual(f,a));return{formattedValue:c[f.getMonth()],id:`${t}${f.getTime()}`,isFocused:this.isEqual(f,n),isSelected:b,isInRange:j(f,o,i),isWeekend:!1,isRangeStart:m,isRangeMid:v,isRangeEnd:g,isRangeSplitEnd:v&&this.isEqual(f,d),isRangeSplitStart:v&&this.isEqual(f,u),isToday:this.isEqual(f,h),title:this.cellTitle(f),value:f}}))}))}isSelectedFromArray(e,t,n,r){let i=!1;return t.forEach((t=>{j(e,n,r)&&this.isEqual(e,t)&&(i=!0)})),i}isEqual(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}isInArray(e,t){if(!t.length)return!1;const n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()}isInRange(e,t,n){const r=createDate(e.getFullYear(),e.getMonth(),1),i=!t||createDate(t.getFullYear(),t.getMonth(),1)<=r,o=!n||r<=createDate(n.getFullYear(),n.getMonth(),1);return i&&o}isInSameView(e,t){return 0===durationInYears(e,t)}isRangeStart(e){return e.getFullYear()%10==0}move(e,t){const n=z[t];return n?n(e):e}cellTitle(e){return`${e.getFullYear()} ${this.value(e)}`}navigationTitle(e){return this.title(e)}title(e){return e?e.getFullYear().toString():""}rowLength(e){return 4}skip(e,t){return durationInYears(t,e)}total(e,t){return durationInYears(e,t)+1}value(e){return e?this.abbrMonthNames()[e.getMonth()]:""}viewDate(e,t,n=1){return durationInYears(e,t)<n?addYears(e,-1):e}abbrMonthNames(){return this._intl.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(e,t,n){return e<t&&this.isEqual(e,t)?cloneDate(t):e>n&&this.isEqual(e,n)?cloneDate(n):e}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const a={[c$3.month]:Q$2,[c$3.year]:K$1,[c$3.decade]:U$1,[c$3.century]:W},u$2=(e,t)=>{const n=c$3[c$3[e+t]];return void 0!==n?n:e};class V{constructor(e){this.bottom=c$3.month,this.top=c$3.century,this.onViewChanged=e}configure(e,t){this.bottom=e,this.top=t}service(e,t){return new a[`${e}`](t)}moveDown(e,t){this.move(e,-1,t)}moveUp(e,t){this.move(e,1,t)}moveToBottom(e){e!==this.bottom&&this.onViewChanged({view:this.bottom})}canMoveDown(e){return this.bottom<e}canMoveUp(e){return e<this.top}clamp(e){return e<this.bottom?this.bottom:e>this.top?this.top:e}move(e,t,n){const r=this.clamp(u$2(e,t));r!==e&&this.onViewChanged({view:r},n)}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */class K{constructor(){this.calendarHeight=0,this.headerHeight=0,this.monthViewHeight=0,this.yearViewHeight=0,this.decadeViewHeight=0,this.centuryViewHeight=0,this.navigationItemHeight=0,this.scrollableContentHeight=0,this.scrollableYearContentHeight=0,this.calendarWidth=0,this.monthViewWidth=0,this.yearViewWidth=0,this.decadeViewWidth=0,this.centuryViewWidth=0,this.scrollableContentWidth=0,this.didCalculate=!1,this.hostContainer=null}ensureHeights(){void 0===this.calendarHeight&&this.calculateHeights()}calculateHeights(e,t){if(!e$h)return;const n=Q$3("div"),r=Q$3("ul"),i=Q$3("li"),o=Q$3("td"),a=Q$3("th"),s=Q$3("tr"),l=Q$3("tbody"),c=Q$3("thead"),u=Q$3("table"),d=t&&t.uCalendar,p=t&&t.uButton,f=o$j(G$6.wrapper({c:p,fillMode:"flat",size:"medium",rounded:"medium",themeColor:"primary"}),j$3.title({c:d})),h=()=>n(`\n                <span class="${f}">\n                    <span class="${o$j(G$6.text({c:p}))}">March 2017</span>\n                </span>\n                <span class="${o$j(j$3.spacer({c:d}))}"></span>\n                <span class="${o$j(j$3.nav({c:d}))}"><button class="${o$j(j$3.today({c:d}))}">TODAY</button></span>\n            `,o$j(j$3.header({c:d,vertical:!0}))),m=(e,t)=>new Array(e).fill("1").map(t),g=e=>n(e,o$j(j$3.scrollableSelector({c:d}),j$3.scrollable({c:d,horizontal:!0}))),v=(()=>{let e;return()=>e$h?(e||(e=n([g([r([i("<span>FEB</span>")])])],o$j(j$3.navigation({c:d})),{left:"0px",position:"absolute"})),e):null})(),b=({cells:e,rows:t},r,i)=>{let p;return()=>e$h?(p||(p=((e,t,r)=>n(r?[h(),u([c([s([a("MO",o$j(j$3.th({c:d})))],o$j(j$3.tr({c:d})))],o$j(j$3.thead({c:d})))],o$j(j$3.table({c:d,weekdays:!0}))),g([e,e])]:[h(),g([e,e])],t,{left:"-10000px",position:"absolute"}))(((e,t=1)=>u([l([s([o("1",o$j(j$3.td({c:d,isWeek:!0})))])].concat(m(e,(()=>s(m(t,(e=>o(`<span class="${o$j(j$3.link({c:d}))}">${e}</span>`,o$j(j$3.td({c:d}))))),o$j(j$3.tr({c:d})))))),o$j(j$3.tbody({c:d})))],o$j(j$3.table({c:d}))))(t,e),r,i)),p):null},y=e=>e.querySelector(`.${o$j(j$3.scrollableSelector({c:d}))}`),$=e=>{const t=y(e);return t.className=`${t.className} scrollable-horizontal`,e},x=b({cells:7,rows:6},o$j(j$3.view({c:d,month:!0})),!0),E=b({cells:5,rows:3},o$j(j$3.view({c:d,year:!0})),!1),w=b({cells:5,rows:2},o$j(j$3.view({c:d,decade:!0})),!1),D=e=>parseFloat(window.getComputedStyle(e).height)||e.offsetHeight,_=e=>{const t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},T=e=>e.querySelector("tbody");this.didCalculate=!0,e&&(this.hostContainer=e),this.batch(x(),(e=>{const t=T(e);this.calendarHeight=D(e),this.monthViewHeight=D(t),this.headerHeight=D(t.children[0]),this.scrollableContentHeight=D(y(e))})),this.batch($(x()),(e=>{const t=T(e);this.calendarWidth=_(e),this.monthViewWidth=_(t),this.scrollableContentWidth=_(y(e))})),this.batch(E(),(e=>{this.yearViewHeight=D(T(e)),this.scrollableYearContentHeight=D(y(e))})),this.batch($(E()),(e=>{this.yearViewWidth=_(T(e))})),this.batch(w(),(e=>{this.decadeViewHeight=D(T(e)),this.centuryViewHeight=this.decadeViewHeight})),this.batch($(w()),(e=>{this.decadeViewWidth=_(T(e)),this.centuryViewWidth=this.decadeViewWidth})),this.batch(v(),(e=>{this.navigationItemHeight=D(e.querySelector("li"))}))}viewHeight(e){return this.viewDimension(e,"height")}viewWidth(e){return this.viewDimension(e,"width")}viewDimension(e,t){const n="height"===t?"ViewHeight":"ViewWidth";switch(e){case c$3.month:return this[`month${n}`];case c$3.year:return this[`year${n}`];case c$3.decade:return this[`decade${n}`];case c$3.century:return this[`century${n}`];default:return 1}}batch(e,t){const n=this.hostContainer||document.body,r=n.appendChild(e);t(r),n.removeChild(r)}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const n$4={33:w$1.PrevView,34:w$1.NextView,35:w$1.LastInView,36:w$1.FirstInView,37:w$1.Left,38:w$1.Up,39:w$1.Right,40:w$1.Down,"meta+38":w$1.UpperView,"meta+40":w$1.LowerView};class p{constructor(e){this.bus=e}action(e){const t=`${e.ctrlKey||e.metaKey?"meta+":""}${e.keyCode}`;return n$4[t]}move(e,t,n,r,i){return r?t===w$1.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n,i),e):t===w$1.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n,i),e):r.move(e,t):e}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const n$3=e=>t=>Math.floor(t/e),o$1=e=>t=>t*e;class s{constructor(e){this.dom=e,this.divideByMagnitude=null,this.powerByMagnitude=null,this.navigator=null,this.view=null,this.monthScrolled=!1,this.navScrolled=!1}configure(e){const t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=n$3(t),this.powerByMagnitude=o$1(t)}sync(e,t,n){if(e&&t){if(this.navigator=e,this.view=t,n.target===this.navigator.element){if(this.monthScrolled)return void(this.monthScrolled=!1);this.navScrolled=!0,this.scrollSiblingOf(this.navigator.element)}if(n.target===this.view.element){if(this.navScrolled)return void(this.navScrolled=!1);this.monthScrolled=!0,this.scrollSiblingOf(this.view.element)}}}scrollSiblingOf(e){const t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)}siblingComponent(e){return this.navigator.element===e?this.view:this.navigator}calculateScroll(e,t){const n=e===this.navigator?this.divideByMagnitude:this.powerByMagnitude;return n?n(t):0}}
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const S$1=e=>e?e.virtualization:null,E$1=(e=d.defaultProps.min,t=d.defaultProps.max,n,r)=>void 0!==r?null!==r&&j(getDate(r),e,t)?r:null:null!==n&&j(getDate(n),e,t)?n:null,n$2=class e extends e__namespace.Component{constructor(t){super(t),this.scrollSyncService=null,this.focusedDate=null,this.Navigation=null,this.calendarViewList=null,this._element=null,this.intl=null,this.service=null,this.isActive=!1,this.didNavigationChange=!1,this.focus=()=>{this._element&&this._element.focus()},this.shouldScroll=()=>this.didNavigationChange,this.handleScroll=e=>{this.scrollSyncService&&this.scrollSyncService.sync(S$1(this.Navigation),S$1(this.calendarViewList),e)},this.handleNavigationChange=e=>{if(this.props.disabled)return;this.didNavigationChange=!0;const t=cloneDate(e.value);this.setState({focusedDate:t})},this.handleViewChange=({view:e})=>{this.scrollSyncService&&this.scrollSyncService.configure(e),this.setState({activeView:e})},this.handleDateChange=e=>{const t=cloneDate(e.value),n=cloneDate(e.value),r=this.bus.canMoveDown(this.state.activeView);if(this.props.disabled)return;if(r){if(!e.isTodayClick)return this.bus.moveDown(this.state.activeView,e.syntheticEvent),void this.setState({focusedDate:n});this.bus.moveToBottom(this.state.activeView)}this.setState({value:t,focusedDate:n}),this.valueDuringOnChange=t;const{onChange:i}=this.props;if(i){const n={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:t,target:this};i.call(void 0,n)}this.valueDuringOnChange=void 0},this.handleFocus=e=>{if(this.isActive=!0,!this.calendarViewList)return;this.calendarViewList.focusActiveDate();const{onFocus:t}=this.props;t&&t.call(void 0,e)},this.handleBlur=e=>{if(this.isActive=!1,!this.calendarViewList)return;this.calendarViewList.blurActiveDate();const{onBlur:t}=this.props;t&&t.call(void 0,e)},this.handleKeyDown=e=>{const{keyCode:t,ctrlKey:n,metaKey:r}=e;if(this.focusedDate&&this.service){if(84===t&&this.setState({focusedDate:X()}),(n||r)&&(t===e$g.left||t===e$g.right)){if(this.props.disabled)return;this.didNavigationChange=!0,31===this.focusedDate.getDate()&&this.focusedDate.setDate(30);const e=t===e$g.left?this.focusedDate.getMonth()-1:this.focusedDate.getMonth()+1,n=new Date(this.focusedDate.setMonth(e)),r=cloneDate(n);this.setState({focusedDate:r})}if(t===e$g.enter){if(null!==this.value&&isEqualDate(this.focusedDate,this.value)){const e=K$2(this.focusedDate,this.min,this.max);S$1(this.calendarViewList).scrollToIndex(this.service.skip(e,this.min))}const t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.focusedDate,target:this};this.handleDateChange(t)}else{const t=K$2(this.navigation.move(this.focusedDate,this.navigation.action(e),this.state.activeView,this.service,e),this.min,this.max);if(isEqualDate(this.focusedDate,t))return;this.setState({focusedDate:t})}e.preventDefault()}},this.handleMouseDown=e=>{e.preventDefault()},this.handleClick=e=>{this._element&&this._element.focus({preventScroll:!0})};const n=E$1(this.min,this.max,this.props.defaultValue||e.defaultProps.defaultValue,this.props.value);this.state={value:n,activeView:d$3(c$3[t.defaultActiveView],this.bottomView,this.topView),focusedDate:K$2(t.focusedDate||n||X(),this.min,this.max)},this.dom=new K,this.bus=new V(this.handleViewChange),this.navigation=new p(this.bus),this.oldValue=n}get cellUID(){return this.props.id+"-cell-uid"}get id(){return this.props.id+"-id"}get element(){return this._element}get value(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value}get min(){return getDate(void 0!==this.props.min?this.props.min:e.defaultProps.min)}get max(){return getDate(void 0!==this.props.max?this.props.max:e.defaultProps.max)}get bottomView(){return c$3[void 0!==this.props.bottomView?this.props.bottomView:e.defaultProps.bottomView]}get topView(){return c$3[void 0!==this.props.topView?this.props.topView:e.defaultProps.topView]}componentDidMount(){const{unstyled:e}=this.props;Promise.resolve().then((()=>{d$c(),this._element&&(this.dom.calculateHeights(this._element,e),this.scrollSyncService=new s(this.dom),this.scrollSyncService.configure(this.state.activeView),this.forceUpdate())}))}componentDidUpdate(e,t){d$c(),t.activeView!==this.state.activeView&&this.scrollSyncService&&this.scrollSyncService.configure(this.state.activeView),this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)(),this.didNavigationChange=!1,this.isActive&&(this.oldValue=this.value)}render(){const{_ref:t,unstyled:n,bottomView:r,topView:i,disabled:o,weekNumber:a,mobileMode:s,className:l}=this.props;t&&t(this);const c=n&&n.uCalendar,u=null!==this.value&&null!==this.oldValue?!isEqualDate(this.value,this.oldValue):this.value!==this.oldValue,d=d$3(this.state.activeView,c$3[void 0!==r?r:e.defaultProps.bottomView],c$3[void 0!==i?i:e.defaultProps.topView]),p=E$1(this.min,this.max,this.value,this.value),f=p?getDate(p):null;this.focusedDate=getDate(K$2(u&&null!==p?p:this.state.focusedDate,this.min,this.max)),this.intl=l$f(this),this.bus.configure(this.bottomView,this.topView),this.service=this.bus.service(d,this.intl);const{smoothScroll:h=Number.parseFloat(e__namespace.version)<18}=this.props,m=n$p(j$3.wrapper({c:c,disabled:o,weekNumber:a,mobileMode:s}),l),v=[this.props.navigation&&e__namespace.createElement(g,{key:0,ref:e=>{this.Navigation=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,onScroll:this.handleScroll,onChange:this.handleNavigationChange,service:this.service,dom:this.dom,navigationItem:this.props.navigationItem,tabIndex:this.props.tabIndex,unstyled:n}),e__namespace.createElement(v$1,{key:1,ref:e=>{this.calendarViewList=e},activeView:this.state.activeView,focusedDate:this.focusedDate,min:this.min,max:this.max,bus:this.bus,shouldScroll:this.shouldScroll,onScroll:this.handleScroll,service:this.service,cell:this.props.cell,weekCell:this.props.weekCell,dom:this.dom,smoothScroll:h,showWeekNumbers:this.props.weekNumber,onChange:this.handleDateChange,value:f,cellUID:this.cellUID,headerTitle:this.props.headerTitle,header:this.props.header,tabIndex:this.props.tabIndex,weekDaysFormat:this.props.weekDaysFormat,showOtherMonthDays:this.props.showOtherMonthDays,unstyled:n})];return e__namespace.createElement("div",{ref:e=>{this._element=e},className:m,id:this.props.id||this.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-disabled":this.props.disabled,tabIndex:this.props.disabled?void 0:this.props.tabIndex||0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onClick:this.handleClick},v)}};n$2.displayName="Calendar",n$2.propTypes={className:PropTypes.string,defaultActiveView:PropTypes.oneOf(["month","year","decade","century"]),defaultValue:PropTypes.instanceOf(Date),disabled:PropTypes.bool,focusedDate:PropTypes.instanceOf(Date),id:PropTypes.string,ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,weekDaysFormat:PropTypes.oneOf(["short","abbreviated","narrow"]),max:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),navigation:PropTypes.bool,smoothScroll:PropTypes.bool,onBlur:PropTypes.func,onChange:PropTypes.func,onFocus:PropTypes.func,tabIndex:PropTypes.number,value:PropTypes.instanceOf(Date),weekNumber:PropTypes.bool,topView:(e,t,n)=>{const r=e[t],i=e.bottomView;return r&&i&&c$3[r]<c$3[i]?new Error(`Invalid prop + ${t} suplied to ${n}.\n                    ${t} can not be smaller than bottomView.\n                    `):null},bottomView:(e,t,n)=>{const r=e[t],i=e.topView;return r&&i&&c$3[r]>c$3[i]?new Error(`Invalid prop + ${t} suplied to ${n}.\n                    ${t} can not be bigger than topView.\n                    `):null}},n$2.defaultProps={disabled:!1,min:H$1,max:L$1,weekDaysFormat:"short",navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",bottomView:"month",showOtherMonthDays:!1};let d=n$2;const J$1=a$c(),Q$1=a$b(x$a(J$1,a$a(d)));Q$1.displayName="KendoReactCalendar",p$c(d);var DateInputInteractionMode,_a,Mask=function(){this.symbols="",this.partMap=[]},Constants={formatSeparator:"_",twoDigitYearMax:68,defaultDateFormat:"d",defaultLocaleId:"en"},Key={DELETE:"Delete",BACKSPACE:"Backspace",SPACE:" "},padZero=function(e){return new Array(Math.max(e,0)).fill("0").join("")},unpadZero=function(e){return e.replace(/^0*/,"")},approximateStringMatching=function(e){var t=e.oldText,n=e.newText,r=e.formatPattern,i=e.selectionStart,o=e.isInCaretMode,a=e.keyEvent,s=i+t.length-n.length,l=t[s],c=t.substring(0,s),u=n.substring(0,i),d=[];if(c===u&&i>0)return d.push([r[i-1],u[i-1]]),d;if(0===c.indexOf(u)&&o&&(a.key===Key.DELETE||a.key===Key.BACKSPACE)||0===c.indexOf(u)&&!o&&(0===u.length||r[u.length-1]!==r[u.length])){var p="";o||1!==u.length||d.push([r[0],u[0]]);for(var f=u.length;f<c.length;f++)r[f]!==p&&r[f]!==Constants.formatSeparator&&(p=r[f],d.push([p,""]));return d}if(o&&(0===u.indexOf(c)||r[i-1]===Constants.formatSeparator)||!o&&(0===u.indexOf(c)||r[i-1]===Constants.formatSeparator)){var h=r[0];for(f=Math.max(0,c.length-1);f<r.length;f++)if(r[f]!==Constants.formatSeparator){h=r[f];break}return[[h,u[i-1]]]}return" "===u[u.length-1]||u[u.length-1]===l&&"_"===r[s]?[[r[i-1],Constants.formatSeparator]]:[[r[i-1],u[i-1]]]},dateSymbolMap=function(e,t){return e[t.pattern[0]]=t.type,e},dateSetter=function(e){return function(t,n){var r=cloneDate(t);return r[e](n),r}},isPresent=function(e){return null!=e},isDocumentAvailable=function(){return!!document},isNumber$1=function(e){return isPresent(e)&&"number"==typeof e&&!Number.isNaN(e)},parseToInt=function(e){return parseInt(e,10)},isParseableToInt=function(e){return isNumber$1(parseToInt(e))&&/^[0-9]+$/.test(e)},clamp=function(e,t,n){return Math.min(n,Math.max(t,e))},extend$1=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object.assign.apply(Object,e)},isFunction$2=function(e){return"function"==typeof e},cropTwoDigitYear=function(e){return!isPresent(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))},setYears=dateSetter("setFullYear"),millisecondDigitsInFormat=function(e){var t=e&&e.match(/S+(\1)/);return t?t[0].length:0},millisecondStepFor=function(e){return Math.pow(10,3-e)},areDatePartsEqualTo=function(e,t,n,r,i,o,a,s){return!(!e||e.getFullYear()!==t||e.getMonth()!==n||e.getDate()!==r||e.getHours()!==i||e.getMinutes()!==o||e.getSeconds()!==a||e.getMilliseconds()!==s)},isValidDate=function(e){return isPresent(e)&&e.getTime&&isNumber$1(e.getTime())},isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Macintosh/i.test(navigator.userAgent)},MONTH_INDEX_FEBRUARY=1,DEFAULT_LEAP_YEAR=2e3,PREVIOUS_CENTURY_BASE=1900,CURRENT_CENTURY_BASE=2e3,SHORT_PATTERN_LENGTH_REGEXP=/d|M|H|h|m|s/,MONTH_PART_WITH_WORDS_THRESHOLD=2,MONTH_SYMBOL="M",JS_MONTH_OFFSET=1,DateObject=function(){function e(e){var t=e.intlService,n=e.formatPlaceholder,r=e.format,i=e.cycleTime,o=void 0!==i&&i,a=e.twoDigitYearMax,s=void 0===a?Constants.twoDigitYearMax:a,l=e.value,c=void 0===l?null:l,u=e.autoCorrectParts,d=void 0===u||u,p=e.toggleDayPeriod,f=void 0!==p&&p,h=e.autoSwitchParts,m=void 0===h||h;if(this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.dayperiod=!0,this.leadingZero=null,this.typedMonthPart="",this.knownParts="adHhmMsEyS",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y",S:"S"},this._value=this.getDefaultDate(),this.cycleTime=!1,this._partiallyInvalidDate={startDate:null,invalidDateParts:{E:{value:null,date:null,startDateOffset:0},H:{value:null,date:null,startDateOffset:0},M:{value:null,date:null,startDateOffset:0},a:{value:null,date:null,startDateOffset:0},d:{value:null,date:null,startDateOffset:0},h:{value:null,date:null,startDateOffset:0},m:{value:null,date:null,startDateOffset:0},s:{value:null,date:null,startDateOffset:0},y:{value:null,date:null,startDateOffset:0},S:{value:null,date:null,startDateOffset:0}}},this.setOptions({intlService:t,formatPlaceholder:n,format:r,cycleTime:o,twoDigitYearMax:s,value:c,autoCorrectParts:d,toggleDayPeriod:f,autoSwitchParts:m}),c)this._value=cloneDate(c);else{this._value=this.getDefaultDate();for(var g=this.dateFormatString(this.value,this.format).symbols,v=0;v<g.length;v++)this.setExisting(g[v],!1)}}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){(!e||e instanceof Date)&&(this._value=e,this.resetInvalidDate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeId",{get:function(){for(var e=Constants.defaultLocaleId,t=Object.keys(this.intl.cldr),n=0;n<t.length;n++){var r=t[n],i=this.intl.cldr[r];if(i.name&&i.calendar&&i.numbers&&i.name!==Constants.defaultLocaleId){e=i.name;break}}return e},enumerable:!1,configurable:!0}),e.prototype.setOptions=function(e){this.intl=e.intlService,this.formatPlaceholder=e.formatPlaceholder||"wide",this.format=e.format,this.cycleTime=e.cycleTime,this.monthNames=this.allFormattedMonths(this.localeId),this.dayPeriods=this.allDayPeriods(this.localeId),this.twoDigitYearMax=e.twoDigitYearMax,this.autoCorrectParts=e.autoCorrectParts,this.toggleDayPeriod=e.toggleDayPeriod,this.autoSwitchParts=e.autoSwitchParts},e.prototype.setValue=function(e){e?isEqual$3(e,this._value)?isEqual$3(e,this._value)&&this.dayPeriods&&this.setExisting("a",!0):(this._value=cloneDate(e),this.modifyExisting(!0)):(this._value=this.getDefaultDate(),this.modifyExisting(!1)),this.resetInvalidDate()},e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format,this.localeId).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.getValue=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return cloneDate(this.value)},e.prototype.createDefaultDate=function(){return createDate(DEFAULT_LEAP_YEAR,0,31)},e.prototype.getDefaultDate=function(){return getDate(this.createDefaultDate())},e.prototype.getFormattedDate=function(e){return this.intl.formatDate(this.getValue(),e,this.localeId)},e.prototype.getTextAndFormat=function(e){void 0===e&&(e="");var t=e||this.format,n=this.intl.formatDate(this.value,t,this.localeId),r=this.dateFormatString(this.value,t);if(!this.autoCorrectParts&&this._partiallyInvalidDate.startDate){for(var i="",o=this.intl.formatDate(this.value,t,this.localeId),a=this.getFormattedInvalidDates(t),s=0;s<o.length;s++){var l=r.symbols[s];if("literal"===r.partMap[s].type)i+=n[s];else if(this.getInvalidDatePartValue(l)){var c=this.getPartsForSegment(r,s);if("M"===l){var u=(parseToInt(this.getInvalidDatePartValue(l))+JS_MONTH_OFFSET).toString();if(c.length>MONTH_PART_WITH_WORDS_THRESHOLD)i+=a[l][s];else if(this.getInvalidDatePartValue(l))i+=padZero(c.length-u.length)+u,s+=c.length-1;else i+=a[l][s]}else if(this.getInvalidDatePartValue(l)){u=this.getInvalidDatePartValue(l).toString();i+=padZero(c.length-u.length)+u,s+=c.length-1}else i+=a[l][s]}else i+=n[s]}n=i}return this.merge(n,r)},e.prototype.getFormattedInvalidDates=function(e){var t=this;void 0===e&&(e="");var n=e||this.format,r={E:"",H:"",M:"",a:"",d:"",h:"",m:"",s:"",y:"",S:""};return Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach((function(e){var i=t.getInvalidDatePart(e).date;if(i){var o=t.intl.formatDate(i,n,t.localeId);r[e]=o}})),r},e.prototype.modifyExisting=function(e){for(var t=this.dateFormatString(this.value,this.format).symbols,n=0;n<t.length;n++)this.setExisting(t[n],e)},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"t":case"a":return this.dayperiod;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this._value.setFullYear(DEFAULT_LEAP_YEAR);break;case"M":this.month=t,!1===t&&this.autoCorrectParts&&this._value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"t":case"a":this.dayperiod=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t}this.getValue()&&this.resetInvalidDate()},e.prototype.modifyPart=function(e,t){if(isPresent(e)&&isPresent(t)&&0!==t){var n,r=cloneDate(this.value),i=!1,o="M"===e,a="d"===e||"E"===e,s=this.getExisting(e);if(this.autoCorrectParts||!a&&!o){var l=r.getHours();switch(e){case"y":r.setFullYear(r.getFullYear()+t);break;case"M":r=addMonths(this.value,t);break;case"d":case"E":r.setDate(r.getDate()+t);break;case"h":case"H":r.setHours(r.getHours()+t),i=!0;break;case"m":r.setMinutes(r.getMinutes()+t),i=!0;break;case"s":r.setSeconds(r.getSeconds()+t),i=!0;break;case"S":r.setMilliseconds(r.getMilliseconds()+t);break;case"a":this.toggleDayPeriod?r.setHours(l>=12?l-12:l+12):r.setHours(r.getHours()+12*t),i=!0}}else{var c=this._partiallyInvalidDate.invalidDateParts||{},u=this.getInvalidDatePartValue(e),d=c.y.value||r.getFullYear(),p=c.M.value||r.getMonth(),f=c.d.value||c.E.value||r.getDate(),h=c.h.value||c.H.value||r.getHours(),m=c.m.value||r.getMinutes(),g=c.s.value||r.getSeconds(),v=c.S.value||r.getMilliseconds();switch(e){case"y":d+=t;break;case"M":p+=t;break;case"d":case"E":f+=t}if("M"===e){if((p<0||p>11)&&s)return this.setExisting(e,!1),void this.resetInvalidDateSymbol(e);if(!s){if(p<0)p=clamp(p%11+1+11,0,11);else{var b=isPresent(u)?p:(t-JS_MONTH_OFFSET)%12;p=clamp(b,0,11)}p=clamp(p,0,11)}p=clamp(p,0,11)}else if("d"===e)if(s){if(f<=0||f>31)return this.setExisting(e,!1),void this.resetInvalidDateSymbol(e)}else if(!s){if(isPresent(u)&&(f<=0||f>31))return this.setExisting(e,!1),void this.resetInvalidDateSymbol(e);if(t<0){var y=isPresent(u)?f:31-Math.abs(t%31)+1;f=clamp(y,1,31)}else{y=isPresent(u)?f:t%31;f=clamp(y,1,31)}f=clamp(f,1,31)}var $=createDate(d,p,f,h,m,g,v),x=o||a?this.modifyDateSymbolWithValue(r,e,o?p:f):null,E=areDatePartsEqualTo($,d,p,f,h,m,g,v);this.getValue()&&areDatePartsEqualTo($,d,p,f,h,m,g,v)?(r=cloneDate($),this.markDatePartsAsExisting()):o&&x?x.getMonth()===p?this.getExisting("d")?E?(r=cloneDate($),this.resetInvalidDateSymbol(e)):(n=!0,this.setInvalidDatePart(e,{value:p,date:cloneDate(x),startDateOffset:t,startDate:cloneDate(this.value)}),this.setExisting(e,!1)):E?(this.resetInvalidDateSymbol(e),r=cloneDate($),this.getExisting("M")&&this.getExisting("y")&&(this.setExisting("d",!0),this.resetInvalidDateSymbol("d"))):(this.resetInvalidDateSymbol(e),r=cloneDate(x)):(n=!0,this.setInvalidDatePart(e,{value:p,date:cloneDate(x),startDateOffset:t,startDate:cloneDate(this.value)}),this.setExisting(e,!1)):a&&x&&(x.getDate()===f?this.getExisting("M")?E?(r=cloneDate($),this.resetInvalidDateSymbol(e)):(n=!0,this.setInvalidDatePart(e,{value:f,date:cloneDate(x),startDateOffset:t,startDate:cloneDate(this.value)}),this.setExisting(e,!1)):E?(r=cloneDate($),this.resetInvalidDateSymbol(e),this.getExisting("d")&&this.getExisting("y")&&(this.setExisting("M",!0),this.resetInvalidDateSymbol("M"))):(this.resetInvalidDateSymbol(e),r=cloneDate(x)):(n=!0,this.setInvalidDatePart(e,{value:f,date:cloneDate(this.value),startDateOffset:t,startDate:cloneDate(this.value)}),this.setExisting(e,!1)))}this.shouldNormalizeCentury()&&(r=this.normalizeCentury(r)),i&&!this.cycleTime&&(r.getDate(),this._value.getDate()),n||(this.setExisting(e,!0),this._value=r,this.getValue()&&this.resetInvalidDate())}},e.prototype.parsePart=function(e){for(var t=e.symbol,n=e.currentChar,r=e.resetSegmentValue,i=e.cycleSegmentValue,o=e.rawTextValue,a=e.isDeleting,s=e.originalFormat,l=!i,c=this.dateFormatString(this.value,this.format),u=c.partMap.filter((function(e){return"literal"===e.type})).map((function(e,t){return{datePartIndex:t,type:e.type,pattern:e.pattern,literal:""}})),d=c.partMap.map((function(e){return{type:e.type,pattern:e.pattern,text:""}})),p=0;p<u.length;p++){for(var f=u[p],h=0;h<f.pattern.length;h++)u[p+h]&&(u[p+h].literal=f.pattern[h]);p+=f.pattern.length-1}for(p=0;p<d.length;p++){for(f=d[p],h=0;h<f.pattern.length;h++)d[p+h]&&(d[p+h].text=f.pattern[h]);p+=f.pattern.length-1}var m=l&&"M"===t&&c.partMap.filter((function(e){return"month"===e.type})).some((function(e){return e.pattern.length>MONTH_PART_WITH_WORDS_THRESHOLD})),g={value:null,switchToNext:!1,resetPart:m,hasInvalidDatePart:!1};if(!n){if(!l)return this.resetLeadingZero(),this.setExisting(t,!1),this.resetInvalidDateSymbol(t),extend$1(g,{value:null,switchToNext:!1});for(p=0;p<u.length;p++){var v=u[p].literal,b=o.startsWith(v),y=o.endsWith(v),$=o.indexOf(v+v)>=0;if(b||y||$)return this.resetLeadingZero(),this.setExisting(t,!1),this.resetInvalidDateSymbol(t),extend$1(g,{value:null,switchToNext:!1})}}var x=this.intl.formatDate(this.value,this.format,this.localeId),E=c.symbols,w=!1,D="",_="",T="",S="",C="",I="",P="";for(p=0;p<d.length;p++)P+=d[p].text;var O=this.format===E||this.format===P||this.format===s||this.format.length===s.length,N=(O?P:s).indexOf(t),R=(O?P:s).lastIndexOf(t)-N+1,A=s.length-o.length;if(l||!l&&!this.autoCorrectParts){var M=0;for(p=0;p<x.length;p++)if(E[p]===t){var k=this.getExisting(t);if("y"===t)if(!this.hasInvalidDatePart()&&this.getExisting("y"))_+=x[p];else{var L=this.getInvalidDatePartValue(t);isPresent(L)?(_+=(L||"").toString()[M]||"",M++):_+=k?x[p]:"0"}else _+=k?x[p]:"0";A>0?T.length+A<R&&(T+=o[p]||""):T+=o[p]||"",w=!0}else w?(I+=x[p],C+=x[p]):(D+=x[p],S+=x[p]);if(O&&(P.length<o.length?T+=n:!a&&(s.length,o.length),T.length>R))return extend$1(g,{value:null,switchToNext:!1});if(!O||O&&!this.autoCorrectParts){_="",T="",D="",I="",w=!1;var j=0;for(p=0;p<s.length;p++)if(s[p]===t){k=this.getExisting(t);if("y"===t)if(!this.hasInvalidDatePart()&&this.getExisting("y"))_+=x[p];else{L=this.getInvalidDatePartValue(t);isPresent(L)?(_+=(L||"").toString()[j]||"",j++):_+=k?x[p]:"0"}else _+=k?x[p]||"":"0";A>0?T.length+A<R&&(T+=o[p]||""):T+=o[p]||"",w=!0}else w?I+=o[p-A]||"":D+=o[p]||"";s.length<o.length&&(T+=n)}}if(!l)if(this.autoCorrectParts){_="",T="",D="",I="",w=!1;for(p=0;p<x.length;p++){if(E[p]===t)_+=(k=this.getExisting(t))?x[p]:"0",w=!0;else w?I+=x[p]:D+=x[p]}}else _=r?T:_;var F=null,V=this.matchMonth(n),B=this.matchDayPeriod(n,t),z="0"===n,H=this.leadingZero||{};z?("0"===T&&(T=_),0!==parseToInt(r?n:(l?T:_)+n)||this.isAbbrMonth(c.partMap,t)||"a"===t||this.incrementLeadingZero(t)):this.resetLeadingZero();var G=this.partPattern(c.partMap,t),U=G?G.pattern:null,W=this.patternLength(U)||U.length;if(l&&a&&!T)return this.setExisting(t,!1),extend$1(g,{value:null,switchToNext:!1});var q=_.length-3,Y=!0,K=l?T:_;for(p=Math.max(0,q);p<=_.length&&Y;p++){K=r?n:l?T:_.substring(p)+n,this.autoSwitchParts&&"h"===t&&"12"===_.substring(p)&&(K=K.replace("12","0")),!l&&this.autoCorrectParts||(Y=!1,K=unpadZero(K),K=padZero(W-K.length)+K);var X=parseInt(K,10),J=D+K+I;(F=this.intl.parseDate(J,this.format,this.localeId))&&this.value&&c.partMap.every((function(e){return"year"!==e.type&&"month"!==e.type&&"day"!=e.type}))&&(F.setFullYear(this.value.getFullYear()),F.setMonth(this.value.getMonth()),F.setDate(this.value.getDate()));var Q=!1;l&&!isValidDate(F)&&this.autoCorrectParts&&(F=this.intl.parseDate(S+K+C,this.format,this.localeId),Q=!0);var Z=!isNaN(parseInt(n,10))||l&&a&&""===n;if(!F&&!isNaN(X)&&Z&&this.autoCorrectParts){if(t===MONTH_SYMBOL&&!V){var ee=X-JS_MONTH_OFFSET;ee>-1&&ee<12&&((F=cloneDate(this.value)).setMonth(ee),F.getMonth()!==ee&&(F=lastDayOfMonth(addMonths(F,-1))))}"y"===t&&(F=createDate(parseInt(K,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),(l&&isValidDate(F)||!l&&F)&&this.date&&F.getDate()!==this.value.getDate()&&(F=lastDayOfMonth(addMonths(F,-1))))}if(l&&isValidDate(F)||!l&&F){var te=this.isPeekDateOverflowingDatePart({useBasePrefixAndSuffix:Q,middle:K,patternValue:U,basePrefix:S,baseSuffix:C,prefix:D,suffix:I,symbol:t,patternLength:W,leadingZero:H}),ne=te.switchToNext;return this.shouldNormalizeCentury()&&(F=this.normalizeCentury(F)),"H"===t&&F.getHours()>=12&&this.setExisting("a",!0),this._value=F,this.setExisting(t,!0),this.resetInvalidDateSymbol(t),this.autoCorrectParts||("M"===t?this.getExisting("M")&&this.getExisting("y")&&(this.setExisting("d",!0),this.resetInvalidDateSymbol("d")):"d"===t?this.getExisting("d")&&this.getExisting("y")&&(this.setExisting("M",!0),this.resetInvalidDateSymbol("M")):"y"===t&&this.markDatePartsAsExisting(),this.hasInvalidDatePart()||(this.markDatePartsAsExisting(),te.peekedDate||!te.switchToNext||this.autoCorrectParts||"M"===t||"d"===t&&30===te.parsedPeekedValue&&this.value.getMonth()===MONTH_INDEX_FEBRUARY&&(ne=!1))),extend$1(g,{value:this.value,switchToNext:ne})}}if(V&&(F=this.intl.parseDate(D+V+I,this.format,this.localeId)))return this._value=F,this.setExisting(t,!0),extend$1(g,{value:this.value,switchToNext:!1});if(B&&(F=this.intl.parseDate(D+B+I,this.format)||this.intl.parseDate(S+B+C,this.format)))return this._value=F,this.setExisting(t,!0),extend$1(g,{value:this.value,switchToNext:!0});if(z&&"a"!==t&&this.setExisting(t,!1),!this.autoCorrectParts){var re=void 0,ie=l?T:K,oe=parseToInt(ie);if(isNumber$1(oe)&&isParseableToInt(ie)){if("d"===t&&(oe<=0||oe>31)||"M"===t&&(oe<=0||oe>11)){if(l)return extend$1(g,{value:null,switchToNext:!1});oe=parseToInt(ie=n)}if(!isNumber$1(oe)||!isParseableToInt(ie))return extend$1(g,{value:null,switchToNext:!1});re="M"===t?oe-JS_MONTH_OFFSET:oe;var ae="y"===t,se="M"===t,le="d"===t,ce=cloneDate(this._value),ue=this._partiallyInvalidDate.invalidDateParts||{},de=ae?re:ue.y.value||ce.getFullYear(),pe=se?re:ue.M.value||ce.getMonth(),fe=le?re:ue.d.value||ue.E.value||ce.getDate(),he=ue.h.value||ue.H.value||ce.getHours(),me=ue.m.value||ce.getMinutes(),ge=ue.s.value||ce.getSeconds(),ve=ue.S.value||ce.getMilliseconds(),be=createDate(de,pe,fe,he,me,ge,ve),ye=areDatePartsEqualTo(be,de,pe,fe,he,me,ge,ve),$e=ae||se||le?this.modifyDateSymbolWithValue(ce,t,ae?de:se?pe:fe):null,xe=!1;if(se&&$e?$e.getMonth()===pe?this.getExisting("d")?ye?(ce=cloneDate(be),this.resetInvalidDateSymbol(t)):(xe=!0,this.setInvalidDatePart(t,{value:pe,date:cloneDate($e),startDate:cloneDate(this.value)}),this.setExisting(t,!1)):ye?(this.resetInvalidDateSymbol(t),ce=cloneDate(be),this.getExisting("M")&&this.getExisting("y")&&(this.setExisting("d",!0),this.resetInvalidDateSymbol("d"))):(this.resetInvalidDateSymbol(t),ce=cloneDate($e)):(xe=!0,this.setInvalidDatePart(t,{value:pe,date:cloneDate($e),startDate:cloneDate(this.value)}),this.setExisting(t,!1)):le&&$e?$e.getDate()===fe?this.getExisting("M")?ye?(ce=cloneDate(be),this.resetInvalidDateSymbol(t)):(xe=!0,this.setInvalidDatePart(t,{value:fe,date:cloneDate($e),startDate:cloneDate(this.value)}),this.setExisting(t,!1)):ye?(ce=cloneDate(be),this.resetInvalidDateSymbol(t),this.getExisting("d")&&this.getExisting("y")&&(this.setExisting("M",!0),this.resetInvalidDateSymbol("M"))):(this.resetInvalidDateSymbol(t),ce=cloneDate($e)):(xe=!0,this.setInvalidDatePart(t,{value:fe,date:cloneDate(this.value),startDate:cloneDate(this.value)}),this.setExisting(t,!1)):ae&&$e&&($e.getFullYear()===de?this.getExisting("d")&&this.getExisting("M")?ye?(ce=cloneDate(be),this.resetInvalidDateSymbol(t)):(xe=!0,this.setInvalidDatePart(t,{value:de,date:cloneDate($e),startDate:cloneDate(this.value)}),this.setExisting(t,!1)):ye?(this.resetInvalidDateSymbol(t),ce=cloneDate(be),this.getExisting("M")&&this.getExisting("d")&&(this.setExisting("y",!0),this.resetInvalidDateSymbol("y"))):(this.resetInvalidDateSymbol(t),ce=cloneDate($e)):(xe=!0,this.setInvalidDatePart(t,{value:de,date:cloneDate($e),startDate:cloneDate(this.value)}),this.setExisting(t,!1))),!xe){if(this.setExisting(t,!0),l&&!isValidDate(F)){var Ee=this.intl.parseDate(S+K+C,this.format,this.localeId);isValidDate(Ee)&&(this._value=Ee)}else this._value=ce;this.getValue()&&this.resetInvalidDate()}ne=!1;if("M"===t)ne=oe>=2||ie.length>=2;else if(O)ne=this.isPeekDateOverflowingDatePart({useBasePrefixAndSuffix:!this.autoCorrectParts,middle:K,patternValue:U,basePrefix:S,baseSuffix:C,prefix:D,suffix:I,symbol:t,patternLength:W,leadingZero:H}).switchToNext;else ne=ie.length>R;return extend$1(g,{value:null,switchToNext:ne,hasInvalidDatePart:xe})}}return extend$1(g,{value:null,switchToNext:!1})},e.prototype.symbolMap=function(e){return this.intl.splitDateFormat(this.format,this.localeId).reduce(dateSymbolMap,{})[e]},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},e.prototype.setLeadingZero=function(e){this.leadingZero=e},e.prototype.getLeadingZero=function(){return this.leadingZero||{}},e.prototype.normalizeCentury=function(e){if(!isPresent(e))return e;var t=cropTwoDigitYear(e),n=this.getNormalizedCenturyBase(t);return setYears(e,n+t)},e.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.peek=function(e,t){var n=e.replace(/^0*/,"")+"0";return padZero(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),0===this.monthNames.length)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.matchDayPeriod=function(e,t){var n=e.toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""},e.prototype.allFormattedMonths=function(e){void 0===e&&(e="en");for(var t=this.intl.splitDateFormat(this.format,this.localeId),n=0;n<t.length;n++)if("month"===t[n].type&&t[n].names)return this.intl.dateFormatNames(e,t[n].names);return[]},e.prototype.allDayPeriods=function(e){void 0===e&&(e="en");for(var t=this.intl.splitDateFormat(this.format),n=0;n<t.length;n++)if("dayperiod"===t[n].type&&t[n].names)return this.intl.dateFormatNames(e,t[n].names);return null},e.prototype.patternLength=function(e){return"y"===e[0]?4:SHORT_PATTERN_LENGTH_REGEXP.test(e)?2:0},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t,this.localeId),r=[],i=[],o=0;o<n.length;o++)for(var a=this.intl.formatDate(e,{pattern:n[o].pattern},this.localeId).length;a>0;)r.push(this.symbols[n[o].pattern[0]]||Constants.formatSeparator),i.push(n[o]),a--;var s=new Mask;return s.symbols=r.join(""),s.partMap=i,s},e.prototype.merge=function(e,t){for(var n="",r="",i=t.symbols,o=!1,a=0,s=this.getFormattedInvalidDates(i),l=i.length-1;l>=0;l--){var c=this.getPartsForSegment(t,l);if(-1===this.knownParts.indexOf(i[l])||this.getExisting(i[l]))this.autoCorrectParts?n=e[l]+n:e.length!==i.length?o?n=e[l]+n:a>0?(n=e[l]+n,--a<=0&&(o=!0)):n=(e[l+e.length-i.length]||"")+n:n=e[l]+n,r=i[l]+r;else{var u=i[l],d=0;if(this.autoCorrectParts||!this.autoCorrectParts&&!this.getInvalidDatePartValue(u)){for(;l>=0&&u===i[l];)l--;l++}if(this.leadingZero&&this.leadingZero[u])n="0"+n;else if(!this.autoCorrectParts&&this.getInvalidDatePartValue(u)){var p=this.getInvalidDatePartValue(u).toString();if("M"===u)if(p=(parseToInt(this.getInvalidDatePartValue(u))+JS_MONTH_OFFSET).toString(),c.length>MONTH_PART_WITH_WORDS_THRESHOLD)n=s[u][l]+n;else p=(parseToInt(this.getInvalidDatePartValue(u))+JS_MONTH_OFFSET).toString(),n=padZero(c.length-p.length)+p+n,d=c.length-1,a=p.length-c.length;else n=padZero(c.length-p.length)+p+n,d=c.length-1,a=p.length-c.length}else n=this.dateFieldName(t.partMap[l])+n;for(;r.length<n.length;)r=i[l]+r;0!==d&&(l=l-d+(e.length-i.length))}}return{text:n,format:r}},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?PREVIOUS_CENTURY_BASE:CURRENT_CENTURY_BASE},e.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some((function(e){return"yy"===e.pattern}))},e.prototype.resetInvalidDate=function(){var e=this;this._partiallyInvalidDate.startDate=null,Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach((function(t){e.resetInvalidDatePart(t)}))},e.prototype.resetInvalidDateSymbol=function(e){var t=this;this.resetInvalidDatePart(e);var n=!0;Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach((function(e){t._partiallyInvalidDate.invalidDateParts[e]&&isPresent(t._partiallyInvalidDate.invalidDateParts[e].value)&&(n=!1)})),n&&this.resetInvalidDate()},e.prototype.resetInvalidDatePart=function(e){this._partiallyInvalidDate.invalidDateParts[e]&&(this._partiallyInvalidDate.invalidDateParts[e]={value:null,date:null,startDateOffset:0})},e.prototype.getInvalidDatePart=function(e){return this._partiallyInvalidDate.invalidDateParts[e]||{}},e.prototype.getInvalidDatePartValue=function(e){return(this._partiallyInvalidDate.invalidDateParts[e]||{}).value},e.prototype.setInvalidDatePart=function(e,t){var n=t.value,r=void 0===n?null:n,i=t.date,o=void 0===i?null:i,a=t.startDateOffset,s=void 0===a?0:a,l=t.startDate,c=void 0===l?null:l;this._partiallyInvalidDate.invalidDateParts[e]&&(this._partiallyInvalidDate.invalidDateParts[e].value=r,this._partiallyInvalidDate.invalidDateParts[e].date=o,this._partiallyInvalidDate.invalidDateParts[e].startDateOffset=s,this._partiallyInvalidDate.startDate=c)},e.prototype.hasInvalidDatePart=function(){var e=this,t=!1;return Object.keys(this._partiallyInvalidDate.invalidDateParts).forEach((function(n){e._partiallyInvalidDate.invalidDateParts[n]&&isPresent(e._partiallyInvalidDate.invalidDateParts[n].value)&&(t=!0)})),t},e.prototype.modifyDateSymbolWithOffset=function(e,t,n){var r=cloneDate(e),i=!1;switch(t){case"y":r.setFullYear(r.getFullYear()+n);break;case"M":r=addMonths(this.value,n);break;case"d":case"E":r.setDate(r.getDate()+n);break;case"h":case"H":r.setHours(r.getHours()+n),i=!0;break;case"m":r.setMinutes(r.getMinutes()+n),i=!0;break;case"s":r.setSeconds(r.getSeconds()+n),i=!0;break;case"S":r.setMilliseconds(r.getMilliseconds()+n);break;case"a":r.setHours(r.getHours()+12*n),i=!0}return{date:r,timeModified:i}},e.prototype.modifyDateSymbolWithValue=function(e,t,n){var r=cloneDate(e);switch(t){case"y":r.setFullYear(n);break;case"M":r=addMonths(e,n-e.getMonth());break;case"d":case"E":r.setDate(n);break;case"h":case"H":case"a":r.setHours(n);break;case"m":r.setMinutes(n);break;case"s":r.setSeconds(n);break;case"S":r.setMilliseconds(n)}return r},e.prototype.markDatePartsAsExisting=function(){this.modifyExisting(!0)},e.prototype.getPartsForSegment=function(e,t){for(var n=e.partMap[t],r=[],i=t;i<e.partMap.length;i++){var o=e.partMap[i];if(n.type!==o.type||n.pattern!==o.pattern)break;r.push(o)}for(i=t-1;i>=0;i--){o=e.partMap[i];if(n.type!==o.type||n.pattern!==o.pattern)break;r.unshift(o)}return r},e.prototype.isPeekDateOverflowingDatePart=function(e){var t=e.useBasePrefixAndSuffix,n=e.middle,r=e.patternValue,i=e.basePrefix,o=e.baseSuffix,a=e.prefix,s=e.suffix,l=e.symbol,c=e.patternLength,u=e.leadingZero,d=this.peek(n,r),p=t?"".concat(i).concat(d).concat(o):"".concat(a).concat(d).concat(s),f=this.intl.parseDate(p,this.format,this.localeId),h=((this.leadingZero||{})[l]||0)+unpadZero(n).length>=c;return{peekedDate:f,peekedDateString:p,peekedValue:d,parsedPeekedValue:parseToInt(d),switchToNext:null===f||(u[l]?r.length<=n.length:h)}},e}(),KeyCode={BACKSPACE:8,DELETE:46,TAB:9,ENTER:13,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,END:35,HOME:36},defaultOptions={events:{}},Observable=function(){function e(e){this.options=extend$1({},defaultOptions,e)}return e.prototype.destroy=function(){this.options={}},e.prototype.trigger=function(e,t){void 0===t&&(t={});var n={defaultPrevented:!1,preventDefault:function(){n.defaultPrevented=!0}};return!!isFunction$2(this.options.events[e])&&(this.options.events[e](extend$1(n,t,{sender:this})),n.defaultPrevented)},e}();!function(e){e.None="none",e.Caret="caret",e.Selection="selection"}(DateInputInteractionMode||(DateInputInteractionMode={}));var DEFAULT_SEGMENT_STEP=1,DRAG_START="dragStart",DROP="drop",TOUCH_START="touchstart",MOUSE_DOWN="mousedown",MOUSE_UP="mouseup",CLICK="click",INPUT="input",KEY_DOWN="keydown",FOCUS="focus",BLUR="blur",PASTE="paste",MOUSE_SCROLL="DOMMouseScroll",MOUSE_WHEEL="mousewheel",VALUE_CHANGE="valueChange",INPUT_END="inputEnd",BLUR_END="blurEnd",FOCUS_END="focusEnd",CHANGE="change",defaultDateInputOptions={format:"d",hasPlaceholder:!1,placeholder:null,cycleTime:!0,locale:null,steps:{millisecond:DEFAULT_SEGMENT_STEP,second:DEFAULT_SEGMENT_STEP,minute:DEFAULT_SEGMENT_STEP,hour:DEFAULT_SEGMENT_STEP,day:DEFAULT_SEGMENT_STEP,month:DEFAULT_SEGMENT_STEP,year:DEFAULT_SEGMENT_STEP},formatPlaceholder:null,events:(_a={},_a[VALUE_CHANGE]=null,_a[INPUT]=null,_a[INPUT_END]=null,_a[FOCUS]=null,_a[FOCUS_END]=null,_a[BLUR]=null,_a[BLUR_END]=null,_a[KEY_DOWN]=null,_a[MOUSE_WHEEL]=null,_a[CHANGE]=null,_a),selectNearestSegmentOnFocus:!1,selectPreviousSegmentOnBackspace:!1,enableMouseWheel:!1,allowCaretMode:!1,autoSwitchParts:!0,autoSwitchKeys:[],twoDigitYearMax:Constants.twoDigitYearMax,autoCorrectParts:!0,autoFill:!1,toggleDayPeriod:!1},DateInput=function(e){function t(t,n){var r=e.call(this,n)||this;return r.dateObject=null,r.currentText="",r.currentFormat="",r.interactionMode=DateInputInteractionMode.None,r.previousElementSelection={start:0,end:0},r.init(t,n),r}return __extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.dateObject&&this.dateObject.getValue()},enumerable:!1,configurable:!0}),t.prototype.init=function(e,t){var n=isValidDate(this.options.value)?cloneDate(this.options.value):new Date(t.formattedValue);isValidDate(n)||(n=null),this.element=e,this.options=extend$1({},defaultDateInputOptions,t,{steps:__assign(__assign({},defaultDateInputOptions.steps),t.steps)}),this.intl=this.options.intlService,this.dateObject=this.createDateObject(),this.dateObject.setValue(n),this.setTextAndFormat(),this.bindEvents(),this.resetSegmentValue=!0,this.interactionMode=DateInputInteractionMode.None,this.forceUpdate()},t.prototype.destroy=function(){this.unbindEvents(),this.dateObject=null,e.prototype.destroy.call(this)},t.prototype.bindEvents=function(){this.onElementDragStart=this.onElementDragStart.bind(this),this.element.addEventListener(DRAG_START,this.onElementDragStart),this.onElementDrop=this.onElementDrop.bind(this),this.element.addEventListener(DROP,this.onElementDrop),this.onElementClick=this.onElementClick.bind(this),this.element.addEventListener(CLICK,this.onElementClick),this.onElementMouseDown=this.onElementMouseDown.bind(this),this.element.addEventListener(MOUSE_DOWN,this.onElementMouseDown),this.element.addEventListener(TOUCH_START,this.onElementMouseDown),this.onElementMouseUp=this.onElementMouseUp.bind(this),this.element.addEventListener(MOUSE_UP,this.onElementMouseUp),this.onElementInput=this.onElementInput.bind(this),this.element.addEventListener(INPUT,this.onElementInput),this.onElementKeyDown=this.onElementKeyDown.bind(this),this.element.addEventListener(KEY_DOWN,this.onElementKeyDown),this.onElementFocus=this.onElementFocus.bind(this),this.element.addEventListener(FOCUS,this.onElementFocus),this.onElementBlur=this.onElementBlur.bind(this),this.element.addEventListener(BLUR,this.onElementBlur),this.onElementChange=this.onElementChange.bind(this),this.element.addEventListener(CHANGE,this.onElementChange),this.onElementPaste=this.onElementPaste.bind(this),this.element.addEventListener(PASTE,this.onElementPaste),this.onElementMouseWheel=this.onElementMouseWheel.bind(this),this.element.addEventListener(MOUSE_SCROLL,this.onElementMouseWheel),this.element.addEventListener(MOUSE_WHEEL,this.onElementMouseWheel)},t.prototype.unbindEvents=function(){this.element.removeEventListener(DRAG_START,this.onElementDragStart),this.element.removeEventListener(DROP,this.onElementDrop),this.element.removeEventListener(TOUCH_START,this.onElementMouseDown),this.element.removeEventListener(MOUSE_DOWN,this.onElementMouseDown),this.element.removeEventListener(MOUSE_UP,this.onElementMouseUp),this.element.removeEventListener(CLICK,this.onElementClick),this.element.removeEventListener(INPUT,this.onElementInput),this.element.removeEventListener(KEY_DOWN,this.onElementKeyDown),this.element.removeEventListener(FOCUS,this.onElementFocus),this.element.removeEventListener(BLUR,this.onElementBlur),this.element.removeEventListener(CHANGE,this.onElementChange),this.element.removeEventListener(PASTE,this.onElementPaste),this.element.removeEventListener(MOUSE_SCROLL,this.onElementMouseWheel),this.element.removeEventListener(MOUSE_WHEEL,this.onElementMouseWheel)},t.prototype.setOptions=function(e,t){void 0===t&&(t=!1),this.options=extend$1({},this.options,e,{steps:__assign(__assign({},defaultDateInputOptions.steps),e.steps)}),this.setDateObjectOptions(),t&&(this.unbindEvents(),this.init(this.element,this.options))},t.prototype.setDateObjectOptions=function(){if(this.dateObject){var e=this.getDateObjectOptions();this.dateObject.setOptions(e)}},t.prototype.resetLocale=function(){this.unbindEvents(),this.init(this.element,this.options)},t.prototype.isInCaretMode=function(){return this.interactionMode===DateInputInteractionMode.Caret},t.prototype.focus=function(){this.element.focus(),this.options.selectNearestSegmentOnFocus&&this.selectNearestSegment(0)},t.prototype.onElementDragStart=function(e){e.preventDefault()},t.prototype.onElementDrop=function(e){e.preventDefault()},t.prototype.onElementMouseDown=function(){this.mouseDownStarted=!0,this.focusedPriorToMouseDown=this.isActive},t.prototype.onElementMouseUp=function(e){this.mouseDownStarted=!1,e.preventDefault()},t.prototype.onElementClick=function(e){this.mouseDownStarted=!1,this.switchedPartOnPreviousKeyAction=!1;var t=this.selection;if(this.isInCaretMode()&&this.forceUpdate(),3===e.detail);else if(this.isActive&&this.options.selectNearestSegmentOnFocus){var n=this.element.selectionStart!==this.element.selectionEnd,r=isPresent(this.options.placeholder)&&!this.dateObject.hasValue()&&!this.focusedPriorToMouseDown,i=!n&&r?0:this.caret()[0];this.selectNearestSegment(i)}else this.setSelection(this.selectionByIndex(t.start))},t.prototype.onElementInput=function(e){this.triggerInput({event:e});var t=this.elementValue;if(this.element&&this.dateObject){var n=this.switchedPartOnPreviousKeyAction;if(this.isPasteInProgress)return this.options.allowCaretMode&&(this.resetSegmentValue=!1),this.updateOnPaste(e),void(this.isPasteInProgress=!1);var r=this.keyDownEvent||{},i=r.keyCode===KeyCode.BACKSPACE||r.key===Key.BACKSPACE,o=r.keyCode===KeyCode.DELETE||r.key===Key.DELETE,a=this.interactionMode;!this.options.allowCaretMode||a===DateInputInteractionMode.Caret||o||i||(this.resetSegmentValue=!0),this.options.allowCaretMode?this.interactionMode=DateInputInteractionMode.Caret:this.interactionMode=DateInputInteractionMode.Selection;var s=this.isInCaretMode();if(s&&this.keyDownEvent.key===Key.SPACE)this.restorePreviousInputEventState();else{var l=this.dateObject&&this.dateObject.getValue(),c=this.dateObject?this.dateObject.value:null,u=this.dateObject.getTextAndFormat(),d=u.text,p=u.format;this.currentFormat=p;var f="";f=s&&(i||o||a===DateInputInteractionMode.Caret)?this.previousElementValue:d;var h=this.elementValue,m=approximateStringMatching({oldText:f,newText:h,formatPattern:this.currentFormat,selectionStart:this.selection.start,isInCaretMode:s,keyEvent:this.keyDownEvent});if(m&&m.length&&m[0]&&m[0][1]!==Constants.formatSeparator&&(this.switchedPartOnPreviousKeyAction=!1),!s||m&&0!==m.length){if(s&&1===m.length){if(!m[0]||!m[0][0])return void this.restorePreviousInputEventState();if(s&&m[0]&&(m[0][0]===Constants.formatSeparator||m[0][1]===Constants.formatSeparator))return void this.restorePreviousInputEventState()}var g=1===m.length&&m[0][1]===Constants.formatSeparator,v=[],b=!1,y=null;if(!g)for(var $=0;$<m.length;$++){var x=this.dateObject.parsePart({symbol:m[$][0],currentChar:m[$][1],resetSegmentValue:this.resetSegmentValue,cycleSegmentValue:!this.isInCaretMode(),rawTextValue:this.element.value,isDeleting:i||o,originalFormat:this.currentFormat});v.push(x),x.value||(y={type:"parse"}),b=x.switchToNext}this.options.autoSwitchParts||(b=!1),this.resetSegmentValue=!1;var E,w=this.options.format===this.currentFormat||isPresent(this.options.format)&&this.options.format.length>1,D=v[v.length-1],_=D&&!isPresent(D.value),T=s&&(i||o)&&_,S=!!D&&D.resetPart,C=this.dateObject.getValue(),I=!isEqual$3(l,C),P=this.dateObject.value,O=this.selection;if(s){var N=m&&m.length>0?m[0][0]:null,R=this.dateObject.getLeadingZero()[N];m.length&&m[0][0]!==Constants.formatSeparator?b?(this.forceUpdateWithSelection(),this.switchDateSegment(1)):S?(E=this.currentFormat[O.start])?(this.forceUpdate(),this.setSelection(this.selectionBySymbol(E))):this.restorePreviousInputEventState():T?(this.forceUpdate(),m.length&&m[0][0]!==Constants.formatSeparator&&this.setSelection(this.selectionBySymbol(m[0][0]))):_?"0"===e.data&&R||(isPresent(l)&&!isPresent(C)?this.restorePreviousInputEventState():!isPresent(l)&&isPresent(C)?this.forceUpdateWithSelection():isPresent(l)&&isPresent(C)?I?this.forceUpdateWithSelection():this.restorePreviousInputEventState():isPresent(l)||isPresent(C)?c!==P||this.restorePreviousInputEventState():this.forceUpdateWithSelection()):_||w||this.forceUpdateWithSelection():(this.options.autoSwitchParts||m[0][1]!==Constants.formatSeparator)&&this.setSelection(this.selectionBySymbol(m[0][0]))}else s||(this.forceUpdate(),m.length&&m[0][0]!==Constants.formatSeparator&&this.setSelection(this.selectionBySymbol(m[0][0])),this.options.autoSwitchParts?g?(this.resetSegmentValue=!0,n||this.switchDateSegment(1),this.switchedPartOnPreviousKeyAction=!0):b&&(this.switchDateSegment(1),this.switchedPartOnPreviousKeyAction=!0):D&&D.switchToNext?this.resetSegmentValue=!0:g&&(this.resetSegmentValue=!0,n||this.switchDateSegment(1),this.switchedPartOnPreviousKeyAction=!0),i&&this.options.selectPreviousSegmentOnBackspace&&this.switchDateSegment(-1));this.tryTriggerValueChange({oldValue:l,event:e}),this.triggerInputEnd({event:e,error:y,oldElementValue:t,newElementValue:this.elementValue}),s&&this.setTextAndFormat()}else this.restorePreviousInputEventState()}}},t.prototype.onElementFocus=function(e){this.triggerFocus({event:e})||(this.isActive=!0,this.interactionMode=DateInputInteractionMode.None,this.switchedPartOnPreviousKeyAction=!1,this.refreshElementValue(),this.mouseDownStarted||this.caret(0,this.elementValue.length),this.mouseDownStarted=!1,this.triggerFocusEnd({event:e}))},t.prototype.onElementBlur=function(e){this.resetSegmentValue=!0,this.isActive=!1,this.triggerBlur({event:e})||(this.options.autoFill&&this.autoFill(),this.interactionMode=DateInputInteractionMode.None,this.switchedPartOnPreviousKeyAction=!1,this.refreshElementValue(),this.triggerBlurEnd({event:e}))},t.prototype.onElementChange=function(e){this.triggerChange({event:e})},t.prototype.onElementKeyDown=function(e){if(!this.triggerKeyDown({event:e})){var t=this.selection,n=t.start,r=t.end,i=e;if(this.keyDownEvent=e,this.previousElementValue=this.element.value,this.previousElementSelection={start:n,end:r},this.keyEventMatchesAutoSwitchKeys(e)){var o=e.keyCode===KeyCode.TAB;if(!o)return e.preventDefault(),void this.switchDateSegment(1);var a=this.selection,s=a.start,l=a.end;if(e.shiftKey&&o?this.switchDateSegment(-1):this.switchDateSegment(1),s!==this.selection.start||l!==this.selection.end)return void e.preventDefault()}var c=this.currentFormat[this.selection.start],u=this.getStepFromSymbol(c),d=!1,p=this.elementValue;if(!(e.altKey||e.ctrlKey||e.metaKey||e.keyCode===KeyCode.TAB)){switch(e.keyCode){case KeyCode.ARROW_LEFT:this.switchDateSegment(-1),d=!0,this.switchedPartOnPreviousKeyAction=!1;break;case KeyCode.ARROW_UP:this.modifyDateSegmentValue(u,c,i),p!==this.elementValue&&this.triggerInputEnd({event:e,error:null,newElementValue:this.elementValue,oldElementValue:p}),d=!0,this.switchedPartOnPreviousKeyAction=!1;break;case KeyCode.ARROW_RIGHT:this.switchDateSegment(1),d=!0,this.switchedPartOnPreviousKeyAction=!1;break;case KeyCode.ARROW_DOWN:this.modifyDateSegmentValue(-u,c,i),p!==this.elementValue&&this.triggerInputEnd({event:e,error:null,newElementValue:this.elementValue,oldElementValue:p}),d=!0,this.switchedPartOnPreviousKeyAction=!1;break;case KeyCode.ENTER:break;case KeyCode.HOME:this.selectNearestSegment(0),d=!0,this.switchedPartOnPreviousKeyAction=!1,this.resetSegmentValue=!0;break;case KeyCode.END:this.selectNearestSegment(this.elementValue.length),d=!0,this.switchedPartOnPreviousKeyAction=!1,this.resetSegmentValue=!0;break;default:return}d&&e.preventDefault()}}},t.prototype.onElementPaste=function(){this.isPasteInProgress=!0},t.prototype.onElementMouseWheel=function(e){var t=this.elementValue;if(this.options.enableMouseWheel&&!this.triggerMouseWheel({event:e})&&this.isActive){var n=e;n.shiftKey?this.switchDateSegment((n.wheelDelta||-n.detail)>0?-1:1):this.modifyDateSegmentValue((n.wheelDelta||-n.detail)>0?1:-1),n.returnValue=!1,n.preventDefault&&n.preventDefault(),t!==this.elementValue&&this.triggerInputEnd({event:e,error:null,newElementValue:this.elementValue,oldElementValue:t})}},t.prototype.updateOnPaste=function(e){var t=this.intl.parseDate(this.elementValue,this.inputFormat)||this.value;isPresent(t)&&this.dateObject.shouldNormalizeCentury()&&(t=this.dateObject.normalizeCentury(t));var n=this.dateObject&&this.dateObject.getValue();this.writeValue(t),this.tryTriggerValueChange({oldValue:n,event:e})},Object.defineProperty(t.prototype,"elementValue",{get:function(){return(this.element||{}).value||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFormat",{get:function(){return this.options.format?"string"==typeof this.options.format?this.options.format:this.options.format.inputFormat:Constants.defaultDateFormat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayFormat",{get:function(){return this.options.format?"string"==typeof this.options.format?this.options.format:this.options.format.displayFormat:Constants.defaultDateFormat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selection",{get:function(){var e={start:0,end:0};return null!==this.element&&void 0!==this.element.selectionStart&&(e={start:this.element.selectionStart,end:this.element.selectionEnd}),e},enumerable:!1,configurable:!0}),t.prototype.setSelection=function(e){this.element&&document.activeElement===this.element&&(this.element.setSelectionRange(e.start,e.end),isDocumentAvailable()&&isIOS()&&this.element.scrollIntoView({block:"nearest",inline:"nearest"}),e.start!==e.end&&(this.interactionMode=DateInputInteractionMode.Selection))},t.prototype.selectionBySymbol=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));return t<0&&(t=0),this.options.autoCorrectParts||this.currentFormat.length===this.currentText.length||(this.currentFormat.length<this.currentText.length?n+=this.currentText.length-this.currentFormat.length:n=Math.max(0,n-(this.currentFormat.length-this.currentText.length))),{start:t,end:n}},t.prototype.selectionByIndex=function(e){for(var t={start:e,end:e},n=e,r=e-1;n<this.currentFormat.length||r>=0;n++,r--){if(n<this.currentFormat.length&&this.currentFormat[n]!==Constants.formatSeparator){t=this.selectionBySymbol(this.currentFormat[n]);break}if(r>=0&&this.currentFormat[r]!==Constants.formatSeparator){t=this.selectionBySymbol(this.currentFormat[r]);break}}return t},t.prototype.switchDateSegment=function(e){var t=this.selection;if(this.isInCaretMode()){var n=t.start,r=this.currentFormat[n-1],i="",o="";if(e<0){for(var a=n+e;a>=0;a--)if((o=this.currentFormat[a])!==Constants.formatSeparator&&o!==r){n=a,i=o;break}}else for(a=n+e;a<this.currentFormat.length;a++)if((o=this.currentFormat[a])!==Constants.formatSeparator&&o!==r){n=a,i=o;break}if(i)return this.forceUpdate(),this.setSelection(this.selectionBySymbol(i)),void(this.interactionMode=DateInputInteractionMode.Selection)}this.interactionMode=DateInputInteractionMode.None;var s=this.selection,l=s.start,c=s.end;if(l<c&&this.currentFormat[l]!==this.currentFormat[c-1])return this.setSelection(this.selectionByIndex(e>0?l:c-1)),this.resetSegmentValue=!0,void(this.interactionMode=DateInputInteractionMode.None);for(var u=this.currentFormat[l],d=l+e;d>0&&d<this.currentFormat.length&&(this.currentFormat[d]===u||this.currentFormat[d]===Constants.formatSeparator);)d+=e;if(this.currentFormat[d]!==Constants.formatSeparator){for(var p=d;p>=0&&p<this.currentFormat.length&&this.currentFormat[p]===this.currentFormat[d];)p+=e;d>p&&(p+1!==l||d+1!==c)?(this.setSelection({start:p+1,end:d+1}),this.resetSegmentValue=!0):d<p&&(d!==l||p!==c)&&(this.setSelection({start:d,end:p}),this.resetSegmentValue=!0),this.interactionMode=DateInputInteractionMode.None}},t.prototype.modifyDateSegmentValue=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),this.dateObject&&!this.options.readonly){var r=this.value,i=DEFAULT_SEGMENT_STEP,o=this.caret();if("S"===(t=t||this.currentFormat[o[0]])&&(!this.options.steps.millisecond||this.options.steps.millisecond===DEFAULT_SEGMENT_STEP)){var a=millisecondDigitsInFormat(this.inputFormat);i=millisecondStepFor(a)}this.dateObject.modifyPart(t,i*e),this.tryTriggerValueChange({oldValue:r,event:n}),this.forceUpdate(),this.setSelection(this.selectionBySymbol(t))}},t.prototype.tryTriggerValueChange=function(e){if(void 0===e&&(e={oldValue:null,event:{}}),!isEqual$3(this.value,e.oldValue))return this.triggerValueChange(e)},t.prototype.triggerValueChange=function(e){return void 0===e&&(e={oldValue:null,event:{}}),this.trigger(VALUE_CHANGE,extend$1(e,{value:this.value}))},t.prototype.triggerInput=function(e){return void 0===e&&(e={event:{}}),this.trigger(INPUT,extend$1(e,{value:this.value}))},t.prototype.triggerInputEnd=function(e){return void 0===e&&(e={event:{},error:null,oldElementValue:"",newElementValue:""}),this.trigger(INPUT_END,extend$1(e,{value:this.value}))},t.prototype.triggerFocus=function(e){return void 0===e&&(e={event:{}}),this.trigger(FOCUS,extend$1({},e))},t.prototype.triggerFocusEnd=function(e){return void 0===e&&(e={event:{}}),this.trigger(FOCUS_END,extend$1({},e))},t.prototype.triggerBlur=function(e){return void 0===e&&(e={event:{}}),this.trigger(BLUR,extend$1({},e))},t.prototype.triggerBlurEnd=function(e){return void 0===e&&(e={event:{}}),this.trigger(BLUR_END,extend$1({},e))},t.prototype.triggerChange=function(e){return void 0===e&&(e={event:{}}),this.trigger(CHANGE,extend$1(e,{value:this.value}))},t.prototype.triggerKeyDown=function(e){return void 0===e&&(e={event:{}}),this.trigger(KEY_DOWN,extend$1({},e))},t.prototype.triggerMouseWheel=function(e){return void 0===e&&(e={event:{}}),this.trigger(MOUSE_WHEEL,extend$1({},e))},t.prototype.forceUpdate=function(){this.setTextAndFormat(),this.refreshElementValue()},t.prototype.forceUpdateWithSelection=function(){var e=this.selection,t=e.start,n=e.end,r=this.elementValue.length;this.forceUpdate();var i=this.elementValue.length-r;this.setSelection({start:t+i,end:n+i})},t.prototype.setTextAndFormat=function(){var e=this.dateObject.getTextAndFormat(),t=e.text,n=e.format;this.currentFormat=n,this.currentText=t},t.prototype.setElementValue=function(e){this.element.value=e},t.prototype.getStepFromSymbol=function(e){switch(e){case"S":return Number(this.options.steps.millisecond);case"s":return Number(this.options.steps.second);case"m":return Number(this.options.steps.minute);case"h":case"H":return Number(this.options.steps.hour);case"M":return Number(this.options.steps.month);case"d":case"E":return Number(this.options.steps.day);case"y":return Number(this.options.steps.year);default:return DEFAULT_SEGMENT_STEP}},t.prototype.restorePreviousInputEventState=function(){this.restorePreviousElementValue(),this.restorePreviousElementSelection()},t.prototype.restorePreviousElementValue=function(){this.setElementValue(this.previousElementValue||"")},t.prototype.restorePreviousElementSelection=function(){var e=this.previousElementSelection,t=e.start,n=e.end;this.setSelection({start:t||0,end:n||0})},t.prototype.writeValue=function(e){this.verifyValue(e),this.dateObject=this.getDateObject(e),this.refreshElementValue()},t.prototype.verifyValue=function(e){if(e&&!isValidDate(e))throw new Error("The 'value' should be a valid JavaScript Date instance.")},t.prototype.refreshElementValue=function(){var e=this.element,t=this.isActive?this.inputFormat:this.displayFormat,n=this.dateObject.getTextAndFormat(t),r=n.text,i=n.format;this.currentFormat=i,this.currentText=r;var o=this.options.hasPlaceholder||isPresent(this.options.placeholder),a=!this.isActive&&o&&!this.dateObject.hasValue();o&&isPresent(this.options.placeholder)&&(e.placeholder=this.options.placeholder);var s=a?"":r;this.previousElementValue=this.elementValue,this.setElementValue(s)},t.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,r=[e,e],i=this.element;if(!n||!this.options.disabled&&!this.options.readonly){try{void 0!==i.selectionStart&&(n&&(isDocumentAvailable()&&document.activeElement!==i&&i.focus(),i.setSelectionRange(e,t)),r=[i.selectionStart,i.selectionEnd])}catch(e){r=[]}return r}},t.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||n>=0;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(n>=0&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},t.prototype.selectDateSegment=function(e){for(var t=-1,n=0,r=0;r<this.currentFormat.length;r++)this.currentFormat[r]===e&&(n=r+1,-1===t&&(t=r));t<0&&(t=0),this.caret(0,0),this.caret(t,n)},t.prototype.getDateObject=function(e){var t=(this.dateObject||{}||null).leadingZero;this.options.value=e;var n=this.createDateObject();return n.setLeadingZero(this.isActive?t:null),n},t.prototype.createDateObject=function(){var e=this.getDateObjectOptions();return new DateObject(extend$1({},e))},t.prototype.getDateObjectOptions=function(){return{intlService:this.options.intlService,formatPlaceholder:this.options.formatPlaceholder?this.options.formatPlaceholder:"formatPattern",format:this.inputFormat,cycleTime:this.options.cycleTime,twoDigitYearMax:this.options.twoDigitYearMax,autoCorrectParts:this.options.autoCorrectParts,value:this.options.value,toggleDayPeriod:this.options.toggleDayPeriod,autoSwitchParts:this.options.autoSwitchParts}},t.prototype.keyEventMatchesAutoSwitchKeys=function(e){var t=(this.options.autoSwitchKeys||[]).map((function(e){return e.toString().toLowerCase().trim()}));return t.indexOf(e.keyCode.toString())>=0||t.indexOf(e.keyCode)>=0||t.indexOf(e.key.toLowerCase().trim())>=0},t.prototype.autoFill=function(){var e,t,n,r,i,o,a=this.dateObject,s=new Date;(a.date||a.month||a.year||a.hours||a.minutes||a.seconds)&&(n=a.year?a.value.getFullYear():s.getFullYear(),t=a.month?a.value.getMonth():s.getMonth(),e=a.date?a.value.getDate():s.getDate(),r=a.hours?a.value.getHours():s.getHours(),i=a.minutes?a.value.getMinutes():s.getMinutes(),o=a.seconds?a.value.getSeconds():s.getSeconds(),a.setValue(new Date(n,t,e,r,i,o)),this.refreshElementValue(),this.triggerValueChange())},t}(Observable);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const E="d",F="wide",L=(e,t,n)=>null===e||!(t&&t>e||n&&n<e)
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */,i$2=(e,t,n)=>({candidateValue:O(k$2,e),maxValue:addDays(O(k$2,n),t.getHours()<n.getHours()?0:1),minValue:O(k$2,t)}),N=(e,t,n)=>{if(!e||!t||!n)return!0;const{candidateValue:r,minValue:i,maxValue:o}=i$2(e,t,n);return i<=r&&r<=o},y=e=>{const t=i$9(),n=n$l(),r=n&&n.uDateInput,i=t.toLanguageString(n$5,x[n$5]);return e__namespace.createElement("span",{className:n$p(A$6.clearButton({c:r})),role:"button",onClick:t=>{t.stopPropagation();const{onClick:n}=e;n&&n.call(void 0,t)},tabIndex:e.tabindex||-1,title:i,key:"clearbutton"},e__namespace.createElement(v$6,{name:"x",icon:xIcon}))};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
let r$1=class{constructor(e){this.service=e,this.cldr={},this.locale=e.locale,this.format=e.format,this.toString=e.toString,this.formatDate=e.formatDate,this.parseDate=e.parseDate,this.parseNumber=e.parseNumber,this.formatNumber=e.formatNumber,this.splitDateFormat=e.splitDateFormat,this.numberSymbols=e.numberSymbols,this.firstDay=e.firstDay,this.dateFieldName=e.dateFieldName,this.dateFormatNames=(e,t)=>this.service.dateFormatNames(t),this.weekendRange=e=>{};const t=localeInfo(this.locale);this.cldr[t.name]=t}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const nt="Please enter a valid value!",ne=e__namespace.forwardRef(((e,t)=>{var n;const r=I$6(e.id),i=i$a(),o=i$9(),a=n$l(),s=n$m(te,e).unstyled||a,{format:l=l$1.format,size:c=l$1.size,rounded:u=l$1.rounded,fillMode:d=l$1.fillMode,formatPlaceholder:p=l$1.formatPlaceholder,spinners:f=l$1.spinners,disabled:h=l$1.disabled,min:m=l$1.min,max:g=l$1.max,minTime:v=l$1.minTime,maxTime:b=l$1.maxTime,validityStyles:$=l$1.validityStyles,validationMessage:E=l$1.validationMessage,placeholder:w=l$1.placeholder,enableMouseWheel:D=l$1.enableMouseWheel,autoCorrectParts:_=l$1.autoCorrectParts,autoSwitchParts:T=l$1.autoSwitchParts,allowCaretMode:S=l$1.allowCaretMode,twoDigitYearMax:C=l$1.twoDigitYearMax,ariaHasPopup:I=l$1.ariaHasPopup,autoFocus:P=l$1.autoFocus}=n$m(te,e),O=()=>void 0!==re.current?re.current:Z.current&&Z.current.value,R=()=>{const e=Z.current&&Z.current.currentText||"",t=O();return null==w||ae.focused||t?e:w},A=()=>void 0!==e.required&&e.required,M=()=>{const t=O()||e.value,n=m,r=g,i=L(t,n,r)&&N(t,v,b),o=void 0!==E,a=(!A()||null!=t)&&i,s=void 0!==e.valid?e.valid:a;return{customError:o,rangeOverflow:t&&r.getTime()<t.getTime()||!1,rangeUnderflow:t&&t.getTime()<n.getTime()||!1,valid:s,valueMissing:null===t}},k=()=>{J.current&&J.current.focus()},j=()=>new r$1(i),F=()=>{const t=O();return{format:l,steps:e.steps,formatPlaceholder:p,placeholder:w,selectPreviousSegmentOnBackspace:!0,value:e.value||t,intlService:j(),autoFill:void 0!==e.autoFill&&e.autoFill,enableMouseWheel:D,autoCorrectParts:_,autoSwitchParts:T,autoSwitchKeys:e.autoSwitchKeys||[],twoDigitYearMax:C,allowCaretMode:S}},V=e=>{Q.current&&Q.current.classList.add("k-focus"),se({focused:!0}),P&&q(!0)},B=e=>{Q.current&&Q.current.classList.remove("k-focus"),se({focused:!1})},z=e=>"string"==typeof e?e:{inputFormat:e,displayFormat:e},H=e=>{re.current=O(),le(),ie.current=e,re.current=void 0},G=t=>{e.onChange&&e.onChange(t)},U=e=>{o$f(document)===J.current&&e.preventDefault()},W=()=>{J.current&&J.current.setCustomValidity&&J.current.setCustomValidity(M().valid?"":E||l$1.validationMessage)},q=e__namespace.useCallback((e=>{var t;if(J.current&&P&&e){const e=(null==Z?void 0:Z.current).currentText,n=e[(null==Z?void 0:Z.current).currentText.search(/[^a-zA-Z]/)],r=e.split(n)[0].length;Q.current&&Q.current.classList.add("k-focus"),null==(t=null==Z?void 0:Z.current)||t.selectNearestSegment(r)}}),[P]),Y=e=>{!J.current||!Z.current||H(e)},K=t=>{const n=O();ie.current&&e.onChange&&!isEqual$3(ie.current.oldValue,n)&&e.onChange.call(void 0,{syntheticEvent:t,nativeEvent:ie.current.event,value:ie.current.value,target:X.current}),ie.current=null},X=e__namespace.useRef(null),J=e__namespace.useRef(null),Q=e__namespace.useRef(null);e__namespace.useImperativeHandle(X,(()=>({props:e,get options(){return F()},get text(){return R()},get element(){return J.current},get name(){return e.name},get value(){return O()},get validity(){return M()},focus:k,updateOnPaste:Y}))),e__namespace.useImperativeHandle(t,(()=>X.current));const Z=e__namespace.useRef(null),ee=e__namespace.useRef(null),ne=e__namespace.useRef(!1),re=e__namespace.useRef(null),ie=e__namespace.useRef(null),oe=e__namespace.useRef(e),[ae,se]=e__namespace.useState({focused:!1}),[,le]=e__namespace.useReducer((e=>e+1),0);e__namespace.useLayoutEffect((()=>{ne.current||(Z.current=new DateInput(J.current,{...F(),format:z(F().format),events:{focus:V,blur:B,valueChange:H,click:G}}),ee.current=Z.current.dateObject,ne.current=!0)}),[]),e__namespace.useEffect((()=>(W(),ne.current||Q.current&&Q.current.addEventListener("wheel",U,{passive:!1}),P&&(se({focused:!0}),q(!0)),()=>{Q.current&&Q.current.removeEventListener("wheel",U)})),[]),e__namespace.useEffect((()=>{W(),Z.current&&((((e,t)=>typeof e!=typeof t||("string"==typeof e&&"string"==typeof t?e!==t:"object"==typeof e&&"object"==typeof t&&JSON.stringify(e)!==JSON.stringify(t)))(oe.current.format,l)||oe.current.readonly!==e.readonly||JSON.stringify(oe.current.steps)!==JSON.stringify(e.steps)||j().locale!==Z.current.options.intlService.locale)&&Z.current.setOptions(F(),!0),oe.current.value!==e.value&&(null!==ee.current.getValue()||null!==e.value)&&ee.current.setValue(e.value),void 0!==e.ariaExpanded&&e.ariaExpanded&&(Z.current.options.placeholder=null),void 0!==e.ariaExpanded&&!e.ariaExpanded&&(Z.current.options.placeholder=w),Z.current.refreshElementValue(),oe.current={format:l,readonly:e.readonly,ariaExpanded:e.ariaExpanded,steps:e.steps,value:e.value})}));const ce=e.id||r+"-accessibility-id",ue=s&&s.uDateInput,de=R(),pe=!$||M().valid;e__namespace.useImperativeHandle(e._ref,(()=>X.current));const fe=e__namespace.createElement("span",{ref:e=>{Q.current=e},style:e.label?void 0:{width:e.width},dir:e.dir,className:n$p(A$6.wrapper({c:ue,size:c,fillMode:d,rounded:u,disabled:h,required:A(),invalid:!pe}),e.className)},e__namespace.createElement("input",{ref:e=>{J.current=e},role:e.ariaRole||"textbox",readOnly:e.readonly,tabIndex:e.tabIndex||0,disabled:h,title:void 0!==e.title?e.title:de,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",autoFocus:P,className:n$p(A$6.inputInner({c:ue})),id:ce,value:de,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-haspopup":I,"aria-disabled":h,"aria-expanded":e.ariaExpanded,"aria-controls":e.ariaControls,"aria-required":e.required,"aria-invalid":!pe,onKeyDown:K,onChange:K,onWheel:K,onInput:K,onClick:K,name:e.name,...e.inputAttributes}),e.children,e.clearButton&&e.value&&e__namespace.createElement(y,{onClick:G,key:"clearbutton"}),f&&e__namespace.createElement("span",{className:n$p(A$6.inputSpinner({c:ue})),onMouseDown:e=>{e.preventDefault();const t=o$f(document);J.current&&t!==J.current&&J.current.focus({preventScroll:!0})}},e__namespace.createElement(k$6,{tabIndex:-1,type:"button",rounded:null,className:n$p(A$6.spinnerIncrease({c:ue})),icon:"caret-alt-up",svgIcon:caretAltUpIcon,"aria-label":o.toLanguageString(a$2,x[a$2]),title:o.toLanguageString(a$2,x[a$2]),onClick:e=>{var t;null==(t=Z.current)||t.modifyDateSegmentValue(1),K(e)}}),e__namespace.createElement(k$6,{tabIndex:-1,type:"button",rounded:null,className:n$p(A$6.spinnerDecrease({c:ue})),icon:"caret-alt-down",svgIcon:caretAltDownIcon,"aria-label":o.toLanguageString(c$2,x[c$2]),title:o.toLanguageString(c$2,x[c$2]),onClick:e=>{var t;null==(t=Z.current)||t.modifyDateSegmentValue(-1),K(e)}})));return e.label?e__namespace.createElement(I$4,{label:e.label,editorId:ce,editorValue:null==(n=J.current)?void 0:n.value,editorValid:pe,editorDisabled:h,children:fe,style:{width:e.width}}):fe}));ne.propTypes={value:PropTypes.instanceOf(Date),format:PropTypes.oneOfType([W$1(PropTypes.string),PropTypes.shape({skeleton:PropTypes.string,pattern:PropTypes.string,date:PropTypes.oneOf(["short","medium","long","full"]),time:PropTypes.oneOf(["short","medium","long","full"]),datetime:PropTypes.oneOf(["short","medium","long","full"]),era:PropTypes.oneOf(["narrow","short","long"]),year:PropTypes.oneOf(["numeric","2-digit"]),month:PropTypes.oneOf(["numeric","2-digit","narrow","short","long"]),day:PropTypes.oneOf(["numeric","2-digit"]),weekday:PropTypes.oneOf(["narrow","short","long"]),hour:PropTypes.oneOf(["numeric","2-digit"]),hour12:PropTypes.bool,minute:PropTypes.oneOf(["numeric","2-digit"]),second:PropTypes.oneOf(["numeric","2-digit"]),timeZoneName:PropTypes.oneOf(["short","long"])})]),formatPlaceholder:PropTypes.oneOfType([W$1(PropTypes.oneOf(["wide","narrow","short","formatPattern"])),PropTypes.shape({year:W$1(PropTypes.string),month:W$1(PropTypes.string),day:W$1(PropTypes.string),hour:W$1(PropTypes.string),minute:W$1(PropTypes.string),second:W$1(PropTypes.string)})]),width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),tabIndex:PropTypes.number,title:PropTypes.string,steps:PropTypes.shape({year:W$1(PropTypes.number),month:W$1(PropTypes.number),day:W$1(PropTypes.number),hour:W$1(PropTypes.number),minute:W$1(PropTypes.number),second:W$1(PropTypes.number)}),min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),disabled:PropTypes.bool,spinners:PropTypes.bool,name:PropTypes.string,dir:PropTypes.string,label:PropTypes.node,id:PropTypes.string,ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,ariaLabel:PropTypes.string,ariaRole:PropTypes.string,ariaHasPopup:PropTypes.oneOfType([PropTypes.bool,PropTypes.oneOf(["grid","dialog"])]),ariaExpanded:PropTypes.oneOfType([PropTypes.bool]),onChange:PropTypes.func,validationMessage:PropTypes.string,required:PropTypes.bool,valid:PropTypes.bool,size:PropTypes.oneOf([null,"small","medium","large"]),rounded:PropTypes.oneOf([null,"small","medium","large","full"]),fillMode:PropTypes.oneOf([null,"solid","flat","outline"]),autoFocus:PropTypes.bool,inputAttributes:PropTypes.object};const l$1={format:E,size:"medium",rounded:"medium",fillMode:"solid",formatPlaceholder:F,spinners:!1,disabled:!1,max:cloneDate(L$1),min:cloneDate(H$1),minTime:cloneDate(q),maxTime:cloneDate(G$3),validityStyles:!0,validationMessage:nt,placeholder:null,enableMouseWheel:!0,autoCorrectParts:!0,autoSwitchParts:!0,allowCaretMode:!1,twoDigitYearMax:68,ariaHasPopup:"grid",autoFocus:!1},te=a$c();ne.displayName="KendoReactDateInput";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const n$1=k$6,c$1=e=>{const[t,n]=e__namespace.useState(!1);return e__namespace.useEffect((()=>{var t;e.current&&n(!!(null!=(t=e.current.element)&&t.value||e.current.text))})),{editorValue:t}},i$1=e=>{const{dateInput:t,...n}=e,r=c$1(t);return e__namespace.createElement(I$4,{...n,...r})},I=e=>{const{footer:t,windowWidth:n=0,mobileFilter:r,children:i,navigatable:o,navigatableElements:a,expand:s,animation:l,title:c,subTitle:u,onClose:d}=e,p=n$q(),f={navigatable:o||!1,navigatableElements:a||[],expand:s,animation:!1!==l,suffixActions:e__namespace.createElement(k$6,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",size:"large",themeColor:"primary",svgIcon:checkIcon,onClick:d}),filter:r,onClose:d,animationStyles:p&&n<=p.small?{top:0,width:"100%",height:"100%"}:void 0,title:c,subTitle:u,className:"k-adaptive-actionsheet",position:p&&n<=p.small?"fullscreen":void 0};return e__namespace.createElement(j$1,{...f},i,t&&e__namespace.createElement(n$7,{className:"k-actions k-actions-stretched"},e__namespace.createElement(k$6,{size:"large",tabIndex:0,"aria-label":t.cancelText,"aria-disabled":"false",type:"button",onClick:t.onCancel},t.cancelText),e__namespace.createElement(k$6,{tabIndex:0,themeColor:"primary",size:"large","aria-label":t.applyText,"aria-disabled":"false",type:"button",onClick:t.onApply},t.applyText)))},ue=e__namespace.forwardRef(((e,t)=>{const n=I$6(e.id),r=i$9(),i=n$q(),{defaultShow:o=l.defaultShow,defaultValue:a=l.defaultValue,dateInput:s=l.dateInput,calendar:c=l.calendar,toggleButton:u=l.toggleButton,popup:d=l.popup,disabled:p=l.disabled,format:f=l.format,max:h=l.max,min:m=l.min,popupSettings:g=l.popupSettings,tabIndex:v=l.tabIndex,weekNumber:b=l.weekNumber,validityStyles:y=l.validityStyles,size:$=l.size,rounded:E=l.rounded,fillMode:w=l.fillMode,autoFocus:D=l.autoFocus,show:_,autoSwitchParts:T,autoSwitchKeys:S,twoDigitYearMax:C,ariaLabel:P,adaptive:N,adaptiveTitle:R=e.label||void 0,adaptiveSubtitle:A,formatPlaceholder:M,inputAttributes:k,validationMessage:L,visited:j,value:F,touched:V,modified:B,_adaptiveMode:z=i,valid:H,focusedDate:G,id:U,ariaLabelledBy:W,ariaDescribedBy:q,placeholder:Y,...K}=n$m(kt,e),X=()=>{if(e$h)return me.current&&me.current.ownerDocument||window.document},J=()=>!!(De.windowWidth&&i&&De.windowWidth<=(null==i?void 0:i.medium)&&e.adaptive),Q=()=>{const e=void 0!==be.current?be.current:void 0!==F?F:De.value;return null!==e?cloneDate(e):null},Z=()=>void 0!==ye.current?ye.current:void 0!==_?_:De.show,ee=()=>void 0!==e.required&&e.required,te=()=>{const e=Q()||F||null,t=m,n=h,r=P$3(e,t,n),i=void 0!==L,o=(!ee()||null!=e)&&r,a=void 0!==H?H:o;return{customError:i,rangeOverflow:e&&n.getTime()<e.getTime()||!1,rangeUnderflow:e&&e.getTime()<t.getTime()||!1,valid:a,valueMissing:null===e}},ne=()=>{ge.current&&ge.current.focus()},re=e=>{ve.current=e},ie=t=>{Z()!==t&&(Se({show:t}),t&&e.onOpen&&e.onOpen.call(void 0,{target:he.current}),!t&&e.onClose&&e.onClose.call(void 0,{target:he.current}))},oe=e=>{null!=g&&g.onMouseDownOutside&&g.onMouseDownOutside.call(void 0,e)},ae=(t,n)=>{Se({value:cloneDate(t||void 0)}),be.current=t,ye.current=!1,J()||(xe.current=!0),e.onChange&&e.onChange.call(void 0,{syntheticEvent:n.syntheticEvent,nativeEvent:n.nativeEvent,value:Q(),show:Z(),target:he.current}),be.current=void 0,ye.current=void 0,ie(!1)},se=e=>{const t=(e=>{const t=Q();return t&&e?O(e,t):e})(e.value);ae(t,e)},le=()=>{const{popupClass:e,...t}=g,n=Z(),r=Q(),i=r&&getDate(r),o=n$p(e),a={popupClass:"k-datepicker-popup",show:n,anchor:me.current,className:o,id:Ce,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...t,onMouseDownOutside:oe},s={disabled:p,value:i,min:m,max:h,weekNumber:b,focusedDate:G,className:J()?"k-calendar-lg":"",navigation:!J(),onChange:se},u=c||l.calendar,f=d||l.popup;return J()?e__namespace.createElement(u,{_ref:re,...s}):e__namespace.createElement(f,{...a},e__namespace.createElement(u,{_ref:re,...s}))},ce=()=>{Se({focused:!1}),ie(!1)},ue=()=>{ie(!Z())},de=()=>{p||(xe.current=!0,ie(!Z()))},pe=e=>{e.preventDefault()},fe=e=>{const{altKey:t,keyCode:n}=e;if(n===e$g.esc&&Z())return xe.current=!0,void ie(!1);t&&(n===e$g.up||n===e$g.down)&&(e.preventDefault(),e.stopPropagation(),xe.current=n===e$g.up,ie(n===e$g.down))},he=e__namespace.useRef(null),me=e__namespace.useRef(null),ge=e__namespace.useRef(null),ve=e__namespace.useRef(null);e__namespace.useImperativeHandle(he,(()=>({props:e,get element(){return me.current},get calendar(){return ve.current},get dateInput(){return ge.current},get name(){return e.name},get show(){return Z()},get validity(){return te()},get value(){return Q()},get mobileMode(){return J()},togglePopup:ue,focus:ne}))),e__namespace.useImperativeHandle(t,(()=>he.current));const be=e__namespace.useRef(void 0),ye=e__namespace.useRef(void 0),$e=e__namespace.useRef(null),xe=e__namespace.useRef(!1),Ee=e__namespace.useRef(!1),we=e__namespace.useRef(null),[De,_e]=e__namespace.useState({value:a,show:o,focused:!1}),[,Te]=e__namespace.useReducer((e=>e),!0),Se=e=>{_e((t=>({...t,...e})))};e__namespace.useEffect((()=>{ve.current&&ve.current.element&&Z()&&!Ee.current&&ve.current.element.focus({preventScroll:!0}),J()&&Z()&&!Ee.current&&setTimeout((()=>{ve.current&&ve.current.element&&ve.current.element.focus({preventScroll:!0})}),300),ge.current&&ge.current.element&&!Z()&&xe.current&&ge.current.element.focus({preventScroll:!0}),Ee.current=Z(),xe.current=!1})),e__namespace.useEffect((()=>{var e;return we.current=e$h&&window.ResizeObserver&&new window.ResizeObserver((e=>(e=>{for(const t of e)Se({windowWidth:t.target.clientWidth})})(e))),Z()&&Te(),null!=(e=X())&&e.body&&we.current&&we.current.observe(X().body),()=>{var e;clearTimeout($e.current),null!=(e=X())&&e.body&&we.current&&we.current.disconnect()}}),[]);const Ce=n+"-popup-id",Ie=le(),Pe=s||l.dateInput,Oe=Q(),Ne=u||l.toggleButton,Re=(()=>{const{windowWidth:e=0}=De,t={expand:Z(),onClose:ce,title:R,subTitle:A,windowWidth:e};return e__namespace.createElement(I,{...t},e__namespace.createElement(e$3,null,le()))})(),Ae=!y||te().valid,Me=r.toLanguageString(r$2,x[r$2]),ke={disabled:p,format:f,formatPlaceholder:M,id:U,ariaLabelledBy:W,ariaDescribedBy:q,ariaLabel:P,max:h,min:m,name:e.name,onChange:e=>{ae(e.value,e)},required:e.required,_ref:ge,tabIndex:Z()?-1:v,title:e.title,valid:te().valid,validationMessage:L,validityStyles:y,value:Oe,label:void 0,placeholder:De.focused?null:Y,ariaExpanded:Z(),size:null,fillMode:null,rounded:null,autoFill:e.autoFill,twoDigitYearMax:C,enableMouseWheel:e.enableMouseWheel,autoCorrectParts:e.autoCorrectParts,autoSwitchParts:T,autoSwitchKeys:S,allowCaretMode:e.allowCaretMode,inputAttributes:k},Le=e__namespace.createElement(a$d,{onFocus:()=>{Se({focused:!0})},onBlur:J()?void 0:ce,onSyncBlur:e.onBlur,onSyncFocus:e.onFocus},(t=>e__namespace.createElement(e__namespace.Fragment,null,e__namespace.createElement("span",{...e.label?{}:K,ref:me,className:n$p("k-input","k-datepicker",{[`k-input-${l$h.sizeMap[$]||$}`]:$,[`k-rounded-${l$h.roundedMap[E]||E}`]:E,[`k-input-${w}`]:w,"k-invalid":!Ae,"k-required":ee(),"k-disabled":p},e.className),onKeyDown:fe,style:{width:e.width},onFocus:J()?de:t.onFocus,onBlur:t.onBlur,onClick:J()?de:void 0},e__namespace.createElement(Pe,{_ref:ge,ariaRole:"combobox",ariaExpanded:Z(),ariaControls:Ce,autoFocus:D,...ke}),e__namespace.createElement(Ne,{type:"button",icon:"calendar",svgIcon:calendarIcon,title:Me,className:"k-input-button",rounded:null,onClick:J()?void 0:de,"aria-label":Me,fillMode:w,onMouseDown:pe}),!J()&&Ie),J()&&Re)));return e.label?e__namespace.createElement(i$1,{dateInput:ge,label:e.label,editorId:n,editorValid:Ae,editorDisabled:p,children:Le,style:{width:e.width},...K}):Le}));
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */ue.propTypes={className:PropTypes.string,defaultShow:PropTypes.bool,defaultValue:PropTypes.instanceOf(Date),disabled:PropTypes.bool,focusedDate:PropTypes.instanceOf(Date),format:PropTypes.oneOfType([PropTypes.string,PropTypes.shape({skeleton:W$1(PropTypes.string),pattern:W$1(PropTypes.string),date:W$1(PropTypes.oneOf(["short","medium","long","full"])),time:W$1(PropTypes.oneOf(["short","medium","long","full"])),datetime:W$1(PropTypes.oneOf(["short","medium","long","full"])),era:W$1(PropTypes.oneOf(["narrow","short","long"])),year:W$1(PropTypes.oneOf(["numeric","2-digit"])),month:W$1(PropTypes.oneOf(["numeric","2-digit","narrow","short","long"])),day:W$1(PropTypes.oneOf(["numeric","2-digit"])),weekday:W$1(PropTypes.oneOf(["narrow","short","long"])),hour:W$1(PropTypes.oneOf(["numeric","2-digit"])),hour12:W$1(PropTypes.bool),minute:W$1(PropTypes.oneOf(["numeric","2-digit"])),second:W$1(PropTypes.oneOf(["numeric","2-digit"])),timeZoneName:W$1(PropTypes.oneOf(["short","long"]))})]),formatPlaceholder:PropTypes.oneOfType([W$1(PropTypes.oneOf(["wide","narrow","short","formatPattern"])),PropTypes.shape({year:W$1(PropTypes.string),month:W$1(PropTypes.string),day:W$1(PropTypes.string),hour:W$1(PropTypes.string),minute:W$1(PropTypes.string),second:W$1(PropTypes.string)})]),id:PropTypes.string,ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,ariaLabel:PropTypes.string,min:PropTypes.instanceOf(Date),max:PropTypes.instanceOf(Date),name:PropTypes.string,popupSettings:PropTypes.shape({animate:W$1(PropTypes.bool),appendTo:W$1(PropTypes.any),popupClass:W$1(PropTypes.string)}),show:PropTypes.bool,tabIndex:PropTypes.number,title:PropTypes.string,value:PropTypes.instanceOf(Date),weekNumber:PropTypes.bool,width:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),validationMessage:PropTypes.string,required:PropTypes.bool,valid:PropTypes.bool,size:PropTypes.oneOf([null,"small","medium","large"]),rounded:PropTypes.oneOf([null,"small","medium","large","full"]),fillMode:PropTypes.oneOf([null,"solid","flat","outline"]),adaptive:PropTypes.bool,adaptiveTitle:PropTypes.string,adaptiveSubtitle:PropTypes.string,autoFocus:PropTypes.bool,inputAttributes:PropTypes.object};const l={defaultShow:!1,defaultValue:null,dateInput:ne,calendar:Q$1,toggleButton:n$1,popup:se,disabled:!1,format:"d",max:L$1,min:H$1,popupSettings:{},tabIndex:0,weekNumber:!1,validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1},kt=a$c();ue.displayName="KendoReactDatePicker";
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const e=Object.freeze({name:"@progress/kendo-react-dateinputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1758806329,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}),n=2,r=class e extends e__namespace.Component{constructor(e){super(e),this._element=null,this.isActive=!1,this.focusActiveDate=()=>{if(!this._element)return;const e=this._element.querySelector("td.k-focus"),t=this._element.querySelector(".k-state-pending-focus");e&&e[0]&&e[0].classList.remove("k-focus"),t&&t.classList.add("k-focus"),this.isActive=!0},this.blurActiveDate=()=>{if(!this._element)return;const e=this._element.querySelector("td.k-focus");e&&e.classList.remove("k-focus"),this.isActive=!1},this.rotateSelectionRange=e=>{if(null===e.start||null===e.end)return e;const t=e.end<e.start;return{start:t?e.end:e.start,end:t?e.start:e.end}},this.handleWeekCellClick=(e,t,n)=>{const{onWeekSelect:r}=this.props;r&&n&&r.call(void 0,e,t,n)},this.handleDateChange=(e,t=!1)=>{const{onChange:n}=this.props;if(n){const r={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:cloneDate(e.value),target:this,isTodayClick:t};n.call(void 0,r)}}}get element(){return this._element}get weekNumber(){return!(!this.props.showWeekNumbers||this.props.activeView!==c$3.month)}get min(){return void 0!==this.props.min?this.props.min:e.defaultProps.min}get max(){return void 0!==this.props.max?this.props.max:e.defaultProps.max}componentDidUpdate(){this.isActive&&this.focusActiveDate()}render(){const e=this.props.allowReverse?this.rotateSelectionRange(this.props.selectionRange):this.props.selectionRange,t=n$p("k-calendar-view k-align-items-start k-justify-content-center",{"k-vstack":this.props.verticalView,"k-hstack":!this.props.verticalView,"k-calendar-monthview":this.props.activeView===c$3.month,"k-calendar-yearview":this.props.activeView===c$3.year,"k-calendar-decadeview":this.props.activeView===c$3.decade,"k-calendar-centuryview":this.props.activeView===c$3.century});return e__namespace.createElement("div",{ref:e=>{this._element=e},className:t},this.props.dates.map((t=>e__namespace.createElement("table",{className:"k-calendar-table",key:t.getTime(),role:"grid"},e__namespace.createElement(f,{bus:this.props.bus,weekDaysFormat:this.props.weekDaysFormat,service:this.props.service,key:t.getTime(),direction:"horizontal",activeView:this.props.activeView,cellUID:this.props.cellUID,viewDate:t,min:this.min,max:this.max,focusedDate:this.props.focusedDate,selectionRange:e,selectedDate:this.props.value,showWeekNumbers:this.weekNumber,onChange:this.handleDateChange,onWeekSelect:this.handleWeekCellClick,onCellEnter:this.props.onCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,showOtherMonthDays:this.props.showOtherMonthDays,allowReverse:this.props.allowReverse})))))}};
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */r.defaultProps={showWeekNumbers:!1,views:2,take:2,allowReverse:!0,weekDaysFormat:"short",min:H$1,max:L$1};let c=r;
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */const S=(e=v.defaultProps.min,t=v.defaultProps.max,n)=>n instanceof Date&&!Array.isArray(n)&&j(getDate(n),e,t)?getDate(n):null,U=(e=v.defaultProps.min,t=v.defaultProps.max,n)=>Array.isArray(n)?n.filter((n=>j(n,e,t))).map((e=>getDate(e))):null,$=e=>"object"!=typeof e||e instanceof Date||null===e||Array.isArray(e)?l$4:e,H=(e,t,n)=>e||t&&t[0]||n&&n.start,pe=(e,t)=>null===e.start&&null===t?"start":null===e.end?"end":"start",u$1=class t extends e__namespace.Component{constructor(n){super(n),this.dates=[],this.selectedDate=null,this.selectedMultiple=null,this.selectedRange=l$4,this._focusedDate=new Date,this.cellUID=this.props.id+"-cell-uid",this.activeRangeEnd="start",this._element=null,this.intl=null,this.localization=null,this.service=null,this.calendarViewList=null,this.isActive=!1,this.calculateFocusFromValue=!0,this.showLicenseWatermark=!1,this.focus=()=>{this._element&&this._element.focus()},this.clampRange=e=>({start:e,end:null}),this.rangeWithFocused=(e,t)=>({start:e.start,end:null===e.end&&null!==e.start&&this.isActive?t:e.end}),this.generateRange=(e,t)=>{const{end:n,start:r}=t,i=null!==t.start&&e.getTime()<=t.start.getTime();return!this.props.allowReverse&&i?{start:e,end:this.selectedRange.start}:"end"!==this.activeRange?{start:e,end:n}:{start:r||this.selectedDate,end:e}},this.canNavigate=e=>{if(!this.service)return!1;const t=this.service.move(this.focusedDate,e);return this.min<=t&&t<=this.max||this.service.isInSameView(t,this.min)||this.service.isInSameView(t,this.max)},this.navigate=(e,t)=>{this.calculateFocusFromValue=!1;const n=this.move(e,t);this.setState({navigateDate:n,focusedDate:n})},this.move=(e,t)=>this.clampDate(this.service.move(t,e)),this.clampDate=e=>K$2(e,this.min,this.max),this.shouldAutoCorrect=(e,t)=>{const{end:n,start:r}=t;return"end"!==this.activeRange?null!==n&&e>n:null!==r&&e<r},this.handleCellEnter=e=>{"range"===this.props.mode&&(this.calculateFocusFromValue=!1,this.setState({focusedDate:e}))},this.handleMouseDown=e=>{e.preventDefault()},this.handleClick=e=>{this._element&&this._element.focus({preventScroll:!0})},this.handleFocus=e=>{if(this.isActive=!0,!this.calendarViewList)return;this.calendarViewList.focusActiveDate();const{onFocus:t}=this.props;t&&t.call(void 0,e)},this.handleBlur=e=>{if(this.isActive=!1,!this.calendarViewList)return;this.calendarViewList.blurActiveDate();const{onBlur:t}=this.props;t&&t.call(void 0,e)},this.handleTodayClick=e=>{this.todayIsInRange&&this.handleDateChange(e)},this.handlePrevButtonClick=()=>{const e=w$1.PrevView;if(this.state.activeView>0&&this.focusedDate.getFullYear()>this.dates[0].getFullYear())this.navigate(e,this.move(e,this.focusedDate));else{const t=this.isInMonth(this.focusedDate,this.dates[1])?this.move(e,this.focusedDate):this.focusedDate;this.navigate(e,t)}},this.handleNextButtonClick=()=>{this.navigate(w$1.NextView,this.focusedDate)},this.handleKeyDown=e=>{const{keyCode:t,ctrlKey:n,metaKey:r}=e;if(84===t){const e=X();this.calculateFocusFromValue=!1,this.setState({focusedDate:e,navigateDate:e})}if((n||r)&&(t===e$g.left&&this.handlePrevButtonClick(),t===e$g.right&&this.handleNextButtonClick()),t===e$g.enter){const t={syntheticEvent:e,nativeEvent:e.nativeEvent,value:this.focusedDate,target:this};this.handleDateChange(t)}else{const t=K$2(this.navigation.move(this.focusedDate,this.navigation.action(e),this.state.activeView,this.service,e),this.min,this.max);if(isEqualDate(this.focusedDate,t))return;this.dates&&this.service&&!this.service.isInArray(t,this.dates)&&this.setState({navigateDate:t}),this.calculateFocusFromValue=!1,this.setState({focusedDate:t})}e.preventDefault()},this.handleViewChange=({view:e})=>{this.calculateFocusFromValue=!1,this.setState((t=>({activeView:e,navigateDate:t.focusedDate})))},this.handleWeekSelection=(e,t,n)=>{if("single"===this.props.mode)return;const r=0===t?e:addDays(e,-t),i=6===t?e:addDays(e,6-t);let o=null;if("multiple"===this.props.mode){o=[];for(let e=0;e<=6;e++)o.push(addDays(r,e));this.setState({value:o,focusedDate:e})}"range"===this.props.mode&&(o={start:r,end:i},this.setState({value:o,focusedDate:e}));const{onChange:a}=this.props;if(a){const e={syntheticEvent:n,nativeEvent:n.nativeEvent,value:o,target:this};a.call(void 0,e)}},this.handleDateChange=e=>{const t=cloneDate(e.value),n=this.bus.canMoveDown(this.state.activeView);if(this.props.disabled)return;if(n){if(!e.isTodayClick)return this.bus.moveDown(this.state.activeView,e.syntheticEvent),void this.setState({focusedDate:t,navigateDate:t});this.bus.moveToBottom(this.state.activeView)}let r;switch(this.calculateFocusFromValue=!0,this.props.mode){case"single":default:r=cloneDate(e.value);break;case"multiple":if(Array.isArray(this.selectedMultiple)){const t=this.selectedMultiple.slice();let n=-1;t.forEach(((t,r)=>{isEqualDate(t,e.value)&&(n=r)})),-1!==n?t.splice(n,1):t.push(cloneDate(e.value)),r=t.slice()}else r=this.selectedDate?[cloneDate(this.selectedDate),cloneDate(e.value)]:[cloneDate(e.value)];break;case"range":r=null!==this.selectedRange.start&&null!==this.selectedRange.end&&"start"===this.activeRange?this.clampRange(e.value):this.generateRange(e.value,this.selectedRange),this.activeRangeEnd="end"!==this.activeRange?"end":"start"}this.valueDuringOnChange=r,e.isTodayClick&&this.setState({navigateDate:t}),this.setState({value:r,focusedDate:t}),this.valueDuringOnChange=r;const{onChange:i}=this.props;if(i){const t={syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,value:r,target:this};i.call(void 0,t)}this.valueDuringOnChange=void 0},this.showLicenseWatermark=!d$b(e,{component:"MultiViewCalendar"}),this.licenseMessage=w$9(e);const r=void 0!==n.value?n.value:n.defaultValue||t.defaultProps.defaultValue,i=S(this.min,this.max,r),o=U(this.min,this.max,r),a=$(r),s=H(i,o,a),l=d$3(c$3[n.defaultActiveView],this.bottomView,this.topView),u=K$2(n.focusedDate||s||X(),this.min,this.max);this.state={value:r,activeView:l,focusedDate:u,navigateDate:u},this.activeRangeEnd=pe(a,i),this.bus=new V(this.handleViewChange),this.navigation=new p(this.bus),this.calculateFocusFromValue=!1,this.lastView=l,this.lastViewsCount=this.props.views||c.defaultProps.views}get wrapperID(){return this.props.id+"-wrapper-id"}get isRtl(){return"rtl"===this.props.dir}get element(){return this._element}get value(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value}get focusedDate(){return cloneDate(this._focusedDate)}get min(){return getDate(void 0!==this.props.min?this.props.min:t.defaultProps.min)}get max(){return getDate(void 0!==this.props.max?this.props.max:t.defaultProps.max)}get bottomView(){return c$3[void 0!==this.props.bottomView?this.props.bottomView:t.defaultProps.bottomView]}get topView(){return c$3[void 0!==this.props.topView?this.props.topView:t.defaultProps.topView]}get activeRange(){return void 0!==this.props.activeRangeEnd?this.props.activeRangeEnd:this.activeRangeEnd}get todayIsInRange(){return j(X(),getDate(this.min),getDate(this.max))}componentDidMount(){this.calculateFocusFromValue=!0}componentDidUpdate(){this.calendarViewList&&(this.isActive?this.calendarViewList.focusActiveDate:this.calendarViewList.blurActiveDate)();const e=S(this.min,this.max,this.value);this.calculateFocusFromValue=!!(this.selectedDate&&e&&this.selectedDate.getTime()&&e.getTime()),this.lastView=this.state.activeView,this.lastViewsCount=this.props.views||c.defaultProps.views}render(){this.props._ref&&this.props._ref(this),this.intl=l$f(this),this.localization=s$a(this),this.bus.configure(this.bottomView,this.topView);const e=d$3(this.state.activeView,this.bottomView,this.topView);this.service=this.bus.service(e,this.intl),this.selectedDate=S(this.min,this.max,this.value),this.selectedMultiple=U(this.min,this.max,this.value),this.selectedRange=$(this.value);const t=H(this.selectedDate,this.selectedMultiple,this.selectedRange);this._focusedDate=K$2(this.calculateFocusFromValue&&null!==t?t:this.state.focusedDate,this.min,this.max);const n=n$p("k-calendar k-calendar-range k-calendar-md",{"k-disabled":this.props.disabled},this.props.className),r=this.rangeWithFocused(this.selectedRange,this.focusedDate),i=this.localization.toLanguageString(e$1,x[e$1]),o=this.localization.toLanguageString(t$1,x[t$1]),a=!this.canNavigate(w$1.PrevView),s=!this.canNavigate(w$1.NextView),l={"aria-disabled":a},u={"aria-disabled":s},d=this.lastView!==e,p=this.dates&&this.isInMonth(this.state.navigateDate,this.dates[0]),f=this.lastViewsCount!==this.props.views;(!p||d||f)&&(this.dates=this.service.datesList(this.state.navigateDate,this.props.views||c.defaultProps.views));const h=cloneDate(this.dates&&this.dates[0]?this.dates[0]:X());return e__namespace.createElement("div",{ref:e=>{this._element=e},className:n,id:this.props.id||this.wrapperID,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.disabled?void 0:this.props.tabIndex,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"aria-disabled":this.props.disabled,dir:this.props.dir},e__namespace.createElement(l$3,{key:`.kendo.calendar.header.${h.getTime()}`,activeView:e,currentDate:h,min:this.min,max:this.max,rangeLength:this.props.views,bus:this.bus,service:this.service,headerTitle:this.props.headerTitle,verticalView:this.props.mobileMode,commands:e__namespace.createElement(e__namespace.Fragment,null,e__namespace.createElement(k$6,{type:"button",className:"k-calendar-nav-prev",icon:this.isRtl?"chevron-right":"chevron-left",svgIcon:this.isRtl?chevronRightIcon:chevronLeftIcon,fillMode:"flat",title:i,disabled:a,onClick:this.handlePrevButtonClick,...l}),e__namespace.createElement(a$1,{min:this.min,max:this.max,onClick:this.handleTodayClick,disabled:!this.todayIsInRange}),e__namespace.createElement(k$6,{type:"button",className:"k-calendar-nav-next",icon:this.isRtl?"chevron-left":"chevron-right",svgIcon:this.isRtl?chevronLeftIcon:chevronRightIcon,fillMode:"flat",title:o,disabled:s,onClick:this.handleNextButtonClick,...u}))}),e__namespace.createElement(c,{ref:e=>{this.calendarViewList=e},dates:this.dates,activeView:e,focusedDate:this.focusedDate,weekDaysFormat:this.props.weekDaysFormat,min:this.min,max:this.max,bus:this.bus,service:this.service,selectionRange:r,value:this.selectedMultiple||this.selectedDate,cellUID:this.cellUID,views:this.props.views,onChange:this.handleDateChange,onWeekSelect:this.handleWeekSelection,showWeekNumbers:this.props.weekNumber,onCellEnter:this.handleCellEnter,cell:this.props.cell,weekCell:this.props.weekCell,headerTitle:this.props.headerTitle,verticalView:this.props.mobileMode,showOtherMonthDays:this.props.showOtherMonthDays,allowReverse:this.props.allowReverse}),this.showLicenseWatermark&&e__namespace.createElement(P$8,{message:this.licenseMessage}))}isInMonth(e,t){return!!t&&firstDayOfMonth(t)<=e&&e<=lastDayOfMonth(t)}};u$1.displayName="MultiViewCalendar",u$1.propTypes={activeRangeEnd:PropTypes.oneOf(["start","end"]),allowReverse:PropTypes.bool,bottomView:PropTypes.oneOf(["month","year","decade","century"]),className:PropTypes.string,defaultActiveView:PropTypes.oneOf(["month","year","decade","century"]),defaultValue:PropTypes.oneOfType([W$1(PropTypes.instanceOf(Date)),PropTypes.arrayOf(PropTypes.instanceOf(Date)),PropTypes.shape({start:W$1(PropTypes.instanceOf(Date)),end:W$1(PropTypes.instanceOf(Date))})]),disabled:PropTypes.bool,focusedDate:PropTypes.instanceOf(Date),id:PropTypes.string,weekDaysFormat:PropTypes.oneOf(["narrow","short","abbreviated"]),ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,max:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),mode:PropTypes.oneOf(["single","multiple","range"]),onBlur:PropTypes.func,onChange:PropTypes.func,onFocus:PropTypes.func,tabIndex:PropTypes.number,topView:PropTypes.oneOf(["month","year","decade","century"]),value:PropTypes.oneOfType([W$1(PropTypes.instanceOf(Date)),PropTypes.arrayOf(PropTypes.instanceOf(Date)),PropTypes.shape({start:W$1(PropTypes.instanceOf(Date).isRequired),end:W$1(PropTypes.instanceOf(Date).isRequired)})]),views:(e,t,n)=>{const r=e[t];return void 0!==r&&r<1?new Error(`Invalid prop '${t}' supplied to'${n}'. The '${t}' property cannot be less than 1'`):null},weekNumber:PropTypes.bool,showOtherMonthDays:PropTypes.bool,dir:PropTypes.string},u$1.defaultProps={disabled:!1,min:H$1,max:L$1,navigation:!0,defaultActiveView:"month",defaultValue:null,topView:"century",weekDaysFormat:"short",tabIndex:0,bottomView:"month",views:2,allowReverse:!1,showOtherMonthDays:!1};let v=u$1;const me=a$c(),ve=a$b(x$a(me,v));ve.displayName="KendoReactMultiViewCalendar",p$c(v),v$4(v);
/**
 * @license
 *-------------------------------------------------------------------------------------------
 * Copyright © 2025 Progress Software Corporation. All rights reserved.
 * Licensed under commercial license. See LICENSE.md in the package root for more information
 *-------------------------------------------------------------------------------------------
 */
const o=class t extends e__namespace.Component{constructor(n){super(n),this._element=null,this._calendar=null,this._startDateInput=e__namespace.createRef(),this._endDateInput=e__namespace.createRef(),this.shouldFocusDateInput=!1,this.shouldFocusCalendar=!1,this.showLicenseWatermark=!1,this.focus=()=>{this.startDateInput&&this.startDateInput.focus()},this.setCalendarRef=e=>{this._calendar=e},this.focusCalendarElement=()=>{this._calendar&&this._calendar.element&&this._calendar.element.focus({preventScroll:!0})},this.calculateValue=(e,t)=>(void 0!==e.value?e.value:t.value)||l$4,this.calculateShow=(e,t)=>void 0!==e.show?e.show:t.show,this.renderCalendar=()=>{const e=this.value||l$4,t={min:this.min,max:this.max,allowReverse:this.props.allowReverse,mode:"range",focusedDate:this.props.focusedDate,disabled:this.props.disabled,className:this.mobileMode?"k-calendar-lg":"",mobileMode:this.mobileMode,...this.props.calendarSettings,value:e,dir:this.props.dir,onChange:this.handleCalendarChange};return this.props.calendar?e__namespace.createElement(this.props.calendar,{...t}):e__namespace.createElement(ve,{...t,ref:this.setCalendarRef})},this.renderPopup=()=>{const e={popupClass:n$p("k-calendar-container","k-daterangepicker-popup"),animate:null!==this._element,anchor:this._element,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},...this.props.popupSettings,show:this.show};return this.props.popup?e__namespace.createElement(this.props.popup,{...e},this.renderCalendar()):e__namespace.createElement(se,{...e},this.renderCalendar())},this.renderAdaptivePopup=()=>{const{windowWidth:e=0}=this.state,t={expand:this.show,onClose:e=>this.handleCancel(e),title:this.props.adaptiveTitle,subTitle:this.props.adaptiveSubtitle,windowWidth:e,footer:{cancelText:this.localizationService.toLanguageString(P$2,x[P$2]),onCancel:this.handleCancel,applyText:this.localizationService.toLanguageString(V$1,x[V$1]),onApply:this.handleBlur}};return e__namespace.createElement(I,{...t},e__namespace.createElement(e$3,null,e__namespace.createElement("div",{className:"k-scrollable-wrap"},this.renderCalendar())))},this.handleReverseClick=e=>{const t={start:this.value.end,end:this.value.start},n={syntheticEvent:e,nativeEvent:e.nativeEvent};this.handleChange(t,n)},this.handleReverseMouseDown=e=>{e.preventDefault()},this.handleFocus=e=>{clearTimeout(this.nextTickId),this.shouldFocusDateInput||this.mobileMode&&this.setState({currentValue:this.value});const{onFocus:t}=this.props;t&&t.call(void 0,e)},this.handleClick=()=>{this.shouldFocusDateInput||this.setShow(!0)},this.handleBlur=e=>{this.nextTick((()=>{this.setShow(!1)}));const{onBlur:t}=this.props;t&&t.call(void 0,e)},this.handleCancel=e=>{this.nextTick((()=>{this.setShow(!1),this.setState({currentValue:l$4})}));const{onCancel:t}=this.props;t&&t.call(void 0,e)},this.handleEndChange=e=>{const t={start:this.value.start,end:cloneDate(e.value||void 0)};this.handleChange(t,e)},this.handleStartChange=e=>{const t={start:cloneDate(e.value||void 0),end:this.value.end};this.handleChange(t,e)},this.extractRangeFromValue=e=>{if(!(Array.isArray(e.value)||e.value instanceof Date))return e.value||l$4;const t=Array.isArray(e.value)?e.value[0]:e.value;return{start:null!==this.value.end?t:this.value.start,end:null!==this.value.start?t:this.value.end}},this.handleCalendarChange=e=>{const t=this.extractRangeFromValue(e);this.handleChange(t,e)},this.handleKeyDown=e=>{const{keyCode:t,altKey:n}=e;t===e$g.esc?(e.preventDefault(),this.shouldFocusDateInput=!0,this.setShow(!1)):n&&t===e$g.down?(e.preventDefault(),this.shouldFocusCalendar=!0,this.setShow(!0),this.focusCalendarElement()):n&&t===e$g.up&&(e.preventDefault(),this.shouldFocusDateInput=!0,this.setShow(!1))},this.handleChange=(e,t)=>{this.setState({value:e}),this.valueDuringOnChange=e;const{onChange:n}=this.props;if(n){const e={syntheticEvent:t.syntheticEvent,nativeEvent:t.nativeEvent,value:this.value,show:this.show,target:this};n.call(void 0,e)}this.valueDuringOnChange=void 0},this.showLicenseWatermark=!d$b(e,{component:"DateRangePicker"}),this.licenseMessage=w$9(e),this.state={show:this.props.show||this.props.defaultShow||t.defaultProps.defaultShow,value:this.props.value||this.props.defaultValue||t.defaultProps.defaultValue,currentValue:l$4},this.nextTick=this.nextTick.bind(this),this.setShow=this.setShow.bind(this),this.focusCalendarElement=this.focusCalendarElement.bind(this),this.focusDateInputElement=this.focusDateInputElement.bind(this)}get _popupId(){return this.props.id+"-popup-id"}get _startInputId(){return this.props.id+"-start-input-id"}get _endInputId(){return this.props.id+"-end-input-id"}get element(){return this._element}get startDateInput(){return this._startDateInput.current}get endDateInput(){return this._endDateInput.current}get calendar(){return this._calendar}get value(){return(void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value)||l$4}get show(){return void 0!==this.showDuringOnChange?this.showDuringOnChange:void 0!==this.props.show?this.props.show:this.state.show}get min(){return void 0!==this.props.min?this.props.min:t.defaultProps.min}get max(){return void 0!==this.props.max?this.props.max:t.defaultProps.max}get document(){if(e$h)return this.element&&this.element.ownerDocument||document}get localizationService(){return s$a(this)}get mobileMode(){var e;return!!(this.state.windowWidth&&this.props._adaptiveMode&&this.state.windowWidth<=(null==(e=this.props._adaptiveMode)?void 0:e.medium)&&this.props.adaptive)}componentDidMount(){var e;this.observerResize=e$h&&window.ResizeObserver&&new window.ResizeObserver(this.calculateMedia.bind(this)),this.show&&this.forceUpdate(),null!=(e=this.document)&&e.body&&this.observerResize&&this.observerResize.observe(this.document.body)}componentDidUpdate(){this.shouldFocusCalendar&&this.focusCalendarElement(),this.mobileMode&&this.show&&setTimeout((()=>{this.focusCalendarElement()}),300),this.shouldFocusDateInput&&this.focusDateInputElement(),this.shouldFocusCalendar=!1,this.shouldFocusDateInput=!1}componentWillUnmount(){var e;clearTimeout(this.nextTickId),null!=(e=this.document)&&e.body&&this.observerResize&&this.observerResize.disconnect()}render(){const{autoFocus:e}=this.props,t=this.value||l$4,n=this.mobileMode&&this.show?this.state.currentValue:t,r=(this.props.startDateInputSettings||{}).id||this._startInputId,i=(this.props.endDateInputSettings||{}).id||this._endInputId,o=n$p("k-daterangepicker",{"k-disabled":this.props.disabled},this.props.className),a=this.localizationService.toLanguageString(l$2,x[l$2]),s=this.localizationService.toLanguageString(s$1,x[s$1]),l=this.localizationService.toLanguageString(d$2,x[d$2]),c={disableSelection:this.mobileMode&&!0,label:a,format:this.props.format,min:this.min,max:this.max,id:this._startInputId,disabled:this.props.disabled,valid:this.props.valid,tabIndex:this.props.tabIndex,ariaExpanded:this.show,clearButton:this.props.clearButton,...this.props.startDateInputSettings,value:n.start,onChange:this.handleStartChange,inputAttributes:this.props.inputAttributes},u={disableSelection:this.mobileMode&&!0,label:s,format:this.props.format,min:this.min,max:this.max,id:this._endInputId,disabled:this.props.disabled,valid:this.props.valid,tabIndex:this.props.tabIndex,ariaExpanded:this.show,clearButton:this.props.clearButton,...this.props.endDateInputSettings,value:n.end,onChange:this.handleEndChange,inputAttributes:this.props.inputAttributes},d=e__namespace.createElement(k$6,{type:"button",className:"k-select",fillMode:"flat",title:s$a(this).toLanguageString(o$2,x[o$2]),onMouseDown:this.handleReverseMouseDown,onClick:this.handleReverseClick,"aria-controls":r+" "+i,"aria-label":s$a(this).toLanguageString(o$2,x[o$2])},e__namespace.createElement(v$6,{style:{transform:"rotate(90deg)"},name:"arrows-swap",icon:arrowsSwapIcon}));return e__namespace.createElement(e__namespace.Fragment,null,e__namespace.createElement("span",{ref:e=>{this._element=e},className:o,style:this.props.style,id:this.props.id,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:this.props.tabIndex,onFocus:this.mobileMode?this.handleClick:this.handleFocus,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onBlur:this.mobileMode?void 0:this.handleBlur,dir:this.props.dir},this.props.startDateInput?e__namespace.createElement(this.props.startDateInput,{...c}):e__namespace.createElement(ne,{...c,autoFocus:e,ref:this._startDateInput,ariaRole:"combobox",ariaControls:this._popupId}),(this.props.allowReverse||this.props.calendarSettings&&this.props.calendarSettings.allowReverse)&&this.props.swapButton?d:l,this.props.endDateInput?e__namespace.createElement(this.props.endDateInput,{...u}):e__namespace.createElement(ne,{...u,ref:this._endDateInput,ariaRole:"combobox",ariaControls:this._popupId}),!this.mobileMode&&this.renderPopup()),this.mobileMode&&this.renderAdaptivePopup(),this.showLicenseWatermark&&e__namespace.createElement(P$8,{message:this.licenseMessage}))}focusDateInputElement(){if(!(document&&this.startDateInput&&this.startDateInput.element&&this.endDateInput&&this.endDateInput.element))return;const e=o$f(document);null!==this.value.start&&null===this.value.end||e===this.endDateInput.element?e!==this.startDateInput.element&&this.endDateInput.element.focus({preventScroll:!0}):this.startDateInput.element.focus({preventScroll:!0})}nextTick(e){clearTimeout(this.nextTickId),this.nextTickId=window.setTimeout((()=>e()))}setShow(e){const{onOpen:t,onClose:n}=this.props;this.show!==e&&(this.setState({show:e}),e&&t&&t.call(void 0,{target:this}),!e&&n&&n.call(void 0,{target:this}))}calculateMedia(e){for(const t of e)this.setState({windowWidth:t.target.clientWidth})}};o.displayName="DateRangePicker",o.propTypes={allowReverse:PropTypes.bool,calendarSettings:PropTypes.any,className:PropTypes.string,defaultShow:PropTypes.bool,defaultValue:PropTypes.shape({start:W$1(PropTypes.instanceOf(Date).isRequired),end:W$1(PropTypes.instanceOf(Date).isRequired)}),disabled:PropTypes.bool,endDateInputSettings:PropTypes.shape(ne.propTypes),focusedDate:PropTypes.instanceOf(Date),format:PropTypes.oneOfType([PropTypes.string,PropTypes.shape({skeleton:PropTypes.string,pattern:PropTypes.string,date:PropTypes.oneOf(["short","medium","long","full"]),time:PropTypes.oneOf(["short","medium","long","full"]),datetime:PropTypes.oneOf(["short","medium","long","full"]),era:PropTypes.oneOf(["narrow","short","long"]),year:PropTypes.oneOf(["numeric","2-digit"]),month:PropTypes.oneOf(["numeric","2-digit","narrow","short","long"]),day:PropTypes.oneOf(["numeric","2-digit"]),weekday:PropTypes.oneOf(["narrow","short","long"]),hour:PropTypes.oneOf(["numeric","2-digit"]),hour12:PropTypes.bool,minute:PropTypes.oneOf(["numeric","2-digit"]),second:PropTypes.oneOf(["numeric","2-digit"]),timeZoneName:PropTypes.oneOf(["short","long"])})]),id:PropTypes.string,ariaLabelledBy:PropTypes.string,ariaDescribedBy:PropTypes.string,max:PropTypes.instanceOf(Date),min:PropTypes.instanceOf(Date),onBlur:PropTypes.func,onChange:PropTypes.func,onFocus:PropTypes.func,popupSettings:PropTypes.any,show:PropTypes.bool,startDateInputSettings:PropTypes.any,style:PropTypes.any,swapButton:PropTypes.any,tabIndex:PropTypes.number,dir:PropTypes.string,value:PropTypes.shape({start:W$1(PropTypes.instanceOf(Date)),end:W$1(PropTypes.instanceOf(Date))}),autoFocus:PropTypes.bool,inputAttributes:PropTypes.object},o.defaultProps={allowReverse:!1,defaultShow:!1,defaultValue:l$4,disabled:!1,format:"d",max:L$1,min:H$1,swapButton:!1,autoFocus:!1};let u=o;const J=a$c(),Q=a$b(x$a(J,p$h(u)));Q.displayName="KendoReactDateRangePicker",v$4(u);const MultiSelectRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r,i;return jsxRuntime.jsx(FactoryRenderer,{uiElementType:"WIDGET",widgetType:"MULTISELECT",placeholder:"Select Values",enableSearch:!0,title:"value",listData:e.allValues||[],value:(null===(r=e.selectedFilter)||void 0===r?void 0:r.value)?null===(i=e.selectedFilter)||void 0===i?void 0:i.value:[],textField:"label",rootStyle:{className:"tmpl-dropdown tmpl-advanced-input"},onChange:(n,r,i)=>t(i,e.id),popupSettings:{className:"tmpl-prvent-outside-click-close"},disabled:n})},DropDownListRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(FactoryRenderer,{value:(null===(r=e.selectedFilter)||void 0===r?void 0:r.value)||null,textField:"label",title:"value",defaultItem:{label:"Select Value...",value:null},listData:e.allValues,enableSearch:!0,popupSettings:{className:"tmpl-prvent-outside-click-close"},rootStyle:{className:"tmpl-dropdown tmpl-advanced-input"},onChange:(n,r,i)=>t(i,e.id),uiElementType:"WIDGET",widgetType:"DROPDOWN",disabled:n})})},TextBoxRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r,i,o;return jsxRuntime.jsx(B$1,{value:null!==(o=null===(i=null===(r=e.selectedFilter)||void 0===r?void 0:r.value)||void 0===i?void 0:i.toString())&&void 0!==o?o:"",placeholder:"Type Value...",className:"tmpl-advanced-input",onBlur:n=>t(n.target.value||null,e.id),onChange:n=>t(n.target.value||null,e.id),disabled:n})},NumericTextBoxRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r,i,o;return jsxRuntime.jsx(Ee,{value:void 0!==(null===(r=e.selectedFilter)||void 0===r?void 0:r.value)&&null!==(null===(i=e.selectedFilter)||void 0===i?void 0:i.value)?Number(null===(o=e.selectedFilter)||void 0===o?void 0:o.value):null,className:"tmpl-advanced-input",onBlur:n=>t(n.value,e.id),onChange:n=>t(n.value,e.id),disabled:n})},NumericRangePickerRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r,i,o;return jsxRuntime.jsx(Ee,{value:void 0!==(null===(r=e.selectedFilter)||void 0===r?void 0:r.value)&&null!==(null===(i=e.selectedFilter)||void 0===i?void 0:i.value)?Number(null===(o=e.selectedFilter)||void 0===o?void 0:o.value):null,className:"tmpl-advanced-input",onBlur:n=>t(n.value,e.id),onChange:n=>t(n.value,e.id),disabled:n})},RadioGroupRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r,i;return jsxRuntime.jsx(G$4,{onChange:n=>t(n.value,e.id),layout:"horizontal",data:[{label:"True",value:"true"},{label:"False",value:"false"}],value:!0===(null===(r=e.selectedFilter)||void 0===r?void 0:r.value)?"true":!1===(null===(i=e.selectedFilter)||void 0===i?void 0:i.value)?"false":void 0,className:"tmpl-advanced-input",disabled:n})},DatePickerRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r,i;return jsxRuntime.jsx(ue,{onChange:n=>t(n.value,e.id),popupSettings:{popupClass:"tmpl-prvent-outside-click-close"},value:void 0!==(null===(r=e.selectedFilter)||void 0===r?void 0:r.value)?null===(i=e.selectedFilter)||void 0===i?void 0:i.value:null,className:"tmpl-advanced-input",disabled:n})},DateRangePickerRenderer=({filter:e,onFilterValueChange:t,disabled:n})=>{var r,i;return jsxRuntime.jsx(Q,{onChange:n=>t(n.value,e.id),startDateInputSettings:{label:void 0},endDateInputSettings:{label:void 0},popupSettings:{popupClass:"tmpl-prvent-outside-click-close"},value:void 0!==(null===(r=e.selectedFilter)||void 0===r?void 0:r.value)?null===(i=e.selectedFilter)||void 0===i?void 0:i.value:null,className:"tmpl-advanced-input tmpl-advanced-ranged-input",disabled:n})},renderers={[FilterTargetType.LIST]:DropDownListRenderer,[FilterTargetType.LIST+Operator.In]:MultiSelectRenderer,[FilterTargetType.LIST+Operator.NotIn]:MultiSelectRenderer,[FilterTargetType.TEXT]:TextBoxRenderer,[FilterTargetType.NUMBER]:NumericTextBoxRenderer,[FilterTargetType.NUMBER+Operator.Between]:NumericRangePickerRenderer,[FilterTargetType.NUMBER+Operator.NotBetween]:NumericRangePickerRenderer,[FilterTargetType.BOOLEAN]:RadioGroupRenderer,[FilterTargetType.DATE]:DatePickerRenderer,[FilterTargetType.DATE+Operator.Between]:DateRangePickerRenderer,[FilterTargetType.DATE+Operator.NotBetween]:DateRangePickerRenderer},TypeBasedWidgetFactory=({filterRow:e,onFilterValueChange:t,disabled:n})=>{var r,i,o,a,s,l,c,u,d,p,f,h,m,g;let v=null;return v=(null===(i=null===(r=null==e?void 0:e.selectedFilter)||void 0===r?void 0:r.operator)||void 0===i?void 0:i.value)===Operator.In||(null===(a=null===(o=null==e?void 0:e.selectedFilter)||void 0===o?void 0:o.operator)||void 0===a?void 0:a.value)===Operator.NotIn||(null===(l=null===(s=null==e?void 0:e.selectedFilter)||void 0===s?void 0:s.operator)||void 0===l?void 0:l.value)===Operator.Between||(null===(u=null===(c=null==e?void 0:e.selectedFilter)||void 0===c?void 0:c.operator)||void 0===u?void 0:u.value)===Operator.NotBetween?renderers[(null===(p=null===(d=null==e?void 0:e.selectedFilter)||void 0===d?void 0:d.propertyToFilter)||void 0===p?void 0:p.type)+(null===(h=null===(f=null==e?void 0:e.selectedFilter)||void 0===f?void 0:f.operator)||void 0===h?void 0:h.value)]:renderers[null===(g=null===(m=null==e?void 0:e.selectedFilter)||void 0===m?void 0:m.propertyToFilter)||void 0===g?void 0:g.type],v||(v=renderers[FilterTargetType.TEXT]),jsxRuntime.jsx(v,{filter:e,onFilterValueChange:t,disabled:n})};var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return"string"==typeof e&&REGEX.test(e)}for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase();if(!validate(n))throw TypeError("Stringified UUID is invalid");return n}function v4(e,t,n){var r=(e=e||{}).random||(e.rng||rng)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,stringify(r)}const getUniqueId=()=>v4(),typeBasedOperators=[{operators:[{label:"Equal",value:Operator.Equal},{label:"Not Equal",value:Operator.NotEqual},{label:"Includes",value:Operator.Like},{label:"Not Includes",value:Operator.NotLike}],type:FilterTargetType.TEXT},{operators:[{label:"Equal",value:Operator.Equal},{label:"Not Equal",value:Operator.NotEqual},{label:"Is Greater Than",value:Operator.GreaterThan},{label:"Is Greater Than Equal",value:Operator.GreaterThanOrEqual},{label:"Is Less Than",value:Operator.LessThan},{label:"Is Less Than Equal",value:Operator.LessThanOrEqual},{label:"Between",value:Operator.Between},{label:"Not Between",value:Operator.NotBetween}],type:FilterTargetType.NUMBER},{operators:[{label:"Equal",value:Operator.Equal},{label:"Not Equal",value:Operator.NotEqual},{label:"Is Greater Than",value:Operator.GreaterThan},{label:"Is Greater Than Equal",value:Operator.GreaterThanOrEqual},{label:"Is Less Than",value:Operator.LessThan},{label:"Is Less Than Equal",value:Operator.LessThanOrEqual},{label:"Between",value:Operator.Between},{label:"Not Between",value:Operator.NotBetween}],type:FilterTargetType.DATE},{operators:[{label:"Equal",value:Operator.Equal},{label:"Not Equal",value:Operator.NotEqual}],type:FilterTargetType.BOOLEAN},{operators:[{label:"Equal",value:Operator.Equal},{label:"Not Equal",value:Operator.NotEqual},{label:"In The List",value:Operator.In},{label:"Not In The List",value:Operator.NotIn}],type:FilterTargetType.LIST}],defaultCriteria="(1)",getTypeBasedOperators=e=>{const t=typeBasedOperators.find((t=>t.type===e));return t?null==t?void 0:t.operators:[]},getAdvancedSearchIntitialFilterRow=()=>{const e="ADVS__"+getUniqueId();return{id:e,idLabel:"(1)",allPropertieseToFilter:[],alloperators:[],allValues:[],selectedFilter:{id:e,propertyToFilter:{label:"Select Filter...",apiPropertyName:"",type:FilterTargetType.TEXT,value:null},operator:{label:"Select Operator...",value:null},value:void 0,selectedCriteria:OperatorCreiteria.AND}}},normalizeLogicOperators=e=>e.replace(/\)\s*([^()]*?)\s*\(/g,((e,t)=>{const n=t.trim();if(""===n)return") AND (";const r=n.match(/^(AND|OR)$/i);return r?`) ${r[1].toUpperCase()} (`:") AND ("})),Filter$1=e=>{var t,n,r,i,o,a,s,l,c,u,d,p,f,h,m,g,v,b;e$i.useEffect((()=>{var t,n;e.loadSupportiveData(null===(n=null===(t=e.filterRow)||void 0===t?void 0:t.selectedFilter)||void 0===n?void 0:n.propertyToFilter)}),[null===(r=null===(n=null===(t=e.filterRow)||void 0===t?void 0:t.selectedFilter)||void 0===n?void 0:n.propertyToFilter)||void 0===r?void 0:r.value]);const y=e$i.useMemo((()=>{var t,n,r;return getTypeBasedOperators(null===(r=null===(n=null===(t=e.filterRow)||void 0===t?void 0:t.selectedFilter)||void 0===n?void 0:n.propertyToFilter)||void 0===r?void 0:r.type)}),[null===(a=null===(o=null===(i=e.filterRow)||void 0===i?void 0:i.selectedFilter)||void 0===o?void 0:o.propertyToFilter)||void 0===a?void 0:a.type]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-filter tmpl-filter-border"+(e.hasError?" tmpl-filter-error":"")},{children:[jsxRuntime.jsx("span",Object.assign({className:"tmpl-filter-id"},{children:e.filterRow.idLabel})),jsxRuntime.jsx(FactoryRenderer,{value:e.filterRow.selectedFilter.propertyToFilter,textField:"label",listData:e.filterRow.allPropertieseToFilter,title:"Filter",defaultItem:{label:"Select Filter...",apiPropertyName:"",type:FilterTargetType.TEXT,value:null},enableSearch:!0,widgetStyle:{className:"tmpl-dropdown"},rootStyle:{className:"tmpl-dropdown-container"},popupSettings:{className:"tmpl-prvent-outside-click-close"},onChange:(t,n,r)=>{e.onFilterTargetChange(r,e.filterRow.id)},uiElementType:"WIDGET",widgetType:"DROPDOWN"}),jsxRuntime.jsx(FactoryRenderer,{value:e.filterRow.selectedFilter.operator,textField:"label",listData:y,title:"Operator",defaultItem:{label:"Select Operator...",value:null},widgetStyle:{className:"tmpl-dropdown"},rootStyle:{className:"tmpl-dropdown-container"},popupSettings:{className:"tmpl-prvent-outside-click-close"},disabled:!(null===(c=null===(l=null===(s=e.filterRow)||void 0===s?void 0:s.selectedFilter)||void 0===l?void 0:l.propertyToFilter)||void 0===c?void 0:c.value),onChange:(t,n,r)=>e.onOperatorChange(r,e.filterRow.id),uiElementType:"WIDGET",widgetType:"DROPDOWN"}),jsxRuntime.jsx(TypeBasedWidgetFactory,{filterRow:Object.assign(Object.assign({},e.filterRow),{allValues:null!==(h=null===(u=e.cache)||void 0===u?void 0:u[null!==(f=null===(p=null===(d=e.filterRow)||void 0===d?void 0:d.selectedFilter)||void 0===p?void 0:p.propertyToFilter.apiPropertyName)&&void 0!==f?f:""])&&void 0!==h?h:[]}),onFilterValueChange:e.onFilterValueChange,disabled:null==(null===(v=null===(g=null===(m=e.filterRow)||void 0===m?void 0:m.selectedFilter)||void 0===g?void 0:g.operator)||void 0===v?void 0:v.value)}),jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-text-default tmpl-button-sm"},name:"plus",fillMode:"clear",onClick:()=>e.onAddFilter(e.filterRow.id),uiElementType:"WIDGET",widgetType:"ICON",title:"Add"}),jsxRuntime.jsx(FactoryRenderer,{name:"delete",onClick:()=>e.onDeleteFilter(e.filterRow.id),uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:"Remove",widgetStyle:{className:"qo-btn qo-text-danger tmpl-button-sm",inline:{visibility:1===e.appliedfilterCount?"hidden":"visible"}}})]})),jsxRuntime.jsx("span",Object.assign({onClick:()=>e.onCriteriaToggle(e.filterRow.id),className:"tmpl-criteria"},{children:null===(b=e.filterRow.selectedFilter.selectedCriteria)||void 0===b?void 0:b.toString()}))]})},FilterPopupView=e=>{var t,n;const[r,i]=e$i.useState(new Set);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-filter-container"},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-filter"},{children:[jsxRuntime.jsx("div",Object.assign({className:"tmpl-header-title"},{children:"Filter"})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-header-title"},{children:"Operator"})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-header-title"},{children:"Value"})),jsxRuntime.jsx("div",{className:"tmpl-header-title"}),jsxRuntime.jsx("div",{className:"tmpl-header-title"})]})),null===(t=e.filterRows)||void 0===t?void 0:t.map((t=>jsxRuntime.jsx(Filter$1,{cache:e.cache,uiElementGroupId:e.uiElementGroupId,filterRow:t,appliedfilterCount:e.filterRows.length,onFilterTargetChange:(t,n)=>{i((e=>{const t=new Set(e);return t.delete(n),t})),e.onFilterTargetChange(t,n)},onOperatorChange:(t,n)=>{i((e=>{const t=new Set(e);return t.delete(n),t})),e.onOperatorChange(t,n)},onFilterValueChange:(t,n)=>{i((e=>{const t=new Set(e);return t.delete(n),t})),e.onFilterValueChange(t,n)},onCriteriaToggle:e.onCriteriaToggle,onAddFilter:e.onAddFilter,onDeleteFilter:e.onDeleteFilter,loadSupportiveData:e.loadSupportiveData,hasError:r.has(t.id)},t.id)))]})),jsxRuntime.jsxs("div",Object.assign({className:"tmpl-action-container"},{children:[jsxRuntime.jsx(FactoryRenderer,{title:"Clear Filter",onClick:e.onClear,uiElementType:"WIDGET",widgetType:"BUTTON",widgetStyle:{className:"qo-btn qo-btn-outline-danger qo-btn-md tmpl-button"},disabled:e.isClearDisabled}),jsxRuntime.jsxs("div",Object.assign({className:"tmpl-criteria-input-container",title:e.criteria},{children:[jsxRuntime.jsx("p",Object.assign({id:`tmpl-criteria-input-${null!==(n=e.uiElementGroupId)&&void 0!==n?n:""}`,className:"tmpl-criteria-input",contentEditable:!0},{children:e.criteria})),jsxRuntime.jsx(FactoryRenderer,{name:"right",widgetStyle:{className:"tmpl-criteria-input-icon"},onClick:e.onCriteriaApplied,uiElementType:"WIDGET",widgetType:"ICON"}),jsxRuntime.jsx(FactoryRenderer,{onClick:e.onCopyToClipboard,widgetStyle:{className:"tmpl-criteria-input-icon"},name:"copy",uiElementType:"WIDGET",widgetType:"ICON"})]})),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",Object.assign({className:"tmpl-cancel-action",onClick:e.onCancel},{children:"Cancel"})),jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-btn-primary qo-btn-md tmpl-button"},onClick:()=>{const t=new Set;e.filterRows.forEach((e=>{var n,r,i,o,a,s,l;const c=null===(r=null===(n=e.selectedFilter)||void 0===n?void 0:n.propertyToFilter)||void 0===r?void 0:r.apiPropertyName,u=null!=(null===(o=null===(i=e.selectedFilter)||void 0===i?void 0:i.operator)||void 0===o?void 0:o.value),d=void 0!==(null===(a=e.selectedFilter)||void 0===a?void 0:a.value)&&null!==(null===(s=e.selectedFilter)||void 0===s?void 0:s.value)&&""!==(null===(l=e.selectedFilter)||void 0===l?void 0:l.value);c&&u&&d||t.add(e.id)})),t.size>0?i(t):(i(new Set),e.onApply())},uiElementType:"WIDGET",widgetType:"BUTTON",title:"Apply Filter",themeColor:"primary",disabled:e.isApplyDisabled})]})]}))]})};var lodash={exports:{}};
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */lodash.exports,function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,s=128,l=256,c=1/0,u=9007199254740991,d=NaN,p=4294967295,f=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",l]],h="[object Arguments]",m="[object Array]",g="[object Boolean]",v="[object Date]",b="[object Error]",y="[object Function]",$="[object GeneratorFunction]",x="[object Map]",E="[object Number]",w="[object Object]",D="[object Promise]",_="[object RegExp]",T="[object Set]",S="[object String]",C="[object Symbol]",I="[object WeakMap]",P="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",R="[object Float64Array]",A="[object Int8Array]",M="[object Int16Array]",k="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",F="[object Uint16Array]",V="[object Uint32Array]",B=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,W=RegExp(G.source),q=RegExp(U.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,re=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,$e="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",De="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="['’]",Ce="["+$e+"]",Ie="["+Te+"]",Pe="["+xe+"]",Oe="\\d+",Ne="["+Ee+"]",Re="["+we+"]",Ae="[^"+$e+Te+Oe+Ee+we+De+"]",Me="\\ud83c[\\udffb-\\udfff]",ke="[^"+$e+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+De+"]",Ve="\\u200d",Be="(?:"+Re+"|"+Ae+")",ze="(?:"+Fe+"|"+Ae+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Pe+"|"+Me+")"+"?",We="["+_e+"]?",qe=We+Ue+("(?:"+Ve+"(?:"+[ke,Le,je].join("|")+")"+We+Ue+")*"),Ye="(?:"+[Ne,Le,je].join("|")+")"+qe,Ke="(?:"+[ke+Pe+"?",Pe,Le,je,Ce].join("|")+")",Xe=RegExp(Se,"g"),Je=RegExp(Pe,"g"),Qe=RegExp(Me+"(?="+Me+")|"+Ke+qe,"g"),Ze=RegExp([Fe+"?"+Re+"+"+He+"(?="+[Ie,Fe,"$"].join("|")+")",ze+"+"+Ge+"(?="+[Ie,Fe+Be,"$"].join("|")+")",Fe+"?"+Be+"+"+He,Fe+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Ye].join("|"),"g"),et=RegExp("["+Ve+$e+xe+_e+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[N]=it[R]=it[A]=it[M]=it[k]=it[L]=it[j]=it[F]=it[V]=!0,it[h]=it[m]=it[P]=it[g]=it[O]=it[v]=it[b]=it[y]=it[x]=it[E]=it[w]=it[_]=it[T]=it[S]=it[I]=!1;var ot={};ot[h]=ot[m]=ot[P]=ot[O]=ot[g]=ot[v]=ot[N]=ot[R]=ot[A]=ot[M]=ot[k]=ot[x]=ot[E]=ot[w]=ot[_]=ot[T]=ot[S]=ot[C]=ot[L]=ot[j]=ot[F]=ot[V]=!0,ot[b]=ot[y]=ot[I]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),pt=t&&!t.nodeType&&t,ft=pt&&e&&!e.nodeType&&e,ht=ft&&ft.exports===pt,mt=ht&&ct.process,gt=function(){try{var e=ft&&ft.require&&ft.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,bt=gt&&gt.isDate,yt=gt&&gt.isMap,$t=gt&&gt.isRegExp,xt=gt&&gt.isSet,Et=gt&&gt.isTypedArray;function wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Dt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function It(e,t){return!!(null==e?0:e.length)&&Ft(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function At(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var kt=Ht("length");function Lt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function jt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ft(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Bt,n)}function Vt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Bt(e){return e!=e}function zt(e,t){var n=null==e?0:e.length;return n?Wt(e,t)/n:d}function Ht(e){return function(t){return null==t?n:t[e]}}function Gt(e){return function(t){return null==e?n:e[t]}}function Ut(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Wt(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==n&&(r=r===n?a:r+a)}return r}function qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,pn(e)+1).replace(ne,""):e}function Kt(e){return function(t){return e(t)}}function Xt(e,t){return Ot(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var en=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),tn=Gt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function un(e){return rn(e)?function(e){var t=Qe.lastIndex=0;for(;Qe.test(e);)++t;return t}(e):kt(e)}function dn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var fn=Gt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var hn=function e(t){var re,$e=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,xe=t.Date,Ee=t.Error,we=t.Function,De=t.Math,_e=t.Object,Te=t.RegExp,Se=t.String,Ce=t.TypeError,Ie=$e.prototype,Pe=we.prototype,Oe=_e.prototype,Ne=t["__core-js_shared__"],Re=Pe.toString,Ae=Oe.hasOwnProperty,Me=0,ke=(re=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",Le=Oe.toString,je=Re.call(_e),Fe=dt._,Ve=Te("^"+Re.call(Ae).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?t.Buffer:n,ze=t.Symbol,He=t.Uint8Array,Ge=Be?Be.allocUnsafe:n,Ue=an(_e.getPrototypeOf,_e),We=_e.create,qe=Oe.propertyIsEnumerable,Ye=Ie.splice,Ke=ze?ze.isConcatSpreadable:n,Qe=ze?ze.iterator:n,et=ze?ze.toStringTag:n,at=function(){try{var e=uo(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=xe&&xe.now!==dt.Date.now&&xe.now,pt=t.setTimeout!==dt.setTimeout&&t.setTimeout,ft=De.ceil,mt=De.floor,gt=_e.getOwnPropertySymbols,kt=Be?Be.isBuffer:n,Gt=t.isFinite,mn=Ie.join,gn=an(_e.keys,_e),vn=De.max,bn=De.min,yn=xe.now,$n=t.parseInt,xn=De.random,En=Ie.reverse,wn=uo(t,"DataView"),Dn=uo(t,"Map"),_n=uo(t,"Promise"),Tn=uo(t,"Set"),Sn=uo(t,"WeakMap"),Cn=uo(_e,"create"),In=Sn&&new Sn,Pn={},On=Lo(wn),Nn=Lo(Dn),Rn=Lo(_n),An=Lo(Tn),Mn=Lo(Sn),kn=ze?ze.prototype:n,Ln=kn?kn.valueOf:n,jn=kn?kn.toString:n;function Fn(e){if(es(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof zn)return e;if(Ae.call(e,"__wrapped__"))return jo(e)}return new zn(e)}var Vn=function(){function e(){}return function(t){if(!Za(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Bn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Un(e);this.size=t.size}function Kn(e,t){var n=Ha(e),r=!n&&za(e),i=!n&&!r&&qa(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?qt(e.length,Se):[],l=s.length;for(var c in e)!t&&!Ae.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bo(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[qr(0,t-1)]:n}function Jn(e,t){return Ao(Ci(e),ar(t,0,e.length))}function Qn(e){return Ao(Ci(e))}function Zn(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&ir(e,t,r)}function er(e,t,r){var i=e[t];Ae.call(e,t)&&Fa(i,r)&&(r!==n||t in e)||ir(e,t,r)}function tr(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Ii(t,Ps(t),e)}function ir(e,t,n){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,i=t.length,o=$e(i),a=null==e;++r<i;)o[r]=a?n:_s(e,t[r]);return o}function ar(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function sr(e,t,r,i,o,a){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!Za(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ci(e,s)}else{var p=ho(e),f=p==y||p==$;if(qa(e))return Ei(e,l);if(p==w||p==h||f&&!o){if(s=c||f?{}:go(e),!l)return c?function(e,t){return Ii(e,fo(e),t)}(e,function(e,t){return e&&Ii(t,Os(t),e)}(s,e)):function(e,t){return Ii(e,po(e),t)}(e,rr(s,e))}else{if(!ot[p])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case P:return wi(e);case g:case v:return new r(+e);case O:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case R:case A:case M:case k:case L:case j:case F:case V:return Di(e,n);case x:return new r;case E:case S:return new r(e);case _:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case C:return i=e,Ln?_e(Ln.call(i)):{}}var i}(e,p,l)}}a||(a=new Yn);var m=a.get(e);if(m)return m;a.set(e,s),os(e)?e.forEach((function(n){s.add(sr(n,t,r,n,e,a))})):ts(e)&&e.forEach((function(n,i){s.set(i,sr(n,t,r,i,e,a))}));var b=d?n:(u?c?ro:no:c?Os:Ps)(e);return _t(b||e,(function(n,i){b&&(n=e[i=n]),er(s,i,sr(n,t,r,i,e,a))})),s}function lr(e,t,r){var i=r.length;if(null==e)return!i;for(e=_e(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,i){if("function"!=typeof e)throw new Ce(r);return Po((function(){e.apply(n,i)}),t)}function ur(e,t,n,r){var i=-1,o=It,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Ot(t,Kt(n))),r?(o=Pt,a=!1):t.length>=200&&(o=Jt,a=!1,t=new qn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:Y,evaluate:K,interpolate:X,variable:"",imports:{_:Fn}},Fn.prototype=Bn.prototype,Fn.prototype.constructor=Fn,zn.prototype=Vn(Bn.prototype),zn.prototype.constructor=zn,Hn.prototype=Vn(Bn.prototype),Hn.prototype.constructor=Hn,Gn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(Cn){var r=t[e];return r===i?n:r}return Ae.call(t,e)?t[e]:n},Gn.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==n:Ae.call(t,e)},Gn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cn&&t===n?i:t,this},Un.prototype.clear=function(){this.__data__=[],this.size=0},Un.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Un.prototype.get=function(e){var t=this.__data__,r=tr(t,e);return r<0?n:t[r][1]},Un.prototype.has=function(e){return tr(this.__data__,e)>-1},Un.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Dn||Un),string:new Gn}},Wn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return lo(this,e).get(e)},Wn.prototype.has=function(e){return lo(this,e).has(e)},Wn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,i),this},qn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Un,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Un){var r=n.__data__;if(!Dn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var dr=Ni(yr),pr=Ni($r,!0);function fr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(l===n?s==s&&!ss(s):r(s,l)))var l=s,c=a}return c}function mr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function gr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=vo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?gr(s,t-1,n,r,i):Nt(i,s):r||(i[i.length]=s)}return i}var vr=Ri(),br=Ri(!0);function yr(e,t){return e&&vr(e,t,Ps)}function $r(e,t){return e&&br(e,t,Ps)}function xr(e,t){return Ct(t,(function(t){return Xa(e[t])}))}function Er(e,t){for(var r=0,i=(t=bi(t,e)).length;null!=e&&r<i;)e=e[ko(t[r++])];return r&&r==i?e:n}function wr(e,t,n){var r=t(e);return Ha(e)?r:Nt(r,n(e))}function Dr(e){return null==e?e===n?"[object Undefined]":"[object Null]":et&&et in _e(e)?function(e){var t=Ae.call(e,et),r=e[et];try{e[et]=n;var i=!0}catch(e){}var o=Le.call(e);i&&(t?e[et]=r:delete e[et]);return o}(e):function(e){return Le.call(e)}(e)}function _r(e,t){return e>t}function Tr(e,t){return null!=e&&Ae.call(e,t)}function Sr(e,t){return null!=e&&t in _e(e)}function Cr(e,t,r){for(var i=r?Pt:It,o=e[0].length,a=e.length,s=a,l=$e(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Ot(d,Kt(t))),c=bn(d.length,c),l[s]=!r&&(t||o>=120&&d.length>=120)?new qn(s&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p<o&&u.length<c;){var h=d[p],m=t?t(h):h;if(h=r||0!==h?h:0,!(f?Jt(f,m):i(u,m,r))){for(s=a;--s;){var g=l[s];if(!(g?Jt(g,m):i(e[s],m,r)))continue e}f&&f.push(m),u.push(h)}}return u}function Ir(e,t,r){var i=null==(e=So(e,t=bi(t,e)))?e:e[ko(Ko(t))];return null==i?n:wt(i,e,r)}function Pr(e){return es(e)&&Dr(e)==h}function Or(e,t,r,i,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,r,i,o,a){var s=Ha(e),l=Ha(t),c=s?m:ho(e),u=l?m:ho(t),d=(c=c==h?w:c)==w,p=(u=u==h?w:u)==w,f=c==u;if(f&&qa(e)){if(!qa(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Yn),s||ls(e)?eo(e,t,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case g:case v:case E:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case _:case S:return e==t+"";case x:var s=on;case T:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=eo(s(e),s(t),r,i,o,a);return a.delete(e),u;case C:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,c,r,i,o,a);if(!(1&r)){var y=d&&Ae.call(e,"__wrapped__"),$=p&&Ae.call(t,"__wrapped__");if(y||$){var D=y?e.value():e,I=$?t.value():t;return a||(a=new Yn),o(D,I,r,i,a)}}if(!f)return!1;return a||(a=new Yn),function(e,t,r,i,o,a){var s=1&r,l=no(e),c=l.length,u=no(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var f=l[p];if(!(s?f in t:Ae.call(t,f)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var b=e[f=l[p]],y=t[f];if(i)var $=s?i(y,b,f,t,e,a):i(b,y,f,e,t,a);if(!($===n?b===y||o(b,y,r,i,a):$)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,i,o,a)}(e,t,r,i,Or,o))}function Nr(e,t,r,i){var o=r.length,a=o,s=!i;if(null==e)return!a;for(e=_e(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=r[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Yn;if(i)var f=i(u,d,c,e,t,p);if(!(f===n?Or(d,u,3,i,p):f))return!1}}return!0}function Rr(e){return!(!Za(e)||(t=e,ke&&ke in t))&&(Xa(e)?Ve:he).test(Lo(e));var t}function Ar(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ha(e)?Vr(e[0],e[1]):Fr(e):dl(e)}function Mr(e){if(!wo(e))return gn(e);var t=[];for(var n in _e(e))Ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function kr(e){if(!Za(e))return function(e){var t=[];if(null!=e)for(var n in _e(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ae.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function jr(e,t){var n=-1,r=Ua(e)?$e(e.length):[];return dr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Fr(e){var t=co(e);return 1==t.length&&t[0][2]?_o(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Vr(e,t){return $o(e)&&Do(t)?_o(ko(e),t):function(r){var i=_s(r,e);return i===n&&i===t?Ts(r,e):Or(t,i,3)}}function Br(e,t,r,i,o){e!==t&&vr(t,(function(a,s){if(o||(o=new Yn),Za(a))!function(e,t,r,i,o,a,s){var l=Co(e,r),c=Co(t,r),u=s.get(c);if(u)return void Zn(e,r,u);var d=a?a(l,c,r+"",e,t,s):n,p=d===n;if(p){var f=Ha(c),h=!f&&qa(c),m=!f&&!h&&ls(c);d=c,f||h||m?Ha(l)?d=l:Wa(l)?d=Ci(l):h?(p=!1,d=Ei(c,!0)):m?(p=!1,d=Di(c,!0)):d=[]:rs(c)||za(c)?(d=l,za(l)?d=gs(l):Za(l)&&!Xa(l)||(d=go(c))):p=!1}p&&(s.set(c,d),o(d,c,i,a,s),s.delete(c));Zn(e,r,d)}(e,t,s,r,Br,i,o);else{var l=i?i(Co(e,s),a,s+"",e,t,o):n;l===n&&(l=a),Zn(e,s,l)}}),Os)}function zr(e,t){var r=e.length;if(r)return bo(t+=t<0?r:0,r)?e[t]:n}function Hr(e,t,n){t=t.length?Ot(t,(function(e){return Ha(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[nl];var r=-1;t=Ot(t,Kt(so()));var i=jr(e,(function(e,n,i){var o=Ot(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var l=_i(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Er(e,a);n(s,a)&&Qr(o,bi(a,e),s)}return o}function Ur(e,t,n,r){var i=r?Vt:Ft,o=-1,a=t.length,s=e;for(e===t&&(t=Ci(t)),n&&(s=Ot(e,Kt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;bo(i)?Ye.call(e,i,1):ui(e,i)}}return e}function qr(e,t){return e+mt(xn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Oo(To(e,t,nl),e+"")}function Xr(e){return Xn(Fs(e))}function Jr(e,t){var n=Fs(e);return Ao(n,ar(t,0,n.length))}function Qr(e,t,r,i){if(!Za(e))return e;for(var o=-1,a=(t=bi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=ko(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=i?i(d,c,l):n)===n&&(u=Za(d)?d:bo(t[o+1])?[]:{})}er(l,c,u),l=l[c]}return e}var Zr=In?function(e,t){return In.set(e,t),e}:nl,ei=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:Zs(t),writable:!0})}:nl;function ti(e){return Ao(Fs(e))}function ni(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=$e(i);++r<i;)o[r]=e[r+t];return o}function ri(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ii(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return oi(e,t,nl,n)}function oi(e,t,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,l=null===t,c=ss(t),u=t===n;o<a;){var d=mt((o+a)/2),p=r(e[d]),f=p!==n,h=null===p,m=p==p,g=ss(p);if(s)var v=i||m;else v=u?m&&(i||f):l?m&&f&&(i||!h):c?m&&f&&!h&&(i||!g):!h&&!g&&(i?p<=t:p<t);v?o=d+1:a=d}return bn(a,4294967294)}function ai(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Fa(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function si(e){return"number"==typeof e?e:ss(e)?d:+e}function li(e){if("string"==typeof e)return e;if(Ha(e))return Ot(e,li)+"";if(ss(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=It,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Pt;else if(o>=200){var c=t?null:Yi(e);if(c)return ln(c);a=!1,i=Jt,l=new qn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ui(e,t){return null==(e=So(e,t=bi(t,e)))||delete e[ko(Ko(t))]}function di(e,t,n,r){return Qr(e,t,n(Er(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ni(e,r?0:o,r?o+1:i):ni(e,r?o+1:0,r?i:o)}function fi(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function hi(e,t,n){var r=e.length;if(r<2)return r?ci(e[0]):[];for(var i=-1,o=$e(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=ur(o[i]||a,e[s],t,n));return ci(gr(o,1),t,n)}function mi(e,t,r){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:n;r(s,e[i],l)}return s}function gi(e){return Wa(e)?e:[]}function vi(e){return"function"==typeof e?e:nl}function bi(e,t){return Ha(e)?e:$o(e,t)?[e]:Mo(vs(e))}var yi=Kr;function $i(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ni(e,t,r)}var xi=ct||function(e){return dt.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Di(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _i(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=ss(e),s=t!==n,l=null===t,c=t==t,u=ss(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!c)return-1}return 0}function Ti(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,l=t.length,c=vn(o-a,0),u=$e(l+c),d=!r;++s<l;)u[s]=t[s];for(;++i<a;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function Si(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,l=-1,c=t.length,u=vn(o-s,0),d=$e(u+c),p=!r;++i<u;)d[i]=e[i];for(var f=i;++l<c;)d[f+l]=t[l];for(;++a<s;)(p||i<o)&&(d[f+n[a]]=e[i++]);return d}function Ci(e,t){var n=-1,r=e.length;for(t||(t=$e(r));++n<r;)t[n]=e[n];return t}function Ii(e,t,r,i){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?ir(r,l,c):er(r,l,c)}return r}function Pi(e,t){return function(n,r){var i=Ha(n)?Dt:nr,o=t?t():{};return i(n,e,so(r,2),o)}}function Oi(e){return Kr((function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&yo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=_e(t);++i<o;){var l=r[i];l&&e(t,l,i,a)}return t}))}function Ni(e,t){return function(n,r){if(null==n)return n;if(!Ua(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=_e(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ri(e){return function(t,n,r){for(var i=-1,o=_e(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ai(e){return function(t){var r=rn(t=vs(t))?dn(t):n,i=r?r[0]:t.charAt(0),o=r?$i(r,1).join(""):t.slice(1);return i[e]()+o}}function Mi(e){return function(t){return Rt(Xs(zs(t).replace(Xe,"")),e,"")}}function ki(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return Za(r)?r:n}}function Li(e){return function(t,r,i){var o=_e(t);if(!Ua(t)){var a=so(r,3);t=Ps(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,i);return s>-1?o[a?t[s]:s]:n}}function ji(e){return to((function(t){var i=t.length,o=i,a=zn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Ce(r);if(a&&!l&&"wrapper"==oo(s))var l=new zn([],!0)}for(o=l?o:i;++o<i;){var c=oo(s=t[o]),u="wrapper"==c?io(s):n;l=u&&xo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[oo(u[0])].apply(l,u[3]):1==s.length&&xo(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ha(n))return l.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function Fi(e,t,r,i,o,a,l,c,u,d){var p=t&s,f=1&t,h=2&t,m=24&t,g=512&t,v=h?n:ki(e);return function s(){for(var b=arguments.length,y=$e(b),$=b;$--;)y[$]=arguments[$];if(m)var x=ao(s),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(i&&(y=Ti(y,i,o,m)),a&&(y=Si(y,a,l,m)),b-=E,m&&b<d){var w=sn(y,x);return Wi(e,t,Fi,s.placeholder,r,y,w,c,u,d-b)}var D=f?r:this,_=h?D[e]:e;return b=y.length,c?y=function(e,t){var r=e.length,i=bn(t.length,r),o=Ci(e);for(;i--;){var a=t[i];e[i]=bo(a,r)?o[a]:n}return e}(y,c):g&&b>1&&y.reverse(),p&&u<b&&(y.length=u),this&&this!==dt&&this instanceof s&&(_=v||ki(_)),_.apply(D,y)}}function Vi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=si(r),i=si(i)),o=e(r,i)}return o}}function zi(e){return to((function(t){return t=Ot(t,Kt(so())),Kr((function(n){var r=this;return e(t,(function(e){return wt(e,r,n)}))}))}))}function Hi(e,t){var r=(t=t===n?" ":li(t)).length;if(r<2)return r?Yr(t,e):t;var i=Yr(t,ft(e/un(t)));return rn(t)?$i(dn(i),0,e).join(""):i.slice(0,e)}function Gi(e){return function(t,r,i){return i&&"number"!=typeof i&&yo(t,r,i)&&(r=i=n),t=ps(t),r===n?(r=t,t=0):r=ps(r),function(e,t,n,r){for(var i=-1,o=vn(ft((t-e)/(n||1)),0),a=$e(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?t<r?1:-1:ps(i),e)}}function Ui(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Wi(e,t,r,i,o,s,l,c,u,d){var p=8&t;t|=p?a:64,4&(t&=~(p?64:a))||(t&=-4);var f=[e,t,o,p?s:n,p?l:n,p?n:s,p?n:l,c,u,d],h=r.apply(n,f);return xo(e)&&Io(h,f),h.placeholder=i,No(h,e,t)}function qi(e){var t=De[e];return function(e,n){if(e=ms(e),(n=null==n?0:bn(fs(n),292))&&Gt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Yi=Tn&&1/ln(new Tn([,-0]))[1]==c?function(e){return new Tn(e)}:sl;function Ki(e){return function(t){var n=ho(t);return n==x?on(t):n==T?cn(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xi(e,t,i,c,u,d,p,f){var h=2&t;if(!h&&"function"!=typeof e)throw new Ce(r);var m=c?c.length:0;if(m||(t&=-97,c=u=n),p=p===n?p:vn(fs(p),0),f=f===n?f:fs(f),m-=u?u.length:0,64&t){var g=c,v=u;c=u=n}var b=h?n:io(e),y=[e,t,i,c,u,g,v,d,p,f];if(b&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,c=r==s&&8==n||r==s&&n==l&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!c)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Ti(d,u,t[4]):u,e[4]=d?sn(e[3],o):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Si(d,u,t[6]):u,e[6]=d?sn(e[5],o):t[6]);(u=t[7])&&(e[7]=u);r&s&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(y,b),e=y[0],t=y[1],i=y[2],c=y[3],u=y[4],!(f=y[9]=y[9]===n?h?0:e.length:vn(y[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)$=8==t||16==t?function(e,t,r){var i=ki(e);return function o(){for(var a=arguments.length,s=$e(a),l=a,c=ao(o);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:sn(s,c);return(a-=u.length)<r?Wi(e,t,Fi,o.placeholder,n,s,u,n,n,r-a):wt(this&&this!==dt&&this instanceof o?i:e,this,s)}}(e,t,f):t!=a&&33!=t||u.length?Fi.apply(n,y):function(e,t,n,r){var i=1&t,o=ki(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=$e(c+s),d=this&&this!==dt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return wt(d,i?n:this,u)}}(e,t,i,c);else var $=function(e,t,n){var r=1&t,i=ki(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return No((b?Zr:Io)($,y),e,t)}function Ji(e,t,r,i){return e===n||Fa(e,Oe[r])&&!Ae.call(i,r)?t:e}function Qi(e,t,r,i,o,a){return Za(e)&&Za(t)&&(a.set(t,e),Br(e,t,n,Qi,a),a.delete(t)),e}function Zi(e){return rs(e)?n:e}function eo(e,t,r,i,o,a){var s=1&r,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&r?new qn:n;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(i)var v=s?i(g,m,p,t,e,a):i(m,g,p,e,t,a);if(v!==n){if(v)continue;f=!1;break}if(h){if(!Mt(t,(function(e,t){if(!Jt(h,t)&&(m===e||o(m,e,r,i,a)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!o(m,g,r,i,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function to(e){return Oo(To(e,n,Go),e+"")}function no(e){return wr(e,Ps,po)}function ro(e){return wr(e,Os,fo)}var io=In?function(e){return In.get(e)}:sl;function oo(e){for(var t=e.name+"",n=Pn[t],r=Ae.call(Pn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function ao(e){return(Ae.call(Fn,"placeholder")?Fn:e).placeholder}function so(){var e=Fn.iteratee||rl;return e=e===rl?Ar:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function co(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Do(i)]}return t}function uo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Rr(r)?r:n}var po=gt?function(e){return null==e?[]:(e=_e(e),Ct(gt(e),(function(t){return qe.call(e,t)})))}:hl,fo=gt?function(e){for(var t=[];e;)Nt(t,po(e)),e=Ue(e);return t}:hl,ho=Dr;function mo(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,o=!1;++r<i;){var a=ko(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Qa(i)&&bo(a,i)&&(Ha(e)||za(e))}function go(e){return"function"!=typeof e.constructor||wo(e)?{}:Vn(Ue(e))}function vo(e){return Ha(e)||za(e)||!!(Ke&&e&&e[Ke])}function bo(e,t){var n=typeof e;return!!(t=null==t?u:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!Za(n))return!1;var r=typeof t;return!!("number"==r?Ua(n)&&bo(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function $o(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||(Q.test(e)||!J.test(e)||null!=t&&e in _e(t))}function xo(e){var t=oo(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=io(n);return!!r&&e===r[0]}(wn&&ho(new wn(new ArrayBuffer(1)))!=O||Dn&&ho(new Dn)!=x||_n&&ho(_n.resolve())!=D||Tn&&ho(new Tn)!=T||Sn&&ho(new Sn)!=I)&&(ho=function(e){var t=Dr(e),r=t==w?e.constructor:n,i=r?Lo(r):"";if(i)switch(i){case On:return O;case Nn:return x;case Rn:return D;case An:return T;case Mn:return I}return t});var Eo=Ne?Xa:ml;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Do(e){return e==e&&!Za(e)}function _o(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in _e(r)))}}function To(e,t,r){return t=vn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=vn(n.length-t,0),a=$e(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=$e(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),wt(e,this,s)}}function So(e,t){return t.length<2?e:Er(e,ni(t,0,-1))}function Co(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Io=Ro(Zr),Po=pt||function(e,t){return dt.setTimeout(e,t)},Oo=Ro(ei);function No(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(f,(function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ae):[]}(r),n)))}function Ro(e){var t=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ao(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var a=qr(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Mo=function(e){var t=Ra(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Z,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}));function ko(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function jo(e){if(e instanceof Hn)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Ci(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fo=Kr((function(e,t){return Wa(e)?ur(e,gr(t,1,Wa,!0)):[]})),Vo=Kr((function(e,t){var r=Ko(t);return Wa(r)&&(r=n),Wa(e)?ur(e,gr(t,1,Wa,!0),so(r,2)):[]})),Bo=Kr((function(e,t){var r=Ko(t);return Wa(r)&&(r=n),Wa(e)?ur(e,gr(t,1,Wa,!0),n,r):[]}));function zo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=vn(r+i,0)),jt(e,so(t,3),i)}function Ho(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=fs(r),o=r<0?vn(i+o,0):bn(o,i-1)),jt(e,so(t,3),o,!0)}function Go(e){return(null==e?0:e.length)?gr(e,1):[]}function Uo(e){return e&&e.length?e[0]:n}var Wo=Kr((function(e){var t=Ot(e,gi);return t.length&&t[0]===e[0]?Cr(t):[]})),qo=Kr((function(e){var t=Ko(e),r=Ot(e,gi);return t===Ko(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Cr(r,so(t,2)):[]})),Yo=Kr((function(e){var t=Ko(e),r=Ot(e,gi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Cr(r,n,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Xo=Kr(Jo);function Jo(e,t){return e&&e.length&&t&&t.length?Ur(e,t):e}var Qo=to((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,Ot(t,(function(e){return bo(e,n)?+e:e})).sort(_i)),r}));function Zo(e){return null==e?e:En.call(e)}var ea=Kr((function(e){return ci(gr(e,1,Wa,!0))})),ta=Kr((function(e){var t=Ko(e);return Wa(t)&&(t=n),ci(gr(e,1,Wa,!0),so(t,2))})),na=Kr((function(e){var t=Ko(e);return t="function"==typeof t?t:n,ci(gr(e,1,Wa,!0),n,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Wa(e))return t=vn(e.length,t),!0})),qt(t,(function(t){return Ot(e,Ht(t))}))}function ia(e,t){if(!e||!e.length)return[];var r=ra(e);return null==t?r:Ot(r,(function(e){return wt(t,n,e)}))}var oa=Kr((function(e,t){return Wa(e)?ur(e,t):[]})),aa=Kr((function(e){return hi(Ct(e,Wa))})),sa=Kr((function(e){var t=Ko(e);return Wa(t)&&(t=n),hi(Ct(e,Wa),so(t,2))})),la=Kr((function(e){var t=Ko(e);return t="function"==typeof t?t:n,hi(Ct(e,Wa),n,t)})),ca=Kr(ra);var ua=Kr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ia(e,r)}));function da(e){var t=Fn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var fa=to((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Hn&&bo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:pa,args:[o],thisArg:n}),new zn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ha=Pi((function(e,t,n){Ae.call(e,n)?++e[n]:ir(e,n,1)}));var ma=Li(zo),ga=Li(Ho);function va(e,t){return(Ha(e)?_t:dr)(e,so(t,3))}function ba(e,t){return(Ha(e)?Tt:pr)(e,so(t,3))}var ya=Pi((function(e,t,n){Ae.call(e,n)?e[n].push(t):ir(e,n,[t])}));var $a=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=Ua(e)?$e(e.length):[];return dr(e,(function(e){o[++r]=i?wt(t,e,n):Ir(e,t,n)})),o})),xa=Pi((function(e,t,n){ir(e,n,t)}));function Ea(e,t){return(Ha(e)?Ot:jr)(e,so(t,3))}var wa=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Da=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,gr(t,1),[])})),_a=ut||function(){return dt.Date.now()};function Ta(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xi(e,s,n,n,n,n,t)}function Sa(e,t){var i;if("function"!=typeof t)throw new Ce(r);return e=fs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Ca=Kr((function(e,t,n){var r=1;if(n.length){var i=sn(n,ao(Ca));r|=a}return Xi(e,r,t,n,i)})),Ia=Kr((function(e,t,n){var r=3;if(n.length){var i=sn(n,ao(Ia));r|=a}return Xi(t,r,e,n,i)}));function Pa(e,t,i){var o,a,s,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ce(r);function m(t){var r=o,i=a;return o=a=n,d=t,l=e.apply(i,r)}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=s}function v(){var e=_a();if(g(e))return b(e);c=Po(v,function(e){var n=t-(e-u);return f?bn(n,s-(e-d)):n}(e))}function b(e){return c=n,h&&o?m(e):(o=a=n,l)}function y(){var e=_a(),r=g(e);if(o=arguments,a=this,u=e,r){if(c===n)return function(e){return d=e,c=Po(v,t),p?m(e):l}(u);if(f)return xi(c),c=Po(v,t),m(u)}return c===n&&(c=Po(v,t)),l}return t=ms(t)||0,Za(i)&&(p=!!i.leading,s=(f="maxWait"in i)?vn(ms(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),y.cancel=function(){c!==n&&xi(c),d=0,o=u=a=c=n},y.flush=function(){return c===n?l:b(_a())},y}var Oa=Kr((function(e,t){return cr(e,1,t)})),Na=Kr((function(e,t,n){return cr(e,ms(t)||0,n)}));function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ra.Cache||Wn),n}function Aa(e){if("function"!=typeof e)throw new Ce(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Wn;var Ma=yi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Ot(t[0],Kt(so())):Ot(gr(t,1),Kt(so()))).length;return Kr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return wt(e,this,r)}))})),ka=Kr((function(e,t){var r=sn(t,ao(ka));return Xi(e,a,n,t,r)})),La=Kr((function(e,t){var r=sn(t,ao(La));return Xi(e,64,n,t,r)})),ja=to((function(e,t){return Xi(e,l,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Va=Ui(_r),Ba=Ui((function(e,t){return e>=t})),za=Pr(function(){return arguments}())?Pr:function(e){return es(e)&&Ae.call(e,"callee")&&!qe.call(e,"callee")},Ha=$e.isArray,Ga=vt?Kt(vt):function(e){return es(e)&&Dr(e)==P};function Ua(e){return null!=e&&Qa(e.length)&&!Xa(e)}function Wa(e){return es(e)&&Ua(e)}var qa=kt||ml,Ya=bt?Kt(bt):function(e){return es(e)&&Dr(e)==v};function Ka(e){if(!es(e))return!1;var t=Dr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Xa(e){if(!Za(e))return!1;var t=Dr(e);return t==y||t==$||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==fs(e)}function Qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=yt?Kt(yt):function(e){return es(e)&&ho(e)==x};function ns(e){return"number"==typeof e||es(e)&&Dr(e)==E}function rs(e){if(!es(e)||Dr(e)!=w)return!1;var t=Ue(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==je}var is=$t?Kt($t):function(e){return es(e)&&Dr(e)==_};var os=xt?Kt(xt):function(e){return es(e)&&ho(e)==T};function as(e){return"string"==typeof e||!Ha(e)&&es(e)&&Dr(e)==S}function ss(e){return"symbol"==typeof e||es(e)&&Dr(e)==C}var ls=Et?Kt(Et):function(e){return es(e)&&Qa(e.length)&&!!it[Dr(e)]};var cs=Ui(Lr),us=Ui((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Ua(e))return as(e)?dn(e):Ci(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=ho(e);return(t==x?on:t==T?ln:Fs)(e)}function ps(e){return e?(e=ms(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ar(fs(e),0,p):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return d;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=fe.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?d:+e}function gs(e){return Ii(e,Os(e))}function vs(e){return null==e?"":li(e)}var bs=Oi((function(e,t){if(wo(t)||Ua(t))Ii(t,Ps(t),e);else for(var n in t)Ae.call(t,n)&&er(e,n,t[n])})),ys=Oi((function(e,t){Ii(t,Os(t),e)})),$s=Oi((function(e,t,n,r){Ii(t,Os(t),e,r)})),xs=Oi((function(e,t,n,r){Ii(t,Ps(t),e,r)})),Es=to(or);var ws=Kr((function(e,t){e=_e(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&yo(t[0],t[1],o)&&(i=1);++r<i;)for(var a=t[r],s=Os(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===n||Fa(d,Oe[u])&&!Ae.call(e,u))&&(e[u]=a[u])}return e})),Ds=Kr((function(e){return e.push(n,Qi),wt(Rs,n,e)}));function _s(e,t,r){var i=null==e?n:Er(e,t);return i===n?r:i}function Ts(e,t){return null!=e&&mo(e,t,Sr)}var Ss=Vi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),Zs(nl)),Cs=Vi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ae.call(e,t)?e[t].push(n):e[t]=[n]}),so),Is=Kr(Ir);function Ps(e){return Ua(e)?Kn(e):Mr(e)}function Os(e){return Ua(e)?Kn(e,!0):kr(e)}var Ns=Oi((function(e,t,n){Br(e,t,n)})),Rs=Oi((function(e,t,n,r){Br(e,t,n,r)})),As=to((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ot(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Ii(e,ro(e),n),r&&(n=sr(n,7,Zi));for(var i=t.length;i--;)ui(n,t[i]);return n}));var Ms=to((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Ts(e,n)}))}(e,t)}));function ks(e,t){if(null==e)return{};var n=Ot(ro(e),(function(e){return[e]}));return t=so(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Ls=Ki(Ps),js=Ki(Os);function Fs(e){return null==e?[]:Xt(e,Ps(e))}var Vs=Mi((function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)}));function Bs(e){return Ks(vs(e).toLowerCase())}function zs(e){return(e=vs(e))&&e.replace(ve,en).replace(Je,"")}var Hs=Mi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Mi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Us=Ai("toLowerCase");var Ws=Mi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var qs=Mi((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Ys=Mi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ai("toUpperCase");function Xs(e,t,r){return e=vs(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Js=Kr((function(e,t){try{return wt(e,n,t)}catch(e){return Ka(e)?e:new Ee(e)}})),Qs=to((function(e,t){return _t(t,(function(t){t=ko(t),ir(e,t,Ca(e[t],e))})),e}));function Zs(e){return function(){return e}}var el=ji(),tl=ji(!0);function nl(e){return e}function rl(e){return Ar("function"==typeof e?e:sr(e,1))}var il=Kr((function(e,t){return function(n){return Ir(n,e,t)}})),ol=Kr((function(e,t){return function(n){return Ir(e,n,t)}}));function al(e,t,n){var r=Ps(t),i=xr(t,r);null!=n||Za(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Ps(t)));var o=!(Za(n)&&"chain"in n&&!n.chain),a=Xa(e);return _t(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function sl(){}var ll=zi(Ot),cl=zi(St),ul=zi(Mt);function dl(e){return $o(e)?Ht(ko(e)):function(e){return function(t){return Er(t,e)}}(e)}var pl=Gi(),fl=Gi(!0);function hl(){return[]}function ml(){return!1}var gl=Bi((function(e,t){return e+t}),0),vl=qi("ceil"),bl=Bi((function(e,t){return e/t}),1),yl=qi("floor");var $l,xl=Bi((function(e,t){return e*t}),1),El=qi("round"),wl=Bi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Ce(r);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ta,Fn.assign=bs,Fn.assignIn=ys,Fn.assignInWith=$s,Fn.assignWith=xs,Fn.at=Es,Fn.before=Sa,Fn.bind=Ca,Fn.bindAll=Qs,Fn.bindKey=Ia,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Fn.chain=da,Fn.chunk=function(e,t,r){t=(r?yo(e,t,r):t===n)?1:vn(fs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=$e(ft(i/t));o<i;)s[a++]=ni(e,o,o+=t);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=$e(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt(Ha(n)?Ci(n):[n],gr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=so();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new Ce(r);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(wt(i[0],this,n))return wt(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return lr(n,e,t)}}(sr(e,1))},Fn.constant=Zs,Fn.countBy=ha,Fn.create=function(e,t){var n=Vn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,r,i){var o=Xi(t,8,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,r,i){var o=Xi(t,16,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Fn.debounce=Pa,Fn.defaults=ws,Fn.defaultsDeep=Ds,Fn.defer=Oa,Fn.delay=Na,Fn.difference=Fo,Fn.differenceBy=Vo,Fn.differenceWith=Bo,Fn.drop=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,(t=r||t===n?1:fs(t))<0?0:t,i):[]},Fn.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,0,(t=i-(t=r||t===n?1:fs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?pi(e,so(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?pi(e,so(t,3),!0):[]},Fn.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=fs(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:fs(i))<0&&(i+=o),i=r>i?0:hs(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Fn.filter=function(e,t){return(Ha(e)?Ct:mr)(e,so(t,3))},Fn.flatMap=function(e,t){return gr(Ea(e,t),1)},Fn.flatMapDeep=function(e,t){return gr(Ea(e,t),c)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:fs(r),gr(Ea(e,t),r)},Fn.flatten=Go,Fn.flattenDeep=function(e){return(null==e?0:e.length)?gr(e,c):[]},Fn.flattenDepth=function(e,t){return(null==e?0:e.length)?gr(e,t=t===n?1:fs(t)):[]},Fn.flip=function(e){return Xi(e,512)},Fn.flow=el,Fn.flowRight=tl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:xr(e,Ps(e))},Fn.functionsIn=function(e){return null==e?[]:xr(e,Os(e))},Fn.groupBy=ya,Fn.initial=function(e){return(null==e?0:e.length)?ni(e,0,-1):[]},Fn.intersection=Wo,Fn.intersectionBy=qo,Fn.intersectionWith=Yo,Fn.invert=Ss,Fn.invertBy=Cs,Fn.invokeMap=$a,Fn.iteratee=rl,Fn.keyBy=xa,Fn.keys=Ps,Fn.keysIn=Os,Fn.map=Ea,Fn.mapKeys=function(e,t){var n={};return t=so(t,3),yr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=so(t,3),yr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Fr(sr(e,1))},Fn.matchesProperty=function(e,t){return Vr(e,sr(t,1))},Fn.memoize=Ra,Fn.merge=Ns,Fn.mergeWith=Rs,Fn.method=il,Fn.methodOf=ol,Fn.mixin=al,Fn.negate=Aa,Fn.nthArg=function(e){return e=fs(e),Kr((function(t){return zr(t,e)}))},Fn.omit=As,Fn.omitBy=function(e,t){return ks(e,Aa(so(t)))},Fn.once=function(e){return Sa(2,e)},Fn.orderBy=function(e,t,r,i){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(r=i?n:r)||(r=null==r?[]:[r]),Hr(e,t,r))},Fn.over=ll,Fn.overArgs=Ma,Fn.overEvery=cl,Fn.overSome=ul,Fn.partial=ka,Fn.partialRight=La,Fn.partition=wa,Fn.pick=Ms,Fn.pickBy=ks,Fn.property=dl,Fn.propertyOf=function(e){return function(t){return null==e?n:Er(e,t)}},Fn.pull=Xo,Fn.pullAll=Jo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ur(e,t,so(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Ur(e,t,n,r):e},Fn.pullAt=Qo,Fn.range=pl,Fn.rangeRight=fl,Fn.rearg=ja,Fn.reject=function(e,t){return(Ha(e)?Ct:mr)(e,Aa(so(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=so(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Wr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Ce(r);return Kr(e,t=t===n?t:fs(t))},Fn.reverse=Zo,Fn.sampleSize=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:fs(t),(Ha(e)?Jn:Jr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Qr(e,t,n)},Fn.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Qr(e,t,r,i)},Fn.shuffle=function(e){return(Ha(e)?Qn:ti)(e)},Fn.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&yo(e,t,r)?(t=0,r=i):(t=null==t?0:fs(t),r=r===n?i:fs(r)),ni(e,t,r)):[]},Fn.sortBy=Da,Fn.sortedUniq=function(e){return e&&e.length?ai(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ai(e,so(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&yo(e,t,r)&&(t=r=n),(r=r===n?p:r>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=li(t))&&rn(e)?$i(dn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Ce(r);return t=null==t?0:vn(fs(t),0),Kr((function(n){var r=n[t],i=$i(n,0,t);return r&&Nt(i,r),wt(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ni(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?ni(e,0,(t=r||t===n?1:fs(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,(t=i-(t=r||t===n?1:fs(t)))<0?0:t,i):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?pi(e,so(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?pi(e,so(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Ce(r);return Za(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Pa(e,t,{leading:i,maxWait:t,trailing:o})},Fn.thru=pa,Fn.toArray=ds,Fn.toPairs=Ls,Fn.toPairsIn=js,Fn.toPath=function(e){return Ha(e)?Ot(e,ko):ss(e)?[e]:Ci(Mo(vs(e)))},Fn.toPlainObject=gs,Fn.transform=function(e,t,n){var r=Ha(e),i=r||qa(e)||ls(e);if(t=so(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Za(e)&&Xa(o)?Vn(Ue(e)):{}}return(i?_t:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return Ta(e,1)},Fn.union=ea,Fn.unionBy=ta,Fn.unionWith=na,Fn.uniq=function(e){return e&&e.length?ci(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?ci(e,so(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ci(e,n,t):[]},Fn.unset=function(e,t){return null==e||ui(e,t)},Fn.unzip=ra,Fn.unzipWith=ia,Fn.update=function(e,t,n){return null==e?e:di(e,t,vi(n))},Fn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:di(e,t,vi(r),i)},Fn.values=Fs,Fn.valuesIn=function(e){return null==e?[]:Xt(e,Os(e))},Fn.without=oa,Fn.words=Xs,Fn.wrap=function(e,t){return ka(vi(t),e)},Fn.xor=aa,Fn.xorBy=sa,Fn.xorWith=la,Fn.zip=ca,Fn.zipObject=function(e,t){return mi(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Qr)},Fn.zipWith=ua,Fn.entries=Ls,Fn.entriesIn=js,Fn.extend=ys,Fn.extendWith=$s,al(Fn,Fn),Fn.add=gl,Fn.attempt=Js,Fn.camelCase=Vs,Fn.capitalize=Bs,Fn.ceil=vl,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ms(r))==r?r:0),t!==n&&(t=(t=ms(t))==t?t:0),ar(ms(e),t,r)},Fn.clone=function(e){return sr(e,4)},Fn.cloneDeep=function(e){return sr(e,5)},Fn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||lr(e,t,Ps(t))},Fn.deburr=zs,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=bl,Fn.endsWith=function(e,t,r){e=vs(e),t=li(t);var i=e.length,o=r=r===n?i:ar(fs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Fn.eq=Fa,Fn.escape=function(e){return(e=vs(e))&&q.test(e)?e.replace(U,tn):e},Fn.escapeRegExp=function(e){return(e=vs(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Fn.every=function(e,t,r){var i=Ha(e)?St:fr;return r&&yo(e,t,r)&&(t=n),i(e,so(t,3))},Fn.find=ma,Fn.findIndex=zo,Fn.findKey=function(e,t){return Lt(e,so(t,3),yr)},Fn.findLast=ga,Fn.findLastIndex=Ho,Fn.findLastKey=function(e,t){return Lt(e,so(t,3),$r)},Fn.floor=yl,Fn.forEach=va,Fn.forEachRight=ba,Fn.forIn=function(e,t){return null==e?e:vr(e,so(t,3),Os)},Fn.forInRight=function(e,t){return null==e?e:br(e,so(t,3),Os)},Fn.forOwn=function(e,t){return e&&yr(e,so(t,3))},Fn.forOwnRight=function(e,t){return e&&$r(e,so(t,3))},Fn.get=_s,Fn.gt=Va,Fn.gte=Ba,Fn.has=function(e,t){return null!=e&&mo(e,t,Tr)},Fn.hasIn=Ts,Fn.head=Uo,Fn.identity=nl,Fn.includes=function(e,t,n,r){e=Ua(e)?e:Fs(e),n=n&&!r?fs(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=vn(r+i,0)),Ft(e,t,i)},Fn.inRange=function(e,t,r){return t=ps(t),r===n?(r=t,t=0):r=ps(r),function(e,t,n){return e>=bn(t,n)&&e<vn(t,n)}(e=ms(e),t,r)},Fn.invoke=Is,Fn.isArguments=za,Fn.isArray=Ha,Fn.isArrayBuffer=Ga,Fn.isArrayLike=Ua,Fn.isArrayLikeObject=Wa,Fn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Dr(e)==g},Fn.isBuffer=qa,Fn.isDate=Ya,Fn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ua(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||ls(e)||za(e)))return!e.length;var t=ho(e);if(t==x||t==T)return!e.size;if(wo(e))return!Mr(e).length;for(var n in e)if(Ae.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Or(e,t)},Fn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Or(e,t,n,r):!!i},Fn.isError=Ka,Fn.isFinite=function(e){return"number"==typeof e&&Gt(e)},Fn.isFunction=Xa,Fn.isInteger=Ja,Fn.isLength=Qa,Fn.isMap=ts,Fn.isMatch=function(e,t){return e===t||Nr(e,t,co(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Nr(e,t,co(t),r)},Fn.isNaN=function(e){return ns(e)&&e!=+e},Fn.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=ns,Fn.isObject=Za,Fn.isObjectLike=es,Fn.isPlainObject=rs,Fn.isRegExp=is,Fn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=u},Fn.isSet=os,Fn.isString=as,Fn.isSymbol=ss,Fn.isTypedArray=ls,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return es(e)&&ho(e)==I},Fn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Dr(e)},Fn.join=function(e,t){return null==e?"":mn.call(e,t)},Fn.kebabCase=Hs,Fn.last=Ko,Fn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=fs(r))<0?vn(i+o,0):bn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):jt(e,Bt,o,!0)},Fn.lowerCase=Gs,Fn.lowerFirst=Us,Fn.lt=cs,Fn.lte=us,Fn.max=function(e){return e&&e.length?hr(e,nl,_r):n},Fn.maxBy=function(e,t){return e&&e.length?hr(e,so(t,2),_r):n},Fn.mean=function(e){return zt(e,nl)},Fn.meanBy=function(e,t){return zt(e,so(t,2))},Fn.min=function(e){return e&&e.length?hr(e,nl,Lr):n},Fn.minBy=function(e,t){return e&&e.length?hr(e,so(t,2),Lr):n},Fn.stubArray=hl,Fn.stubFalse=ml,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=xl,Fn.nth=function(e,t){return e&&e.length?zr(e,fs(t)):n},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=sl,Fn.now=_a,Fn.pad=function(e,t,n){e=vs(e);var r=(t=fs(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(mt(i),n)+e+Hi(ft(i),n)},Fn.padEnd=function(e,t,n){e=vs(e);var r=(t=fs(t))?un(e):0;return t&&r<t?e+Hi(t-r,n):e},Fn.padStart=function(e,t,n){e=vs(e);var r=(t=fs(t))?un(e):0;return t&&r<t?Hi(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),$n(vs(e).replace(ne,""),t||0)},Fn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ps(e),t===n?(t=e,e=0):t=ps(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=xn();return bn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return qr(e,t)},Fn.reduce=function(e,t,n){var r=Ha(e)?Rt:Ut,i=arguments.length<3;return r(e,so(t,4),n,i,dr)},Fn.reduceRight=function(e,t,n){var r=Ha(e)?At:Ut,i=arguments.length<3;return r(e,so(t,4),n,i,pr)},Fn.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:fs(t),Yr(vs(e),t)},Fn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,r){var i=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=n);++i<o;){var a=null==e?n:e[ko(t[i])];a===n&&(i=o,a=r),e=Xa(a)?a.call(e):a}return e},Fn.round=El,Fn.runInContext=e,Fn.sample=function(e){return(Ha(e)?Xn:Xr)(e)},Fn.size=function(e){if(null==e)return 0;if(Ua(e))return as(e)?un(e):e.length;var t=ho(e);return t==x||t==T?e.size:Mr(e).length},Fn.snakeCase=Ws,Fn.some=function(e,t,r){var i=Ha(e)?Mt:ri;return r&&yo(e,t,r)&&(t=n),i(e,so(t,3))},Fn.sortedIndex=function(e,t){return ii(e,t)},Fn.sortedIndexBy=function(e,t,n){return oi(e,t,so(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ii(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ii(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oi(e,t,so(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ii(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Fn.startCase=qs,Fn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:ar(fs(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Fn.subtract=wl,Fn.sum=function(e){return e&&e.length?Wt(e,nl):0},Fn.sumBy=function(e,t){return e&&e.length?Wt(e,so(t,2)):0},Fn.template=function(e,t,r){var i=Fn.templateSettings;r&&yo(e,t,r)&&(t=n),e=vs(e),t=$s({},t,i,Ji);var o,a,s=$s({},t.imports,i.imports,Ji),l=Ps(s),c=Xt(s,l),u=0,d=t.interpolate||be,p="__p += '",f=Te((t.escape||be).source+"|"+d.source+"|"+(d===X?ue:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Ae.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(u,l).replace(ye,nn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Ae.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(z,"$1").replace(H,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Js((function(){return we(l,h+"return "+p).apply(n,c)}));if(g.source=p,Ka(g))throw g;return g},Fn.times=function(e,t){if((e=fs(e))<1||e>u)return[];var n=p,r=bn(e,p);t=so(t),e-=p;for(var i=qt(r,t);++n<e;)t(n);return i},Fn.toFinite=ps,Fn.toInteger=fs,Fn.toLength=hs,Fn.toLower=function(e){return vs(e).toLowerCase()},Fn.toNumber=ms,Fn.toSafeInteger=function(e){return e?ar(fs(e),-9007199254740991,u):0===e?e:0},Fn.toString=vs,Fn.toUpper=function(e){return vs(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=vs(e))&&(r||t===n))return Yt(e);if(!e||!(t=li(t)))return e;var i=dn(e),o=dn(t);return $i(i,Qt(i,o),Zt(i,o)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.slice(0,pn(e)+1);if(!e||!(t=li(t)))return e;var i=dn(e);return $i(i,0,Zt(i,dn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.replace(ne,"");if(!e||!(t=li(t)))return e;var i=dn(e);return $i(i,Qt(i,dn(t))).join("")},Fn.truncate=function(e,t){var r=30,i="...";if(Za(t)){var o="separator"in t?t.separator:o;r="length"in t?fs(t.length):r,i="omission"in t?li(t.omission):i}var a=(e=vs(e)).length;if(rn(e)){var s=dn(e);a=s.length}if(r>=a)return e;var l=r-un(i);if(l<1)return i;var c=s?$i(s,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(s&&(l+=c.length-l),is(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Te(o.source,vs(de.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(li(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},Fn.unescape=function(e){return(e=vs(e))&&W.test(e)?e.replace(G,fn):e},Fn.uniqueId=function(e){var t=++Me;return vs(e)+t},Fn.upperCase=Ys,Fn.upperFirst=Ks,Fn.each=va,Fn.eachRight=ba,Fn.first=Uo,al(Fn,($l={},yr(Fn,(function(e,t){Ae.call(Fn.prototype,t)||($l[t]=e)})),$l),{chain:!1}),Fn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),_t(["drop","take"],(function(e,t){Hn.prototype[e]=function(r){r=r===n?1:vn(fs(r),0);var i=this.__filtered__&&!t?new Hn(this):this.clone();return i.__filtered__?i.__takeCount__=bn(r,i.__takeCount__):i.__views__.push({size:bn(r,p),type:e+(i.__dir__<0?"Right":"")}),i},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(nl)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Ir(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Aa(so(e)))},Hn.prototype.slice=function(e,t){e=fs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=fs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(p)},yr(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Fn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Hn,c=s[0],u=l||Ha(t),d=function(e){var t=o.apply(Fn,Nt([e],s));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,m=l&&!f;if(!a&&u){t=m?t:new Hn(this);var g=e.apply(t,s);return g.__actions__.push({func:pa,args:[d],thisArg:n}),new zn(g,p)}return h&&m?e.apply(this,s):(g=this.thru(d),h?i?g.value()[0]:g.value():g)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),yr(Hn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Ae.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Fi(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ci(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ci(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ci(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=bn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return fi(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],b=v.iteratee,y=v.type,$=b(g);if(2==y)g=$;else if(!$){if(1==y)continue e;break e}}h[p++]=g}return h},Fn.prototype.at=fa,Fn.prototype.chain=function(){return da(this)},Fn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Bn;){var i=jo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Zo],thisArg:n}),new zn(t,this.__chain__)}return this.thru(Zo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Qe&&(Fn.prototype[Qe]=function(){return this}),Fn}();ft?((ft.exports=hn)._=hn,pt._=hn):dt._=hn}).call(commonjsGlobal)}(lodash,lodash.exports);var lodashExports=lodash.exports,_=getDefaultExportFromCjs(lodashExports);const FilterPopup$1=e=>{var t,n,r,i,o,a,s,l,c,u,d,p,f,h,m,g,v;e$i.useEffect((()=>{var t,n,r,i,o,a,s;const l=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.advancedSearch,c=(null===(r=null===(n=null==l?void 0:l.appliedQuery)||void 0===n?void 0:n.filters)||void 0===r?void 0:r.length)>0,u=(null===(i=null==l?void 0:l.filterRows)||void 0===i?void 0:i.length)>0&&(null===(s=null===(a=null===(o=null==l?void 0:l.filterRows[0])||void 0===o?void 0:o.selectedFilter)||void 0===a?void 0:a.propertyToFilter)||void 0===s?void 0:s.apiPropertyName);if(c&&!u){const t=[];let n=l.appliedQuery.criteria;l.appliedQuery.filters.forEach(((r,i)=>{const o={id:r.id,idLabel:`(${(i+1).toString()})`,selectedFilter:_.cloneDeep(r),allPropertieseToFilter:e.filterableFields,alloperators:[],allValues:void 0};n=n.replace(r.id,o.idLabel),t.push(o)}));const r=Object.assign(Object.assign({},l),{filterRows:_.cloneDeep(t),criteria:n}),i=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:r});e.onModelUpdate(null,e.config.uiElementGroupId,i)}}),[]);const b=e$i.useMemo((()=>{var t,n,r;return(null!==(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.advancedSearch)||void 0===n?void 0:n.filterRows)&&void 0!==r?r:[]).some((e=>{var t,n,r,i,o,a,s;return(null===(n=null===(t=e.selectedFilter)||void 0===t?void 0:t.propertyToFilter)||void 0===n?void 0:n.apiPropertyName)&&null!=(null===(i=null===(r=e.selectedFilter)||void 0===r?void 0:r.operator)||void 0===i?void 0:i.value)&&void 0!==(null===(o=e.selectedFilter)||void 0===o?void 0:o.value)&&null!==(null===(a=e.selectedFilter)||void 0===a?void 0:a.value)&&""!==(null===(s=e.selectedFilter)||void 0===s?void 0:s.value)}))}),[null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.advancedSearch)||void 0===n?void 0:n.filterRows]),y=e$i.useMemo((()=>{var t,n,r,i;return(null!==(i=null===(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.advancedSearch)||void 0===n?void 0:n.appliedQuery)||void 0===r?void 0:r.filters)&&void 0!==i?i:[]).length>0}),[null===(o=null===(i=null===(r=e.uiElementGroupData)||void 0===r?void 0:r.advancedSearch)||void 0===i?void 0:i.appliedQuery)||void 0===o?void 0:o.filters]),$=e$i.useMemo((()=>{var t,n,r,i,o,a,s,l,c,u;const d=null!==(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.advancedSearch)||void 0===n?void 0:n.filterRows)&&void 0!==r?r:[],p=null===(o=null===(i=e.uiElementGroupData)||void 0===i?void 0:i.advancedSearch)||void 0===o?void 0:o.appliedQuery,f=null!==(a=null==p?void 0:p.filters)&&void 0!==a?a:[],h=null!==(c=null===(l=null===(s=e.uiElementGroupData)||void 0===s?void 0:s.advancedSearch)||void 0===l?void 0:l.criteria)&&void 0!==c?c:"",m=d.map((e=>{var t,n,r,i,o,a;return{apiPropertyName:null===(n=null===(t=e.selectedFilter)||void 0===t?void 0:t.propertyToFilter)||void 0===n?void 0:n.apiPropertyName,operator:null===(i=null===(r=e.selectedFilter)||void 0===r?void 0:r.operator)||void 0===i?void 0:i.value,value:null===(o=e.selectedFilter)||void 0===o?void 0:o.value,selectedCriteria:null===(a=e.selectedFilter)||void 0===a?void 0:a.selectedCriteria}})),g=f.map((e=>{var t,n;return{apiPropertyName:null===(t=e.propertyToFilter)||void 0===t?void 0:t.apiPropertyName,operator:null===(n=e.operator)||void 0===n?void 0:n.value,value:e.value,selectedCriteria:e.selectedCriteria}})),v=null!==(u=null==p?void 0:p.criteria)&&void 0!==u?u:"";let b=h;return d.forEach((e=>{b=b.replace(e.idLabel,e.id)})),JSON.stringify(m)!==JSON.stringify(g)||b!==v}),[null===(s=null===(a=e.uiElementGroupData)||void 0===a?void 0:a.advancedSearch)||void 0===s?void 0:s.filterRows,null===(c=null===(l=e.uiElementGroupData)||void 0===l?void 0:l.advancedSearch)||void 0===c?void 0:c.appliedQuery,null===(d=null===(u=e.uiElementGroupData)||void 0===u?void 0:u.advancedSearch)||void 0===d?void 0:d.criteria]);return jsxRuntime.jsx(FilterPopupView,{uiElementGroupId:e.config.uiElementGroupId,filterRows:null!==(h=null===(f=null===(p=e.uiElementGroupData)||void 0===p?void 0:p.advancedSearch)||void 0===f?void 0:f.filterRows)&&void 0!==h?h:[],criteria:null!==(v=null===(g=null===(m=e.uiElementGroupData)||void 0===m?void 0:m.advancedSearch)||void 0===g?void 0:g.criteria)&&void 0!==v?v:"",cache:e.cache,onFilterTargetChange:(t,n)=>{const r=_.cloneDeep(e.uiElementGroupData.advancedSearch.filterRows),i=r.find((e=>e.id===n));i&&(i.selectedFilter.propertyToFilter=t,i.selectedFilter.value=void 0,i.selectedFilter.operator={label:"Select Operator...",value:null});const o=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:r})});e.onModelUpdate(null,e.config.uiElementGroupId,o)},onOperatorChange:(t,n)=>{const r=_.cloneDeep(e.uiElementGroupData.advancedSearch.filterRows),i=r.find((e=>e.id===n));i&&(i.selectedFilter.operator=t,i.selectedFilter.value=void 0);const o=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:r})});e.onModelUpdate(null,e.config.uiElementGroupId,o)},onFilterValueChange:(t,n)=>{const r=_.cloneDeep(e.uiElementGroupData.advancedSearch.filterRows),i=r.find((e=>e.id===n));i&&(i.selectedFilter.value=t);const o=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:r})});e.onModelUpdate(null,e.config.uiElementGroupId,o)},onCriteriaToggle:t=>{const n=_.cloneDeep(e.uiElementGroupData.advancedSearch.filterRows),r=n.find((e=>e.id===t));r&&(r.selectedFilter.selectedCriteria=r.selectedFilter.selectedCriteria===OperatorCreiteria.AND?OperatorCreiteria.OR:OperatorCreiteria.AND);let i="";n.map(((e,t)=>{var r;i+=`${e.idLabel}`,(null==n?void 0:n.length)-1!==t&&(i+=` ${null===(r=null==e?void 0:e.selectedFilter)||void 0===r?void 0:r.selectedCriteria} `)}));const o=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:n,criteria:i})});e.onModelUpdate(null,e.config.uiElementGroupId,o)},onAddFilter:t=>{const n=e.uiElementGroupData.advancedSearch.filterRows.findIndex((e=>e.id===t)),r=_.cloneDeep(getAdvancedSearchIntitialFilterRow());r.allPropertieseToFilter=e.filterableFields;let i=[...e.uiElementGroupData.advancedSearch.filterRows.slice(0,n+1),r,...e.uiElementGroupData.advancedSearch.filterRows.slice(n+1)],o="";i=_.cloneDeep(i).map(((e,t)=>{var n;return e.idLabel=`(${t+1})`,o+=`${e.idLabel}`,(null==i?void 0:i.length)-1!==t&&(o+=` ${null===(n=null==e?void 0:e.selectedFilter)||void 0===n?void 0:n.selectedCriteria} `),e}));const a=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:i,criteria:null==o?void 0:o.trim()})});e.onModelUpdate(null,e.config.uiElementGroupId,a)},onDeleteFilter:t=>{var n;let r=e.uiElementGroupData.advancedSearch.filterRows.filter((e=>e.id!==t)),i="";r=null===(n=_.cloneDeep(r))||void 0===n?void 0:n.map(((e,t)=>(e.idLabel=`(${t+1})`,i+=e.idLabel,(null==r?void 0:r.length)-1!==t&&(i+=` ${e.selectedFilter.selectedCriteria} `),e)));const o=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:r,criteria:i}),pagination:Object.assign(Object.assign({},e.uiElementGroupData.pagination),{skip:0})});e.onModelUpdate(null,e.config.uiElementGroupId,o)},onClear:()=>{const t=_.cloneDeep(getAdvancedSearchIntitialFilterRow());t.allPropertieseToFilter=e.filterableFields;const n=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:[t],criteria:"(1)",appliedQuery:{criteria:"",filters:[]}})});e.handlePopupShow(),e.onModelUpdate(null,e.config.uiElementGroupId,n)},onCriteriaApplied:()=>{var t,n,r;let i=null===(n=document.getElementById("tmpl-criteria-input-"+(null!==(t=e.config.uiElementGroupId)&&void 0!==t?t:"")))||void 0===n?void 0:n.innerText;i=normalizeLogicOperators(null!=i?i:"");const o=[...null!==(r=null==i?void 0:i.matchAll(/AND|OR/gi))&&void 0!==r?r:[]].map((e=>e[0]));let a=_.cloneDeep(e.uiElementGroupData.advancedSearch.filterRows);a=a.map(((e,t)=>{var n;return(null==a?void 0:a.length)-1!==t&&(e.selectedFilter.selectedCriteria=null!==(n=o[t])&&void 0!==n?n:"AND"),e}));const s=Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:a,criteria:null!=i?i:""}),l=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:s});e.onModelUpdate(null,e.config.uiElementGroupId,l)},onCopyToClipboard:()=>__awaiter(void 0,void 0,void 0,(function*(){var t,n;const r=null===(n=document.getElementById("tmpl-criteria-input-"+(null!==(t=e.config.uiElementGroupId)&&void 0!==t?t:"")))||void 0===n?void 0:n.innerText;try{yield navigator.clipboard.writeText(r||"")}catch(e){console.error("Unable to copy to clipboard",e)}})),onCancel:()=>{var t,n;const r=_.cloneDeep(e.uiElementGroupData.advancedSearch.filterRows),i=[];let o=e.uiElementGroupData.advancedSearch.appliedQuery.criteria;if(null===(n=null===(t=e.uiElementGroupData.advancedSearch.appliedQuery)||void 0===t?void 0:t.filters)||void 0===n||n.map(((t,n)=>{var a;const s=null==r?void 0:r.find((e=>e.id===t.id)),l={id:t.id,idLabel:`(${(n+1).toString()})`,selectedFilter:_.cloneDeep(t),allPropertieseToFilter:e.filterableFields,alloperators:null!==(a=null==s?void 0:s.alloperators)&&void 0!==a?a:[],allValues:s?null==s?void 0:s.allValues:void 0};o=o.replace(t.id,l.idLabel),i.push(l)})),!i.length){const t=_.cloneDeep(getAdvancedSearchIntitialFilterRow());t.allPropertieseToFilter=e.filterableFields,i.push(t),o="(1)"}const a=Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{filterRows:_.cloneDeep(i),criteria:o}),s=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:a});e.onModelUpdate(null,e.config.uiElementGroupId,s)},onApply:()=>{var t,n,r;const i=_.cloneDeep(e.uiElementGroupData.advancedSearch.filterRows),o=[];let a=null!==(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.advancedSearch)||void 0===n?void 0:n.criteria)&&void 0!==r?r:"";null==i||i.map((e=>{o.push(e.selectedFilter),a=a.replace(e.idLabel,e.id)}));const s={criteria:a,filters:o},l=Object.assign(Object.assign({},e.uiElementGroupData.advancedSearch),{appliedQuery:_.cloneDeep(s)}),c=Object.assign(Object.assign({},e.uiElementGroupData),{advancedSearch:l,pagination:Object.assign(Object.assign({},e.uiElementGroupData.pagination),{skip:0})});e.handlePopupShow(),e.onModelUpdate(null,e.config.uiElementGroupId,c)},loadSupportiveData:e.loadSupportiveData,isApplyDisabled:!b||!$,isClearDisabled:!y&&!b})};var ValueLoadType;!function(e){e.SELF="SELF",e.API="API",e.ADAPTER="ADAPTER",e.STATE="STATE"}(ValueLoadType||(ValueLoadType={}));const useFilterData=({loadTemplateSupportiveData:e})=>{const[t,n]=e$i.useState({});return{loadSupportiveData:r=>__awaiter(void 0,void 0,void 0,(function*(){var i,o,a,s;t[r.apiPropertyName]||(null==r?void 0:r.type)===FilterTargetType.LIST&&((null===(i=r.dataProvider)||void 0===i?void 0:i.valueLoadType)===ValueLoadType.API?null==e||e((e=>{n((t=>{var n,i;return Object.assign(Object.assign({},t),{[r.apiPropertyName]:e[null!==(i=null===(n=r.dataProvider)||void 0===n?void 0:n.key)&&void 0!==i?i:""]})}))}),[null!==(a=null===(o=r.dataProvider)||void 0===o?void 0:o.key)&&void 0!==a?a:""]):(null===(s=r.dataProvider)||void 0===s?void 0:s.valueLoadType)===ValueLoadType.SELF&&n((e=>{var t,n;return Object.assign(Object.assign({},e),{[r.apiPropertyName]:null!==(n=null===(t=r.dataProvider)||void 0===t?void 0:t.value)&&void 0!==n?n:[]})})))})),cache:t}},AdvancedSearch=e=>{var t,n,r,i;const{loadSupportiveData:o,cache:a}=useFilterData({loadTemplateSupportiveData:e.loadTemplateSupportiveData}),[s,l]=e$i.useState(!1),c=e$i.useRef(null),u=()=>{l(!s)},d=e=>{const t=e.target.closest(".tmpl-prvent-outside-click-close");!c.current||c.current.contains(e.target)||t||l(!1)};return e$i.useEffect((()=>(s?document.addEventListener("mousedown",d):document.removeEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)})),[s]),e.visible?jsxRuntime.jsxs("div",Object.assign({className:"tmpl-advanced-search-container",ref:c},{children:[jsxRuntime.jsx(AdvancedSearchView,{handlePopupShow:u,disabled:e.disabled,hasAppliedFilter:e.enableCustomView&&(null===(i=null===(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.advancedSearch)||void 0===n?void 0:n.appliedQuery)||void 0===r?void 0:r.filters)||void 0===i?void 0:i.length)>0}),s&&!e.disabled&&jsxRuntime.jsx("div",Object.assign({className:"tmpl-advanced-popup",onClick:e=>e.stopPropagation()},{children:jsxRuntime.jsx(FilterPopup$1,{uiElementGroupData:e.uiElementGroupData,filterableFields:e.filterableFields,config:e.config,onModelUpdate:e.onModelUpdate,handlePopupShow:u,loadSupportiveData:o,cache:a})}))]})):jsxRuntime.jsx(jsxRuntime.Fragment,{})};function isObject$3(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$3,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),_root=root$2,root$1=root$2,now$1=function(){return root$1.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,""):e}var _baseTrim=baseTrim$1,root=root$2,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$1.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch(e){}var i=nativeObjectToString$1.call(e);return r&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),i}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$1=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0;function baseGetTag$1(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$1(e){return"symbol"==typeof e||isObjectLike(e)&&baseGetTag(e)==symbolTag}var isSymbol_1=isSymbol$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$1=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function f(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=now();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?nativeMin(n,o-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=i=void 0,a)}function v(){var e=now(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=toNumber(t)||0,isObject$1(n)&&(u=!!n.leading,o=(d="maxWait"in n)?nativeMax(toNumber(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(now())},v}var debounce_1=debounce,debounce$1=getDefaultExportFromCjs(debounce_1);const GlobalSearchView=e=>{var t;return jsxRuntime.jsx(B$1,{disabled:e.disabled,value:null!==(t=e.value)&&void 0!==t?t:"",style:{fontSize:"12px"},className:"tmpl-global-search tmpl-input qo-font-md",placeholder:"Type here to search . . .",onKeyUp:t=>{"Enter"!==t.key&&"Enter"!==t.code||e.onSearch()},onChange:t=>{e.onSearchChange(t.target.value)},suffix:()=>e.value?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(m$1,{}),jsxRuntime.jsx(p$3,Object.assign({onClick:e.onClearSearch},{children:jsxRuntime.jsx(FactoryRenderer,{name:"close",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:""})}))]}):jsxRuntime.jsx(jsxRuntime.Fragment,{}),prefix:()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(p$3,Object.assign({onClick:e.onSearch},{children:jsxRuntime.jsx(FactoryRenderer,{name:"search",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:""})})),jsxRuntime.jsx(m$1,{})]})})},GlobalSearch=e=>{var t,n,r,i;const[o,a]=e$i.useState(""),s=e$i.useRef(!1);e$i.useEffect((()=>{var t,n,r,i;if((null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.globalSearch)||void 0===n?void 0:n.appliedQuery)&&!(null===(i=null===(r=e.uiElementGroupData)||void 0===r?void 0:r.globalSearch)||void 0===i?void 0:i.filterQuery)){const t=Object.assign(Object.assign({},e.uiElementGroupData),{globalSearch:Object.assign(Object.assign({},e.uiElementGroupData.globalSearch),{filterQuery:e.uiElementGroupData.globalSearch.appliedQuery})});e.onModelUpdate(null,e.config.uiElementGroupId,t)}}),[null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.globalSearch)||void 0===n?void 0:n.appliedQuery]),e$i.useEffect((()=>{var t,n,r;s.current?s.current=!1:a(null!==(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.globalSearch)||void 0===n?void 0:n.filterQuery)&&void 0!==r?r:"")}),[null===(i=null===(r=e.uiElementGroupData)||void 0===r?void 0:r.globalSearch)||void 0===i?void 0:i.filterQuery]);const l=()=>{const t=Object.assign(Object.assign({},e.uiElementGroupData),{globalSearch:Object.assign(Object.assign({},e.uiElementGroupData.globalSearch),{filterQuery:"",appliedQuery:""}),pagination:Object.assign(Object.assign({},e.uiElementGroupData.pagination),{skip:0})});e.onModelUpdate(null,e.config.uiElementGroupId,t)},c=e$i.useCallback(debounce$1((t=>{const n=Object.assign(Object.assign({},u.current),{globalSearch:Object.assign(Object.assign({},u.current.globalSearch),{filterQuery:t})});e.onModelUpdate(null,e.config.uiElementGroupId,n)}),300),[e.config.uiElementGroupId]),u=e$i.useRef(e.uiElementGroupData);e$i.useEffect((()=>{u.current=e.uiElementGroupData}),[e.uiElementGroupData]);return e.visible?jsxRuntime.jsx(GlobalSearchView,{disabled:e.disabled,value:o,onSearchChange:t=>{s.current=!0,a(null!=t?t:""),e.uiElementGroupData.globalSearch.filterQuery&&!t?(c.cancel(),l()):t&&c(t)},onClearSearch:l,onSearch:()=>{if(e.uiElementGroupData.globalSearch.filterQuery){const t=Object.assign(Object.assign({},e.uiElementGroupData),{globalSearch:Object.assign(Object.assign({},e.uiElementGroupData.globalSearch),{appliedQuery:e.uiElementGroupData.globalSearch.filterQuery}),pagination:Object.assign(Object.assign({},e.uiElementGroupData.pagination),{skip:0})});e.onModelUpdate(null,e.config.uiElementGroupId,t)}}}):jsxRuntime.jsx(jsxRuntime.Fragment,{})},QuickFilterView=e=>jsxRuntime.jsx(FactoryRenderer,{onClick:e.onPopupToggle,rootStyle:{className:"tmpl-quick-filter",inline:{width:"32px"}},widgetStyle:{className:"qo-btn qo-btn-default tmpl-button "+(e.hasAppliedFilter?"tmpl-filter-applied":""),inline:{width:"100%"}},uiElementType:"WIDGET",widgetType:"ICON",name:"filter",fillMode:"",disabled:e.disabled,title:"Quick Filter"}),Filter=e=>{var t,n,r,i,o;return jsxRuntime.jsxs("div",Object.assign({className:"tmpl-dropdown-container"},{children:[jsxRuntime.jsx("span",{children:e.filterRow.propertyToFilter.label}),jsxRuntime.jsx(FactoryRenderer,{value:e.filterRow.value,textField:"label",listData:null!==(o=null===(t=e.dataKeyRelatedValues)||void 0===t?void 0:t[null!==(i=null===(r=null===(n=e.filterRow.propertyToFilter)||void 0===n?void 0:n.dataProvider)||void 0===r?void 0:r.key)&&void 0!==i?i:""])&&void 0!==o?o:[],title:"Filter",defaultItem:{label:"Select...",value:null},widgetStyle:{className:"tmpl-dropdown"},rootStyle:{className:"tmpl-dropdown-container"},popupSettings:{className:"tmpl-prvent-outside-click-close"},onChange:(t,n,r)=>e.onQuickFilterApply(e.filterRow.id,r),uiElementType:"WIDGET",widgetType:"DROPDOWN"})]}),e.filterRow.id)},FilterPopup=e=>{var t;return e$i.useEffect((()=>{var t,n,r,i;const o=_.cloneDeep(null===(t=e.uiElementGroupData)||void 0===t?void 0:t.quickFilter),a=(null===(r=null===(n=null==o?void 0:o.appliedQuery)||void 0===n?void 0:n.filterRows)||void 0===r?void 0:r.length)>0;let s=!1;if(a&&(null===(i=o.appliedQuery.filterRows)||void 0===i||i.map((e=>{var t;const n=null===(t=null==o?void 0:o.filterRows)||void 0===t?void 0:t.findIndex((t=>e.propertyToFilter.label===t.propertyToFilter.label));n>-1&&!o.filterRows[n].value&&(o.filterRows[n].value=e.value,s=!0)})),s)){const t=Object.assign(Object.assign({},e.uiElementGroupData),{quickFilter:o});e.onModelUpdate(null,e.config.uiElementGroupId,t)}}),[]),jsxRuntime.jsx("div",Object.assign({className:"tmpl-quick-filter-popup"},{children:null===(t=e.filterRows)||void 0===t?void 0:t.map((t=>jsxRuntime.jsx(Filter,{filterRow:t,onQuickFilterApply:e.onQuickFilterApply,dataKeyRelatedValues:e.dataKeyRelatedValues},t.id)))}))},QuickFilter=e=>{var t,n,r,i,o,a,s,l,c,u;const[d,p]=e$i.useState({}),[f,h]=e$i.useState(!1),m=e$i.useRef(null);e$i.useEffect((()=>{var t,n,r;(null===(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.quickFilter)||void 0===n?void 0:n.filterRows)||void 0===r?void 0:r.length)>0&&v()}),[null===(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.quickFilter)||void 0===n?void 0:n.filterRows)||void 0===r?void 0:r.length]),e$i.useEffect((()=>(f?document.addEventListener("mousedown",b):document.removeEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)})),[f]);const g=t=>{var n,r;let i={};null===(r=null===(n=e.uiElementGroupData)||void 0===n?void 0:n.quickFilter)||void 0===r||r.filterRows.map((e=>{var n,r,o,a,s,l,c,u,d,p,f;(null===(r=null===(n=e.propertyToFilter)||void 0===n?void 0:n.dataProvider)||void 0===r?void 0:r.valueLoadType)===ValueLoadType.API?i=Object.assign(Object.assign({},i),{[null!==(a=null===(o=e.propertyToFilter)||void 0===o?void 0:o.dataProvider.key)&&void 0!==a?a:""]:t[null!==(l=null===(s=e.propertyToFilter)||void 0===s?void 0:s.dataProvider.key)&&void 0!==l?l:""]}):(null===(u=null===(c=e.propertyToFilter)||void 0===c?void 0:c.dataProvider)||void 0===u?void 0:u.valueLoadType)===ValueLoadType.SELF&&(i=Object.assign(Object.assign({},i),{[null!==(p=null===(d=e.propertyToFilter)||void 0===d?void 0:d.dataProvider.key)&&void 0!==p?p:""]:null===(f=e.propertyToFilter)||void 0===f?void 0:f.dataProvider.value}))})),p(i)},v=()=>{var t,n,r,i;const o=[];null===(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.quickFilter)||void 0===n?void 0:n.filterRows)||void 0===r||r.map((e=>{var t,n,r,i;(null===(n=null===(t=e.propertyToFilter)||void 0===t?void 0:t.dataProvider)||void 0===n?void 0:n.valueLoadType)===ValueLoadType.API&&o.push(null!==(i=null===(r=e.propertyToFilter)||void 0===r?void 0:r.dataProvider.key)&&void 0!==i?i:"")})),o.length>0?null===(i=e.loadTemplateSupportiveData)||void 0===i||i.call(e,g,o):g({})},b=e=>{const t=e.target.closest(".tmpl-prvent-outside-click-close");!m.current||m.current.contains(e.target)||t||h(!1)};return e.visible?jsxRuntime.jsxs("div",Object.assign({className:"tmpl-quick-filter-container",ref:m},{children:[jsxRuntime.jsx(QuickFilterView,{disabled:e.disabled,onPopupToggle:()=>{m.current&&f?(m.current.classList.add("tmpl-popup-animation-reverse"),setTimeout((()=>{h((e=>!e))}),200)):h((e=>!e))},hasAppliedFilter:e.enableCustomView&&(null===(s=null===(a=null===(o=null===(i=e.uiElementGroupData)||void 0===i?void 0:i.quickFilter)||void 0===o?void 0:o.appliedQuery)||void 0===a?void 0:a.filterRows)||void 0===s?void 0:s.length)>0}),f&&!e.disabled&&jsxRuntime.jsx(FilterPopup,{filterRows:null!==(u=null===(c=null===(l=e.uiElementGroupData)||void 0===l?void 0:l.quickFilter)||void 0===c?void 0:c.filterRows)&&void 0!==u?u:[],uiElementGroupData:e.uiElementGroupData,config:e.config,onModelUpdate:e.onModelUpdate,onQuickFilterApply:(t,n)=>{var r,i;const o=_.cloneDeep(null===(i=null===(r=e.uiElementGroupData)||void 0===r?void 0:r.quickFilter)||void 0===i?void 0:i.filterRows),a=o.findIndex((e=>e.id===t));o[a].value=n;const s=_.cloneDeep(o).filter((e=>{var t,n;return e.propertyToFilter.type===FilterTargetType.LIST?void 0!==(null===(t=e.value)||void 0===t?void 0:t.value)&&null!==(null===(n=e.value)||void 0===n?void 0:n.value):e.value})),l=Object.assign(Object.assign({},e.uiElementGroupData.quickFilter),{filterRows:o,appliedQuery:{criteria:"",filterRows:_.cloneDeep(s.map((e=>({value:e.value,propertyToFilter:e.propertyToFilter,id:e.id})))),joinCriteria:OperatorCreiteria.AND}}),c=Object.assign(Object.assign({},e.uiElementGroupData),{quickFilter:l,pagination:Object.assign(Object.assign({},e.uiElementGroupData.pagination),{skip:0})});e.onModelUpdate(null,e.config.uiElementGroupId,c),h(!1)},dataKeyRelatedValues:d})]})):jsxRuntime.jsx(jsxRuntime.Fragment,{})},GroupByView=e=>jsxRuntime.jsx(FactoryRenderer,{onClick:e.onPopupToggle,title:"Group By",rootStyle:{className:"tmpl-groupby"},widgetStyle:{className:"qo-btn qo-btn-default qo-btn-md tmpl-button "+(e.hasAppliedFilter?"tmpl-filter-applied":"")},uiElementType:"WIDGET",widgetType:"BUTTON",disabled:e.disabled}),GroupByPopUp=e=>{const[t,n]=e$i.useState(e.selectedGroups);e$i.useEffect((()=>{n(e.selectedGroups)}),[]);const r=!_.isEqual(t,e.selectedGroups);return jsxRuntime.jsxs("div",Object.assign({className:"tmpl-group-filter-popup"},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-group-filter-popup-header"},{children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h2",{children:"Select a new group"}),jsxRuntime.jsx("p",{children:"This option would allow you to select from existing set of pre-built groups"})]}),jsxRuntime.jsx(FactoryRenderer,{onClick:e.onPopupToggle,widgetStyle:{className:"qo-btn qo-text-default tmpl-button"},name:"close",uiElementType:"WIDGET",fillMode:"clear",widgetType:"ICON",title:""})]})),jsxRuntime.jsxs("div",Object.assign({className:"tmpl-group-filter-popup-body"},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-dropdown-container"},{children:[jsxRuntime.jsx("span",{children:"Group By"}),jsxRuntime.jsx(FactoryRenderer,{uiElementType:"WIDGET",widgetType:"MULTISELECT",onChange:(e,t,r)=>{const i=_.groupBy(r,"value"),o=Object.values(i).filter((e=>e.length>1)).flat(),a=r.filter((e=>!o.some((t=>t.value===e.value))));n(a)},textField:"label",dataItemKey:"value",listData:e.groupableFields,widgetStyle:{className:"tmpl-dropdown"},value:t,placeholder:"Select Group"})]})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-group-filter-popup-footer"},{children:jsxRuntime.jsx(FactoryRenderer,{onClick:()=>e.onGroupApply(t),widgetStyle:{className:"qo-btn qo-btn-primary qo-text-light"},uiElementType:"WIDGET",widgetType:"BUTTON",disabled:!r,title:"Save And Continue"})}))]}))]}))},GroupBy=e=>{var t,n,r,i,o,a;const[s,l]=e$i.useState(!1),c=e$i.useRef(null);e$i.useEffect((()=>(s?document.addEventListener("mousedown",u):document.removeEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)})),[s]);const u=e=>{var t,n;c.current&&!c.current.contains(e.target)&&"k-list-content"!==(null===(n=null===(t=e.target)||void 0===t?void 0:t.offsetParent)||void 0===n?void 0:n.className)&&l(!1)},d=()=>{l((e=>!e))};return e.visible?jsxRuntime.jsxs("div",Object.assign({className:"tmpl-group-filter-container",ref:c},{children:[jsxRuntime.jsx(GroupByView,{disabled:e.disabled,onPopupToggle:d,hasAppliedFilter:e.enableCustomView&&(null===(r=null===(n=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.groupedBy)||void 0===n?void 0:n.appliedGroups)||void 0===r?void 0:r.length)>0}),s&&!e.disabled&&jsxRuntime.jsx(GroupByPopUp,{selectedGroups:null!==(a=null===(o=null===(i=e.uiElementGroupData)||void 0===i?void 0:i.groupedBy)||void 0===o?void 0:o.appliedGroups)&&void 0!==a?a:[],groupableFields:e.groupableFields,onPopupToggle:d,onGroupApply:t=>{const n=Object.assign(Object.assign({},e.uiElementGroupData.groupedBy),{appliedGroups:_.cloneDeep(t)}),r=Object.assign(Object.assign({},e.uiElementGroupData),{groupedBy:n});l(!1),e.onModelUpdate(null,e.config.uiElementGroupId,r)}})]})):jsxRuntime.jsx(jsxRuntime.Fragment,{})},ResetView=e=>jsxRuntime.jsx(FactoryRenderer,{disabled:e.disabled,rootStyle:{className:"tmpl-reset"},widgetStyle:{className:"qo-btn qo-btn-default tmpl-button",inline:{width:"100%"}},onClick:e.onReset,name:"reset",title:"Reset",uiElementType:"WIDGET",widgetType:"ICON"}),Reset=e=>e.visible?jsxRuntime.jsx(ResetView,{disabled:e.disabled,onReset:()=>{var t,n;if("-1"===(null===(t=e.uiElementGroupData.userView.selectedView)||void 0===t?void 0:t.id)){let t=e.config.uiElementGroupId;e.getUniqueViewId&&e.getUniqueViewId((n=>{t=n+"-"+e.config.uiElementGroupId}));const n=`${t}_-1`;sessionStorage.removeItem(n)}const r=Object.assign(Object.assign({},e.uiElementGroupData),{reset:(null!==(n=e.uiElementGroupData.reset)&&void 0!==n?n:0)+1});e.onModelUpdate(null,e.config.uiElementGroupId,r)}}):jsxRuntime.jsx(jsxRuntime.Fragment,{}),SettingView=e=>jsxRuntime.jsx(FactoryRenderer,{disabled:e.disabled,rootStyle:{className:"tmpl-setting"},widgetStyle:{className:"qo-btn qo-btn-default tmpl-button "+(e.hasAppliedFilter?"tmpl-filter-applied":""),inline:{width:"100%"}},onClick:e.onSettingClick,title:"Setting",name:"setting",uiElementType:"WIDGET",widgetType:"ICON"}),DragDropContainer=({column:e,excludeIncludeToCard:t,toggleFreeze:n,onFieldAddOrRemove:r})=>jsxRuntime.jsxs("div",Object.assign({className:"tmpl-chooser-setting-container"},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-chooser-setting-label"},{children:[jsxRuntime.jsx(u$d,{name:"drag"}),jsxRuntime.jsx("p",{children:e.label})]})),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(A$1,{className:"tmpl-include-card tmpl-checkbox",label:"Include in card",checked:e.includeInCard,onChange:()=>{t(e.id)}}),jsxRuntime.jsx("div",{children:jsxRuntime.jsx(x$2,{label:"Freeze",className:"tmpl-radio",checked:!0===e.primary||e.isFreezed,onClick:()=>{n(e.id)}})}),!0!==e.primary?jsxRuntime.jsx(FactoryRenderer,{name:"close",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:"",widgetStyle:{className:"qo-btn qo-text-danger"},onClick:()=>{!0!==e.primary&&r(e.id)}}):jsxRuntime.jsx(FactoryRenderer,{name:"close",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:"",widgetStyle:{className:"qo-btn qo-text-danger",inline:{visibility:"hidden"}}})]})]}),e.id);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function toPropertyKey(e){var t=toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _defineProperty(e,t,n){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString()};function isPlainObject$2(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function miniKindOf(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(isDate$1(e))return"date";if(isError(e))return"error";var n=ctorName(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(e){return"function"==typeof e.constructor?e.constructor.name:null}function isError(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}function isDate$1(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}function kindOf$1(e){var t=typeof e;return"production"!==process.env.NODE_ENV&&(t=miniKindOf(e)),t}function createStore$1(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(1):"Expected the enhancer to be a function. Instead, received: '"+kindOf$1(n)+"'");return n(createStore$1)(e,t)}if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(2):"Expected the root reducer to be a function. Instead, received: '"+kindOf$1(e)+"'");var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(4):"Expected the listener to be a function. Instead, received: '"+kindOf$1(e)+"'");if(l)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!isPlainObject$2(e))throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(7):"Actions must be plain objects. Instead, the actual type was: '"+kindOf$1(e)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:ActionTypes.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(10):"Expected the nextReducer to be a function. Instead, received: '"+kindOf$1(e));i=e,p({type:ActionTypes.REPLACE})}})[$$observable]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(11):"Expected the observer to be an object. Instead, received: '"+kindOf$1(e)+"'");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[$$observable]=function(){return this},e},r}function bindActionCreator(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators$1(e,t){if("function"==typeof e)return bindActionCreator(e,t);if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(16):"bindActionCreators expected an object or a function, but instead received: '"+kindOf$1(e)+'\'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=bindActionCreator(i,t))}return n}function compose(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function applyMiddleware(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=compose.apply(void 0,o)(n.dispatch),_objectSpread2(_objectSpread2({},n),{},{dispatch:r})}}}var ReactReduxContext=e$i.createContext(null);function defaultNoopBatch(e){e()}"production"!==process.env.NODE_ENV&&(ReactReduxContext.displayName="ReactRedux");var batch=defaultNoopBatch,setBatch=function(e){return batch=e},getBatch=function(){return batch};function createListenerCollection(){var e=getBatch(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(e,t){var n,r=nullListeners;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=createListenerCollection())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=nullListeners)},getListeners:function(){return r}};return a}var useIsomorphicLayoutEffect$1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e$i.useLayoutEffect:e$i.useEffect;function Provider(e){var t=e.store,n=e.context,r=e.children,i=e$i.useMemo((function(){var e=createSubscription(t);return{store:t,subscription:e}}),[t]),o=e$i.useMemo((function(){return t.getState()}),[t]);useIsomorphicLayoutEffect$1((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,o]);var a=n||ReactReduxContext;return e$i.createElement(a.Provider,{value:i},r)}"production"!==process.env.NODE_ENV&&(Provider.propTypes={store:PropTypes.shape({subscribe:PropTypes.func.isRequired,dispatch:PropTypes.func.isRequired,getState:PropTypes.func.isRequired}),context:PropTypes.object,children:PropTypes.any});var hasRequiredReactIs_production_min$1,reactIs$2={exports:{}},reactIs_production_min$1={};function requireReactIs_production_min$1(){if(hasRequiredReactIs_production_min$1)return reactIs_production_min$1;hasRequiredReactIs_production_min$1=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function $(e){return y(e)===c}return reactIs_production_min$1.AsyncMode=l,reactIs_production_min$1.ConcurrentMode=c,reactIs_production_min$1.ContextConsumer=s,reactIs_production_min$1.ContextProvider=a,reactIs_production_min$1.Element=t,reactIs_production_min$1.ForwardRef=u,reactIs_production_min$1.Fragment=r,reactIs_production_min$1.Lazy=h,reactIs_production_min$1.Memo=f,reactIs_production_min$1.Portal=n,reactIs_production_min$1.Profiler=o,reactIs_production_min$1.StrictMode=i,reactIs_production_min$1.Suspense=d,reactIs_production_min$1.isAsyncMode=function(e){return $(e)||y(e)===l},reactIs_production_min$1.isConcurrentMode=$,reactIs_production_min$1.isContextConsumer=function(e){return y(e)===s},reactIs_production_min$1.isContextProvider=function(e){return y(e)===a},reactIs_production_min$1.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_production_min$1.isForwardRef=function(e){return y(e)===u},reactIs_production_min$1.isFragment=function(e){return y(e)===r},reactIs_production_min$1.isLazy=function(e){return y(e)===h},reactIs_production_min$1.isMemo=function(e){return y(e)===f},reactIs_production_min$1.isPortal=function(e){return y(e)===n},reactIs_production_min$1.isProfiler=function(e){return y(e)===o},reactIs_production_min$1.isStrictMode=function(e){return y(e)===i},reactIs_production_min$1.isSuspense=function(e){return y(e)===d},reactIs_production_min$1.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},reactIs_production_min$1.typeOf=y,reactIs_production_min$1}var hasRequiredReactIs_development$1,reactIs_development$1={};
/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function requireReactIs_development$1(){return hasRequiredReactIs_development$1||(hasRequiredReactIs_development$1=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case o:case i:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case f:case a:return g;default:return p}}case n:return p}}}var $=l,x=c,E=s,w=a,D=t,_=u,T=r,S=h,C=f,I=n,P=o,O=i,N=d,R=!1;function A(e){return y(e)===c}reactIs_development$1.AsyncMode=$,reactIs_development$1.ConcurrentMode=x,reactIs_development$1.ContextConsumer=E,reactIs_development$1.ContextProvider=w,reactIs_development$1.Element=D,reactIs_development$1.ForwardRef=_,reactIs_development$1.Fragment=T,reactIs_development$1.Lazy=S,reactIs_development$1.Memo=C,reactIs_development$1.Portal=I,reactIs_development$1.Profiler=P,reactIs_development$1.StrictMode=O,reactIs_development$1.Suspense=N,reactIs_development$1.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||y(e)===l},reactIs_development$1.isConcurrentMode=A,reactIs_development$1.isContextConsumer=function(e){return y(e)===s},reactIs_development$1.isContextProvider=function(e){return y(e)===a},reactIs_development$1.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_development$1.isForwardRef=function(e){return y(e)===u},reactIs_development$1.isFragment=function(e){return y(e)===r},reactIs_development$1.isLazy=function(e){return y(e)===h},reactIs_development$1.isMemo=function(e){return y(e)===f},reactIs_development$1.isPortal=function(e){return y(e)===n},reactIs_development$1.isProfiler=function(e){return y(e)===o},reactIs_development$1.isStrictMode=function(e){return y(e)===i},reactIs_development$1.isSuspense=function(e){return y(e)===d},reactIs_development$1.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},reactIs_development$1.typeOf=y}()),reactIs_development$1}"production"===process.env.NODE_ENV?reactIs$2.exports=requireReactIs_production_min$1():reactIs$2.exports=requireReactIs_development$1();var reactIsExports$1=reactIs$2.exports,reactIs$1=reactIsExports$1,REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(e){return reactIs$1.isMemo(e)?MEMO_STATICS:TYPE_STATICS[e.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs$1.ForwardRef]=FORWARD_REF_STATICS,TYPE_STATICS[reactIs$1.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf$1=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(e,t,n){if("string"!=typeof t){if(objectPrototype){var r=getPrototypeOf$1(t);r&&r!==objectPrototype&&hoistNonReactStatics(e,r,n)}var i=getOwnPropertyNames(t);getOwnPropertySymbols&&(i=i.concat(getOwnPropertySymbols(t)));for(var o=getStatics(e),a=getStatics(t),s=0;s<i.length;++s){var l=i[s];if(!(KNOWN_STATICS[l]||n&&n[l]||a&&a[l]||o&&o[l])){var c=getOwnPropertyDescriptor(t,l);try{defineProperty(e,l,c)}catch(e){}}}}return e}var hasRequiredReactIs_production_min,hoistNonReactStatics_cjs=hoistNonReactStatics,hoistStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjs),reactIs={exports:{}},reactIs_production_min={};function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),i=v("react.profiler"),o=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),c=v("react.suspense_list"),u=v("react.memo"),d=v("react.lazy"),p=v("react.block"),f=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function b(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case i:case r:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case o:return p;default:return f}}case t:return f}}}var y=o,$=e,x=s,E=n,w=d,D=u,_=t,T=i,S=r,C=l;return reactIs_production_min.ContextConsumer=a,reactIs_production_min.ContextProvider=y,reactIs_production_min.Element=$,reactIs_production_min.ForwardRef=x,reactIs_production_min.Fragment=E,reactIs_production_min.Lazy=w,reactIs_production_min.Memo=D,reactIs_production_min.Portal=_,reactIs_production_min.Profiler=T,reactIs_production_min.StrictMode=S,reactIs_production_min.Suspense=C,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(e){return b(e)===a},reactIs_production_min.isContextProvider=function(e){return b(e)===o},reactIs_production_min.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},reactIs_production_min.isForwardRef=function(e){return b(e)===s},reactIs_production_min.isFragment=function(e){return b(e)===n},reactIs_production_min.isLazy=function(e){return b(e)===d},reactIs_production_min.isMemo=function(e){return b(e)===u},reactIs_production_min.isPortal=function(e){return b(e)===t},reactIs_production_min.isProfiler=function(e){return b(e)===i},reactIs_production_min.isStrictMode=function(e){return b(e)===r},reactIs_production_min.isSuspense=function(e){return b(e)===l},reactIs_production_min.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===m||e===r||e===l||e===c||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},reactIs_production_min.typeOf=b,reactIs_production_min}var hasRequiredReactIs_development,reactIs_development={};
/** @license React v17.0.2
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,"production"!==process.env.NODE_ENV&&function(){var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),i=v("react.profiler"),o=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),c=v("react.suspense_list"),u=v("react.memo"),d=v("react.lazy"),p=v("react.block"),f=v("react.server.block"),h=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),m=v("react.debug_trace_mode"),v("react.offscreen"),g=v("react.legacy_hidden")}function b(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:var h=p.type;switch(h){case n:case i:case r:case l:case c:return h;default:var m=h&&h.$$typeof;switch(m){case a:case s:case d:case u:case o:return m;default:return f}}case t:return f}}}var y=a,$=o,x=e,E=s,w=n,D=d,_=u,T=t,S=i,C=r,I=l,P=!1,O=!1;reactIs_development.ContextConsumer=y,reactIs_development.ContextProvider=$,reactIs_development.Element=x,reactIs_development.ForwardRef=E,reactIs_development.Fragment=w,reactIs_development.Lazy=D,reactIs_development.Memo=_,reactIs_development.Portal=T,reactIs_development.Profiler=S,reactIs_development.StrictMode=C,reactIs_development.Suspense=I,reactIs_development.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isConcurrentMode=function(e){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isContextConsumer=function(e){return b(e)===a},reactIs_development.isContextProvider=function(e){return b(e)===o},reactIs_development.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},reactIs_development.isForwardRef=function(e){return b(e)===s},reactIs_development.isFragment=function(e){return b(e)===n},reactIs_development.isLazy=function(e){return b(e)===d},reactIs_development.isMemo=function(e){return b(e)===u},reactIs_development.isPortal=function(e){return b(e)===t},reactIs_development.isProfiler=function(e){return b(e)===i},reactIs_development.isStrictMode=function(e){return b(e)===r},reactIs_development.isSuspense=function(e){return b(e)===l},reactIs_development.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||(e===n||e===i||e===m||e===r||e===l||e===c||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f))},reactIs_development.typeOf=b}()),reactIs_development}"production"===process.env.NODE_ENV?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development();var reactIsExports=reactIs.exports,_excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null],stringifyComponent=function(e){try{return JSON.stringify(e)}catch(t){return String(e)}};function storeStateUpdatesReducer(e,t){var n=e[1];return[t.payload,n+1]}function useIsomorphicLayoutEffectWithArgs(e,t,n){useIsomorphicLayoutEffect$1((function(){return e.apply(void 0,t)}),n)}function captureWrapperProps(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function subscribeUpdates(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,o=n.methodName,a=void 0===o?"connectAdvanced":o,s=n.renderCountProp,l=void 0===s?void 0:s,c=n.shouldHandleStateChanges,u=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,f=n.withRef,h=void 0!==f&&f,m=n.forwardRef,g=void 0!==m&&m,v=n.context,b=void 0===v?ReactReduxContext:v,y=_objectWithoutPropertiesLoose(n,_excluded$2);if("production"!==process.env.NODE_ENV){if(void 0!==l)throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");if(h)throw new Error("withRef is removed. To access the wrapped instance, use a ref on the connected component");if("store"!==p)throw new Error("storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect")}var $=b;return function(t){if("production"!==process.env.NODE_ENV&&!reactIsExports.isValidElementType(t))throw new Error("You must pass a component to the function returned by "+a+". Instead received "+stringifyComponent(t));var n=t.displayName||t.name||"Component",r=i(n),o=_extends({},y,{getDisplayName:i,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=y.pure;var c=s?e$i.useMemo:function(e){return e()};function d(n){var i=e$i.useMemo((function(){var e=n.reactReduxForwardedRef,t=_objectWithoutPropertiesLoose(n,_excluded2);return[n.context,e,t]}),[n]),a=i[0],s=i[1],l=i[2],d=e$i.useMemo((function(){return a&&a.Consumer&&reactIsExports.isContextConsumer(e$i.createElement(a.Consumer,null))?a:$}),[a,$]),p=e$i.useContext(d),f=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),h=Boolean(p)&&Boolean(p.store);if("production"!==process.env.NODE_ENV&&!f&&!h)throw new Error('Could not find "store" in the context of "'+r+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+r+" in connect options.");var m=f?n.store:p.store,g=e$i.useMemo((function(){return function(t){return e(t.dispatch,o)}(m)}),[m]),v=e$i.useMemo((function(){if(!u)return NO_SUBSCRIPTION_ARRAY;var e=createSubscription(m,f?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,f,p]),b=v[0],y=v[1],x=e$i.useMemo((function(){return f?p:_extends({},p,{subscription:b})}),[f,p,b]),E=e$i.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),w=E[0][0],D=E[1];if(w&&w.error)throw w.error;var _=e$i.useRef(),T=e$i.useRef(l),S=e$i.useRef(),C=e$i.useRef(!1),I=c((function(){return S.current&&l===T.current?S.current:g(m.getState(),l)}),[m,w,l]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[T,_,C,l,I,S,y]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[u,m,b,g,T,_,C,S,y,D],[m,b,g]);var P=e$i.useMemo((function(){return e$i.createElement(t,_extends({},I,{ref:s}))}),[s,t,I]);return e$i.useMemo((function(){return u?e$i.createElement(d.Provider,{value:x},P):P}),[d,P,x])}var f=s?e$i.memo(d):d;if(f.WrappedComponent=t,f.displayName=d.displayName=r,g){var h=e$i.forwardRef((function(e,t){return e$i.createElement(f,_extends({},e,{reactReduxForwardedRef:t}))}));return h.displayName=r,h.WrappedComponent=t,hoistStatics(h,t)}return hoistStatics(f,t)}}function is(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function shallowEqual(e,t){if(is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!is(e[n[i]],t[n[i]]))return!1;return!0}function bindActionCreators(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}function isPlainObject$1(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function warning$1(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function verifyPlainObject(e,t,n){isPlainObject$1(e)||warning$1(n+"() in "+t+" must return a plain object. Instead received "+e+".")}function wrapMapToPropsConstant(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function getDependsOnOwnProps(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function wrapMapToPropsFunc(e,t){return function(n,r){var i=r.displayName,o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,r){o.mapToProps=e,o.dependsOnOwnProps=getDependsOnOwnProps(e);var a=o(n,r);return"function"==typeof a&&(o.mapToProps=a,o.dependsOnOwnProps=getDependsOnOwnProps(a),a=o(n,r)),"production"!==process.env.NODE_ENV&&verifyPlainObject(a,i,t),a},o}}function whenMapDispatchToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e,"mapDispatchToProps"):void 0}function whenMapDispatchToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant((function(e){return{dispatch:e}}))}function whenMapDispatchToPropsIsObject(e){return e&&"object"==typeof e?wrapMapToPropsConstant((function(t){return bindActionCreators(e,t)})):void 0}var defaultMapDispatchToPropsFactories=[whenMapDispatchToPropsIsFunction,whenMapDispatchToPropsIsMissing,whenMapDispatchToPropsIsObject];function whenMapStateToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e,"mapStateToProps"):void 0}function whenMapStateToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant((function(){return{}}))}var defaultMapStateToPropsFactories=[whenMapStateToPropsIsFunction,whenMapStateToPropsIsMissing];function defaultMergeProps(e,t,n){return _extends({},n,e,t)}function wrapMergePropsFunc(e){return function(t,n){var r,i=n.displayName,o=n.pure,a=n.areMergedPropsEqual,s=!1;return function(t,n,l){var c=e(t,n,l);return s?o&&a(c,r)||(r=c):(s=!0,r=c,"production"!==process.env.NODE_ENV&&verifyPlainObject(r,i,"mergeProps")),r}}}function whenMergePropsIsFunction(e){return"function"==typeof e?wrapMergePropsFunc(e):void 0}function whenMergePropsIsOmitted(e){return e?void 0:function(){return defaultMergeProps}}var defaultMergePropsFactories=[whenMergePropsIsFunction,whenMergePropsIsOmitted];function verify(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||warning$1("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}function verifySubselectors(e,t,n,r){verify(e,"mapStateToProps",r),verify(t,"mapDispatchToProps",r),verify(n,"mergeProps",r)}var _excluded$1=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function impureFinalPropsSelectorFactory(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function pureFinalPropsSelectorFactory(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function h(i,f){var h,m,g=!d(f,a),v=!u(i,o,f,a);return o=i,a=f,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):v?(h=e(o,a),m=!p(h,s),s=h,m&&(c=n(s,l,a)),c):c}return function(i,u){return f?h(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),f=!0,c)}}function finalPropsSelectorFactory(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=_objectWithoutPropertiesLoose(t,_excluded$1),a=n(e,o),s=r(e,o),l=i(e,o);return"production"!==process.env.NODE_ENV&&verifySubselectors(a,s,l,o.displayName),(o.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory)(a,s,l,e,o)}var _excluded=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function strictEqual(e,t){return e===t}function createConnect(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?connectAdvanced:n,i=t.mapStateToPropsFactories,o=void 0===i?defaultMapStateToPropsFactories:i,a=t.mapDispatchToPropsFactories,s=void 0===a?defaultMapDispatchToPropsFactories:a,l=t.mergePropsFactories,c=void 0===l?defaultMergePropsFactories:l,u=t.selectorFactory,d=void 0===u?finalPropsSelectorFactory:u;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,u=void 0===l||l,p=a.areStatesEqual,f=void 0===p?strictEqual:p,h=a.areOwnPropsEqual,m=void 0===h?shallowEqual:h,g=a.areStatePropsEqual,v=void 0===g?shallowEqual:g,b=a.areMergedPropsEqual,y=void 0===b?shallowEqual:b,$=_objectWithoutPropertiesLoose(a,_excluded),x=match(e,o,"mapStateToProps"),E=match(t,s,"mapDispatchToProps"),w=match(n,c,"mergeProps");return r(d,_extends({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:E,initMergeProps:w,pure:u,areStatesEqual:f,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:y},$))}}var connect=createConnect();function areInputsEqual$1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function useMemoOne(e,t){var n=e$i.useState((function(){return{inputs:t,result:e()}}))[0],r=e$i.useRef(!0),i=e$i.useRef(n),o=r.current||Boolean(t&&i.current.inputs&&areInputsEqual$1(t,i.current.inputs))?i.current:{inputs:t,result:e()};return e$i.useEffect((function(){r.current=!1,i.current=o}),[o]),o.result}function useCallbackOne(e,t){return useMemoOne((function(){return e}),t)}setBatch(ReactDOM.unstable_batchedUpdates);var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction$2="production"===process.env.NODE_ENV,prefix$2="Invariant failed";function invariant$1(e,t){if(isProduction$2)throw new Error(prefix$2);var n="function"==typeof t?t():t,r=n?"".concat(prefix$2,": ").concat(n):prefix$2;throw new Error(r)}var getRect=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},expand=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},shrink=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},shift=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?noSpacing$1:n,i=e.border,o=void 0===i?noSpacing$1:i,a=e.padding,s=void 0===a?noSpacing$1:a,l=getRect(expand(t,r)),c=getRect(shrink(t,o)),u=getRect(shrink(c,s));return{marginBox:l,borderBox:getRect(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:s}},parse=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&("production"!==process.env.NODE_ENV?invariant$1(!1,"Could not parse value [raw: "+e+", without suffix: "+t+"]"):invariant$1()),n},getWindowScroll$1=function(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function(e,t){var n=e.borderBox,r=e.border,i=e.margin,o=e.padding,a=shift(n,t);return createBox({borderBox:a,border:r,margin:i,padding:o})},withScroll=function(e,t){return void 0===t&&(t=getWindowScroll$1()),offset(e,t)},calculateBox=function(e,t){var n={top:parse(t.marginTop),right:parse(t.marginRight),bottom:parse(t.marginBottom),left:parse(t.marginLeft)},r={top:parse(t.paddingTop),right:parse(t.paddingRight),bottom:parse(t.paddingBottom),left:parse(t.paddingLeft)},i={top:parse(t.borderTopWidth),right:parse(t.borderRightWidth),bottom:parse(t.borderBottomWidth),left:parse(t.borderLeftWidth)};return createBox({borderBox:e,margin:n,padding:r,border:i})},getBox=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return calculateBox(t,n)},safeIsNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function isEqual$2(e,t){return e===t||!(!safeIsNaN(e)||!safeIsNaN(t))}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!isEqual$2(e[n],t[n]))return!1;return!0}function memoizeOne(e,t){var n;void 0===t&&(t=areInputsEqual);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}}var rafSchd=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r},isProduction="production"===process.env.NODE_ENV,spacesAndTabs=/[ \t]{2,}/g,lineStartWithSpaces=/^[ \t]*/gm,clean=function(e){return e.replace(spacesAndTabs," ").replace(lineStartWithSpaces,"").trim()},getDevMessage=function(e){return clean("\n  %creact-beautiful-dnd\n\n  %c"+clean(e)+"\n\n  %c👷‍ This is a development only message. It will be removed in production builds.\n")},getFormattedMessage=function(e){return[getDevMessage(e),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},isDisabledFlag="__react-beautiful-dnd-disable-dev-warnings";function log(e,t){var n;isProduction||"undefined"!=typeof window&&window[isDisabledFlag]||(n=console)[e].apply(n,getFormattedMessage(t))}var warning=log.bind(null,"warn"),error=log.bind(null,"error");function noop$1(){}function getOptions(e,t){return _extends({},e,{},t)}function bindEvents(e,t,n){var r=t.map((function(t){var r=getOptions(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var isProduction$1="production"===process.env.NODE_ENV,prefix="Invariant failed";function RbdInvariant(e){this.message=e}function invariant(e,t){throw new RbdInvariant(isProduction$1?prefix:prefix+": "+(t||""))}RbdInvariant.prototype.toString=function(){return this.message};var ErrorBoundary=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=noop$1,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&(n.tryAbort(),"production"!==process.env.NODE_ENV&&warning("\n        An error was caught by our window 'error' event listener while a drag was occurring.\n        The active drag has been aborted.\n      "));var r=e.error;r instanceof RbdInvariant&&(e.preventDefault(),"production"!==process.env.NODE_ENV&&error(r.message))},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}_inheritsLoose(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(e instanceof RbdInvariant)return"production"!==process.env.NODE_ENV&&error(e.message),void this.setState({});throw e},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(e$i.Component),dragHandleUsageInstructions="\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",position=function(e){return e+1},onDragStart=function(e){return"\n  You have lifted an item in position "+position(e.source.index)+"\n"},withLocation=function(e,t){var n=e.droppableId===t.droppableId,r=position(e.index),i=position(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+i+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+i+"\n  "},withCombine=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},onDragUpdate=function(e){var t=e.destination;if(t)return withLocation(e.source,t);var n=e.combine;return n?withCombine(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},returnedToStart=function(e){return"\n  The item has returned to its starting position\n  of "+position(e.index)+"\n"},onDragEnd=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+returnedToStart(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+withLocation(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+withCombine(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+returnedToStart(e.source)+"\n  "},preset={dragHandleUsageInstructions:dragHandleUsageInstructions,onDragStart:onDragStart,onDragUpdate:onDragUpdate,onDragEnd:onDragEnd},origin$1={x:0,y:0},add=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},isEqual=function(e,t){return e.x===t.x&&e.y===t.y},negate=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},patch=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},distance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},closest=function(e,t){return Math.min.apply(Math,t.map((function(t){return distance(e,t)})))},apply=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},executeClip=function(e,t){var n=getRect({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},offsetByPosition=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},getCorners=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},noSpacing={top:0,right:0,bottom:0,left:0},scroll=function(e,t){return t?offsetByPosition(e,t.scroll.diff.displacement):e},increase=function(e,t,n){var r;return n&&n.increasedBy?_extends({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e},clip=function(e,t){return t&&t.shouldClipSubject?executeClip(t.pageMarginBox,e):getRect(e)},getSubject=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=scroll(t.marginBox,i),a=increase(o,r,n);return{page:t,withPlaceholder:n,active:clip(a,i)}},scrollDroppable=function(e,t){e.frame||(process.env.NODE_ENV,invariant());var n=e.frame,r=subtract(t,n.scroll.initial),i=negate(r),o=_extends({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}});return _extends({},e,{frame:o,subject:getSubject({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o})})};function isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function values(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function findIndex(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function find(e,t){if(e.find)return e.find(t);var n=findIndex(e,t);return-1!==n?e[n]:void 0}function toArray$1(e){return Array.prototype.slice.call(e)}var toDroppableMap=memoizeOne((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),toDraggableMap=memoizeOne((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),toDroppableList=memoizeOne((function(e){return values(e)})),toDraggableList=memoizeOne((function(e){return values(e)})),getDraggablesInsideDroppable=memoizeOne((function(e,t){var n=toDraggableList(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function tryGetDestination(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function tryGetCombine(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var removeDraggableFromList=memoizeOne((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),moveToNextCombine=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.previousImpact;if(!r.isCombineEnabled)return null;if(!tryGetDestination(o))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return _extends({},o,{at:t})}var s=o.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var c=removeDraggableFromList(n,i);if(!l)return c.length?a(c[c.length-1].descriptor.id):null;var u=findIndex(c,(function(e){return e.descriptor.id===l}));-1===u&&("production"!==process.env.NODE_ENV?invariant(!1,"Could not find displaced item in set"):invariant());var d=u-1;return d<0?null:a(c[d].descriptor.id)},isHomeOf=function(e,t){return e.descriptor.droppableId===t.descriptor.id},noDisplacedBy={point:origin$1,value:0},emptyGroups={invisible:{},visible:{},all:[]},noImpact={displaced:emptyGroups,displacedBy:noDisplacedBy,at:null},isWithin=function(e,t){return function(n){return e<=n&&n<=t}},isPartiallyVisibleThroughFrame=function(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&o||s&&i)}},isTotallyVisibleThroughFrame=function(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},vertical={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},horizontal={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},isTotallyVisibleThroughFrameOnAxis=function(e){return function(t){var n=isWithin(t.top,t.bottom),r=isWithin(t.left,t.right);return function(t){return e===vertical?n(t.top)&&n(t.bottom):r(t.left)&&r(t.right)}}},getDroppableDisplaced=function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:origin$1;return offsetByPosition(e,n)},isVisibleInDroppable=function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)},isVisibleInViewport=function(e,t,n){return n(t)(e)},isVisible=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?getDroppableDisplaced(t,n):t;return isVisibleInDroppable(a,n,o)&&isVisibleInViewport(a,r,o)},isPartiallyVisible=function(e){return isVisible(_extends({},e,{isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame}))},isTotallyVisible=function(e){return isVisible(_extends({},e,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrame}))},isTotallyVisibleOnAxis=function(e){return isVisible(_extends({},e,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrameOnAxis(e.destination.axis)}))},getShouldAnimate=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var o=i[e];return!o||o.shouldAnimate};function getTarget(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return getRect(expand(n,r))}function getDisplacementGroups(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=getTarget(t,r),l=t.descriptor.id;if(e.all.push(l),!isPartiallyVisible({target:s,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:l,shouldAnimate:getShouldAnimate(l,a,o)};return e.visible[l]=c,e}),{all:[],visible:{},invisible:{}})}function getIndexOfLastItem(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function goAtEnd(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=getIndexOfLastItem(t,{inHomeList:n});return{displaced:emptyGroups,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function calculateReorderImpact(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=isHomeOf(t,r);if(null==s)return goAtEnd({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var u=find(n,(function(e){return e.descriptor.index===s}));if(!u)return goAtEnd({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var d=removeDraggableFromList(t,n),p=n.indexOf(u);return{displaced:getDisplacementGroups({afterDragging:d.slice(p),destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function didStartAfterCritical(e,t){return Boolean(t.effected[e])}var fromCombine=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,s=r[a].descriptor.index;return didStartAfterCritical(a,o)?t?s:s-1:t?s+1:s},fromReorder=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,a=t?o+1:o-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a},moveToNextIndex=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot move in direction without previous impact location"):invariant()),"REORDER"===u.type){var d=fromReorder({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:calculateReorderImpact({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var p=fromCombine({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return null==p?null:calculateReorderImpact({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:p})},getCombinedItemDisplacement=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[r]||t.invisible[r]);return didStartAfterCritical(r,n)?o?origin$1:negate(i.point):o?i.point:origin$1},whenCombining=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=tryGetCombine(n);i||(process.env.NODE_ENV,invariant());var o=i.draggableId,a=r[o].page.borderBox.center,s=getCombinedItemDisplacement({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return add(a,s)},distanceFromStartToBorderBoxCenter=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},distanceFromEndToBorderBoxCenter=function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2},getCrossAxisBorderBoxCenter=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},goAfter=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return patch(t.line,n.marginBox[t.end]+distanceFromStartToBorderBoxCenter(t,r),getCrossAxisBorderBoxCenter(t,n.marginBox,r))},goBefore=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return patch(t.line,n.marginBox[t.start]-distanceFromEndToBorderBoxCenter(t,r),getCrossAxisBorderBoxCenter(t,n.marginBox,r))},goIntoStart=function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return patch(t.line,n.contentBox[t.start]+distanceFromStartToBorderBoxCenter(t,r),getCrossAxisBorderBoxCenter(t,n.contentBox,r))},whenReordering=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,a=getDraggablesInsideDroppable(i.descriptor.id,r),s=n.page,l=i.axis;if(!a.length)return goIntoStart({axis:l,moveInto:i.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var p=r[d];if(didStartAfterCritical(d,o))return goBefore({axis:l,moveRelativeTo:p.page,isMoving:s});var f=offset(p.page,u.point);return goBefore({axis:l,moveRelativeTo:f,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(didStartAfterCritical(h.descriptor.id,o)){var m=offset(h.page,negate(o.displacedBy.point));return goAfter({axis:l,moveRelativeTo:m,isMoving:s})}return goAfter({axis:l,moveRelativeTo:h.page,isMoving:s})},withDroppableDisplacement=function(e,t){var n=e.frame;return n?add(t,n.scroll.diff.displacement):t},getResultWithoutDroppableDisplacement=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?whenReordering({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):whenCombining({impact:t,draggables:i,afterCritical:o}):a},getPageBorderBoxCenterFromImpact=function(e){var t=getResultWithoutDroppableDisplacement(e),n=e.droppable;return n?withDroppableDisplacement(n,t):t},scrollViewport=function(e,t){var n=subtract(t,e.scroll.initial),r=negate(n);return{frame:getRect({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function getDraggables(e,t){return e.map((function(e){return t[e]}))}function tryGetVisible(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}var speculativelyIncrease=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,o=e.maxScrollChange,a=scrollViewport(n,add(n.scroll.current,o)),s=r.frame?scrollDroppable(r,add(r.frame.scroll.current,o)):r,l=t.displaced,c=getDisplacementGroups({afterDragging:getDraggables(l.all,i),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=getDisplacementGroups({afterDragging:getDraggables(l.all,i),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},p={},f=[l,c,u];return l.all.forEach((function(e){var t=tryGetVisible(e,f);t?p[e]=t:d[e]=!0})),_extends({},t,{displaced:{all:l.all,invisible:d,visible:p}})},withViewportDisplacement=function(e,t){return add(e.scroll.diff.displacement,t)},getClientFromPageBorderBoxCenter=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=e.viewport,i=withViewportDisplacement(r,t),o=subtract(i,n.page.borderBox.center);return add(n.client.borderBox.center,o)},isTotallyVisibleInNewLocation=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=subtract(r,t.page.borderBox.center),c={target:offsetByPosition(t.page.borderBox,l),destination:n,withDroppableDisplacement:o,viewport:i};return s?isTotallyVisibleOnAxis(c):isTotallyVisible(c)},moveToNextPlace=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,o=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=getDraggablesInsideDroppable(r.descriptor.id,i),d=isHomeOf(n,r),p=moveToNextCombine({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:o})||moveToNextIndex({isMovingForward:t,isInHomeList:d,draggable:n,draggables:i,destination:r,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!p)return null;var f=getPageBorderBoxCenterFromImpact({impact:p,draggable:n,droppable:r,draggables:i,afterCritical:c});if(isTotallyVisibleInNewLocation({draggable:n,destination:r,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:p,scrollJumpRequest:null};var h=subtract(f,s);return{clientSelection:l,impact:speculativelyIncrease({impact:p,viewport:a,destination:r,draggables:i,maxScrollChange:h}),scrollJumpRequest:h}},getKnownActive=function(e){var t=e.subject.active;return t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot get clipped area from droppable"):invariant()),t},getBestCrossAxisDroppable=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=isWithin(a[s.start],a[s.end]),c=toDroppableList(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return isPartiallyVisibleThroughFrame(o.frame)(getKnownActive(e))})).filter((function(e){var n=getKnownActive(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=getKnownActive(e),n=isWithin(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=getKnownActive(e)[s.crossAxisStart],i=getKnownActive(n)[s.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return getKnownActive(e)[s.crossAxisStart]===getKnownActive(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return isWithin(getKnownActive(e)[s.start],getKnownActive(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return getKnownActive(e)[s.start]-getKnownActive(t)[s.start]}))[0]:c.sort((function(e,t){var r=closest(n,getCorners(getKnownActive(e))),i=closest(n,getCorners(getKnownActive(t)));return r!==i?r-i:getKnownActive(e)[s.start]-getKnownActive(t)[s.start]}))[0]},getCurrentPageBorderBoxCenter=function(e,t){var n=e.page.borderBox.center;return didStartAfterCritical(e.descriptor.id,t)?subtract(n,t.displacedBy.point):n},getCurrentPageBorderBox=function(e,t){var n=e.page.borderBox;return didStartAfterCritical(e.descriptor.id,t)?offsetByPosition(n,negate(t.displacedBy.point)):n},getClosestDraggable=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return isTotallyVisible({target:getCurrentPageBorderBox(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=distance(t,withDroppableDisplacement(r,getCurrentPageBorderBoxCenter(e,o))),a=distance(t,withDroppableDisplacement(r,getCurrentPageBorderBoxCenter(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return a[0]||null},getDisplacedBy=memoizeOne((function(e,t){var n=t[e.line];return{value:n,point:patch(e.line,n)}})),getRequiredGrowthForPlaceholder=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return patch(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],o=getDraggablesInsideDroppable(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-i;return o<=0?null:patch(r.line,o)},withMaxScroll=function(e,t){return _extends({},e,{scroll:_extends({},e.scroll,{max:t})})},addPlaceholder=function(e,t,n){var r=e.frame;isHomeOf(t,e)&&("production"!==process.env.NODE_ENV?invariant(!1,"Should not add placeholder space to home list"):invariant()),e.subject.withPlaceholder&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot add placeholder size to a subject when it already has one"):invariant());var i=getDisplacedBy(e.axis,t.displaceBy).point,o=getRequiredGrowthForPlaceholder(e,i,n),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return _extends({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var s=o?add(r.scroll.max,o):r.scroll.max,l=withMaxScroll(r,s);return _extends({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l}),frame:l})},removePlaceholder=function(e){var t=e.subject.withPlaceholder;t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot remove placeholder form subject when there was none"):invariant());var n=e.frame;if(!n)return _extends({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||("production"!==process.env.NODE_ENV?invariant(!1,"Expected droppable with frame to have old max frame scroll when removing placeholder"):invariant());var i=withMaxScroll(n,r);return _extends({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})},moveToNewDroppable=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:emptyGroups,displacedBy:noDisplacedBy,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=getPageBorderBoxCenterFromImpact({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),d=isHomeOf(i,a)?a:addPlaceholder(a,i,o);return isTotallyVisibleInNewLocation({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(p=n.descriptor.index,n.descriptor.id===i.descriptor.id||f?p:p+1),m=getDisplacedBy(a.axis,i.displaceBy);return calculateReorderImpact({draggable:i,insideDestination:r,destination:a,viewport:s,displacedBy:m,last:emptyGroups,index:h})},moveCrossAxis=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=getBestCrossAxisDroppable({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=getDraggablesInsideDroppable(c.descriptor.id,o),d=getClosestDraggable({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),p=moveToNewDroppable({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!p)return null;var f=getPageBorderBoxCenterFromImpact({impact:p,draggable:r,droppable:c,draggables:o,afterCritical:l});return{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:f,draggable:r,viewport:s}),impact:p,scrollJumpRequest:null}},whatIsDraggedOver=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},getDroppableOver=function(e,t){var n=whatIsDraggedOver(e);return n?t[n]:null},moveInDirection=function(e){var t=e.state,n=e.type,r=getDroppableOver(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,h=p.droppables;return l?moveToNextPlace({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):moveCrossAxis({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:f,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function isMovementAllowed(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function isPositionInFrame(e){var t=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function getHasOverlap(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function getFurthestAway(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map((function(e){var n=e.axis,r=patch(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:distance(i,r)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}function getDroppableOver$1(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=toDroppableList(r).filter((function(e){if(!e.isEnabled)return!1;var n=e.subject.active;if(!n)return!1;if(!getHasOverlap(t,n))return!1;if(isPositionInFrame(n)(t.center))return!0;var r=e.axis,i=n.center[r.crossAxisLine],o=t[r.crossAxisStart],a=t[r.crossAxisEnd],s=isWithin(n[r.crossAxisStart],n[r.crossAxisEnd]),l=s(o),c=s(a);return!l&&!c||(l?o<i:a>i)}));return i.length?1===i.length?i[0].descriptor.id:getFurthestAway({pageBorderBox:t,draggable:n,candidates:i}):null}var offsetRectByPosition=function(e,t){return getRect(offsetByPosition(e,t))},withDroppableScroll=function(e,t){var n=e.frame;return n?offsetRectByPosition(t,n.scroll.diff.value):t};function getIsDisplaced(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}function atIndex(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var getReorderImpact=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=getDisplacedBy(r.axis,n.displaceBy),u=c.value,d=t[l.start],p=t[l.end],f=atIndex({draggable:n,closest:find(removeDraggableFromList(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=didStartAfterCritical(t,s),i=getIsDisplaced({displaced:o,id:t});return r?i?p<=n:d<n-u:i?p<=n+u:d<n})),inHomeList:isHomeOf(n,r)});return calculateReorderImpact({draggable:n,insideDestination:i,destination:r,viewport:a,last:o,displacedBy:c,index:f})},combineThresholdDivisor=4,getCombineImpact=function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,l=getDisplacedBy(i.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],p=find(removeDraggableFromList(t,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[s.size]/combineThresholdDivisor,o=didStartAfterCritical(t,a),l=getIsDisplaced({displaced:r.displaced,id:t});return o?l?d>n[s.start]+i&&d<n[s.end]-i:u>n[s.start]-c+i&&u<n[s.end]-c-i:l?d>n[s.start]+c+i&&d<n[s.end]+c-i:u>n[s.start]+i&&u<n[s.end]-i}));return p?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null},getDragImpact=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,l=offsetRectByPosition(n.page.borderBox,t),c=getDroppableOver$1({pageBorderBox:l,draggable:n,droppables:i});if(!c)return noImpact;var u=i[c],d=getDraggablesInsideDroppable(u.descriptor.id,r),p=withDroppableScroll(u,l);return getCombineImpact({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:o,destination:u,insideDestination:d,afterCritical:s})||getReorderImpact({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:s})},patchDroppableMap=function(e,t){var n;return _extends({},e,((n={})[t.descriptor.id]=t,n))},clearUnusedPlaceholder=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=whatIsDraggedOver(t),o=whatIsDraggedOver(n);if(!i)return r;if(i===o)return r;var a=r[i];if(!a.subject.withPlaceholder)return r;var s=removePlaceholder(a);return patchDroppableMap(r,s)},recomputePlaceholders=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,a=clearUnusedPlaceholder({previousImpact:i,impact:o,droppables:r}),s=whatIsDraggedOver(o);if(!s)return a;var l=r[s];if(isHomeOf(t,l))return a;if(l.subject.withPlaceholder)return a;var c=addPlaceholder(l,t,n);return patchDroppableMap(a,c)},update=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,o=e.impact,a=e.scrollJumpRequest,s=i||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,u=subtract(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:add(t.initial.client.borderBoxCenter,u)},p={selection:add(d.selection,s.scroll.current),borderBoxCenter:add(d.borderBoxCenter,s.scroll.current),offset:add(d.offset,s.scroll.diff.value)},f={client:d,page:p};if("COLLECTING"===t.phase)return _extends({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:f});var h=l.draggables[t.critical.draggable.id],m=o||getDragImpact({pageOffset:p.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=recomputePlaceholders({draggable:h,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return _extends({},t,{current:f,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};function getDraggables$1(e,t){return e.map((function(e){return t[e]}))}var recompute=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=t.displaced;return _extends({},t,{displaced:getDisplacementGroups({afterDragging:getDraggables$1(a.all,r),destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:a})})},getClientBorderBoxCenter=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=getPageBorderBoxCenterFromImpact({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:s,draggable:n,viewport:o})},refreshSnap=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&(process.env.NODE_ENV,invariant());var i=t.impact,o=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=whatIsDraggedOver(i);u||("production"!==process.env.NODE_ENV?invariant(!1,"Must be over a destination in SNAP movement mode"):invariant());var d=l[u],p=recompute({impact:i,viewport:o,destination:d,draggables:s}),f=getClientBorderBoxCenter({impact:p,draggable:c,droppable:d,draggables:s,viewport:o,afterCritical:t.afterCritical});return update({impact:p,clientSelection:f,state:t,dimensions:a,viewport:o})},getHomeLocation=function(e){return{index:e.index,droppableId:e.droppableId}},getLiftEffect=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=getDisplacedBy(n.axis,t.displaceBy),a=getDraggablesInsideDroppable(n.descriptor.id,r),s=a.indexOf(t);-1===s&&("production"!==process.env.NODE_ENV?invariant(!1,"Expected draggable to be inside home list"):invariant());var l=a.slice(s+1),c=l.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),u={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:c};return{impact:{displaced:getDisplacementGroups({afterDragging:l,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:getHomeLocation(t.descriptor)}},afterCritical:u}},patchDimensionMap=function(e,t){return{draggables:e.draggables,droppables:patchDroppableMap(e.droppables,t)}},start=function(e){process.env.NODE_ENV},finish=function(e){process.env.NODE_ENV},offsetDraggable=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=offset(t.client,n),o=withScroll(i,r);return _extends({},t,{placeholder:_extends({},t.placeholder,{client:i}),client:i,page:o})},getFrame=function(e){var t=e.frame;return t||("production"!==process.env.NODE_ENV?invariant(!1,"Expected Droppable to have a frame"):invariant()),t},adjustAdditionsForScrollChanges=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,o=n[t],a=getFrame(o).scroll.diff.value,s=add(i,a);return offsetDraggable({draggable:e,offset:s,initialWindowScroll:r.scroll.initial})}))},publishWhileDraggingInVirtual=function(e){var t=e.state,n=e.published;start();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return scrollDroppable(n,e.scroll)})),i=_extends({},t.dimensions.droppables,{},toDroppableMap(r)),o=toDraggableMap(adjustAdditionsForScrollChanges({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),a=_extends({},t.dimensions.draggables,{},o);n.removals.forEach((function(e){delete a[e]}));var s={droppables:i,draggables:a},l=whatIsDraggedOver(t.impact),c=l?s.droppables[l]:null,u=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],p=getLiftEffect({draggable:u,home:d,draggables:a,viewport:t.viewport}),f=p.impact,h=p.afterCritical,m=c&&c.isCombineEnabled?t.impact:f,g=getDragImpact({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h});finish();var v=_extends({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:_extends({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})},isSnapping=function(e){return"SNAP"===e.movementMode},postDroppableChange=function(e,t,n){var r=patchDimensionMap(e.dimensions,t);return!isSnapping(e)||n?update({state:e,dimensions:r}):refreshSnap({state:e,dimensions:r})};function removeScrollJumpRequest(e){return e.isDragging&&"SNAP"===e.movementMode?_extends({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var idle={phase:"IDLE",completed:null,shouldFlush:!1},reducer=function(e,t){if(void 0===e&&(e=idle),"FLUSH"===t.type)return _extends({},idle,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"INITIAL_PUBLISH must come after a IDLE phase"):invariant());var n=t.payload,r=n.critical,i=n.clientSelection,o=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:i,borderBoxCenter:l.client.borderBox.center,offset:origin$1},d={client:u,page:{selection:add(u.selection,o.scroll.initial),borderBoxCenter:add(u.selection,o.scroll.initial),offset:add(u.selection,o.scroll.diff.value)}},p=toDroppableList(a.droppables).every((function(e){return!e.isFixedOnPage})),f=getLiftEffect({draggable:l,home:c,draggables:a.draggables,viewport:o}),h=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:p,impact:h,afterCritical:f.afterCritical,onLiftImpact:h,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Collection cannot start from phase "+e.phase):invariant()),_extends({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Unexpected "+t.type+" received in phase "+e.phase):invariant()),publishWhileDraggingInVirtual({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||("production"!==process.env.NODE_ENV?invariant(!1,t.type+" not permitted in phase "+e.phase):invariant());var m=t.payload.client;return isEqual(m,e.current.client.selection)?e:update({state:e,clientSelection:m,impact:isSnapping(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return removeScrollJumpRequest(e);if("COLLECTING"===e.phase)return removeScrollJumpRequest(e);isMovementAllowed(e)||("production"!==process.env.NODE_ENV?invariant(!1,t.type+" not permitted in phase "+e.phase):invariant());var g=t.payload,v=g.id,b=g.newScroll,y=e.dimensions.droppables[v];if(!y)return e;var $=scrollDroppable(y,b);return postDroppableChange(e,$,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||("production"!==process.env.NODE_ENV?invariant(!1,"Attempting to move in an unsupported phase "+e.phase):invariant());var x=t.payload,E=x.id,w=x.isEnabled,D=e.dimensions.droppables[E];D||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot find Droppable[id: "+E+"] to toggle its enabled state"):invariant()),D.isEnabled===w&&("production"!==process.env.NODE_ENV?invariant(!1,"Trying to set droppable isEnabled to "+String(w)+"\n      but it is already "+String(D.isEnabled)):invariant());var _=_extends({},D,{isEnabled:w});return postDroppableChange(e,_,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||("production"!==process.env.NODE_ENV?invariant(!1,"Attempting to move in an unsupported phase "+e.phase):invariant());var T=t.payload,S=T.id,C=T.isCombineEnabled,I=e.dimensions.droppables[S];I||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot find Droppable[id: "+S+"] to toggle its isCombineEnabled state"):invariant()),I.isCombineEnabled===C&&("production"!==process.env.NODE_ENV?invariant(!1,"Trying to set droppable isCombineEnabled to "+String(C)+"\n      but it is already "+String(I.isCombineEnabled)):invariant());var P=_extends({},I,{isCombineEnabled:C});return postDroppableChange(e,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;isMovementAllowed(e)||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot move by window in phase "+e.phase):invariant()),e.isWindowScrollAllowed||("production"!==process.env.NODE_ENV?invariant(!1,"Window scrolling is currently not supported for fixed lists"):invariant());var O=t.payload.newScroll;if(isEqual(e.viewport.scroll.current,O))return removeScrollJumpRequest(e);var N=scrollViewport(e.viewport,O);return isSnapping(e)?refreshSnap({state:e,viewport:N}):update({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!isMovementAllowed(e))return e;var R=t.payload.maxScroll;if(isEqual(R,e.viewport.scroll.max))return e;var A=_extends({},e.viewport,{scroll:_extends({},e.viewport.scroll,{max:R})});return _extends({phase:"DRAGGING"},e,{viewport:A})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&("production"!==process.env.NODE_ENV?invariant(!1,t.type+" received while not in DRAGGING phase"):invariant());var M=moveInDirection({state:e,type:t.type});return M?update({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var k=t.payload.reason;return"COLLECTING"!==e.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Can only move into the DROP_PENDING phase from the COLLECTING phase"):invariant()),_extends({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:k})}if("DROP_ANIMATE"===t.type){var L=t.payload,j=L.completed,F=L.dropDuration,V=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot animate drop from phase "+e.phase):invariant()),{phase:"DROP_ANIMATING",completed:j,dropDuration:F,newHomeClientOffset:V,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},beforeInitialCapture=function(e){return{type:"BEFORE_INITIAL_CAPTURE",payload:e}},lift=function(e){return{type:"LIFT",payload:e}},initialPublish=function(e){return{type:"INITIAL_PUBLISH",payload:e}},publishWhileDragging=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},collectionStarting=function(){return{type:"COLLECTION_STARTING",payload:null}},updateDroppableScroll=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},updateDroppableIsEnabled=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},updateDroppableIsCombineEnabled=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},move=function(e){return{type:"MOVE",payload:e}},moveByWindowScroll=function(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}},updateViewportMaxScroll=function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}},moveUp=function(){return{type:"MOVE_UP",payload:null}},moveDown=function(){return{type:"MOVE_DOWN",payload:null}},moveRight=function(){return{type:"MOVE_RIGHT",payload:null}},moveLeft=function(){return{type:"MOVE_LEFT",payload:null}},flush=function(){return{type:"FLUSH",payload:null}},animateDrop=function(e){return{type:"DROP_ANIMATE",payload:e}},completeDrop=function(e){return{type:"DROP_COMPLETE",payload:e}},drop=function(e){return{type:"DROP",payload:e}},dropPending=function(e){return{type:"DROP_PENDING",payload:e}},dropAnimationFinished=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function checkIndexes(e){if(!(e.length<=1)){for(var t=e.map((function(e){return e.descriptor.index})),n={},r=1;r<t.length;r++){var i=t[r];i!==t[r-1]+1&&(n[i]=!0)}if(Object.keys(n).length){var o=t.map((function(e){return Boolean(n[e])?"[🔥"+e+"]":""+e})).join(", ");"production"!==process.env.NODE_ENV&&warning("\n    Detected non-consecutive <Draggable /> indexes.\n\n    (This can cause unexpected bugs)\n\n    "+o+"\n  ")}}}function validateDimensions(e,t){"production"!==process.env.NODE_ENV&&checkIndexes(getDraggablesInsideDroppable(e.droppable.id,t.draggables))}var lift$1=function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,s=o.clientSelection,l=o.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(completeDrop({completed:c.completed})),"IDLE"!==n().phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Unexpected phase to start a drag"):invariant()),r(flush()),r(beforeInitialCapture({draggableId:a,movementMode:l}));var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),p=d.critical,f=d.dimensions,h=d.viewport;validateDimensions(p,f),r(initialPublish({critical:p,dimensions:f,clientSelection:s,movementMode:l,viewport:h}))}else t(i)}}}},style=function(e){return function(){return function(t){return function(n){"INITIAL_PUBLISH"===n.type&&e.dragging(),"DROP_ANIMATE"===n.type&&e.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||e.resting(),t(n)}}}},curves={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},combine={opacity:{drop:0,combining:.7},scale:{drop:.75}},timings={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},outOfTheWayTiming=timings.outOfTheWay+"s "+curves.outOfTheWay,transitions={fluid:"opacity "+outOfTheWayTiming,snap:"transform "+outOfTheWayTiming+", opacity "+outOfTheWayTiming,drop:function(e){var t=e+"s "+curves.drop;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+outOfTheWayTiming,placeholder:"height "+outOfTheWayTiming+", width "+outOfTheWayTiming+", margin "+outOfTheWayTiming},moveTo=function(e){return isEqual(e,origin$1)?null:"translate("+e.x+"px, "+e.y+"px)"},transforms={moveTo:moveTo,drop:function(e,t){var n=moveTo(e);return n?t?n+" scale("+combine.scale.drop+")":n:null}},minDropTime=timings.minDropTime,maxDropTime=timings.maxDropTime,dropTimeRange=maxDropTime-minDropTime,maxDropTimeAtDistance=1500,cancelDropModifier=.6,getDropDuration=function(e){var t=e.current,n=e.destination,r=e.reason,i=distance(t,n);if(i<=0)return minDropTime;if(i>=maxDropTimeAtDistance)return maxDropTime;var o=minDropTime+dropTimeRange*(i/maxDropTimeAtDistance);return Number(("CANCEL"===r?o*cancelDropModifier:o).toFixed(2))},getNewHomeClientOffset=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,a=r.draggables,s=r.droppables,l=whatIsDraggedOver(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=getClientBorderBoxCenter({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i});return subtract(d,n.client.borderBox.center)},getDropImpact=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:_extends({},r,{displaced:emptyGroups}),didDropInsideDroppable:!0}:{impact:recompute({draggables:t,impact:a,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}},drop$1=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),o=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&("production"!==process.env.NODE_ENV?invariant(!1,"A DROP action occurred while DROP_PENDING and still waiting"):invariant()),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot drop in phase: "+i.phase):invariant());var a=i.critical,s=i.dimensions,l=s.draggables[i.critical.draggable.id],c=getDropImpact({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,p=d?tryGetDestination(u):null,f=d?tryGetCombine(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:o,mode:i.movementMode,destination:p,combine:f},g=getNewHomeClientOffset({impact:u,draggable:l,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),v={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:u};if(!isEqual(i.current.client.offset,g)||Boolean(m.combine)){var b=getDropDuration({current:i.current.client.offset,destination:g,reason:o});n(animateDrop({newHomeClientOffset:g,dropDuration:b,completed:v}))}else n(completeDrop({completed:v}))}}else n(dropPending({reason:o}))}else e(r)}}},getWindowScroll=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function getWindowScrollBinding(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}function getScrollListener(e){var t=e.onWindowScroll;var n=rafSchd((function(){t(getWindowScroll())})),r=getWindowScrollBinding(n),i=noop$1;function o(){return i!==noop$1}return{start:function(){o()&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot start scroll listener when already active"):invariant()),i=bindEvents(window,[r])},stop:function(){o()||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot stop scroll listener when not active"):invariant()),n.cancel(),i(),i=noop$1},isActive:o}}var shouldEnd=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},scrollListener=function(e){var t=getScrollListener({onWindowScroll:function(t){e.dispatch(moveByWindowScroll({newScroll:t}))}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&shouldEnd(n)&&t.stop(),e(n)}}},getExpiringAnnounce=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t?"production"!==process.env.NODE_ENV&&warning("Announcement already made. Not making a second announcement"):n?"production"!==process.env.NODE_ENV&&warning("\n        Announcements cannot be made asynchronously.\n        Default message has already been announced.\n      "):(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i},getAsyncMarshal=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=findIndex(e,(function(e){return e.timerId===t}));-1===n&&("production"!==process.env.NODE_ENV?invariant(!1,"Could not find timer"):invariant()),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},areLocationsEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.droppableId===t.droppableId&&e.index===t.index)},isCombineEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)},isCriticalEqual=function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},withTimings=function(e,t){start(),t(),finish()},getDragStart=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},execute=function(e,t,n,r){if(e){var i=getExpiringAnnounce(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},getPublisher=function(e,t){var n=getAsyncMarshal(),r=null,i=function(n){r||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot fire onDragEnd when there is no matching onDragStart"):invariant()),r=null,withTimings("onDragEnd",(function(){return execute(e().onDragEnd,n,t,preset.onDragEnd)}))};return{beforeCapture:function(t,n){r&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot fire onBeforeCapture as a drag start has already been published"):invariant()),withTimings("onBeforeCapture",(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot fire onBeforeDragStart as a drag start has already been published"):invariant()),withTimings("onBeforeDragStart",(function(){var r=e().onBeforeDragStart;r&&r(getDragStart(t,n))}))},start:function(i,o){r&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot fire onBeforeDragStart as a drag start has already been published"):invariant());var a=getDragStart(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add((function(){withTimings("onDragStart",(function(){return execute(e().onDragStart,a,t,preset.onDragStart)}))}))},update:function(i,o){var a=tryGetDestination(o),s=tryGetCombine(o);r||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot fire onDragMove when onDragStart has not been called"):invariant());var l=!isCriticalEqual(i,r.lastCritical);l&&(r.lastCritical=i);var c=!areLocationsEqual(r.lastLocation,a);c&&(r.lastLocation=a);var u=!isCombineEqual(r.lastCombine,s);if(u&&(r.lastCombine=s),l||c||u){var d=_extends({},getDragStart(i,r.mode),{combine:s,destination:a});n.add((function(){withTimings("onDragUpdate",(function(){return execute(e().onDragUpdate,d,t,preset.onDragUpdate)}))}))}},flush:function(){r||("production"!==process.env.NODE_ENV?invariant(!1,"Can only flush responders while dragging"):invariant()),n.flush()},drop:i,abort:function(){if(r){var e=_extends({},getDragStart(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}},responders=function(e,t){var n=getPublisher(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var o=r.payload.completed.result;return n.flush(),t(r),void n.drop(o)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},dropAnimationFinish=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot finish a drop animating when no drop is occurring"):invariant()),e.dispatch(completeDrop({completed:r.completed}))}else t(n)}}},dropAnimationFlushOnScroll=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch(dropAnimationFinished())}};n=requestAnimationFrame((function(){n=null,t=bindEvents(window,[o])}))}}}},dimensionMarshalStopper=function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}},focus=function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},shouldStop=function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type},autoScroll=function(e){return function(t){return function(n){return function(r){if(shouldStop(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&("production"!==process.env.NODE_ENV?invariant(!1,"Expected phase to be DRAGGING after INITIAL_PUBLISH"):invariant()),void e.start(i)}n(r),e.scroll(t.getState())}}}},pendingDrop=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(drop({reason:r.reason})))}}}},composeEnhancers="production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({name:"react-beautiful-dnd"}):compose,createStore=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,a=e.autoScroller;return createStore$1(reducer,composeEnhancers(applyMiddleware(style(r),dimensionMarshalStopper(t),lift$1(t),drop$1,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop,autoScroll(a),scrollListener,focus(n),responders(i,o))))},clean$1=function(){return{additions:{},removals:{},modified:{}}};function createPublisher(e){var t=e.registry,n=e.callbacks,r=clean$1(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,start();var e=r,o=e.additions,a=e.removals,s=e.modified,l=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(origin$1)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r=clean$1(),finish(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r=clean$1())}}}var getMaxScroll=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=subtract({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},getDocumentElement=function(){var e=document.documentElement;return e||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot find document.documentElement"):invariant()),e},getMaxWindowScroll=function(){var e=getDocumentElement();return getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},getViewport=function(){var e=getWindowScroll(),t=getMaxWindowScroll(),n=e.y,r=e.x,i=getDocumentElement(),o=i.clientWidth,a=i.clientHeight;return{frame:getRect({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:origin$1,displacement:origin$1}}}},getInitialPublish=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;start();var i=getViewport(),o=i.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),c={draggables:toDraggableMap(l),droppables:toDroppableMap(s)};return finish(),{dimensions:c,critical:t,viewport:i}};function shouldPublishUpdate(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&("virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode||("production"!==process.env.NODE_ENV&&warning("\n      You are attempting to add or remove a Draggable [id: "+n.descriptor.id+"]\n      while a drag is occurring. This is only supported for virtual lists.\n\n      See https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/patterns/virtual-lists.md\n    "),!1)))}var createDimensionMarshal=function(e,t){var n=null,r=createPublisher({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||("production"!==process.env.NODE_ENV?invariant(!1,"Should only be subscribed when a collection is occurring"):invariant());var i=n.critical.draggable;"ADDITION"===t.type&&shouldPublishUpdate(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&shouldPublishUpdate(e,i,t.value)&&r.remove(t.value)},o={updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot update is enabled flag of Droppable "+r+" as it is not registered"):invariant()),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot update isCombineEnabled flag of Droppable "+r+" as it is not registered"):invariant()),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot update the scroll on Droppable "+r+" as it is not registered"):invariant()),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot start capturing critical dimensions as there is already a collection"):invariant());var r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},getInitialPublish({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return o},canStartDrag=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},scrollWindow=function(e){window.scrollBy(e.x,e.y)},getScrollableDroppables=memoizeOne((function(e){return toDroppableList(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),getScrollableDroppableOver=function(e,t){var n=find(getScrollableDroppables(t),(function(t){return t.frame||("production"!==process.env.NODE_ENV?invariant(!1,"Invalid result"):invariant()),isPositionInFrame(t.frame.pageMarginBox)(e)}));return n},getBestScrollableDroppable=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}return getScrollableDroppableOver(t,r)},config={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},getDistanceThresholds=function(e,t){return{startScrollingFrom:e[t.size]*config.startFromPercentage,maxScrollValueAt:e[t.size]*config.maxScrollAtPercentage}},getPercentage=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?("production"!==process.env.NODE_ENV&&warning("\n      Detected distance range of 0 in the fluid auto scroller\n      This is unexpected and would cause a divide by 0 issue.\n      Not allowing an auto scroll\n    "),0):(r-t)/i},minScroll=1,getValueFromDistance=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return config.maxPixelScroll;if(e===t.startScrollingFrom)return minScroll;var n=1-getPercentage({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=config.maxPixelScroll*config.ease(n);return Math.ceil(r)},accelerateAt=config.durationDampening.accelerateAt,stopAt=config.durationDampening.stopDampeningAt,dampenValueByTime=function(e,t){var n=t,r=stopAt,i=Date.now()-n;if(i>=stopAt)return e;if(i<accelerateAt)return minScroll;var o=getPercentage({startOfRange:accelerateAt,endOfRange:r,current:i}),a=e*config.ease(o);return Math.ceil(a)},getValue=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=getValueFromDistance(t,n);return 0===o?0:i?Math.max(dampenValueByTime(o,r),minScroll):o},getScrollOnAxis=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=getDistanceThresholds(t,i);return n[i.end]<n[i.start]?getValue({distanceToEdge:n[i.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o}):-1*getValue({distanceToEdge:n[i.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o})},adjustForSizeLimits=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r},clean$2=apply((function(e){return 0===e?0:e})),getScroll=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=getScrollOnAxis({container:n,distanceToEdges:a,dragStartTime:t,axis:vertical,shouldUseTimeDampening:o}),l=getScrollOnAxis({container:n,distanceToEdges:a,dragStartTime:t,axis:horizontal,shouldUseTimeDampening:o}),c=clean$2({x:l,y:s});if(isEqual(c,origin$1))return null;var u=adjustForSizeLimits({container:n,subject:r,proposedScroll:c});return u?isEqual(u,origin$1)?null:u:null},smallestSigned=apply((function(e){return 0===e?0:e>0?1:-1})),getOverlap=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,i=t.change,o=add(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return isEqual(a,origin$1)?null:a}}(),canPartiallyScroll=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=smallestSigned(r),a=getOverlap({max:i,current:n,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},canScrollWindow=function(e,t){return canPartiallyScroll({current:e.scroll.current,max:e.scroll.max,change:t})},getWindowOverlap=function(e,t){if(!canScrollWindow(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return getOverlap({current:r,max:n,change:t})},canScrollDroppable=function(e,t){var n=e.frame;return!!n&&canPartiallyScroll({current:n.scroll.current,max:n.scroll.max,change:t})},getDroppableOverlap=function(e,t){var n=e.frame;return n&&canScrollDroppable(e,t)?getOverlap({current:n.scroll.current,max:n.scroll.max,change:t}):null},getWindowScrollChange=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=getScroll({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&canScrollWindow(t,a)?a:null},getDroppableScrollChange=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=getScroll({dragStartTime:i,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return s&&canScrollDroppable(t,s)?s:null},scroll$1=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=t.viewport,c=getWindowScrollChange({dragStartTime:n,viewport:l,subject:s,center:a,shouldUseTimeDampening:r});if(c)return void i(c)}var u=getBestScrollableDroppable({center:a,destination:whatIsDraggedOver(t.impact),droppables:t.dimensions.droppables});if(u){var d=getDroppableScrollChange({dragStartTime:n,droppable:u,subject:s,center:a,shouldUseTimeDampening:r});d&&o(u.descriptor.id,d)}},createFluidScroller=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=rafSchd(t),i=rafSchd(n),o=null,a=function(e){o||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot fluid scroll if not dragging"):invariant());var t=o,n=t.shouldUseTimeDampening,a=t.dragStartTime;scroll$1({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){start(),o&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot start auto scrolling when already started"):invariant());var t=Date.now(),n=!1,r=function(){n=!0};scroll$1({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},finish(),n&&a(e)},stop:function(){o&&(r.cancel(),i.cancel(),o=null)},scroll:a}},createJumpScroller=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var i=e.scrollJumpRequest;if(i){var o=whatIsDraggedOver(e.impact);o||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot perform a jump scroll when there is no destination"):invariant());var a=function(e,t){if(!canScrollDroppable(e,t))return t;var r=getDroppableOverlap(e,t);if(!r)return n(e.descriptor.id,t),null;var i=subtract(t,r);return n(e.descriptor.id,i),subtract(t,i)}(e.dimensions.droppables[o],i);if(a){var s=e.viewport,l=function(e,t,n){if(!e)return n;if(!canScrollWindow(t,n))return n;var i=getWindowOverlap(t,n);if(!i)return r(n),null;var o=subtract(n,i);return r(o),subtract(n,o)}(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=add(e.current.client.selection,n);t({client:r})}(e,l)}}}},createAutoScroller=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=createFluidScroller({scrollWindow:n,scrollDroppable:t}),o=createJumpScroller({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},prefix$1="data-rbd",dragHandle=function(){var e=prefix$1+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),draggable=function(){var e=prefix$1+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),droppable=function(){var e=prefix$1+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),scrollContainer={contextId:prefix$1+"-scroll-container-context-id"},makeGetSelector=function(e){return function(t){return"["+t+'="'+e+'"]'}},getStyles=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},noPointerEvents="pointer-events: none;",getStyles$1=function(e){var t,n,r=makeGetSelector(e),i=(t="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:r(dragHandle.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:t,dragging:noPointerEvents,dropAnimating:t}}),o=[(n="\n      transition: "+transitions.outOfTheWay+";\n    ",{selector:r(draggable.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:r(droppable.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:getStyles(o,"always"),resting:getStyles(o,"resting"),dragging:getStyles(o,"dragging"),dropAnimating:getStyles(o,"dropAnimating"),userCancel:getStyles(o,"userCancel")}},useIsomorphicLayoutEffect="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e$i.useLayoutEffect:e$i.useEffect,getHead=function(){var e=document.querySelector("head");return e||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot find the head to append a style to"):invariant()),e},createStyleEl=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function useStyleMarshal(e,t){var n=useMemo((function(){return getStyles$1(e)}),[e]),r=e$i.useRef(null),i=e$i.useRef(null),o=useCallback(memoizeOne((function(e){var t=i.current;t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot set dynamic style element if it is not set"):invariant()),t.textContent=e})),[]),a=useCallback((function(e){var t=r.current;t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot set dynamic style element if it is not set"):invariant()),t.textContent=e}),[]);useIsomorphicLayoutEffect((function(){(r.current||i.current)&&("production"!==process.env.NODE_ENV?invariant(!1,"style elements already mounted"):invariant());var s=createStyleEl(t),l=createStyleEl(t);return r.current=s,i.current=l,s.setAttribute(prefix$1+"-always",e),l.setAttribute(prefix$1+"-dynamic",e),getHead().appendChild(s),getHead().appendChild(l),a(n.always),o(n.resting),function(){var e=function(e){var t=e.current;t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot unmount ref as it is not set"):invariant()),getHead().removeChild(t),e.current=null};e(r),e(i)}}),[t,a,o,n.always,n.resting,e]);var s=useCallback((function(){return o(n.dragging)}),[o,n.dragging]),l=useCallback((function(e){o("DROP"!==e?n.userCancel:n.dropAnimating)}),[o,n.dropAnimating,n.userCancel]),c=useCallback((function(){i.current&&o(n.resting)}),[o,n.resting]);return useMemo((function(){return{dragging:s,dropping:l,resting:c}}),[s,l,c])}var getWindowFromEl=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function isHtmlElement(e){return e instanceof getWindowFromEl(e).HTMLElement}function findDragHandle(e,t){var n="["+dragHandle.contextId+'="'+e+'"]',r=toArray$1(document.querySelectorAll(n));if(!r.length)return"production"!==process.env.NODE_ENV&&warning('Unable to find any drag handles in the context "'+e+'"'),null;var i=find(r,(function(e){return e.getAttribute(dragHandle.draggableId)===t}));return i?isHtmlElement(i)?i:("production"!==process.env.NODE_ENV&&warning("drag handle needs to be a HTMLElement"),null):("production"!==process.env.NODE_ENV&&warning('Unable to find drag handle with id "'+t+'" as no handle with a matching id was found'),null)}function useFocusMarshal(e){var t=e$i.useRef({}),n=e$i.useRef(null),r=e$i.useRef(null),i=e$i.useRef(!1),o=useCallback((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),a=useCallback((function(t){var n=findDragHandle(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=useCallback((function(e,t){n.current===e&&(n.current=t)}),[]),l=useCallback((function(){r.current||i.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&a(e)})))}),[a]),c=useCallback((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(dragHandle.draggableId)===e&&(n.current=e)}),[]);return useIsomorphicLayoutEffect((function(){return i.current=!0,function(){i.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),useMemo((function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}}),[o,c,l,s])}function createRegistry(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot find draggable entry with id ["+e+"]"):invariant()),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return values(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot find droppable entry with id ["+e+"]"):invariant()),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return values(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}function useRegistry(){var e=useMemo(createRegistry,[]);return e$i.useEffect((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}var StoreContext=e$i.createContext(null),getBodyElement=function(){var e=document.body;return e||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot find document.body"):invariant()),e},visuallyHidden={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},getId=function(e){return"rbd-announcement-"+e};function useAnnouncer(e){var t=useMemo((function(){return getId(e)}),[e]),n=e$i.useRef(null);return e$i.useEffect((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),_extends(e.style,visuallyHidden),getBodyElement().appendChild(e),function(){setTimeout((function(){var t=getBodyElement();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),useCallback((function(e){var t=n.current;t?t.textContent=e:"production"!==process.env.NODE_ENV&&warning('\n      A screen reader message was trying to be announced but it was unable to do so.\n      This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n      Consider calling provided.announce() before the unmount so that the instruction will\n      not be lost for users relying on a screen reader.\n\n      Message not passed to screen reader:\n\n      "'+e+'"\n    ')}),[])}var count=0,defaults$1={separator:"::"};function useUniqueId(e,t){return void 0===t&&(t=defaults$1),useMemo((function(){return""+e+t.separator+count++}),[t.separator,e])}function getElementId(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}function useHiddenTextElement(e){var t=e.contextId,n=e.text,r=useUniqueId("hidden-text",{separator:"-"}),i=useMemo((function(){return getElementId({contextId:t,uniqueId:r})}),[r,t]);return e$i.useEffect((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",getBodyElement().appendChild(e),function(){var t=getBodyElement();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}var AppContext=e$i.createContext(null),peerDependencies={react:"^16.8.5 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.5 || ^17.0.0 || ^18.0.0"},semver=/(\d+)\.(\d+)\.(\d+)/,getVersion=function(e){var t=semver.exec(e);return null==t&&("production"!==process.env.NODE_ENV?invariant(!1,"Unable to parse React version "+e):invariant()),{major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3]),raw:e}},isSatisfied=function(e,t){return t.major>e.major||!(t.major<e.major)&&(t.minor>e.minor||!(t.minor<e.minor)&&t.patch>=e.patch)},checkReactVersion=function(e,t){var n=getVersion(e),r=getVersion(t);isSatisfied(n,r)||"production"!==process.env.NODE_ENV&&warning("\n    React version: ["+r.raw+"]\n    does not satisfy expected peer dependency version: ["+n.raw+"]\n\n    This can result in run time bugs, and even fatal crashes\n  ")},suffix="\n  We expect a html5 doctype: <!doctype html>\n  This is to ensure consistent browser layout and measurement\n\n  More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md\n",checkDoctype=function(e){var t=e.doctype;t?("html"!==t.name.toLowerCase()&&"production"!==process.env.NODE_ENV&&warning("\n      Unexpected <!doctype> found: ("+t.name+")\n\n      "+suffix+"\n    "),""!==t.publicId&&"production"!==process.env.NODE_ENV&&warning("\n      Unexpected <!doctype> publicId found: ("+t.publicId+")\n      A html5 doctype does not have a publicId\n\n      "+suffix+"\n    ")):"production"!==process.env.NODE_ENV&&warning("\n      No <!doctype html> found.\n\n      "+suffix+"\n    ")};function useDev(e){"production"!==process.env.NODE_ENV&&e()}function useDevSetupWarning(e,t){useDev((function(){e$i.useEffect((function(){try{e()}catch(e){error("\n          A setup problem was encountered.\n\n          > "+e.message+"\n        ")}}),t)}))}function useStartupValidation(){useDevSetupWarning((function(){checkReactVersion(peerDependencies.react,e$i.version),checkDoctype(document)}),[])}function usePrevious(e){var t=e$i.useRef(e);return e$i.useEffect((function(){t.current=e})),t}function create(){var e=null;function t(){e||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot release lock when there is no lock"):invariant()),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot claim lock as it is already claimed"):invariant());var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}var _preventedKeys,tab=9,enter=13,escape=27,space=32,pageUp=33,pageDown=34,end=35,home=36,arrowLeft=37,arrowUp=38,arrowRight=39,arrowDown=40,preventedKeys=((_preventedKeys={})[enter]=!0,_preventedKeys[tab]=!0,_preventedKeys),preventStandardKeyEvents=function(e){preventedKeys[e.keyCode]&&e.preventDefault()},supportedEventName=function(){var e="visibilitychange";return"undefined"==typeof document?e:find([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),primaryButton=0,sloppyClickThreshold=5;function isSloppyClickThresholdExceeded(e,t){return Math.abs(t.x-e.x)>=sloppyClickThreshold||Math.abs(t.y-e.y)>=sloppyClickThreshold}var _scrollJumpKeys,idle$1={type:"IDLE"};function getCaptureBindings(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,o=e.clientY;if(t===primaryButton){var a={x:n,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot be IDLE"):invariant()),isSloppyClickThresholdExceeded(s.point,a)){e.preventDefault();var l=s.actions.fluidLift(a);i({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===escape?(e.preventDefault(),void t()):void preventStandardKeyEvents(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&("production"!==process.env.NODE_ENV?invariant(!1,"Unexpected phase"):invariant()),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:supportedEventName,fn:t}]}function useMouseSensor(e){var t=e$i.useRef(idle$1),n=e$i.useRef(noop$1),r=useMemo((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===primaryButton&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,a,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};n.current(),c(i,o)}}}}}}),[e]),i=useMemo((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),o=useCallback((function(){n.current=bindEvents(window,[i,r],{passive:!1,capture:!0})}),[i,r]),a=useCallback((function(){"IDLE"!==t.current.type&&(t.current=idle$1,n.current(),o())}),[o]),s=useCallback((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),l=useCallback((function(){var e=getCaptureBindings({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=bindEvents(window,e,{capture:!0,passive:!1})}),[s,a]),c=useCallback((function(e,n){"IDLE"!==t.current.type&&("production"!==process.env.NODE_ENV?invariant(!1,"Expected to move from IDLE to PENDING drag"):invariant()),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);useIsomorphicLayoutEffect((function(){return o(),function(){n.current()}}),[o])}function noop$1$1(){}var scrollJumpKeys=((_scrollJumpKeys={})[pageDown]=!0,_scrollJumpKeys[pageUp]=!0,_scrollJumpKeys[home]=!0,_scrollJumpKeys[end]=!0,_scrollJumpKeys);function getDraggingBindings(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===escape?(r.preventDefault(),void n()):r.keyCode===space?(r.preventDefault(),t(),void e.drop()):r.keyCode===arrowDown?(r.preventDefault(),void e.moveDown()):r.keyCode===arrowUp?(r.preventDefault(),void e.moveUp()):r.keyCode===arrowRight?(r.preventDefault(),void e.moveRight()):r.keyCode===arrowLeft?(r.preventDefault(),void e.moveLeft()):void(scrollJumpKeys[r.keyCode]?r.preventDefault():preventStandardKeyEvents(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:supportedEventName,fn:n}]}function useKeyboardSensor(e){var t=e$i.useRef(noop$1$1),n=useMemo((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===space){var i=e.findClosestDraggableId(n);if(i){var o=e.tryGetLock(i,l,{sourceEvent:n});if(o){n.preventDefault();var a=!0,s=o.snapLift();t.current(),t.current=bindEvents(window,getDraggingBindings(s,l),{capture:!0,passive:!1})}}}function l(){a||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot stop capturing a keyboard drag when not capturing"):invariant()),a=!1,t.current(),r()}}}}),[e]),r=useCallback((function(){t.current=bindEvents(window,[n],{passive:!1,capture:!0})}),[n]);useIsomorphicLayoutEffect((function(){return r(),function(){t.current()}}),[r])}var idle$2={type:"IDLE"},timeForLongPress=120,forcePressThreshold=.15;function getWindowBindings(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===escape&&e.preventDefault(),t()):t()}},{eventName:supportedEventName,fn:t}]}function getHandleBindings(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&(process.env.NODE_ENV,invariant());var i=e.touches[0];if(i&&i.force>=forcePressThreshold){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:supportedEventName,fn:t}]}function useTouchSensor(e){var t=e$i.useRef(idle$2),n=e$i.useRef(noop$1),r=useCallback((function(){return t.current}),[]),i=useCallback((function(e){t.current=e}),[]),o=useMemo((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};n.current(),d(i,a)}}}}}}),[e]),a=useCallback((function(){n.current=bindEvents(window,[o],{capture:!0,passive:!1})}),[o]),s=useCallback((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(idle$2),n.current(),a())}),[a,i]),l=useCallback((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=useCallback((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},i=bindEvents(window,getHandleBindings(t),e),o=bindEvents(window,getWindowBindings(t),e);n.current=function(){i(),o()}}),[l,r,s]),u=useCallback((function(){var e=r();"PENDING"!==e.type&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot start dragging from phase "+e.type):invariant());var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,i]),d=useCallback((function(e,t){"IDLE"!==r().type&&("production"!==process.env.NODE_ENV?invariant(!1,"Expected to move from IDLE to PENDING drag"):invariant());var n=setTimeout(u,timeForLongPress);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,i,u]);useIsomorphicLayoutEffect((function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(idle$2))}}),[r,a,i]),useIsomorphicLayoutEffect((function(){return bindEvents(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}function useValidateSensorHooks(e){useDev((function(){var t=usePrevious(e);useDevSetupWarning((function(){t.current.length!==e.length&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot change the amount of sensor hooks after mounting"):invariant(!1))}))}))}var interactiveTagNames={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(e,t){if(null==t)return!1;if(Boolean(interactiveTagNames[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&isAnInteractiveElement(e,t.parentElement)}function isEventInInteractiveElement(e,t){var n=t.target;return!!isHtmlElement(n)&&isAnInteractiveElement(e,n)}var getBorderBoxCenterPosition=function(e){return getRect(e.getBoundingClientRect()).center};function isElement(e){return e instanceof getWindowFromEl(e).Element}var supportedMatchesName=function(){var e="matches";return"undefined"==typeof document?e:find([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function closestPonyfill(e,t){return null==e?null:e[supportedMatchesName](t)?e:closestPonyfill(e.parentElement,t)}function closest$1(e,t){return e.closest?e.closest(t):closestPonyfill(e,t)}function getSelector(e){return"["+dragHandle.contextId+'="'+e+'"]'}function findClosestDragHandleFromEvent(e,t){var n=t.target;if(!isElement(n))return"production"!==process.env.NODE_ENV&&warning("event.target must be a Element"),null;var r=closest$1(n,getSelector(e));return r?isHtmlElement(r)?r:("production"!==process.env.NODE_ENV&&warning("drag handle must be a HTMLElement"),null):null}function tryGetClosestDraggableIdFromEvent(e,t){var n=findClosestDragHandleFromEvent(e,t);return n?n.getAttribute(dragHandle.draggableId):null}function findDraggable(e,t){var n="["+draggable.contextId+'="'+e+'"]',r=find(toArray$1(document.querySelectorAll(n)),(function(e){return e.getAttribute(draggable.id)===t}));return r?isHtmlElement(r)?r:("production"!==process.env.NODE_ENV&&warning("Draggable element is not a HTMLElement"),null):null}function preventDefault(e){e.preventDefault()}function _isActive(e){var t=e.expected,n=e.phase,r=e.isLockActive,i=e.shouldWarn;return r()?t===n||(i&&"production"!==process.env.NODE_ENV&&warning("\n        Cannot perform action.\n        The actions you used belong to an outdated phase\n\n        Current phase: "+t+"\n        You called an action from outdated phase: "+n+"\n\n        Tips:\n\n        - Do not use preDragActions actions after calling preDragActions.lift()\n      "),!1):(i&&"production"!==process.env.NODE_ENV&&warning("\n        Cannot perform action.\n        The sensor no longer has an action lock.\n\n        Tips:\n\n        - Throw away your action handlers when forceStop() is called\n        - Check actions.isActive() if you really need to\n      "),!1)}function canStart(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return o?!!o.options.isEnabled&&!!canStartDrag(n.getState(),i):("production"!==process.env.NODE_ENV&&warning("Unable to find draggable with id: "+i),!1)}function tryStart(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!canStart({lockAPI:t,store:r,registry:i,draggableId:o}))return null;var l=i.draggable.getById(o),c=findDraggable(n,l.descriptor.id);if(!c)return"production"!==process.env.NODE_ENV&&warning("Unable to find draggable element with id: "+o),null;if(s&&!l.options.canDragInteractiveElements&&isEventInInteractiveElement(c,s))return null;var u=t.claim(a||noop$1),d="PRE_DRAG";function p(){return l.options.shouldRespectForcePress}function f(){return t.isActive(u)}var h=function(e,t){_isActive({expected:e,phase:d,isLockActive:f,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}n(),r.dispatch(drop({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot lift in phase "+d):invariant())),r.dispatch(lift(e.liftActionArgs)),d="DRAGGING",_extends({isActive:function(){return _isActive({expected:"DRAGGING",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return _isActive({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=rafSchd((function(e){h((function(){return move({client:e})}))}));return _extends({},m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(moveUp)},moveRight:function(){return h(moveRight)},moveDown:function(){return h(moveDown)},moveLeft:function(){return h(moveLeft)}};return m({liftActionArgs:{id:o,clientSelection:getBorderBoxCenterPosition(c),movementMode:"SNAP"},cleanup:noop$1,actions:e})},abort:function(){_isActive({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!0})&&t.release()}}}var defaultSensors=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?defaultSensors:[],i||[]),s=e$i.useState((function(){return create()}))[0],l=useCallback((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);useIsomorphicLayoutEffect((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[s,n,l]),useIsomorphicLayoutEffect((function(){return s.tryAbandon}),[s.tryAbandon]);var c=useCallback((function(e){return canStart({lockAPI:s,registry:r,store:n,draggableId:e})}),[s,r,n]),u=useCallback((function(e,i,o){return tryStart({lockAPI:s,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:i,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,s,r,n]),d=useCallback((function(e){return tryGetClosestDraggableIdFromEvent(t,e)}),[t]),p=useCallback((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),f=useCallback((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(flush()))}),[s,n]),h=useCallback(s.isClaimed,[s]),m=useMemo((function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:f,isLockClaimed:h}}),[c,u,d,p,f,h]);useValidateSensorHooks(a);for(var g=0;g<a.length;g++)a[g](m)}var createResponders=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function getStore(e){return e.current||("production"!==process.env.NODE_ENV?invariant(!1,"Could not find store from lazy ref"):invariant()),e.current}function App(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=e$i.useRef(null);useStartupValidation();var s=usePrevious(e),l=useCallback((function(){return createResponders(s.current)}),[s]),c=useAnnouncer(t),u=useHiddenTextElement({contextId:t,text:o}),d=useStyleMarshal(t,i),p=useCallback((function(e){getStore(a).dispatch(e)}),[]),f=useMemo((function(){return bindActionCreators$1({publishWhileDragging:publishWhileDragging,updateDroppableScroll:updateDroppableScroll,updateDroppableIsEnabled:updateDroppableIsEnabled,updateDroppableIsCombineEnabled:updateDroppableIsCombineEnabled,collectionStarting:collectionStarting},p)}),[p]),h=useRegistry(),m=useMemo((function(){return createDimensionMarshal(h,f)}),[h,f]),g=useMemo((function(){return createAutoScroller(_extends({scrollWindow:scrollWindow,scrollDroppable:m.scrollDroppable},bindActionCreators$1({move:move},p)))}),[m.scrollDroppable,p]),v=useFocusMarshal(t),b=useMemo((function(){return createStore({announce:c,autoScroller:g,dimensionMarshal:m,focusMarshal:v,getResponders:l,styleMarshal:d})}),[c,g,m,v,l,d]);"production"!==process.env.NODE_ENV&&a.current&&a.current!==b&&"production"!==process.env.NODE_ENV&&warning("unexpected store change"),a.current=b;var y=useCallback((function(){var e=getStore(a);"IDLE"!==e.getState().phase&&e.dispatch(flush())}),[]),$=useCallback((function(){var e=getStore(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(useMemo((function(){return{isDragging:$,tryAbort:y}}),[$,y]));var x=useCallback((function(e){return canStartDrag(getStore(a).getState(),e)}),[]),E=useCallback((function(){return isMovementAllowed(getStore(a).getState())}),[]),w=useMemo((function(){return{marshal:m,focus:v,contextId:t,canLift:x,isMovementAllowed:E,dragHandleUsageInstructionsId:u,registry:h}}),[t,m,u,v,x,E,h]);return useSensorMarshal({contextId:t,store:b,registry:h,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),e$i.useEffect((function(){return y}),[y]),e$i.createElement(AppContext.Provider,{value:w},e$i.createElement(Provider,{context:StoreContext,store:b},e.children))}var count$1=0;function useInstanceCount(){return useMemo((function(){return""+count$1++}),[])}function DragDropContext(e){var t=useInstanceCount(),n=e.dragHandleUsageInstructions||preset.dragHandleUsageInstructions;return e$i.createElement(ErrorBoundary,null,(function(r){return e$i.createElement(App,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var isEqual$1=function(e){return function(t){return e===t}},isScroll=isEqual$1("scroll"),isAuto=isEqual$1("auto"),isVisible$1=isEqual$1("visible"),isEither=function(e,t){return t(e.overflowX)||t(e.overflowY)},isBoth=function(e,t){return t(e.overflowX)&&t(e.overflowY)},isElementScrollable=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return isEither(n,isScroll)||isEither(n,isAuto)},isBodyScrollable=function(){if("production"===process.env.NODE_ENV)return!1;var e=getBodyElement(),t=document.documentElement;if(t||(process.env.NODE_ENV,invariant()),!isElementScrollable(e))return!1;var n=window.getComputedStyle(t),r={overflowX:n.overflowX,overflowY:n.overflowY};return isBoth(r,isVisible$1)||"production"!==process.env.NODE_ENV&&warning("\n    We have detected that your <body> element might be a scroll container.\n    We have found no reliable way of detecting whether the <body> element is a scroll container.\n    Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)\n\n    Because we cannot determine if the <body> is a scroll container, and generally it is not one,\n    we will be treating the <body> as *not* a scroll container\n\n    More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/how-we-detect-scroll-containers.md\n  "),!1},getClosestScrollable=function e(t){return null==t?null:t===document.body?isBodyScrollable()?t:null:t===document.documentElement?null:isElementScrollable(t)?t:e(t.parentElement)},checkForNestedScrollContainers=function(e){e&&(getClosestScrollable(e.parentElement)&&"production"!==process.env.NODE_ENV&&warning("\n    Droppable: unsupported nested scroll container detected.\n    A Droppable can only have one scroll parent (which can be itself)\n    Nested scroll containers are currently not supported.\n\n    We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n  "))},getScroll$1=function(e){return{x:e.scrollLeft,y:e.scrollTop}},getIsFixed=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},getEnv=function(e){return{closestScrollable:getClosestScrollable(e),isFixedOnPage:getIsFixed(e)}},getDroppableDimension=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:origin$1,displacement:origin$1}}}}(),u="vertical"===o?vertical:horizontal;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:getSubject({page:s,withPlaceholder:null,axis:u,frame:c})}},getClient=function(e,t){var n=getBox(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=expand({top:r,right:a,bottom:o,left:i},n.border);return createBox({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})},getDimension=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=getClient(t,c),d=withScroll(u,i),p=function(){if(!c)return null;var e=getBox(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:withScroll(e,i),scroll:getScroll$1(c),scrollSize:t,shouldClipSubject:l}}();return getDroppableDimension({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:p})},immediate={passive:!1},delayed={passive:!0},getListenerOptions=function(e){return e.shouldPublishImmediately?immediate:delayed};function useRequiredContext(e){var t=e$i.useContext(e);return t||("production"!==process.env.NODE_ENV?invariant(!1,"Could not find required context"):invariant()),t}var getClosestScrollableFromDrag=function(e){return e&&e.env.closestScrollable||null};function useDroppablePublisher(e){var t=e$i.useRef(null),n=useRequiredContext(AppContext),r=useUniqueId("droppable"),i=n.registry,o=n.marshal,a=usePrevious(e),s=useMemo((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=e$i.useRef(s),c=useMemo((function(){return memoizeOne((function(e,n){t.current||("production"!==process.env.NODE_ENV?invariant(!1,"Can only update scroll when dragging"):invariant());var r={x:e,y:n};o.updateDroppableScroll(s.id,r)}))}),[s.id,o]),u=useCallback((function(){var e=t.current;return e&&e.env.closestScrollable?getScroll$1(e.env.closestScrollable):origin$1}),[]),d=useCallback((function(){var e=u();c(e.x,e.y)}),[u,c]),p=useMemo((function(){return rafSchd(d)}),[d]),f=useCallback((function(){var e=t.current,n=getClosestScrollableFromDrag(e);e&&n||("production"!==process.env.NODE_ENV?invariant(!1,"Could not find scroll options while scrolling"):invariant()),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),h=useCallback((function(e,r){t.current&&("production"!==process.env.NODE_ENV?invariant(!1,"Cannot collect a droppable while a drag is occurring"):invariant());var i=a.current,o=i.getDroppableRef();o||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot collect without a droppable ref"):invariant());var l=getEnv(o),c={ref:o,descriptor:s,env:l,scrollOptions:r};t.current=c;var u=getDimension({ref:o,descriptor:s,env:l,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=l.closestScrollable;return d&&(d.setAttribute(scrollContainer.contextId,n.contextId),d.addEventListener("scroll",f,getListenerOptions(c.scrollOptions)),"production"!==process.env.NODE_ENV&&checkForNestedScrollContainers(d)),u}),[n.contextId,s,f,a]),m=useCallback((function(){var e=t.current,n=getClosestScrollableFromDrag(e);return e&&n||("production"!==process.env.NODE_ENV?invariant(!1,"Can only recollect Droppable client for Droppables that have a scroll container"):invariant()),getScroll$1(n)}),[]),g=useCallback((function(){var e=t.current;e||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot stop drag when no active drag"):invariant());var n=getClosestScrollableFromDrag(e);t.current=null,n&&(p.cancel(),n.removeAttribute(scrollContainer.contextId),n.removeEventListener("scroll",f,getListenerOptions(e.scrollOptions)))}),[f,p]),v=useCallback((function(e){var n=t.current;n||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot scroll when there is no drag"):invariant());var r=getClosestScrollableFromDrag(n);r||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot scroll a droppable with no closest scrollable"):invariant()),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=useMemo((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:g,scroll:v}}),[g,h,m,v]),y=useMemo((function(){return{uniqueId:r,descriptor:s,callbacks:b}}),[b,s,r]);useIsomorphicLayoutEffect((function(){return l.current=y.descriptor,i.droppable.register(y),function(){t.current&&("production"!==process.env.NODE_ENV&&warning("Unsupported: changing the droppableId or type of a Droppable during a drag"),g()),i.droppable.unregister(y)}}),[b,s,g,y,o,i.droppable]),useIsomorphicLayoutEffect((function(){t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,o]),useIsomorphicLayoutEffect((function(){t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,o])}function noop$2(){}var empty={width:0,height:0,margin:noSpacing},getSize=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?empty:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},getStyle=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=getSize({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?transitions.placeholder:null}};function Placeholder(e){var t=e$i.useRef(null),n=useCallback((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,s=e$i.useState("open"===e.animate),l=s[0],c=s[1];e$i.useEffect((function(){return l?"open"!==r?(n(),c(!1),noop$2):t.current?noop$2:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):noop$2}),[r,l,n]);var u=useCallback((function(e){"height"===e.propertyName&&(i(),"close"===r&&o())}),[r,o,i]),d=getStyle({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return e$i.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})}var Placeholder$1=e$i.memo(Placeholder),DroppableContext=e$i.createContext(null);function checkIsValidInnerRef(e){e&&isHtmlElement(e)||("production"!==process.env.NODE_ENV?invariant(!1,"\n    provided.innerRef has not been provided with a HTMLElement.\n\n    You can find a guide on using the innerRef callback functions at:\n    https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\n  "):invariant())}function isBoolean$1(e){return"boolean"==typeof e}function runChecks(e,t){t.forEach((function(t){return t(e)}))}var shared=[function(e){var t=e.props;t.droppableId||("production"!==process.env.NODE_ENV?invariant(!1,"A Droppable requires a droppableId prop"):invariant()),"string"!=typeof t.droppableId&&("production"!==process.env.NODE_ENV?invariant(!1,"A Droppable requires a [string] droppableId. Provided: ["+typeof t.droppableId+"]"):invariant())},function(e){var t=e.props;isBoolean$1(t.isDropDisabled)||("production"!==process.env.NODE_ENV?invariant(!1,"isDropDisabled must be a boolean"):invariant()),isBoolean$1(t.isCombineEnabled)||("production"!==process.env.NODE_ENV?invariant(!1,"isCombineEnabled must be a boolean"):invariant()),isBoolean$1(t.ignoreContainerClipping)||("production"!==process.env.NODE_ENV?invariant(!1,"ignoreContainerClipping must be a boolean"):invariant())},function(e){checkIsValidInnerRef((0,e.getDroppableRef)())}],standard=[function(e){var t=e.props,n=e.getPlaceholderRef;t.placeholder&&(n()||"production"!==process.env.NODE_ENV&&warning('\n      Droppable setup issue [droppableId: "'+t.droppableId+'"]:\n      DroppableProvided > placeholder could not be found.\n\n      Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.\n      More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md\n    '))}],virtual=[function(e){e.props.renderClone||("production"!==process.env.NODE_ENV?invariant(!1,"Must provide a clone render function (renderClone) for virtual lists"):invariant())},function(e){(0,e.getPlaceholderRef)()&&("production"!==process.env.NODE_ENV?invariant(!1,"Expected virtual list to not have a placeholder"):invariant())}];function useValidation(e){useDevSetupWarning((function(){runChecks(e,shared),"standard"===e.props.mode&&runChecks(e,standard),"virtual"===e.props.mode&&runChecks(e,virtual)}))}var AnimateInOut=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return _inheritsLoose(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(e$i.PureComponent),zIndexOptions={dragging:5e3,dropAnimating:4500},getDraggingTransition=function(e,t){return t?transitions.drop(t.duration):e?transitions.snap:transitions.fluid},getDraggingOpacity=function(e,t){return e?t?combine.opacity.drop:combine.opacity.combining:null},getShouldDraggingAnimate=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function getDraggingStyle(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,o=Boolean(r),a=getShouldDraggingAnimate(e),s=Boolean(i),l=s?transforms.drop(n,o):transforms.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:getDraggingTransition(a,i),transform:l,opacity:getDraggingOpacity(o,s),zIndex:s?zIndexOptions.dropAnimating:zIndexOptions.dragging,pointerEvents:"none"}}function getSecondaryStyle(e){return{transform:transforms.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function getStyle$1(e){return"DRAGGING"===e.type?getDraggingStyle(e):getSecondaryStyle(e)}function getDimension$1(e,t,n){void 0===n&&(n=origin$1);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=calculateBox(i,r),a=withScroll(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}function useDraggablePublisher(e){var t=useUniqueId("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=useMemo((function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}}),[o,s,a]),c=useCallback((function(e){var t=i();return t||("production"!==process.env.NODE_ENV?invariant(!1,"Cannot get dimension when no ref is set"):invariant()),getDimension$1(n,t,e)}),[n,i]),u=useMemo((function(){return{uniqueId:t,descriptor:n,options:l,getDimension:c}}),[n,c,l,t]),d=e$i.useRef(u),p=e$i.useRef(!0);useIsomorphicLayoutEffect((function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}}),[r.draggable]),useIsomorphicLayoutEffect((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=u,r.draggable.update(u,e)}}),[u,r.draggable])}function useValidation$1(e,t,n){useDevSetupWarning((function(){function r(e){return"Draggable[id: "+e+"]: "}var i=e.draggableId;i||("production"!==process.env.NODE_ENV?invariant(!1,"Draggable requires a draggableId"):invariant(!1)),"string"!=typeof i&&("production"!==process.env.NODE_ENV?invariant(!1,"Draggable requires a [string] draggableId.\n      Provided: [type: "+typeof i+"] (value: "+i+")"):invariant(!1)),isInteger(e.index)||("production"!==process.env.NODE_ENV?invariant(!1,r(i)+" requires an integer index prop"):invariant(!1)),"DRAGGING"!==e.mapped.type&&(checkIsValidInnerRef(n()),e.isEnabled&&(findDragHandle(t,i)||("production"!==process.env.NODE_ENV?invariant(!1,r(i)+" Unable to find drag handle"):invariant(!1))))}))}function useClonePropValidation(e){useDev((function(){var t=e$i.useRef(e);useDevSetupWarning((function(){e!==t.current&&("production"!==process.env.NODE_ENV?invariant(!1,"Draggable isClone prop value changed during component life"):invariant(!1))}),[e])}))}function preventHtml5Dnd(e){e.preventDefault()}function Draggable(e){var t=e$i.useRef(null),n=useCallback((function(e){t.current=e}),[]),r=useCallback((function(){return t.current}),[]),i=useRequiredContext(AppContext),o=i.contextId,a=i.dragHandleUsageInstructionsId,s=i.registry,l=useRequiredContext(DroppableContext),c=l.type,u=l.droppableId,d=useMemo((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}}),[e.draggableId,e.index,c,u]),p=e.children,f=e.draggableId,h=e.isEnabled,m=e.shouldRespectForcePress,g=e.canDragInteractiveElements,v=e.isClone,b=e.mapped,y=e.dropAnimationFinished;(useValidation$1(e,o,r),useClonePropValidation(v),v)||useDraggablePublisher(useMemo((function(){return{descriptor:d,registry:s,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:h}}),[d,s,r,g,m,h]));var $=useMemo((function(){return h?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":f,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:preventHtml5Dnd}:null}),[o,a,f,h]),x=useCallback((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&y()}),[y,b]),E=useMemo((function(){var e=getStyle$1(b),t="DRAGGING"===b.type&&b.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:$}}),[o,$,f,b,x,n]),w=useMemo((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(E,b.snapshot,w)}var isStrictEqual=function(e,t){return e===t},whatIsDraggedOverFromResult=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},getCombineWithFromResult=function(e){return e.combine?e.combine.draggableId:null},getCombineWithFromImpact=function(e){return e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null};function getDraggableSelector(){var e=memoizeOne((function(e,t){return{x:e,y:t}})),t=memoizeOne((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=memoizeOne((function(e,n,r,i,o,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}}));return function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var o=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=whatIsDraggedOver(r.impact),l=getCombineWithFromImpact(r.impact),c=r.forceShouldAnimate;return n(e(o.x,o.y),r.movementMode,a,i.isClone,s,l,c)}if("DROP_ANIMATING"===r.phase){var u=r.completed;if(u.result.draggableId!==i.draggableId)return null;var d=i.isClone,p=r.dimensions.draggables[i.draggableId],f=u.result,h=f.mode,m=whatIsDraggedOverFromResult(f),g=getCombineWithFromResult(f),v={duration:r.dropDuration,curve:curves.drop,moveTo:r.newHomeClientOffset,opacity:g?combine.opacity.drop:null,scale:g?combine.scale.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:v,draggingOver:m,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,m,g,v)}}}return null}}function getSecondarySnapshot(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var atRest={mapped:{type:"SECONDARY",offset:origin$1,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot(null)}};function getSecondarySelector(){var e=memoizeOne((function(e,t){return{x:e,y:t}})),t=memoizeOne(getSecondarySnapshot),n=memoizeOne((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(origin$1,e,!0):null},i=function(t,i,o,a){var s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=tryGetCombine(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return r(u);if(o.displaced.invisible[t])return null;var d=negate(a.displacedBy.point),p=e(d.x,d.y);return n(p,u,!0)}if(l)return r(u);var f=o.displacedBy.point,h=e(f.x,f.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}var makeMapStateToProps=function(){var e=getDraggableSelector(),t=getSecondarySelector();return function(n,r){return e(n,r)||t(n,r)||atRest}},mapDispatchToProps={dropAnimationFinished:dropAnimationFinished},ConnectedDraggable=connect(makeMapStateToProps,mapDispatchToProps,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Draggable);function PrivateDraggable(e){return useRequiredContext(DroppableContext).isUsingCloneFor!==e.draggableId||e.isClone?e$i.createElement(ConnectedDraggable,e):null}function PublicDraggable(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return e$i.createElement(PrivateDraggable,_extends({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function Droppable(e){var t=e$i.useContext(AppContext);t||("production"!==process.env.NODE_ENV?invariant(!1,"Could not find app context"):invariant());var n=t.contextId,r=t.isMovementAllowed,i=e$i.useRef(null),o=e$i.useRef(null),a=e.children,s=e.droppableId,l=e.type,c=e.mode,u=e.direction,d=e.ignoreContainerClipping,p=e.isDropDisabled,f=e.isCombineEnabled,h=e.snapshot,m=e.useClone,g=e.updateViewportMaxScroll,v=e.getContainerForClone,b=useCallback((function(){return i.current}),[]),y=useCallback((function(e){i.current=e}),[]),$=useCallback((function(){return o.current}),[]),x=useCallback((function(e){o.current=e}),[]);useValidation({props:e,getDroppableRef:b,getPlaceholderRef:$});var E=useCallback((function(){r()&&g({maxScroll:getMaxWindowScroll()})}),[r,g]);useDroppablePublisher({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:p,isCombineEnabled:f,ignoreContainerClipping:d,getDroppableRef:b});var w=e$i.createElement(AnimateInOut,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return e$i.createElement(Placeholder$1,{placeholder:r,onClose:t,innerRef:x,animate:i,contextId:n,onTransitionEnd:E})})),D=useMemo((function(){return{innerRef:y,placeholder:w,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,w,y]),_=m?m.dragging.draggableId:null,T=useMemo((function(){return{droppableId:s,type:l,isUsingCloneFor:_}}),[s,_,l]);return e$i.createElement(DroppableContext.Provider,{value:T},a(D,h),function(){if(!m)return null;var e=m.dragging,t=m.render,n=e$i.createElement(PrivateDraggable,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return ReactDOM.createPortal(n,v())}())}var isMatchingType=function(e,t){return e===t.droppable.type},getDraggable=function(e,t){return t.draggables[e.draggable.id]},makeMapStateToProps$1=function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=_extends({},e,{shouldAnimatePlaceholder:!1}),n=memoizeOne((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=memoizeOne((function(r,i,o,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!i)return t;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,i){var o=i.droppableId,a=i.type,s=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var c=n.critical;if(!isMatchingType(a,c))return t;var u=getDraggable(c,n.dimensions),d=whatIsDraggedOver(n.impact)===o;return r(o,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!isMatchingType(a,p.critical))return t;var f=getDraggable(p.critical,n.dimensions);return r(o,s,whatIsDraggedOverFromResult(p.result)===o,whatIsDraggedOver(p.impact)===o,f,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!isMatchingType(a,h.critical))return t;var m=whatIsDraggedOver(h.impact)===o,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===o;return m?g?e:t:v?e:t}return t}},mapDispatchToProps$1={updateViewportMaxScroll:updateViewportMaxScroll};function getBody(){return document.body||("production"!==process.env.NODE_ENV?invariant(!1,"document.body is not ready"):invariant()),document.body}var defaultProps={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:getBody},ConnectedDroppable=connect(makeMapStateToProps$1,mapDispatchToProps$1,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Droppable);ConnectedDroppable.defaultProps=defaultProps;const ColumnChooserView=e=>jsxRuntime.jsxs("div",Object.assign({className:"tmpl-columnchooser-popup",ref:e.popupChooserRef},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-chooser-header"},{children:[jsxRuntime.jsx("h2",{children:"Column Chooser"}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-btn-outline-danger qo-btn-md"},onClick:e.onChooserRestore,title:"Restore",uiElementType:"WIDGET",widgetType:"BUTTON"}),jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-btn-primary qo-btn-md"},onClick:e.onChooserApply,title:"Apply",uiElementType:"WIDGET",widgetType:"BUTTON"}),jsxRuntime.jsx(FactoryRenderer,{name:"close",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:"",widgetStyle:{className:"qo-btn qo-text-default"},onClick:e.onChooserClose})]})]})),jsxRuntime.jsxs("div",Object.assign({className:"tmpl-chooser-body"},{children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",Object.assign({className:"tmpl-search-container"},{children:jsxRuntime.jsx(B$1,{className:"tmpl-search tmpl-input",value:e.searchInput,placeholder:"Type here to search . . .",onChange:t=>e.setSearchInput(t.target.value),suffix:()=>e.searchInput?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(m$1,{}),jsxRuntime.jsx(p$3,Object.assign({onClick:()=>e.setSearchInput("")},{children:jsxRuntime.jsx(FactoryRenderer,{name:"close",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:""})}))]}):jsxRuntime.jsx(jsxRuntime.Fragment,{})})})),0===e.allColumns.length&&jsxRuntime.jsx("div",Object.assign({className:"tmpl-no-result"},{children:jsxRuntime.jsx("p",{children:"No fields found"})})),e.allColumns.map((t=>jsxRuntime.jsx(FactoryRenderer,{uiElementType:"WIDGET",widgetType:"CHECKBOX",widgetStyle:{className:"tmpl-column tmpl-checkbox"},label:{position:"right",title:t.label,isApply:!0,widgetStyle:{className:"qo-font-family-primary qo-font-md prc-blc-inline-container"}},disabled:t.primary,value:!!t.primary||t.selected,onChange:()=>{!0!==t.primary&&e.onFieldAddOrRemove(t.id)}},t.id)))]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",Object.assign({className:"tmpl-title"},{children:jsxRuntime.jsx("p",{children:e.selectedColumns.length>0?`${e.selectedColumns.length} Column(s) Selected`:"No fields selected"})})),jsxRuntime.jsx(DragDropContext,Object.assign({onDragEnd:e.onFieldDragEnd},{children:jsxRuntime.jsx(ConnectedDroppable,Object.assign({droppableId:"droppable"},{children:t=>jsxRuntime.jsxs("div",Object.assign({},t.droppableProps,{ref:t.innerRef},{children:[e.selectedColumns.map(((t,n)=>t.primary?jsxRuntime.jsx(DragDropContainer,{column:t,excludeIncludeToCard:e.excludeIncludeToCard,toggleFreeze:e.toggleFreeze,onFieldAddOrRemove:e.onFieldAddOrRemove},t.id):jsxRuntime.jsx(PublicDraggable,Object.assign({draggableId:t.id.toString(),index:n},{children:n=>jsxRuntime.jsx("div",Object.assign({ref:n.innerRef},n.draggableProps,n.dragHandleProps,{style:Object.assign({userSelect:"none"},n.draggableProps.style)},{children:jsxRuntime.jsx(DragDropContainer,{column:t,excludeIncludeToCard:e.excludeIncludeToCard,toggleFreeze:e.toggleFreeze,onFieldAddOrRemove:e.onFieldAddOrRemove})}))}),t.id))),t.placeholder]}))}))}))]})]}))]})),ColumnChooser=e=>{const[t,n]=e$i.useState(""),[r,i]=e$i.useState([]),[o,a]=e$i.useState([]),s=e$i.useRef(null);e$i.useEffect((()=>{var t,r,o,s,l,c,u,d;e.toggleColumnChooser&&(i(_.cloneDeep(null!==(s=null===(o=null===(r=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.setting)||void 0===r?void 0:r.columnChooser)||void 0===o?void 0:o.allColumns)&&void 0!==s?s:[])),a(_.cloneDeep(null!==(d=null===(u=null===(c=null===(l=e.uiElementGroupData)||void 0===l?void 0:l.setting)||void 0===c?void 0:c.columnChooser)||void 0===u?void 0:u.selectedColumns)&&void 0!==d?d:[])),n(""))}),[e.toggleColumnChooser]);const l=e$i.useMemo((()=>r.filter((e=>e.label.toLowerCase().includes(null==t?void 0:t.toLowerCase())))),[t,r]),c=e$i.useMemo((()=>{const e=_.cloneDeep(o);return null==e?void 0:e.sort(((e,t)=>{var n,r;return(null!==(n=e.order)&&void 0!==n?n:0)-(null!==(r=t.order)&&void 0!==r?r:0)}))}),[o]);e$i.useEffect((()=>(e.toggleColumnChooser?document.addEventListener("mousedown",u):document.removeEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)})),[e.toggleColumnChooser]);const u=t=>{s.current&&!s.current.contains(t.target)&&"Column Chooser"!==t.target.textContent&&e.onChooserClick()};return jsxRuntime.jsx(ColumnChooserView,{popupChooserRef:s,allColumns:null!=l?l:[],selectedColumns:null!=c?c:[],onFieldAddOrRemove:e=>{const t=_.cloneDeep(r),n=_.cloneDeep(o),s=t.find((t=>t.id===e));let l=[];(null==s?void 0:s.selected)?(l=null==n?void 0:n.filter((t=>t.id!==e)),l=l.map(((e,t)=>(e.order=t+1,e)))):s&&(l=[...n,Object.assign(Object.assign({},s),{selected:!0,order:n.length})]),t.forEach((t=>{t.id===e&&(t.selected=!t.selected)})),i(t),a(l)},excludeIncludeToCard:e=>{const t=_.cloneDeep(o);t.forEach((t=>{t.id===e&&(t.includeInCard=!t.includeInCard)})),a(t)},toggleFreeze:e=>{const t=_.cloneDeep(o),n=t.findIndex((t=>t.id===e));t.forEach(((e,t)=>{e.isFreezed=t<=n||(e.primary||!1)})),a(t)},onChooserApply:()=>{const t=Object.assign(Object.assign({},e.uiElementGroupData),{setting:Object.assign(Object.assign({},e.uiElementGroupData.setting),{columnChooser:Object.assign(Object.assign({},e.uiElementGroupData.setting.columnChooser),{allColumns:_.cloneDeep(r),selectedColumns:_.cloneDeep(o),appliedColumns:_.cloneDeep(c)})})});e.setToggleColumnChooser(!1),e.setTogglePopup(!1),e.onModelUpdate(null,e.config.uiElementGroupId,t)},onChooserRestore:()=>{const t=_.cloneDeep(e.columns),n=t.filter((e=>e.selected));i(t),a(n)},onChooserClose:e.onChooserClick,onFieldDragEnd:e=>{if(!e.destination)return;if(e.destination.index===e.source.index)return;const t=_.cloneDeep(c),n=t.splice(e.source.index,1)[0];t.splice(e.destination.index,0,n),t.forEach(((e,t)=>{e.order=t+1})),a(t)},searchInput:t,setSearchInput:n})},SettingPopup=e=>jsxRuntime.jsxs("div",Object.assign({className:"tmpl-setting-popup"},{children:[jsxRuntime.jsx("div",Object.assign({onClick:e.onChooserClick},{children:"Column Chooser"})),jsxRuntime.jsx("div",Object.assign({onClick:e.onWidgetTypeClick},{children:e.activeDataWidgetType===DataWidgetType.CARD?"Change To Grid View":"Change To Card View"}))]}));var DataWidgetType;!function(e){e.CARD="CARD",e.GRID="GRID"}(DataWidgetType||(DataWidgetType={}));const Setting=e=>{var t,n,r;const[i,o]=e$i.useState(!1),[a,s]=e$i.useState(!1),l=e$i.useRef(null);e$i.useEffect((()=>(i?document.addEventListener("mousedown",c):document.removeEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)})),[i]);const c=e=>{l.current&&!l.current.contains(e.target)&&o(!1)},u=()=>{o((e=>!e))},d=()=>{s((e=>!e)),o(!1)},p=e$i.useMemo((()=>{var t,n,r,i;if(!e.enableCustomView)return!1;const o=null===(t=e.uiElementGroupData)||void 0===t?void 0:t.setting;if(!o)return!1;const a=null===(n=null==o?void 0:o.columnChooser)||void 0===n?void 0:n.appliedColumns,s=null===(i=null===(r=e.columns)||void 0===r?void 0:r.filter((e=>e.selected)))||void 0===i?void 0:i.sort(((e,t)=>{var n,r;return(null!==(n=e.order)&&void 0!==n?n:0)-(null!==(r=t.order)&&void 0!==r?r:0)})),l=a&&(null==s?void 0:s.length)&&!_.isEqual(a,s),c=(null==o?void 0:o.activeDataWidgetType)&&e.defaultActiveDataWidgetType&&o.activeDataWidgetType!==e.defaultActiveDataWidgetType;return!(!l&&!c)}),[e.enableCustomView,e.defaultActiveDataWidgetType,e.columns,null===(t=e.uiElementGroupData)||void 0===t?void 0:t.setting]);return e.visible?jsxRuntime.jsxs("div",Object.assign({className:"tmpl-setting-container",ref:l},{children:[jsxRuntime.jsx(SettingView,{disabled:e.disabled,onSettingClick:u,hasAppliedFilter:p}),i&&!e.disabled&&jsxRuntime.jsx(SettingPopup,{activeDataWidgetType:null===(r=null===(n=e.uiElementGroupData)||void 0===n?void 0:n.setting)||void 0===r?void 0:r.activeDataWidgetType,onSettingClick:u,onChooserClick:d,onWidgetTypeClick:()=>{var t,n,r;o(!1);const i=Object.assign(Object.assign({},null===(t=e.uiElementGroupData)||void 0===t?void 0:t.setting),{activeDataWidgetType:(null===(r=null===(n=e.uiElementGroupData)||void 0===n?void 0:n.setting)||void 0===r?void 0:r.activeDataWidgetType)===DataWidgetType.GRID?DataWidgetType.CARD:DataWidgetType.GRID}),a=Object.assign(Object.assign({},e.uiElementGroupData),{setting:i});e.onModelUpdate(null,e.config.uiElementGroupId,a),o(!1)}}),a&&!e.disabled&&jsxRuntime.jsx(ColumnChooser,{uiElementGroupData:e.uiElementGroupData,toggleColumnChooser:a,columns:e.columns,config:e.config,onChooserClick:d,onModelUpdate:e.onModelUpdate,setToggleColumnChooser:s,setTogglePopup:o})]})):jsxRuntime.jsx(jsxRuntime.Fragment,{})},ExportView=e=>jsxRuntime.jsx(FactoryRenderer,{onClick:e.onClick,title:"Export",rootStyle:{className:"tmpl-export"},widgetStyle:{className:"qo-btn qo-btn-default tmpl-button",inline:{width:"100%"}},uiElementType:"WIDGET",widgetType:"ICON",name:"download",disabled:e.disabled});var ExportType,Status;!function(e){e.XLS="XLS",e.CSV="CSV"}(ExportType||(ExportType={})),function(e){e.IN_PROGRESS="InProcess",e.COMPLETED="Success",e.FAILED="Error",e.SCHEDULED="Scheduled"}(Status||(Status={}));const DEFAULT_EXPORT_TYPES=Object.values(ExportType),DEFAULT_DATA_SCOPES=[{label:"Header List",type:"header",entity:"header"}],ExportPopup=e=>{var t,n;const r=(null===(t=e.exportTypes)||void 0===t?void 0:t.length)?e.exportTypes:DEFAULT_EXPORT_TYPES,i=(null===(n=e.dataScopes)||void 0===n?void 0:n.length)?e.dataScopes:DEFAULT_DATA_SCOPES,o=e$i.useRef(null),[a,s]=e$i.useState([]);e$i.useEffect((()=>{e.onExportList((e=>{s(e)}))}),[]),e$i.useEffect((()=>{const t=t=>{const n=t.target.closest(".tmpl-prvent-outside-click-close");!o.current||o.current.contains(t.target)||n||(o.current.classList.add("tmpl-popup-animation-reverse"),setTimeout((()=>{e.setTogglePopup&&e.setTogglePopup(!1)}),200))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[]);const l=(t,n)=>__awaiter(void 0,void 0,void 0,(function*(){try{e.onExportDownload((e=>((e,t)=>{const n=new Blob([e]),r=window.URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=t,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(r),document.body.removeChild(i)})(e,n)),t)}catch(e){console.error("Download failed:",e)}}));return jsxRuntime.jsxs("div",Object.assign({className:"tmpl-export-popup",ref:o},{children:[jsxRuntime.jsx("div",Object.assign({className:"tmpl-export-scope-container"},{children:i.map((t=>jsxRuntime.jsxs("div",Object.assign({className:"tmpl-export-scope-section"},{children:[jsxRuntime.jsx("h4",Object.assign({className:"tmpl-export-scope-header"},{children:t.label})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-export-options-grid"},{children:r.map((n=>jsxRuntime.jsx("div",Object.assign({title:`${n} - ${t.label}`,className:"tmpl-export-option-card",onClick:()=>((t,n)=>{const r=Object.assign({exportType:t},n);e.onExport((()=>{e.onExportList((e=>{s(e)}))}),r)})(n,t)},{children:jsxRuntime.jsx("span",Object.assign({className:"tmpl-export-option-type"},{children:n}))}),`${n}-${t.label}`)))}))]}),t.label)))})),jsxRuntime.jsx("h4",{children:"Previous Exports"}),jsxRuntime.jsx("div",Object.assign({className:"tmpl-export-history-items-container"},{children:a.map((t=>jsxRuntime.jsxs("div",Object.assign({className:"tmpl-export-history-item"},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-export-history-item-info"},{children:[jsxRuntime.jsx("p",{children:t.fileName}),jsxRuntime.jsx("p",{children:t.date})]})),jsxRuntime.jsxs("div",Object.assign({className:"tmpl-export-history-item-action"},{children:[t.status===Status.COMPLETED?jsxRuntime.jsx(FactoryRenderer,{name:"download",uiElementType:"WIDGET",widgetStyle:{className:"qo-btn qo-text-default"},widgetType:"ICON",fillMode:"clear",title:"Download",onClick:()=>l(t.referenceId,t.fileName)}):t.status===Status.FAILED?jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-text-warning"},name:"error",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:"Failed"}):jsxRuntime.jsx(FactoryRenderer,{name:"load",uiElementType:"WIDGET",widgetType:"ICON",widgetStyle:{className:"qo-btn qo-text-primary"},fillMode:"clear",title:"In Process"}),jsxRuntime.jsx(FactoryRenderer,{name:"delete",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:"Delete",widgetStyle:{className:"qo-btn qo-text-danger"},onClick:()=>e.onExportDelete((()=>{e.onExportList((e=>{s(e)}))}),t.id)})]}))]}),t.id)))}))]}))},Export=e=>{const[t,n]=e$i.useState(!1);return e.visible?jsxRuntime.jsxs("div",Object.assign({className:"tmpl-export-container"},{children:[jsxRuntime.jsx(ExportView,{disabled:e.disabled,onClick:()=>{n(!t)}}),t&&!e.disabled&&jsxRuntime.jsx(ExportPopup,{setTogglePopup:n,onExport:(t,n)=>{var r;n.exportType&&(null===(r=e.onExport)||void 0===r||r.call(e,t,n))},onExportList:e.onExportList,onExportDownload:e.onExportDownload,onExportDelete:e.onExportDelete,exportTypes:e.exportTypes,dataScopes:e.dataScopes})]})):jsxRuntime.jsx(jsxRuntime.Fragment,{})},ViewItem=({view:e,selectedView:t,onSave:n,markAsSelected:r,setDefault:i,onDeleteRequest:o})=>{const a=e.id===(null==t?void 0:t.id),s="-1"===e.id;return jsxRuntime.jsxs("div",Object.assign({className:"tmpl-screen-view-item "+(a?"tmpl-view-item-heighlight":""),onClick:()=>r(e)},{children:[jsxRuntime.jsx("p",Object.assign({className:"tmpl-screen-view-name",title:e.name},{children:e.name})),!s&&jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-text-danger tmpl-button-sm tmpl-delete-icon"},name:"delete",fillMode:"clear",onClick:(t,n,r)=>{r.stopPropagation(),o&&o(e)},uiElementType:"WIDGET",widgetType:"ICON",title:"Delete"}),!s&&a&&jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-text-primary tmpl-button-sm tmpl-delete-icon"},name:"save",fillMode:"clear",onClick:(t,r,i)=>{i.stopPropagation(),n(e.id)},uiElementType:"WIDGET",widgetType:"ICON",title:"Save"}),e.isDefault?jsxRuntime.jsx("label",{children:"Default"}):jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-text-default tmpl-button-sm tmpl-set-default"},name:"star",fillMode:"clear",onClick:(t,n,r)=>{r.stopPropagation(),i(e.id)},uiElementType:"WIDGET",widgetType:"ICON",title:"Set Default"})]}))},UserViewView=({selectedView:e,allViews:t,disabled:n,onViewToggle:r,setDefault:i,onDelete:o,onSave:a,markAsSelected:s,hasUnsavedChanges:l})=>{var c,u;const[d,p]=e$i.useState(null);return jsxRuntime.jsxs("div",Object.assign({className:"tmpl-screen-view-wrapper"},{children:[l&&(null==e?void 0:e.id)&&"-1"!==(null==e?void 0:e.id)&&jsxRuntime.jsx("span",{className:"tmpl-unsaved-indicator",title:"Unsaved changes"}),jsxRuntime.jsx(FactoryRenderer,{uiElementType:"WIDGET",widgetType:"DROPDOWN",disabled:n,listData:t,textField:"name",dataItemKey:"id",value:e,title:null!==(c=null==e?void 0:e.name)&&void 0!==c?c:"Select View",toolTip:{isApply:!0,dataTip:null!==(u=null==e?void 0:e.name)&&void 0!==u?u:"Select View"},rootStyle:{className:"qo-font-md tmpl-dropdown-root",effectiveStyles:[{selector:".qo-font-md",target:".tmpl-dropdown-root .tmpl-screen-view",important:!0},{selector:".qo-border-none",target:".tmpl-dropdown-root .k-picker-flat",important:!0}]},widgetStyle:{className:"tmpl-screen-view"},footer:jsxRuntime.jsx("div",Object.assign({className:"tmpl-screen-view-footer",onClick:r},{children:jsxRuntime.jsx(FactoryRenderer,{uiElementType:"WIDGET",widgetType:"BUTTON",title:"+ Create View",widgetStyle:{className:"qo-btn qo-btn-primary qo-font-weight-medium qo-font-md"},fillMode:"solid",role:"button",type:"button"})})),itemRender:(t,n)=>{var r;const l=(null===(r=n.dataItem)||void 0===r?void 0:r.id)===(null==e?void 0:e.id);return e$i.cloneElement(t,Object.assign(Object.assign({},t.props),{className:`qo-font-md ${t.props.className||""} prc-dropdown-list-item${l?" prc-dropdown-list-item--selected":""}`}),jsxRuntime.jsx(ViewItem,{view:n.dataItem,selectedView:e,markAsSelected:s,onDelete:o,setDefault:i,onSave:a,onDeleteRequest:e=>p(e)}))},fillMode:"flat",popupSettings:{popupClass:"tmpl-button-popup"}}),d&&jsxRuntime.jsx(FactoryRenderer,{uiElementType:"WIDGET",widgetType:"CONFOMATIONALERTBOX",value:null,title:"Delete View",messageHeader:`Are you sure you want to delete "${d.name}"?`,messageBody:"This action cannot be undone.",onConfirm:()=>{o(d.id),p(null)},onCancel:()=>p(null)})]}))},CreateScreenPopup=e=>{const[t,n]=e$i.useState(""),[r,i]=e$i.useState(!0),o=e$i.useRef(null);e$i.useEffect((()=>{const t=t=>{o.current&&!o.current.contains(t.target)&&(o.current.classList.add("tmpl-popup-animation-2-reverse"),setTimeout(e.onViewToggle,200))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[]);return jsxRuntime.jsxs("div",Object.assign({className:"tmpl-screen-creater-popup",ref:o},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-screen-creater-popup-header"},{children:[jsxRuntime.jsx("div",{children:jsxRuntime.jsx("h2",{children:"Create New View"})}),jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-text-default tmpl-button-sm"},name:"close",fillMode:"clear",onClick:e.onViewToggle,uiElementType:"WIDGET",widgetType:"ICON",title:""})]})),jsxRuntime.jsxs("div",Object.assign({className:"tmpl-screen-creater-popup-body"},{children:[jsxRuntime.jsxs("div",Object.assign({className:"tmpl-dropdown-container"},{children:[jsxRuntime.jsxs("span",{children:["View Name ",jsxRuntime.jsx("span",Object.assign({style:{color:"red",display:"inline"}},{children:"*"}))]}),jsxRuntime.jsx(B$1,{value:t,className:"tmpl-input",placeholder:"Type Here...",onChange:e=>{var t;n((null===(t=e.target.value)||void 0===t?void 0:t.toString())||""),i(!0)}}),!r&&jsxRuntime.jsx("span",Object.assign({className:"tmpl-error-message",style:{color:"var(--qo-text-danger, red)"}},{children:"Required"})),e.error&&jsxRuntime.jsx("span",Object.assign({className:"tmpl-error-message"},{children:e.error}))]})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-screen-creater-popup-footer"},{children:jsxRuntime.jsx(k$6,Object.assign({title:"Create",className:"qo-btn qo-btn-primary qo-btn-md tmpl-button",onClick:()=>{t.trim()?e.create(t.trim()):i(!1)}},{children:"Create"}))}))]}))]}))},deserializedScreenView=e=>({id:e.id,name:e.viewName,isDefault:e.selected,isSelected:e.selected}),getDeserializedScreenViewList=e=>e.map((e=>deserializedScreenView(e)));function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,{iterator:iterator,toStringTag:toStringTag}=Symbol,kindOf=(e=>t=>{const n=toString.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||toStringTag in e||iterator in e)},isEmptyObject=e=>{if(!isObject(e)||isBuffer(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),isArray(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(isBuffer(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},n={},r=(r,i)=>{const o=e&&findKey(n,i)||i;isPlainObject(n[o])&&isPlainObject(r)?n[o]=merge(n[o],r):isPlainObject(r)?n[o]=merge({},r):isArray(r)?n[o]=r.slice():t&&isUndefined(r)||(n[o]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&forEach(arguments[e],r);return n}const extend=(e,t,n,{allOwnKeys:r}={})=>(forEach(t,((t,r)=>{n&&isFunction$1(t)?e[r]=bind(t,n):e[r]=t}),{allOwnKeys:r}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const n=(e&&e[iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll=(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),hasOwnProperty=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};forEach(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},freezeMethods=e=>{reduceDescriptors(e,((t,n)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];isFunction$1(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return isArray(e)?r(e):r(String(e).split(t)),n},noop=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[toStringTag]&&e[iterator])}const toJSONObject=e=>{const t=new Array(10),n=(e,r)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[r]=e;const i=isArray(e)?[]:{};return forEach(e,((e,t)=>{const o=n(e,r+1);!isUndefined(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],_global.addEventListener("message",(({source:e,data:t})=>{e===_global&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),_global.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"==typeof setImmediate,isFunction$1(_global.postMessage)),asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):"undefined"!=typeof process&&process.nextTick||_setImmediate,isIterable=e=>null!=e&&isFunction$1(e[iterator]);var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable};function AxiosError$1(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{descriptors[e]={value:e}})),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,n,r,i,o)=>{const a=Object.create(prototype$1);utils$1.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return AxiosError$1.call(a,s,l,n,r,i),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};var httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map((function(e,t){return e=removeBrackets(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData$1(e,t,n){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=utils$1.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(utils$1.isBoolean(e))return e.toString();if(!s&&utils$1.isBlob(e))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(utils$1.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(n,"[]"))&&(s=utils$1.toArray(e)))return n=removeBrackets(n),s.forEach((function(e,r){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===a?renderKey([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(i,n,o),l(e)),!1)}const u=[],d=Object.assign(predicates,{defaultVisitor:c,convertValue:l,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!utils$1.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),utils$1.forEach(n,(function(n,o){!0===(!(utils$1.isUndefined(n)||null===n)&&i.call(t,n,utils$1.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const r=n&&n.encode||encode;utils$1.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData$1="undefined"!=typeof FormData?FormData:null,Blob$1="undefined"!=typeof Blob?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost";var utils=Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin:origin}),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,{visitor:function(e,t,n,r){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function formDataToJSON(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&utils$1.isArray(r)?r.length:o,s)return utils$1.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&utils$1.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&utils$1.isArray(r[o])&&(r[o]=arrayToObject(r[o])),!a}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const n={};return utils$1.forEachEntry(e,((e,r)=>{t(parsePropPath(e),r,n,0)})),n}return null}function stringifySafely(e,t,n){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=utils$1.isObject(e);i&&utils$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1.isFormData(e))return r?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e)||utils$1.isReadableStream(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((o=utils$1.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$1(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(utils$1.isResponse(e)||utils$1.isReadableStream(e))return e;if(e&&utils$1.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults.headers[e]={}}));const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ignoreDuplicateOf[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const $internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,r,i){return utils$1.isFunction(r)?r.call(this,t,n):(i&&(t=n),utils$1.isString(t)?utils$1.isString(r)?-1!==t.indexOf(r):utils$1.isRegExp(r)?r.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function buildAccessors(e,t){const n=utils$1.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}let AxiosHeaders$1=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=normalizeHeader(t);if(!i)throw new Error("header name must be a non-empty string");const o=utils$1.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=normalizeValue(e))}const o=(e,t)=>utils$1.forEach(e,((e,n)=>i(e,n,t)));if(utils$1.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))o(parseHeaders(e),t);else if(utils$1.isObject(e)&&utils$1.isIterable(e)){let n,r,i={};for(const t of e){if(!utils$1.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?utils$1.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=normalizeHeader(e)){const n=utils$1.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,n);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const n=utils$1.findKey(this,e);return!(!n||void 0===this[n]||t&&!matchHeaderValue(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=normalizeHeader(e)){const i=utils$1.findKey(n,e);!i||t&&!matchHeaderValue(n,n[i],i,t)||(delete n[i],r=!0)}}return utils$1.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!matchHeaderValue(this,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return utils$1.forEach(this,((r,i)=>{const o=utils$1.findKey(n,i);if(o)return t[o]=normalizeValue(r),void delete t[i];const a=e?formatHeader(i):String(i).trim();a!==i&&delete t[i],t[a]=normalizeValue(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&utils$1.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=normalizeHeader(e);t[r]||(buildAccessors(n,e),t[r]=!0)}return utils$1.isArray(e)?e.forEach(r):r(e),this}};function transformData(e,t){const n=this||defaults,r=t||n,i=AxiosHeaders$1.from(r.headers);let o=r.data;return utils$1.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function isCancel$1(e){return!(!e||!e.__CANCEL__)}function CanceledError$1(e,t,n){AxiosError$1.call(this,null==e?"canceled":e,AxiosError$1.ERR_CANCELED,t,n),this.name="CanceledError"}function settle(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new AxiosError$1("Request failed with status code "+n.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}function throttle(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]}AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),utils$1.freezeMethods(AxiosHeaders$1),utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});const progressEventReducer=(e,t,n=3)=>{let r=0;const i=speedometer(50,250);return throttle((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},progressEventDecorator=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap((()=>e(...t)));var isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,platform.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];utils$1.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),utils$1.isString(r)&&a.push("path="+r),utils$1.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,n){let r=!isAbsoluteURL(t);return e&&(r||0==n)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const n={};function r(e,t,n,r){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:r},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function i(e,t,n,i){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!utils$1.isUndefined(t))return r(void 0,t)}function a(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(headersToObject(e),headersToObject(t),0,!0)};return utils$1.forEach(Object.keys({...e,...t}),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);utils$1.isUndefined(a)&&o!==s||(n[r]=a)})),n}var resolveConfig=e=>{const t=mergeConfig$1({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=AxiosHeaders$1.from(a),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),utils$1.isFormData(n))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(utils$1.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)}))}if(platform.hasStandardBrowserEnv&&(r&&utils$1.isFunction(r)&&(r=r(t)),r||!1!==r&&isURLSameOrigin(t.url))){const e=i&&o&&cookies.read(o);e&&a.set(i,e)}return t};const isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest;var xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise((function(t,n){const r=resolveConfig(e);let i=r.data;const o=AxiosHeaders$1.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=AxiosHeaders$1.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new AxiosError$1(t&&t.message?t.message:"Network Error",AxiosError$1.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||transitionalDefaults;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new AxiosError$1(t,i.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&utils$1.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),utils$1.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=progressEventReducer(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=progressEventReducer(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new CanceledError$1(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=parseProtocol(r.url);v&&-1===platform.protocols.indexOf(v)?n(new AxiosError$1("Unsupported protocol "+v+":",AxiosError$1.ERR_BAD_REQUEST,e)):m.send(i||null)}))};const composeSignals=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof AxiosError$1?t:new CanceledError$1(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>utils$1.asap(a),s}},streamChunk=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},readBytes=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},trackStream=(e,t,n,r)=>{const i=readBytes(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=65536,{isFunction:isFunction}=utils$1,globalFetchAPI=(({Request:e,Response:t})=>({Request:e,Response:t}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils$1.global,test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},factory=e=>{e=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,e);const{fetch:t,Request:n,Response:r}=e,i=t?isFunction(t):"function"==typeof fetch,o=isFunction(n),a=isFunction(r);if(!i)return!1;const s=i&&isFunction(ReadableStream$1),l=i&&("function"==typeof TextEncoder$1?(c=new TextEncoder$1,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=o&&s&&test((()=>{let e=!1;const t=new n(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),d=a&&s&&test((()=>utils$1.isReadableStream(new r("").body))),p={stream:d&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new AxiosError$1(`Response type '${e}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,n)})}));const f=async(e,t)=>{const r=utils$1.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e)){const t=new n(platform.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e)?e.byteLength:(utils$1.isURLSearchParams(e)&&(e+=""),utils$1.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:i,method:a,data:s,signal:l,cancelToken:c,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:b,withCredentials:y="same-origin",fetchOptions:$}=resolveConfig(e),x=t||fetch;v=v?(v+"").toLowerCase():"text";let E=composeSignals([l,c&&c.toAbortSignal()],h),w=null;const D=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let _;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(_=await f(b,s))){let e,t=new n(i,{method:"POST",body:s,duplex:"half"});if(utils$1.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=progressEventDecorator(_,progressEventReducer(asyncDecorator(g)));s=trackStream(t.body,65536,e,n)}}utils$1.isString(y)||(y=y?"include":"omit");const t=o&&"credentials"in n.prototype,l={...$,signal:E,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?y:void 0};w=o&&new n(i,l);let c=await(o?x(w,$):x(i,l));const h=d&&("stream"===v||"response"===v);if(d&&(m||h&&D)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=c[t]}));const t=utils$1.toFiniteNumber(c.headers.get("content-length")),[n,i]=m&&progressEventDecorator(t,progressEventReducer(asyncDecorator(m),!0))||[];c=new r(trackStream(c.body,65536,n,(()=>{i&&i(),D&&D()})),e)}v=v||"text";let T=await p[utils$1.findKey(p,v)||"text"](c,e);return!h&&D&&D(),await new Promise(((t,n)=>{settle(t,n,{data:T,headers:AxiosHeaders$1.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:w})}))}catch(t){if(D&&D(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,w),{cause:t.cause||t});throw AxiosError$1.from(t,t&&t.code,e,w)}}},seedCache=new Map,getFetch=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a,s,l=o.length,c=seedCache;for(;l--;)a=o[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:factory(t)),c=s;return s};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e;var adapters={getAdapter:(e,t)=>{e=utils$1.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){let n;if(r=e[a],i=r,!isResolvedHandle(r)&&(i=knownAdapters[(n=String(r)).toLowerCase()],void 0===i))throw new AxiosError$1(`Unknown adapter '${n}'`);if(i&&(utils$1.isFunction(i)||(i=i.get(t))))break;o[n||"#"+a]=i}if(!i){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError$1("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters.getAdapter(e.adapter||defaults.adapter,e)(e).then((function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders$1.from(t.headers),t}),(function(t){return isCancel$1(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$1.from(t.response.headers))),Promise.reject(t)}))}const VERSION$1="1.12.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings={};function assertOptions(e,t,n){if("object"!=typeof e)throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new AxiosError$1("option "+o+" must be "+n,AxiosError$1.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new AxiosError$1("Unknown option "+o,AxiosError$1.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,n){function r(e,t){return"[Axios v1.12.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new AxiosError$1(r(i," has been removed"+(t?" in "+t:"")),AxiosError$1.ERR_DEPRECATED);return t&&!deprecatedWarnings[i]&&(deprecatedWarnings[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},validators$1.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var validator={assertOptions:assertOptions,validators:validators$1};const validators=validator.validators;let Axios$1=class{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$1(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=r&&(utils$1.isFunction(r)?t.paramsSerializer={serialize:r}:validator.assertOptions(r,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&utils$1.merge(i.common,i[t.method]);i&&utils$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=AxiosHeaders$1.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=dispatchRequest.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return buildURL(buildFullPath((e=mergeConfig$1(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],(function(e){Axios$1.prototype[e]=function(t,n){return this.request(mergeConfig$1(n||{},{method:e,url:t,data:(n||{}).data}))}})),utils$1.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(mergeConfig$1(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Axios$1.prototype[e]=t(),Axios$1.prototype[e+"Form"]=t(!0)}));let CancelToken$1=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new CanceledError$1(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;const n=new e((function(e){t=e}));return{token:n,cancel:t}}};function spread$1(e){return function(t){return e.apply(null,t)}}function isAxiosError$1(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance(e){const t=new Axios$1(e),n=bind(Axios$1.prototype.request,t);return utils$1.extend(n,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return createInstance(mergeConfig$1(e,t))},n}Object.entries(HttpStatusCode$1).forEach((([e,t])=>{HttpStatusCode$1[t]=e}));const axios=createInstance(defaults);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION="1.12.2",axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios:Axios,AxiosError:AxiosError,CanceledError:CanceledError,isCancel:isCancel,CancelToken:CancelToken,VERSION:VERSION,all:all,Cancel:Cancel,isAxiosError:isAxiosError,spread:spread,toFormData:toFormData,AxiosHeaders:AxiosHeaders,HttpStatusCode:HttpStatusCode,formToJSON:formToJSON,getAdapter:getAdapter,mergeConfig:mergeConfig}=axios,baseUrl="https://v2-dot-gwtsession-1226.appspot.com",serviceAxios=axios.create({baseURL:baseUrl,headers:{"Content-Type":"application/json",Accept:"application/json"}});let eventServiceInstance=null;const setupServiceInterceptors=e=>{eventServiceInstance=e,serviceAxios.interceptors.request.use((e=>{if(eventServiceInstance){const e=eventServiceInstance.emit("REQUEST_START");null==e||e()}return e}),(e=>{if(eventServiceInstance){const e=eventServiceInstance.emit("REQUEST_END");null==e||e()}return Promise.reject(e)})),serviceAxios.interceptors.response.use((e=>{if(eventServiceInstance){const e=eventServiceInstance.emit("REQUEST_END");null==e||e()}return e}),(e=>{if(eventServiceInstance){const e=eventServiceInstance.emit("REQUEST_END");null==e||e()}return Promise.reject(e)}))},loadScreenService=e=>__awaiter(void 0,void 0,void 0,(function*(){if(e)try{return yield serviceAxios.get(`/api/metadata/getViewByWidgetGroupId?widgetGroupId=${e}`)}catch(e){console.error("Error loading service:",e)}else console.error("Unique view ID is required to load screen service.")})),loadScreenByIdService=e=>__awaiter(void 0,void 0,void 0,(function*(){if(e)try{return yield serviceAxios.get(`/api/metadata/${e}`)}catch(e){console.error("Error loading service:",e)}else console.error("ID is required to load screen service.")})),createScreenService=(e,t)=>__awaiter(void 0,void 0,void 0,(function*(){try{return yield serviceAxios.post("/api/metadata/createView",{viewName:e,widgetGroupId:t})}catch(e){throw console.error("Error creating service:",e),e}})),updateScreenService=(e,t)=>__awaiter(void 0,void 0,void 0,(function*(){try{return yield serviceAxios.patch("/api/metadata",Object.assign(Object.assign({},t),{id:e}))}catch(e){throw console.error("Error updating service:",e),e}})),markDefaultScreenService=(e,t)=>__awaiter(void 0,void 0,void 0,(function*(){try{return yield serviceAxios.patch(`/api/metadata/markAsDefault/${t}/${e}`)}catch(e){throw console.error("Error creating service:",e),e}})),deleteScreenService=e=>__awaiter(void 0,void 0,void 0,(function*(){try{return yield serviceAxios.delete(`/api/metadata/${e}`)}catch(e){throw console.error("Error creating service:",e),e}})),filterCustomViewData=(e,t)=>{var n;const r=[...null!==(n=e.relativeWidgetFilterFields)&&void 0!==n?n:[],{field:"globalSearch",enableCustomView:t.globalSearch.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"advancedSearch",enableCustomView:t.advancedSearch.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"quickFilter",enableCustomView:t.quickFilter.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"groupedBy",enableCustomView:t.groupBy.enableCustomView,applicableValueProperty:"appliedGroups"},{field:"setting",enableCustomView:t.setting.enableCustomView,applicableValueProperty:null}],i={};return r.forEach((t=>{if(e[t.field]&&t.enableCustomView){const n=e[t.field];i[t.field]=t.applicableValueProperty&&n?n[t.applicableValueProperty]:n}})),i},loadScreensAction=(e,t)=>__awaiter(void 0,void 0,void 0,(function*(){var n;let r=e;t&&(null==t||t((e=>{r=e+"-"+r})));const i=yield loadScreenService(r),o=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.map((e=>({id:e.id,selected:e.selected,viewName:e.viewName})));return getDeserializedScreenViewList(o)})),loadScreenByIdAction=e=>__awaiter(void 0,void 0,void 0,(function*(){var t;const n=yield loadScreenByIdService(e);return(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.screenViewMetaData)?JSON.parse(n.data.screenViewMetaData):null})),createScreenAction=(e,t,n)=>__awaiter(void 0,void 0,void 0,(function*(){let r=t;n&&(null==n||n((e=>{r=e+"-"+r})));try{const t=yield createScreenService(e,r);return{id:t.data.id,viewName:t.data.viewName,error:""}}catch(e){return 422===e.status?{id:"",viewName:"",error:"A screen with the same name already exists. Please choose a different name."}:{id:"",viewName:"",error:"An unexpected error occurred while creating the screen."}}})),updateScreenAction=(e,t,n)=>__awaiter(void 0,void 0,void 0,(function*(){const r=filterCustomViewData(t,n);yield updateScreenService(e,{screenViewMetaData:JSON.stringify(r)})})),markDefaultScreenAction=(e,t,n)=>__awaiter(void 0,void 0,void 0,(function*(){let r=t;n&&(null==n||n((e=>{r=e+"-"+r}))),yield markDefaultScreenService(e,r)})),deleteScreenAction=e=>__awaiter(void 0,void 0,void 0,(function*(){yield deleteScreenService(e)})),saveSystemDefaultInSession=(e,t,n,r)=>{let i=e;r&&r((t=>{i=t+"-"+e}));const o=filterCustomViewData(t,n);sessionStorage.setItem(`${i}_-1`,JSON.stringify(o))},getSavedSystemDefault=e=>{try{const t=sessionStorage.getItem(e);return t?JSON.parse(t):null}catch(e){console.error("Error parsing session data:",e)}return null},getInitialData=()=>{const e=_.cloneDeep(getAdvancedSearchIntitialFilterRow());return{globalSearch:{filterQuery:"",appliedQuery:""},advancedSearch:{appliedQuery:{criteria:"",filters:[]},filterRows:[e],criteria:e.idLabel},quickFilter:{appliedQuery:{criteria:"",filterRows:[],joinCriteria:OperatorCreiteria.AND},filterRows:[]},groupedBy:{appliedGroups:[]},setting:{activeDataWidgetType:DataWidgetType.GRID,columnChooser:{appliedColumns:[],allColumns:[],selectedColumns:[]}},reset:0,userView:{selectedView:void 0,allViews:[_.cloneDeep(_defaultView)]},enableDataLoading:!1}},hasUnsavedChanges=(e,t,n)=>{var r;if(!e)return!1;const i=[...null!==(r=e.relativeWidgetFilterFields)&&void 0!==r?r:[],{field:"globalSearch",enableCustomView:n.globalSearch.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"advancedSearch",enableCustomView:n.advancedSearch.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"quickFilter",enableCustomView:n.quickFilter.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"groupedBy",enableCustomView:n.groupBy.enableCustomView,applicableValueProperty:"appliedGroups"},{field:"setting",enableCustomView:n.setting.enableCustomView,applicableValueProperty:null}];let o=!1;return i.forEach((n=>{if(n.enableCustomView){const r=n.applicableValueProperty&&e[n.field]?e[n.field][n.applicableValueProperty]:e[n.field],i=t?t[n.field]:null;if(!_.isEqual(null!=r?r:null,null!=i?i:null))return void(o=!0)}})),o},replaceCustomViewData=(e,t,n,r)=>{var i;return[...null!==(i=e.relativeWidgetFilterFields)&&void 0!==i?i:[],{field:"globalSearch",enableCustomView:r.globalSearch.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"advancedSearch",enableCustomView:r.advancedSearch.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"quickFilter",enableCustomView:r.quickFilter.enableCustomView,applicableValueProperty:"appliedQuery"},{field:"groupedBy",enableCustomView:r.groupBy.enableCustomView,applicableValueProperty:"appliedGroups"},{field:"setting",enableCustomView:r.setting.enableCustomView,applicableValueProperty:null}].forEach((e=>{const r=n[e.field];r&&e.enableCustomView&&(t=Object.assign(Object.assign({},t),{[e.field]:e.applicableValueProperty?Object.assign(Object.assign({},t[e.field]),{[e.applicableValueProperty]:r}):r}))})),t},_defaultView={id:"-1",isDefault:!1,name:"System Default",isSelected:!1},UserView=e=>{var t,n,r,i,o,a,s;const[l,c]=e$i.useState(!1),[u,d]=e$i.useState(null),[p,f]=e$i.useState("");e$i.useEffect((()=>{e.eventService&&setupServiceInterceptors(e.eventService)}),[e.eventService]),e$i.useEffect((()=>{var t;!1===(null===(t=e.uiElementGroupData)||void 0===t?void 0:t.processing)&&m()}),[null===(t=e.uiElementGroupData)||void 0===t?void 0:t.processing]),e$i.useEffect((()=>{var t,n,r,i,o,a,s;if((null===(t=e.uiElementGroupData)||void 0===t?void 0:t.reset)>0){const t=(null!==(i=null===(r=null===(n=e.uiElementGroupData)||void 0===n?void 0:n.userView)||void 0===r?void 0:r.allViews)&&void 0!==i?i:[]).find((e=>e.isDefault));if("-1"===t.id&&e.enableDefaultSaveInSession){let t=e.config.uiElementGroupId;e.getUniqueViewId&&e.getUniqueViewId((n=>{t=n+"-"+e.config.uiElementGroupId}));const n=`${t}_-1`;sessionStorage.removeItem(n)}h(null!==(s=null===(a=null===(o=e.uiElementGroupData)||void 0===o?void 0:o.userView)||void 0===a?void 0:a.allViews)&&void 0!==s?s:[],t,!0)}}),[null===(n=e.uiElementGroupData)||void 0===n?void 0:n.reset]);const h=(t,n,r)=>__awaiter(void 0,void 0,void 0,(function*(){var i,o,a,s,l;const c=getInitialData();c.advancedSearch.filterRows[0].allPropertieseToFilter=_.cloneDeep(e.advancedFilterableFields),c.enableDataLoading=!0,c.quickFilter.filterRows=e.quickFilterRows.map((e=>({id:"QUFS__"+getUniqueId(),propertyToFilter:_.cloneDeep(e),allValues:[],value:void 0}))),c.setting.activeDataWidgetType=null!==(a=null===(o=null===(i=e.uiElementGroupData)||void 0===i?void 0:i.setting)||void 0===o?void 0:o.activeDataWidgetType)&&void 0!==a?a:e.activeDataWidgetType,c.setting.columnChooser.allColumns=_.cloneDeep(e.columns),c.setting.columnChooser.appliedColumns=_.cloneDeep(e.columns.filter((e=>e.selected))),c.setting.columnChooser.selectedColumns=_.cloneDeep(null===(s=e.columns.filter((e=>e.selected)))||void 0===s?void 0:s.sort(((e,t)=>e.order-t.order))),c.userView.allViews=t,c.userView.selectedView=n;let u=Object.assign(Object.assign({},e.uiElementGroupData),c);r&&(u.localSearch=null===(l=e.uiElementGroupData)||void 0===l?void 0:l.defaultLocalSearch,u.sort=u.defaultSort,u.pagination=u.defaultPagination),n&&(u=yield g(n,u)),e.onModelUpdate(null,e.config.uiElementGroupId,u)})),m=()=>__awaiter(void 0,void 0,void 0,(function*(){const t=yield loadScreensAction(e.config.uiElementGroupId,e.getUniqueViewId),n=t.findIndex((e=>!0===e.isDefault)),r=_.cloneDeep(_defaultView);n<0&&(r.isDefault=!0,r.isSelected=!0);const i=[r,...t],o=i.find((e=>!0===e.isSelected));o&&h(i,o)})),g=(t,n)=>__awaiter(void 0,void 0,void 0,(function*(){let r;if("-1"===t.id&&e.enableDefaultSaveInSession){let t=e.config.uiElementGroupId;e.getUniqueViewId&&e.getUniqueViewId((n=>{t=n+"-"+e.config.uiElementGroupId}));r=getSavedSystemDefault(`${t}_-1`)}else"-1"!==t.id&&(r=yield loadScreenByIdAction(t.id));if(r)d(r),n=replaceCustomViewData(e.uiElementGroupData,n,r,e.toolBarOptions);else{const t=filterCustomViewData(n,e.toolBarOptions);d(t)}return n})),v=()=>{c((e=>!e)),f("")},b=e$i.useMemo((()=>hasUnsavedChanges(e.uiElementGroupData,u,e.toolBarOptions)),[JSON.stringify(e.uiElementGroupData),JSON.stringify(u)]);return e.visible?jsxRuntime.jsxs("div",Object.assign({className:"tmpl-screen-view-container"},{children:[jsxRuntime.jsx(UserViewView,{selectedView:null===(i=null===(r=e.uiElementGroupData)||void 0===r?void 0:r.userView)||void 0===i?void 0:i.selectedView,allViews:null!==(s=null===(a=null===(o=e.uiElementGroupData)||void 0===o?void 0:o.userView)||void 0===a?void 0:a.allViews)&&void 0!==s?s:[],disabled:e.disabled,onViewToggle:v,onDelete:t=>__awaiter(void 0,void 0,void 0,(function*(){yield deleteScreenAction(t);const n=e.uiElementGroupData.userView.allViews.filter((e=>e.id!==t));let r=e.uiElementGroupData.userView.selectedView;(null==r?void 0:r.id)===t&&(r=Object.assign(Object.assign({},_defaultView),{isSelected:!0,isDefault:r.isDefault})),h(n,r,!0)})),setDefault:t=>__awaiter(void 0,void 0,void 0,(function*(){yield markDefaultScreenAction(t,e.config.uiElementGroupId,e.getUniqueViewId);const n=Object.assign(Object.assign({},e.uiElementGroupData.userView),{allViews:e.uiElementGroupData.userView.allViews.map((e=>Object.assign(Object.assign({},e),{isDefault:e.id===t})))}),r=Object.assign(Object.assign({},e.uiElementGroupData),{userView:n});e.onModelUpdate(null,e.config.uiElementGroupId,r)})),onSave:t=>__awaiter(void 0,void 0,void 0,(function*(){yield updateScreenAction(t,e.uiElementGroupData,e.toolBarOptions);const n=yield loadScreenByIdAction(t);d(n)})),markAsSelected:t=>__awaiter(void 0,void 0,void 0,(function*(){var n;const r=e.uiElementGroupData.userView.allViews.map((e=>Object.assign(Object.assign({},e),{isSelected:e.id===t.id}))),i=Object.assign(Object.assign({},t),{isSelected:!0});"-1"===(null===(n=e.uiElementGroupData.userView.selectedView)||void 0===n?void 0:n.id)&&e.enableDefaultSaveInSession&&saveSystemDefaultInSession(e.config.uiElementGroupId,e.uiElementGroupData,e.toolBarOptions,e.getUniqueViewId),h(r,i,!0)})),hasUnsavedChanges:b}),l&&!e.disabled&&jsxRuntime.jsx(CreateScreenPopup,{create:t=>__awaiter(void 0,void 0,void 0,(function*(){const{id:n,viewName:r,error:i}=yield createScreenAction(t,e.config.uiElementGroupId,e.getUniqueViewId);if(i)return void f(i);const o=e.uiElementGroupData.userView.allViews.find((e=>"-1"===e.id)),a=[{id:n,isDefault:!1,name:r,isSelected:!1},...e.uiElementGroupData.userView.allViews.filter((e=>"-1"!==e.id))].sort(((e,t)=>e.name.localeCompare(t.name))),s=o?[o,...a]:a,l=Object.assign(Object.assign({},e.uiElementGroupData),{userView:Object.assign(Object.assign({},e.uiElementGroupData.userView),{allViews:s})});e.onModelUpdate(null,e.config.uiElementGroupId,l),v()})),onViewToggle:v,error:p})]})):jsxRuntime.jsx(jsxRuntime.Fragment,{})},GridToolBarView=({widgetStyle:e,toolBarOptions:t,config:n,uiElementGroupData:r,loadTemplateSupportiveData:i,onModelUpdate:o,onExport:a,onExportDelete:s,onExportList:l,onExportDownload:c,getUniqueViewId:u,eventService:d})=>jsxRuntime.jsxs("div",Object.assign({id:(null==e?void 0:e.id)||"",className:`tmpl-grid-toolbar-container ${(null==e?void 0:e.className)||""}`,"data-prc-col-important":(null==e?void 0:e.important)&&(null==e?void 0:e.className)||void 0,style:Object.assign({},(null==e?void 0:e.inline)||{})},{children:[jsxRuntime.jsx(GlobalSearch,{visible:t.globalSearch.visible,disabled:t.globalSearch.disabled,config:n,uiElementGroupData:r,onModelUpdate:o}),jsxRuntime.jsx(AdvancedSearch,{visible:t.advancedSearch.visible,disabled:t.advancedSearch.disabled,filterableFields:t.advancedSearch.filterableFields,enableCustomView:t.advancedSearch.enableCustomView,config:n,uiElementGroupData:r,onModelUpdate:o,loadTemplateSupportiveData:i}),jsxRuntime.jsx(QuickFilter,{visible:t.quickFilter.visible,disabled:t.quickFilter.disabled,enableCustomView:t.quickFilter.enableCustomView,config:n,uiElementGroupData:r,onModelUpdate:o,loadTemplateSupportiveData:i}),jsxRuntime.jsx(GroupBy,{visible:t.groupBy.visible,disabled:t.groupBy.disabled,enableCustomView:t.groupBy.enableCustomView,groupableFields:t.groupBy.groupableFields,config:n,uiElementGroupData:r,onModelUpdate:o}),jsxRuntime.jsx(Reset,{visible:t.reset.visible,disabled:t.reset.disabled,config:n,uiElementGroupData:r,onModelUpdate:o,getUniqueViewId:u}),jsxRuntime.jsx(Setting,{visible:t.setting.visible,disabled:t.setting.disabled,disableColumnChooser:t.setting.disableColumnChooser,columns:t.setting.columns,disabledDisplayWidgetType:t.setting.disabledDisplayWidgetType,enableCustomView:t.setting.enableCustomView,defaultActiveDataWidgetType:t.setting.activeDataWidgetType,config:n,uiElementGroupData:r,onModelUpdate:o}),jsxRuntime.jsx(UserView,{visible:t.userView.visible,disabled:t.userView.disabled,enableDefaultSaveInSession:t.userView.enableDefaultSaveInSession,advancedFilterableFields:t.advancedSearch.filterableFields,quickFilterRows:t.quickFilter.filterRows,activeDataWidgetType:t.setting.activeDataWidgetType,columns:t.setting.columns,config:n,uiElementGroupData:r,onModelUpdate:o,getUniqueViewId:u,eventService:d,toolBarOptions:t}),jsxRuntime.jsx(Export,{visible:t.export.visible,disabled:t.export.disabled,exportTypes:t.export.exportTypes,dataScopes:t.export.dataScopes,config:n,onExport:a,onExportDelete:s,onExportList:l,onExportDownload:c})]})),GridToolBar=({config:e,targetScreenDataField:t,uiElementGroupData:n,widgetStyle:r,toolBarOptions:i,loadTemplateSupportiveData:o,onExport:a,onExportDelete:s,onExportList:l,onExportDownload:c,onModelUpdate:u,onScreenDataLoad:d,getUniqueViewId:p,eventService:f})=>{var h,m,g,v,b;const y=reactRouterDom.useLocation(),$=reactRouterDom.useNavigate(),x=null===(h=y.state)||void 0===h?void 0:h.targetUiElementGroupId,E=e=>{null==u||u(null,null!=t?t:"",e)},w=()=>{var t,r;"-1"===(null===(r=null===(t=null==n?void 0:n.userView)||void 0===t?void 0:t.selectedView)||void 0===r?void 0:r.id)&&i.userView.enableDefaultSaveInSession&&saveSystemDefaultInSession(e.uiElementGroupId,n,i,p)};return e$i.useEffect((()=>{u(null,e.uiElementGroupId,Object.assign(Object.assign({},n),{setting:{activeDataWidgetType:i.setting.activeDataWidgetType}}));const t=()=>{w()};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[]),e$i.useEffect((()=>()=>{w()}),[y.pathname]),e$i.useEffect((()=>{var t;if((null===(t=y.state)||void 0===t?void 0:t.enableHotReload)&&x&&x===e.uiElementGroupId){if(x){const e=Object.assign({},y.state);delete e.targetUiElementGroupId,delete e.enableHotReload,$(y.pathname,{state:e,replace:!0})}null==d||d(E)}}),[x]),e$i.useEffect((()=>{(null==n?void 0:n.enableDataLoading)&&"UNMOUNTED"!==(null==n?void 0:n.mountStatus)&&(null==d||d(E))}),[JSON.stringify(null===(m=null==n?void 0:n.globalSearch)||void 0===m?void 0:m.appliedQuery),JSON.stringify(null===(g=null==n?void 0:n.advancedSearch)||void 0===g?void 0:g.appliedQuery),JSON.stringify(null===(v=null==n?void 0:n.quickFilter)||void 0===v?void 0:v.appliedQuery),JSON.stringify(null===(b=null==n?void 0:n.groupedBy)||void 0===b?void 0:b.appliedGroups),JSON.stringify(null==n?void 0:n.pagination),JSON.stringify(null==n?void 0:n.sort),JSON.stringify(null==n?void 0:n.localSearch),null==n?void 0:n.enableDataLoading,null==n?void 0:n.needLoadData]),jsxRuntime.jsx(GridToolBarView,{widgetStyle:r,toolBarOptions:i,config:e,uiElementGroupData:n,loadTemplateSupportiveData:o,onModelUpdate:u,onExport:a,onExportDelete:s,onExportList:l,onExportDownload:c,getUniqueViewId:p,eventService:f})},InformationAlertView=({widgetStyle:e,messageHeader:t,messageBody:n,onConfirm:r=()=>{}})=>jsxRuntime.jsx($$7,Object.assign({id:(null==e?void 0:e.id)||"",className:`tmpl-information-dialog ${(null==e?void 0:e.className)||""}`,"data-prc-col-important":(null==e?void 0:e.important)&&(null==e?void 0:e.className)||void 0,style:(null==e?void 0:e.inline)||{},onClose:r},{children:jsxRuntime.jsxs("div",Object.assign({className:"tmpl-dialog-box-container"},{children:[jsxRuntime.jsx("div",Object.assign({className:"tmpl-dialog-box__icon-wrapper tmpl-dialog-box__icon-wrapper--info"},{children:jsxRuntime.jsx(FactoryRenderer,{name:"load",uiElementType:"WIDGET",widgetType:"ICON",fillMode:"clear",title:""})})),jsxRuntime.jsx("h4",Object.assign({className:"tmpl-dialog-box__header"},{children:t})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-dialog-box__body"},{children:jsxRuntime.jsx("p",{children:n})})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-dialog-box__footer"},{children:jsxRuntime.jsx(FactoryRenderer,{widgetStyle:{className:"qo-btn qo-btn-primary qo-btn-md tmpl-confirm-btn--confirm"},themeColor:"primary",onClick:r,title:"Ok",uiElementType:"WIDGET",widgetType:"BUTTON"})}))]}))})),InformationAlert=e=>jsxRuntime.jsx(InformationAlertView,Object.assign({},e)),MenuSubItem=e=>"IMAGE"===e.displayType?jsxRuntime.jsx("img",{alt:"No Image",src:e.label,onClick:()=>e.onNavigate(e.path,e.navigationType)}):jsxRuntime.jsx("p",Object.assign({onClick:()=>e.onNavigate(e.path,e.navigationType)},{children:jsxRuntime.jsx(reactRouterDom.Link,Object.assign({to:e.path},{children:e.label}))})),MenuSubHeader=e=>jsxRuntime.jsxs("section",Object.assign({className:"tmpl-submenu"},{children:[e.label&&("IMAGE"===e.displayType?jsxRuntime.jsx("img",{alt:"No Image",src:e.label,onClick:()=>e.onNavigate(e.path,e.navigationType)}):jsxRuntime.jsx("h5",Object.assign({onClick:()=>e.onNavigate(e.path,e.navigationType)},{children:jsxRuntime.jsx(reactRouterDom.Link,Object.assign({to:e.path},{children:e.label}))}))),jsxRuntime.jsx("div",Object.assign({className:"tmpl-submenu__items"},{children:e.subItems.map(((t,n)=>e$i.createElement(MenuSubItem,Object.assign({},t,{key:n,onNavigate:e.onNavigate}))))}))]})),MenuMainHeader=e=>{const[t,n]=e$i.useState(!1);return jsxRuntime.jsxs("section",Object.assign({className:"tmpl-mainmenu",onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)}},{children:["IMAGE"===e.displayType?jsxRuntime.jsx("img",{alt:"No Image",src:e.label,onClick:()=>e.onNavigate(e.path,e.navigationType)}):jsxRuntime.jsx("h2",Object.assign({onClick:()=>e.onNavigate(e.path,e.navigationType)},{children:jsxRuntime.jsx(reactRouterDom.Link,Object.assign({to:e.path},{children:e.label}))})),jsxRuntime.jsx("div",Object.assign({className:"tmpl-mainmenu__items "+(t?"visible":"")},{children:e.subItems.map(((t,n)=>e$i.createElement(MenuSubHeader,Object.assign({},t,{key:n,onNavigate:e.onNavigate}))))}))]}))},MenuView=({menuItems:e,onNavigate:t})=>jsxRuntime.jsx("header",Object.assign({className:"tmpl-menu"},{children:e.map(((e,n)=>e$i.createElement(MenuMainHeader,Object.assign({},e,{key:n,onNavigate:t}))))})),Menu=e=>{var t;const[n,r]=e$i.useState([]);e$i.useEffect((()=>{var t;null===(t=e.loadMenuDetails)||void 0===t||t.call(e,(e=>r(e)))}),[]);return jsxRuntime.jsx(MenuView,{menuItems:null!==(t=e.menuItems)&&void 0!==t?t:n,onNavigate:(t,n)=>{var r;null===(r=e.onNavigate)||void 0===r||r.call(e,void 0,t,n)}})},BlockView=e=>{var t,n,r,i,o,a,s,l,c;const u=e$i.useMemo((()=>{var t,n;if(null===(t=e.toolTip)||void 0===t?void 0:t.isApply){if(e.toolTip.dataTip)return String(e.toolTip.dataTip);if(e.toolTip.dataTipField&&e.viewModel){const t=e.viewModel[e.toolTip.dataTipField];return null!=t?String(t):void 0}return null!==(n=e.value)&&void 0!==n?n:void 0}}),[e.toolTip,e.viewModel,e.value]);return jsxRuntime.jsx("section",Object.assign({className:`tmpl-block-container ${null!==(n=null===(t=e.widgetStyle)||void 0===t?void 0:t.className)&&void 0!==n?n:""}`,"data-prc-col-important":(null===(r=e.widgetStyle)||void 0===r?void 0:r.important)&&(null===(i=e.widgetStyle)||void 0===i?void 0:i.className)||void 0,id:null!==(a=null===(o=e.widgetStyle)||void 0===o?void 0:o.id)&&void 0!==a?a:"",style:Object.assign({},null!==(l=null===(s=e.widgetStyle)||void 0===s?void 0:s.inline)&&void 0!==l?l:{})},{children:jsxRuntime.jsxs("div",Object.assign({className:"tmpl-block__item"},{children:[jsxRuntime.jsx("div",Object.assign({className:"tmpl-block__header "+(e.enableHeaderBorder?"tmpl-border-header":"")},{children:e.title})),jsxRuntime.jsx("div",{className:"tmpl-block__value",dangerouslySetInnerHTML:{__html:null!==(c=e.value)&&void 0!==c?c:"-"},title:u})]}))}))},Block=e=>jsxRuntime.jsx(BlockView,Object.assign({},e));class TemplateWidgetFactory{constructor(){Object.defineProperty(this,"standardWidgetFactory",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"customWidgetFactory",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgetMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.createWidgetMap()}static get(e,t){if(!e&&!t)throw new Error("Widget Factory Not Assigned Error");return TemplateWidgetFactory.factory||(TemplateWidgetFactory.factory=new TemplateWidgetFactory),TemplateWidgetFactory.factory.standardWidgetFactory=e,TemplateWidgetFactory.factory.customWidgetFactory=t,TemplateWidgetFactory.factory}createWidgetMap(){this.widgetMap.set(WidgetTypes.GRIDTOOLBAR,GridToolBar),this.widgetMap.set(WidgetTypes.CONFOMATIONALERTBOX,ConfirmationAlert),this.widgetMap.set(WidgetTypes.INFOMATIONALERTBOX,InformationAlert),this.widgetMap.set(WidgetTypes.MENU,Menu),this.widgetMap.set(WidgetTypes.BLOCK,Block)}getWidgets(){return this.widgetMap}}var TemplateActionType,NavigationType;Object.defineProperty(TemplateWidgetFactory,"getStandardFactory",{enumerable:!0,configurable:!0,writable:!0,value:()=>TemplateWidgetFactory.factory.standardWidgetFactory}),Object.defineProperty(TemplateWidgetFactory,"getCustomFactory",{enumerable:!0,configurable:!0,writable:!0,value:()=>TemplateWidgetFactory.factory.customWidgetFactory}),Object.defineProperty(TemplateWidgetFactory,"getTemplateWidgets",{enumerable:!0,configurable:!0,writable:!0,value:()=>{var e;return null===(e=TemplateWidgetFactory.factory)||void 0===e?void 0:e.widgetMap}}),function(e){e.MENUNAVIGATE="MENUNAVIGATE"}(TemplateActionType||(TemplateActionType={})),function(e){e.EXTERNAL="EXTERNAL",e.NEWWINDOW="NEWWINDOW",e.INTERNAL="INTERNAL"}(NavigationType||(NavigationType={}));const navigationHandlers={[NavigationType.INTERNAL]:(e,t)=>t.navigate(e),[NavigationType.EXTERNAL]:e=>window.location.href=e,[NavigationType.NEWWINDOW]:e=>new Function(e)()},handleMenuNavigation=(e,t,n)=>{const r=navigationHandlers[n];r?r(t,e):console.warn(`Unknown navigation type: ${n}`)};class TemplateActionFactory{constructor(){Object.defineProperty(this,"actionMap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.actionMap=new Map([[TemplateActionType.MENUNAVIGATE,handleMenuNavigation]])}static getInstance(){return TemplateActionFactory.instance||(TemplateActionFactory.instance=new TemplateActionFactory),TemplateActionFactory.instance}getAction(e){return this.actionMap.get(e)||null}}exports.TemplateActionFactory=TemplateActionFactory,exports.TemplateWidgetFactory=TemplateWidgetFactory,exports.default=TemplateWidgetFactory;
//# sourceMappingURL=/sm/05965f1cc32b4e6cbaf6d4debfa56d09896f54219e0f826477efa4dbc0b7d256.map